This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes getting value in logic iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting value in logic iterate" Watch "getting value in logic iterate" New topic
Author

getting value in logic iterate

priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
Dear Friends,
I have problem in getting the dynamic value of a variable in logic iterate.
I want to do it like this ...
projects is the arraylist return by a ActionForm.

Now it will create dynamic rows but i want to send the value of project_id and project name with submit button for that row .These values are used by next form.
Any idea how can i proceed.
priya
[ December 03, 2003: Message edited by: priya jain ]
P. Udaya Shankar
Greenhorn

Joined: Nov 18, 2003
Posts: 21
hi
<html:hidden name="xyz" property="project_id" />
<html:hidden name="xyz" property="project_name" />
i hope this will work for u
priya jain
Greenhorn

Joined: Apr 23, 2003
Posts: 10
Hi,
I tried this help too ... added put two lines like this

but now i am getting error

Now wat should i do?
priya
Jimmy Soh
Greenhorn

Joined: Dec 04, 2003
Posts: 5
You don't have a bean named project_id on that page, so it is giving you an error. Instead of name="project_id", use name="project".
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Jimmy's recommendation is the ideal solution, but you can also do this:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting value in logic iterate
 
Similar Threads
how to generate dynamic hidden variables to send data from jsp to Action class
rtexprvalue for html:text value attribute inside logic:iterate
html:select inside logic:iterate
Help me about html:select
JSP Radio button value retrieval