JSP Section Index | Page 7
Can my JSP page access initalization parameters from the servlet context?
The only way you can obtain the init param from the servlet context is if you have context initialization params defined within your web.xml. For example, if your web.xml has something like:
<...more
I have taken parameters of a form from a jsp. I need to pass that parameters to another jsp. How can I do it without writing that manually using string like another.jsp?name=value. Since there are many paramters, passing through URL is inconvenient. Is there a way to do it ?
With the <jsp:forward> and <jsp:include> tags you can also pass parameters using the <jsp:parameter> tag:
...
<jsp:[include|forward] page=... ...>
<jsp:parameter name...more
I have to deploy a war file
I have to deploy a war file. the structure is/contextroot jsp test.jsp web-inf classes util Connect.class connect.properties The Connect class has to load the properties...more
I have to deploy a war file 1.
I have to deploy a war file.
the structure is
/contextroot
jsp
test.jsp
web-inf
classes
util
Connect.class
connect.properties
The Connect class has to load th...more
I have two webapps which I would like to pass information between.
I have two webapps which I would like to pass information between.
I would also like to pass all the session information between the webapps.
An example would be helpful.
In one of my applications i am using jsp for all reporting. But the problem here is that the window.print() command will print everything on screen.
Is it possible to print only a part of the scrren, say the data displayed in a table?
If you are willing to put in some more efforts than a mere window.print() you may like to check out Velocity and FOP from Apache guys.. they have done a really great job, you can make a pdf file o...more
Are Page scoped variables available across multiple requests to the same page?
Are Page scoped variables available across multiple requests to the same page?
If this is not the case, what is the difference between request scope and page scope for JSP? Also, is this data avail...more
Does anyone know the pro's or con's between developing a site for 2k users in either JSP or ColdFusion? What is faster development done in? How well does JSP scale when compared to coldfusion?
Does anyone know the pro's or con's between developing a site for 2k users in either JSP or ColdFusion? What is faster development done in? How well does JSP scale when compared to coldfusion?
How can I retrieve an expired session?
How can I retrieve an expired session?
I have a JSP that uses frames inside frames. How can say to the browser to open the Error Page in the main frame (the topmost frame)?
If the error page is being returned from a form post or get link (ie you have posted info to your servlet and the response is the error) then simply stick a target="topframename" into your <for...more
Is it possible to call a custom tag from another custom tag? If so how?
Is it possible to call a custom tag from another custom tag?
If so how?
Does Buffer size affects the performance in any way?
Does Buffer size affects the performance in any way?
I am using buffer size as 100kb.will it in anyway affect the performance?
If yes what is the optimum size that can be used?
If no why?
I am aware of the technical differences between response.sendRedirect() and <jsp:forward...> i.e. that the first one sends an instruction to the browser to request the specified page, and the second simply sends the specified page.However, can anyone tell me why one should be used instead of the other?
Generally I use forward when I'm sending a page that is within the same site i am sending from, ie you are on index.jsp and sending them to the signup.jsp or whatever.
I use sendRedirect() when I'...more
I have downloaded the Tomcat 3.3a. After I start up the server.. it puts out this strange message: embeded Tomcat: exception initializing ContextManager. What do I have to do to start my Server without any error messages?
Wrong unzip tool. Some pathnames got shortened. Try unzipping with a tool that supports long pathnames.
We have multiple RquestDspacter.forward() in a single JSP file. This JSP runs OK with JRun 3.0 but gives Error 500 (response has already been commited) with Web Sphere 3.4. Is there any restriction in WebSphere that we can have only 1 RequestDispatcher.forward() call in a single JSP?
Add a return; after each forward, so only one gets executed in every call to the JSP.