A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
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
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-2014