You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Long Zhao <LZ...@firstgenetic.net> on 2002/09/04 17:43:29 UTC

How to set a varible in a form

I have a varible "title" in "SectionForm"
In JSP, before I do
<bean:write name="SectionForm" property="title">
I want to set the value of "title" base on some condition.
How can I do so in JSP?

Thanks

Long

	

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to set a varible in a form

Posted by John Yu <jo...@scioworks.com>.
1. Set it in the Action before forwarding to the JSP. This is the preferred 
way.
2. Use <logic:*> with <bean:define>

At 12:02 am 05-09-2002, you wrote:
>In the jsp specification, there is :
><jsp:setProperty name="" property="" value=""/>
>
>-----Message d'origine-----
>De : Long Zhao [mailto:LZhao@firstgenetic.net]
>Envoyé : mercredi 4 septembre 2002 17:43
>À : Struts Users Mailing List
>Objet : How to set a varible in a form
>
>
>I have a varible "title" in "SectionForm"
>In JSP, before I do
><bean:write name="SectionForm" property="title">
>I want to set the value of "title" base on some condition.
>How can I do so in JSP?
>
>Thanks
>
>Long

-- 
John Yu                       Scioworks Technologies
e: john@scioworks.com         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to set a varible in a form

Posted by Victor CHEVALIER <vc...@avs-consulting.com>.
In the jsp specification, there is :
<jsp:setProperty name="" property="" value=""/>

-----Message d'origine-----
De : Long Zhao [mailto:LZhao@firstgenetic.net]
Envoyé : mercredi 4 septembre 2002 17:43
À : Struts Users Mailing List
Objet : How to set a varible in a form


I have a varible "title" in "SectionForm"
In JSP, before I do
<bean:write name="SectionForm" property="title">
I want to set the value of "title" base on some condition.
How can I do so in JSP?

Thanks

Long



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>