JSP 2 « Web « Spring Q&A





1. How do I save directly the excel generated content of a JSP page of type vnd.ms-excel    forum.springsource.org

How do I save directly the excel generated content of a JSP page of type vnd.ms-excel Hello, I have a JSP page of type <%@ page contentType="application/vnd.ms-excel"%> that, when is loaded ...

2. Traverse and polpulate a list on jsp -- please help    forum.springsource.org

Traverse and polpulate a list on jsp -- please help The problem i am facing is:- I have to read all file names from a Directory and populate them in a ...

3. Trim Whitespace in JSP    forum.springsource.org

Trim Whitespace in JSP I have a JSP that is generating some values that are processed by another automated resource. That resource is sensitive to whitespace in the source of the ...

4. Spring JSP Interceptor where a PageContext is available?    forum.springsource.org

Spring JSP Interceptor where a PageContext is available? Hi, I would like to be able to intercept in a vendor-neutral way the rendering of a JSP page and insert PageContext variables ...

5. viewing XML tree in JSP...    forum.springsource.org

Hi, I have web page where user can enter search criteria and display the results in the same page (One single JSP page). When user enters the search criteria and hits ...

6. JSP Spring    forum.springsource.org

Hi, im using MyFaces 1.1.5 and Spring 2.0 . Now i would like to reach my spring beans without going through JSF. Sounds strange maybe, but from my JSP page, i ...

7. Logic in Springs/JSP - PLEASE HELP ME OUT    forum.springsource.org

I need help with the following example tonight. I return a list to my jsp page and i would like to make the row RED if the value in FIELD2 equal ...

8. JSP generation    forum.springsource.org

Hi! I am using Spring + Hibernate. I am making JSP with forms for entities. Some of entities are quite big so I have to do many inputs binded with Spring. ...

9. Getting spring context from a jsp    forum.springsource.org

I read somewhere that there's a utility class that can be used to get the spring context for a web application. I forgot the name of the utility class and I ...





10. Processing JSP by myself    forum.springsource.org

Hi! I'd like to send an email which content based on a jsp-file, which contains - and -tags. (because then I dont have to care about placeholders, language-support etc.) Questions: Is ...

11. Retrieve values from JSP    forum.springsource.org

Retrieve values from JSP Hi! I have the following forEach loop in my JSP: Code: ...

12. a way to force any call to .jsp to be .lm?    forum.springsource.org

a way to force any call to .jsp to be .lm? Hi I have an app which the web.xml look like this Code: lessmoreapp org.springframework.web.servlet.DispatcherServlet 1 lessmoreapp /service ...

13. Calling a Java class method from within JSP    forum.springsource.org

Calling a Java class method from within JSP Hi, I have a JSP page which is loaded from a Controller class via - Code: ...... public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) ...

14. Generated Jsp is exceeding the 65535 bytes limit    forum.springsource.org

Generated Jsp is exceeding the 65535 bytes limit Hi, I am using the form tag like this: 40kg . . . ...

15. method call at jsp page beginning    forum.springsource.org

method call at jsp page beginning Hi, Kindly clarify the below doubts. I have main Page (say parentPage.jsp) which includes the second page called childPage.jsp.All the values to be displayed in ...

16. Ask an old question: how to display chinese in jsp? [Urgent]    forum.springsource.org

Ask an old question: how to display chinese in jsp? [Urgent] I have a problem in displaying the chinese characters in jsp. Although have searched many web sites for the answer ...





17. Autoimatically wrapping views with wrapper jsp    forum.springsource.org

I'd like to have Spring wrap all my JSPs with an standard 'wrapper' JSP that I have. Is there some pre-built class (view resolver ?) that can do this? I'm currently ...

18. How to getParameter in JSP    forum.springsource.org

I Use the Spring MVC to process and return modelAndView = new ModelAndView("/test/testJSP"); Now in this testJSP.jsp, I'll like to capture a parameter: <% String id = request.getParameter("id"); %> My Question: ...

19. Locale toggle link in JSP    forum.springsource.org

Locale toggle link in JSP Hi, I'm trying to write a locale toggle link in my jsp headers. I need to have the toggle at the top of every single jsp ...

20. open jsp and go at the bottom of the page ?    forum.springsource.org

hi, I'm a newbie and i would like to know if there is a solution with webflow, opening a jsp and go at the bottom of the page right away. thx ...

21. Problem With Handling Multi Screens from a Single JSP    forum.springsource.org

Hi, Am trying to access multiple jsp screens which are bind with different Spring Bind objects. But i can't able to do the addition or updation of the different objects from ...

22. Spring 2.5.2 recursive JSP    forum.springsource.org

Spring 2.5.2 recursive JSP Greetings, I've just migrated from spring 2.0.8 to 2.5.2 and faced an unexpected problem. In my application, I have a JSP that references itself, a recursive page. ...

