Re: Servlet to JSP problem
On Oct 30, 5:13 pm, charlesmu...@xxxxxxxxx wrote:
I have an arraylist defined and populated in a servlet. What I want to
do is pass the arraylist to a JSP and display the values in the
arraylist.
problem was when the JSP receives the request and does a getAttribute
on the request it is saying the ArrayList is null.
It tries to get a string from the request not the arraylist.
Any ideas on how I can pass this arrayList from a servlet to a JSP?
Put it on the session in the servlet and retrieve it from there in the
JSP or you will have to serialize it somehow before putting it on the
request. Bear in mind that GET has a maximum allowed length. POST
doesn't.
Regards
.
Relevant Pages
- Re: jsp client for axis2 webservice
... Read the Java EE tutorial on the Sun web site. ... It talks generally about how to call logic from a JSP. ... A servlet on the app server receives the request, parses out the request parameters, and passes them along to an instance of a regular Java class, usually a Bean. ... That object in turn will perform some processing, say, calling one of the stub methods that you have. ... (comp.lang.java.programmer) - Re: my first session bean
... A bean instance associated with the specified id is sought ... and used in the page as it services the current request. ... instance may later be used by any page or servlet in the same webapp, ... JSP forward or include is used -- but do not confuse that with an HTTP ... (comp.lang.java.programmer) - Re: jsp client for axis2 webservice
... Read the Java EE tutorial on the Sun web site. ... to call logic from a JSP. ... all the JSP does is POST an HTTP request to the application ... calling one of the stub methods that you have. ... (comp.lang.java.programmer) - Re: Passing checkbox values from one JSP page to another
... boolean as if selected we get true then if checkbox is true then add ... it to request as attribute and display them in another jsp. ... Use a controller servlet to decipher the request parms, then dispatch to the destination JSP with values predefined, say via request.setAttribute. ... (comp.lang.java.programmer) - Re: jsps not serving from context root in netbeans server
... resultant request for a jsp seems to be requested outside of the ... context root instead of using the context root and a 404 is returned. ... by redirect I mean a response.redirect. ... (comp.lang.java.programmer) |
|