File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
[Struts2] dinamic name for textfield
Joined: Jun 20, 2011
Jun 20, 2011 13:11:06
I need pass dinamic name at textfield tag.
<s:textfield name="<%=request.getParameter("type")%>.myField" maxlength="250" size="20px;"/>
Is it possible?
My Action contains these objects:
MyBean myBean1 = new MyBean();
MyBean myBean2 = new MyBean();
his name is generic, type can be myBean1 or myBean2
MyBean class contains myField attribute
Thanks in advance
I agree. Here's the link:
subject: [Struts2] dinamic name for textfield
Is there a way to put data form a jsp to a form field?
A JSP consisting of a single jsp:useBean won't compilef
Accessing javabean in JSP which is instantiated in Action class
Help reqd. in displaying results
Why ModelDriven not working?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014