23. hastable population from jsp and vice versa    forum.springsource.org

hastable population from jsp and vice versa hi friends, quite new to spring, like to ask u all a favor my reqt is, i hv to populate the html fields into ...

24. problem in rendering the jsp page    forum.springsource.org

25. Double extensions? Eg. foo.jsp.jsp    forum.springsource.org

Double extensions? Eg. foo.jsp.jsp There's probably a simple answer for this, but I'm having trouble with a new controller. As a test, I created a simple, new controller, etc.. When I ...

26. Precompilation of jsp    forum.springsource.org

Precompilation of jsp Hi, I need to precompile all the jsp of my application, to avoid the "delay" of runtime compilation the first time the jsp is called. I tried to ...

27. JSP EL not evaluated (solved)    forum.springsource.org

I thought I'd post this for the benefit of all. I ran into the old problem of JSP EL not being evaluated, even though I checked the usual suspects: the correct ...

28. spring:bind in jsp    forum.springsource.org

spring:bind in jsp I'm trying to retrieve a list in my jsp using the command object. Is this statement permissable? dataSource="" Here's the first part of the jsp:

29. Spring Javascript with non-JSP front end?    forum.springsource.org

Spring Javascript with non-JSP front end? (apologies if this is the wrong forum, but I have yet to figure out if this topic should be in SWF or Web) We're getting ...

30. multiple selection jsp    forum.springsource.org

I have a requirement to display a multiple selection list and I want to know if anyone has an example of how to process multiple selections. I am looking for some ...

31. common web project - share jsp, load from classpath    forum.springsource.org

common web project - share jsp, load from classpath Hi, I have a common web project, and then have several other web projects depend on this project... I can share the ...

32. JSP won't compile    forum.springsource.org

Jul 9th, 2008, 05:02 AM #1 kantorn View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Location Stockholm Posts 466 JSP won't compile Hi Spring 2.5.4 Spring ...

33. Jsp to Excel using Spring    forum.springsource.org

Jsp to Excel using Spring Hi, I am displaying search results which can be downloaded into an excel file on click of an 'Download' button. I am using POI and Here ...

34. bind list with jsp 1.2    forum.springsource.org

Hi guys, i tried to bind to bind a list of objects via spring:bind tag in the following manner: Code: Name: " value="

35. Speeding up jsp:include view    forum.springsource.org

Speeding up jsp:include view Hi Folks, I'm thinking of the way to speed up many things in my relatively slow working project. The victim I have selected from many others is ...

36. Binding a Hashset using JSP    forum.springsource.org

Binding a Hashset using JSP Hello, I have a Class "RiskIndicator" which has a property HashSet bbts (BBT is a self written class). I use a SimpleFormController and a JSP form ...

37. Please help me understand JSP + Spring    forum.springsource.org

Please help me understand JSP + Spring Hello! Ok, i have this following JSP Code: <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> ViewAllPostProfiles

Post-Pofile Viewer ...

38. How to invoke directly a jsp?    forum.springsource.org

Hi I don't think you can directly call a jsp when you are using spring. It's not advisable even, you can write a method like below for the initial screen showup. ...

39. Accessing BindingResult in jsp    forum.springsource.org

Accessing BindingResult in jsp Is it possible to directly access the BindingResult object in a jsp page? doesn't seem to give much option. I have part of the form ...

40. Prototype javascript Jsp    forum.springsource.org

Prototype javascript Jsp Hi All, Prototype & JSP abc.jsp new Ajax.Updater("list","/link_prototype/abc1.jsp", { asynchronous:true, evalScripts:true });

