• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

send two or more Actionformbean Urgent!!!!! plz.....

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i write like the following code:
ActionFormBean:
public BeanMap extends ActionForm(
private String Symbol;
public void setSymbol(String symbol){
this.symbol = symbol;
}
public String getSymbol(){
return this.symbol;
}
}

JSP Page::
<%@ page language="java"%>
......
.....
<html>
<body>
<html:form action="beanaction"
path = "packagename.formbeanname"
name = "alias name">
<table>
<tr> <td>Symbol1:</td>
<td> <html:text property="symbol"/></td></tr>
<tr><td>Symbol2:</td>
<td><htmk:text property="symbol"/></td></tr>
....
.....
<tr><td>Symbol10:</td>
<td><html:text property="symbol"/></td></tr>
</table>
</html:form>
</body>
</html>
In the above snippet i send 10 symbols (that is 10 ActionFormBean properties) are send to single ActionClass.
But i can get only one value from ActionFormBean in Action Class.
How can i get 10 values.
Note:
Using login:iterate we can access the 10 records from ActionFormBean in jsp.
i.e all the records are stored in ArrayList or collection.
how to done the reverse process.
Pls give the solution for the above one.
with advance thanks
Tomsek
 
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should help: form with multiple fields
 
reply
    Bookmark Topic Watch Topic
  • New Topic