A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
[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
A JSP consisting of a single jsp:useBean won't compilef
Why ModelDriven not working?
Accessing javabean in JSP which is instantiated in Action class
Help reqd. in displaying results
Is there a way to put data form a jsp to a form field?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014