•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 425,905 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,885 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 11599 | Replies: 4
![]() |
| |
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I am new to web development. Can somebody advise me on how I can pass an ArrayList from my JSP to action class.
I have the following link in my JSP which links to an action class.
<li> <A href="inboxMsg.do">Link to action</A></li>
Can I pass the arraylist in the above code?
Is using <html:link> a better option instead of the above code?
Thanks for suggestions.
I have the following link in my JSP which links to an action class.
<li> <A href="inboxMsg.do">Link to action</A></li>
Can I pass the arraylist in the above code?
Is using <html:link> a better option instead of the above code?
Thanks for suggestions.
•
•
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation:
Rep Power: 4
Solved Threads: 3
Why do you want to pass an array list to your action class? didn't it come from the server in the first place?
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Originally Posted by alpha_foobar
Why do you want to pass an array list to your action class? didn't it come from the server in the first place?
Basically I am displaying a list of messages in my JSP. When user clicks on one of the message I want to send the list to an action class for further processing and then the action class redirects it to a JSP.
•
•
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation:
Rep Power: 4
Solved Threads: 3
The reason I ask is that there are methods for sending information from the JSP to the server (Forms).
If you want that information to be an ArrayList, then you have to store it in the session on the server. This is silly. Limit what you save in the session to the minimum and limit the data you need to transfer to the minimum (obviously compromises need to be made).
But you can send the messages back in a Form submit. If you need to. Or you can keep the messages on the server. If you need to.
If you want that information to be an ArrayList, then you have to store it in the session on the server. This is silly. Limit what you save in the session to the minimum and limit the data you need to transfer to the minimum (obviously compromises need to be made).
But you can send the messages back in a Form submit. If you need to. Or you can keep the messages on the server. If you need to.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to Connect MySQL from JSP Page (JSP)
- how can i pass a value from java script to JSP scriplet (JSP)
- Passing variable value from javascript to jsp page at run time (JSP)
- passing values of Select box from JSP to Action class thru form Bean (JSP)
- Dynamic links in JSP page-need help (JSP)
Other Threads in the JSP Forum
- Previous Thread: How can I submit a form as an email?
- Next Thread: Play music on a JSP page.


Hybrid Mode