struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anubhav Kale" <anubhav_k...@persistent.co.in>
Subject Re: Using variable on JSP Page
Date Tue, 22 Jul 2003 10:04:26 GMT
Hi...

Thanks Vinayak. It does set the name .

But when i use

<form >

<input type=text name='<%=name%>' value='<%=nameValue%>' >

<%

String NAME = request.getParameter(name); out.println(NAME);

%>

</form>


It prints null (it should print content of text box i.e. value of nameValue
.)

Please help

Thanks

Anubhav





----- Original Message -----
From: "Vinayak Birari" <vinayak_birari@onwardgroup.com>
To: <struts-user@jakarta.apache.org>
Sent: Tuesday, July 22, 2003 2:51 PM
Subject: Re: Using variable on JSP Page


> 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
>


---------------------------------------------------------------------
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