abc1.jsp <% out.println("Hello"); %> This Works Fine. ----------------------------------------------------------------- But, userList.jsp new Ajax.Updater( 'userList', '/users/userTable.jsp', ...

41. Strange JSP issue    forum.springsource.org

Strange JSP issue Hi All, I am new to Spring (Hence my que can sound silly). I was in a process of developing a MVC application. Everything works well untill it ...

42. JSP not populating values.    forum.springsource.org

Hello, I am trying to have a table prepopulated when the page(Vew.jsp) first loads.All my View.jsp is showing is exactly the number of rows as it coming from database, with no ...

43. jsp not resolving    forum.springsource.org

jsp not resolving Hy Forum, I've writing an Application with an smal .jsp-Page as Debug-Output. In my .jsp-Page i will show information generated by my View-Conteoller. My web.xml: Code: contextConfigLocation ...

44. Problem to syncronize fields in jsp page    forum.springsource.org

Problem to syncronize fields in jsp page Hi I am quite new with Spring MVC and I have the following problem: I create a jsp page with the associated SimpleFormController. In ...

45. can XmlViewResolver resolve to a jsp?    forum.springsource.org

46. Name of view from JSP    forum.springsource.org

I have now in my controller Code: ModelAndView mav = new ModelAndView("index"); mav.addObject("bodyName", "index"); return mav; is this possible to get name of view from JSP without setting "bodyName" parameter. I ...

47. ValidationErrors on jsp    forum.springsource.org

Jun 2nd, 2009, 10:01 AM #1 anita View Profile View Forum Posts Private Message Member Join Date Apr 2009 Posts 35 ValidationErrors on jsp Hello, I'm creating a portlet in a ...

48. keep information between JSPs    forum.springsource.org

keep information between JSPs Hello, I have a problem when I add a button in one of my JSPs that redirects to another JSP that is used to make a search ...

49. sets and jsp    forum.springsource.org

Hello, If in roo shell i do: add field set jpa -class ~.key.ProductGroup -fieldName postfixes -element ~.key.Postfix -mappedBy productGroup -notNull in my jsp i then have: Code: ...

50. hello.jsp is followed by another .jsp    forum.springsource.org

The requested resource (/Inventory/WEB-INF/jsp/hello.jsp.jsp) is not available. The above is the error message I am getting. I am not getting what mistake I have commited, hello.jsp is followed by another .jsp ...

51. hello.jsp is followed by another .jsp    forum.springsource.org

The requested resource (/Inventory/WEB-INF/jsp/hello.jsp.jsp) is not available. The above is the error message I am getting. I am not getting what mistake I have commited, hello.jsp is followed by another .jsp ...

52. save the contents of jsp page on server side    forum.springsource.org

Hello everybody, I have a requirement wherein I have to store the output of the JSP in a file on the server side. I have managed to do it using URLConnection ...

53. How to add other jsp pages    forum.springsource.org

Hi, dont take me too seriously since im not a Roo expert I think you could do it the same way you add pages to any tiles project, simply put the ...

54. why jsp not show integer value    forum.springsource.org

public class UsersController extends MultiActionController { ... // this method call when jsp is show public ModelAndView create(HttpServletRequest request, HttpServletResponse response) throws Exception { ModelAndView mav = new ModelAndView("user", "commandName", new ...

55. how to use addInline and obtain the value in jsp    forum.springsource.org

56. What is your JSP approach?    forum.springsource.org

I used to use the Tiles for my Spring web projects. Tiles is good for a (large) site with a fixed set of layouts. Since the current 3 version doesn't support ...

57. jsp attribute ignored    forum.springsource.org

jsp attribute ignored I am new to Spring. This code results in the jsp page displaying, without errror. However, the "message" property is not set. The property is set in the ...

58. One main JSP with dynamic content    forum.springsource.org

Hi, I'm using Spring MVC. What I want to do is to create one JSP (including a header and left menu div) and one dynamic div with shows the content. I ...

59. Bundlor Does Not Scan JSPs?    forum.springsource.org

Bundlor Does Not Scan JSPs? I want to confirm this before I add a story for it in JIRA (if folks agree this should be done). We're using Bundlor in both ...

60. Render JSP in my code and capture output    forum.springsource.org

Render JSP in my code and capture output Hi, Is it possible to render a JSP view from my code, then capture the rendered output? I know I can use Velocity ...

61. Retreiving a HashMap in a new jsp view    forum.springsource.org

I have a snippet of code Code: xmlMessagesMap.put("xml", xmlMessage); //generated xml message xmlMessagesMap.put("inputXml",inputXmlMessages);//generated String[] xml messagges xmlMessagesMap.put("formInput",form );//user form values - command class return new ModelAndView(getSuccessView(), "xmlMessages",xmlMessagesMap); How can I access ...

62. Jsp source not found    forum.springsource.org

Jsp source not found Hi All: I am using Eclipse 3.5 and the Tomcat 6 and Weblogic 11g. I download the Oracle Eclipse Plugin "//download.oracle.com/otn_software/oepe/galileo". My web application is using Spring ...

63. writeSeoLink() method in JSP    forum.springsource.org

writeSeoLink() method in JSP Hi! My app is servlet-based. I really need one utility in my JSPs. I need writeSeoLink() method which displays properly build link. The problem is that it ...

64. Web/JSP Customization    forum.springsource.org

You can customize the css for generated applicaions by editing the default.css under /src/main/webapp/styles/standard.css. Customizing the generated pages is not so easy and will be overriden when roo updates scaffolded controllers. ...

65. One To Many display in jsp pages    forum.springsource.org

One To Many display in jsp pages I am a little bit confused on the approach to OneToMany and the jsp page that gets created. I have a CD class, which ...

66. Spring 3.0 formatters not being applied on JSP    forum.springsource.org

Spring 3.0 formatters not being applied on JSP Hi Spring experts, I have a problem trying to get formatters to be applied when I return a list of my model object. ...

67. Why PageNotFound cannot be directly to jsp view pageNotFound    forum.springsource.org

Why PageNotFound cannot be directly to jsp view pageNotFound I am following the sample petclinic to start using Spring MVC. Please forgive my stupidness. I have set the below in xxx-servlet.xml ...

68. link to another jsp    forum.springsource.org

Hi everybody, I am solving following problem in my spring mvc application. I am trying to get from index.jsp to another jsp named registration.jsp by clicking on a link. I dont ...

69. add/edit/delete obj in the same JSP page.    forum.springsource.org

add/edit/delete obj in the same JSP page. Hi all, I would like to implement a page in JSP where I have a list of objects that would allow me to add/delete/edit. ...

70. making a jsp page default view (home page) for the application    forum.springsource.org

making a jsp page default view (home page) for the application I am using Spring MVC.I am using url pattern *.html . I have all the jsp files in a separate ...

71. store variables in a jsp page scope with the spring framework    forum.springsource.org

I want to store some variables (e.g. number of rows per table) at page scope in Spring so that each page has its own group of variables. What is the proper ...

72. Spring EL on JSPs    forum.springsource.org

73. JSP editor panes don't have titles    forum.springsource.org

I am using SpringSource Tool Suite Version: 2.3.0.RELEASE Build Id: 200912171331 on Ubuntu 10.04 When I open .jsp files the editor pane does not get a title like it does for ...

74. direct link from one to another JSP    forum.springsource.org

Hello, ich use Spring MVC and I have put my jsp's into the folder WEB-INF/jsp/myjsp's. With the Model and the controller all works fine. My question now is whether it is ...

75. Index.jsp Problem with Roo1.1.0M1    forum.springsource.org

Hi all, I m using Roo1.1.0.M1. when I give command perform package it generate war file without index.jsp but in Old version Roo1.0.0.A1 it create Index.Jsp can any one tell me ...

76. Manifest Entries in the JSP    forum.springsource.org

I would like to be able to output manifest entries (${APP_CONTEXT}/META-INF/MANIFEST.MF) as if they are regular message bundles or app context variables. Does anyone know if spring has an easy way ...

77. Best Practices using ViewResolver with jsp and jspf    forum.springsource.org

Best Practices using ViewResolver with jsp and jspf Hello, I would like to use both jsp files and jspf files. Also, I would like to store both types in their own ...

78. Invoking JSP processor manually    forum.springsource.org

Hi! Is it possible to invoke JSP processor somehow manually from Spring Controller? I would like to construct some documents (for example emails) from a predefined template and then do something ...

79. How to publish JSP changes on the FLY even without republishing the application?    forum.springsource.org

How to publish JSP changes on the FLY even without republishing the application? Hi All We are using spring source IDE for our new project. We are using JBoss as the ...

80. Enum type on JSP    forum.springsource.org

Have anyone successfully used an enum type on JSP file? I have quite few enum types (integer) on Java beans and I need to create a corresponding form bean to make ...

81. SpEL in a JSP    forum.springsource.org

Sep 2nd, 2010, 11:10 AM #1 marka View Profile View Forum Posts Private Message Junior Member Join Date Jun 2010 Posts 16 SpEL in a JSP Ok, I'm back with more ...

82. How to display list on jsp    forum.springsource.org

How to display list on jsp Hi, I'm new to spring, I've a SimpleFormController and overrided the referenceData method by loading a list of object called ItemLine from user's session like ...

83. solution to Unable to compile class for JSP    forum.springsource.org

So suddenly since Monday I just wasn't able to load my project on localhost. I was getting: solution to Unable to compile class for JSP and when refreshed getting a different ...

84. Separate JSPs and Classes    forum.springsource.org

Separate JSPs and Classes I need to separate the jsps and the classes, because when I modify a JSP, then I don't want to rebuild the Commands, Controllers etc. (Those jsp-s ...

85. How to create ONE page from two JSP views?    forum.springsource.org

How to create ONE page from two JSP views? Hi, I ma going to use Spring MVC to create web pages that consist of two parts: top part including page header ...

86. Spring to jsp    forum.springsource.org

when we get data from database., in springmvc web project., IS THERE ANY OTHER SOLUTION "INSTEAD OF"

87. Lookup from JSP    forum.springsource.org

Lookup from JSP Hi I am using Spring 3 and want to access a Spring bean that holds the ref data. I do not want reference 'data' cached in application or ...

88. jsp:include working slow    forum.springsource.org

Hi There. I've searched around and was not able to find a solution to this issue: I am using Spring MVC (3.0). At my page, i do: Code: ...

89. [JSP] normalize strings    forum.springsource.org

Most elegant is to write a tag class (extend TagSupport) and use it as a custom tag in your jsp. In your custom tag class define a setter for ...

90. web.xml and Spring problem    coderanch.com

92. UI development with Jsp and Spring    coderanch.com