You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by av...@za.safmarine.com on 2002/08/05 11:20:33 UTC

Using tags within tags

Hi
Sorry if this is a silly question but can I use a <bean:write /> tag inside a
<html:text /> tag ? I want to get a property out of my form bean that specifies
the style sheet class to use for a particular component.
thanks
Aisling



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


Re: Using tags within tags

Posted by MAXMOUSE <ma...@ciindia.com>.
Hi,
 You can't use <bean:write /> inside <html:text />. If you want to take the
property from a form bean. use one <bean:define/> tag that assign the form
property to a pagecontext variable from that variable you can insert in to
the <html:text/> using Runtime Expression of JSP <%= ..%>

  exam as follows.
  name of the form bean: myBean
  name of the property i want to fetch : myProperty

code is as follows

  <bean:define name="myBean" property="myProperty" id="myId">
  in html text u can use
 <html:text property="..." styleId="<%= myId %>" >

  Feel free to ask if you have any doubts.

Bye
muruges
maxmouse@ciindia.com
----- Original Message -----
From: <av...@za.safmarine.com>
To: <st...@jakarta.apache.org>
Sent: Monday, August 05, 2002 2:50 PM
Subject: Using tags within tags


>
> Hi
> Sorry if this is a silly question but can I use a <bean:write /> tag
inside a
> <html:text /> tag ? I want to get a property out of my form bean that
specifies
> the style sheet class to use for a particular component.
> thanks
> Aisling
>
>
>
> --
> 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>


Re: Using tags within tags

Posted by arul <ar...@comneti.com>.
you could!!!!

----- Original Message -----
From: <av...@za.safmarine.com>
To: <st...@jakarta.apache.org>
Sent: Monday, August 05, 2002 2:50 PM
Subject: Using tags within tags


>
> Hi
> Sorry if this is a silly question but can I use a <bean:write /> tag
inside a
> <html:text /> tag ? I want to get a property out of my form bean that
specifies
> the style sheet class to use for a particular component.
> thanks
> Aisling
>
>
>
> --
> 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>


RE: Using tags within tags

Posted by Karl Basel <kb...@freemail.absa.co.za>.
Hi,
Another way to do it is by using std html code for the 'text' and 'write' as
the value.

<input type="text" name="email" size="20" maxlength="50" value="<bean:write
name="registrationForm" property="email"/>">

perhaps that could help you.
karl

Hi
Sorry if this is a silly question but can I use a <bean:write /> tag inside
a
<html:text /> tag ? I want to get a property out of my form bean that
specifies
the style sheet class to use for a particular component.
thanks
Aisling



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