A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course 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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: [Struts2] dinamic name for textfield
Help reqd. in displaying results
A JSP consisting of a single jsp:useBean won't compilef
Is there a way to put data form a jsp to a form field?
Accessing javabean in JSP which is instantiated in Action class
Why ModelDriven not working?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015