struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayak Birari" <vinayak_bir...@onwardgroup.com>
Subject Re: Using variable on JSP Page
Date Tue, 22 Jul 2003 09:21:54 GMT
hi Anubhav,
try out this...
<%
  String name = "myName";
   String nameValue = "value";
%>
<html>
<form name="frm">
<input type="text" name = '<%=name%>'  value='<%=nameValue%>'>
</form>
</html>

 cheers,
Vinayak.

>>> anubhav_kale@persistent.co.in 07/22/03 01:21PM >>>
Hello.

I want to create a text box on JSP page and give it a name which is
stored
in the VARIABLE say 'name'.  This variable is defined in the java code
on
the JSP page.

Can you please tell me the EXACT syntax ?

PLEASE NOTE THAT I WANT TO GIVE NAME TO TEXT BOX THRU MY CODE. So the
name
is in variable and not known beforehand

Thanks a lot

Anubhav


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org 
For additional commands, e-mail: struts-user-help@jakarta.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message