Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing array parameters in jsp

843838Aug 26 2005 — edited Aug 26 2005
i have a dynamic input type where the number of input types would depend on how many the user wants to have.

now, how do i name and pass that to my jsp?
so far i have
<form action="process.jsp">
     <input type="text" name="pic"> // or should it be name="pic[]"?
</form>
and in my process.jsp
String[] picture = request.getParameter("pic");
i only get the first input type and not everything....

any help would be much appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2005
Added on Aug 26 2005
2 comments
318 views