Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Need Help Struts 2.0.8

Subject: Re: Need Help Struts 2.0.8

2007-11-01       - By Raghuveer Rawat

 Back
Thanks Jim for link. Yeah, I have to upgrade to newer version 2.0.11.


On 11/1/07, Jim Cushing <jimothy@(protected)> wrote:
>
> It's not necessary to do declare 10 variables. Here's an example:
>
> http://struts.apache.org/2.x/docs/tabular-inputs.html
>
> By the way, Struts 2.0.11 is out, so Raguveer, you might want to
> upgrade. The answer to your particular question doesn't change, but
> there are some bug and security fixes you should have.
>
> On Nov 1, 2007, at 7:14 AM, John Doe wrote:
>
> > The simplest way (if I'have understood your problem right) is to
> > create 10
> > variables in your action class (with getters and setters of course)
> > and on
> > the form. So it'll be
> >
> > private String firstName1;
> > private String firstName2;
> > private String firstName3;
> > ...
> > private String firstName10;
> >
> > in the action class and :
> >
> > <s:textfield name="firstName1"  size="25" maxlength ="20"/>
> > <s:textfield name="firstName2"  size="25" maxlength ="20"/>
> > <s:textfield name="firstName3"  size="25" maxlength ="20"/>
> > ...
> > <s:textfield name="firstName10"  size="25" maxlength ="20"/>
> >
> > Struts fills action variables values automatically using reflection.
> >
> > On 11/1/07, Raghuveer Rawat <raghuveer.rawat@(protected)> wrote:
> >>
> >> Hi, still looking for help.
> >>
> >>
> >> On 10/31/07, Raghuveer Rawat <raghuveer.rawat@(protected)> wrote:
> >>>
> >>> Hi, I have form which allows user to invite other users. A user can
> >> invite
> >>> a max of 10 users at a time. A row contain First Name, Last Name,
> >>> and
> >> Email
> >>> Address.
> >>> How should I name these textfields (OGNL expression) and how
> >>> should I
> >>> retrieve these values in Action Class?
> >>>
> >>>
> >>> <table>
> >>>
> >>> <
> >>> tr>
> >>>
> >>> <td>First Name</ td>
> >>>
> >>> <td>Last Name</ td>
> >>>
> >>> <td>Email Address</ td>
> >>>
> >>> </tr>
> >>>
> >>> <tr>
> >>>
> >>> <s:textfield name="firstName"  size="25" maxlength ="20"/></td>
> >>>
> >>> <s:textfield name="lastName" size="25" maxlength ="20"/></td>
> >>>
> >>> <s:textfield name="email" size="25" maxlength= "20"/></td>
> >>>
> >>> </tr>
> >>>
> >>>  similarly 9 more rows like this.
> >>>
> >>> </table>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > Best regards,
> > Bashma?ov Anton
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

©2008 junlu.com - Jax Systems, LLC, U.S.A.