struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shai200 <shai...@gmail.com>
Subject RE: Outputting raw HTML with s:property tag
Date Mon, 31 Dec 2007 10:46:33 GMT

Yuhooo!!! Trivial, thanks (I couldn't find the answer).

Second question - how can I use struts tags as output (i.e.  <s:textarea > )
? Can Struts in turn convert them into HTML code by outputting Struts HTML
tag using <s:property > ?



Al Sutton-4 wrote:
> 
> Have a look at;
> 
> http://struts.apache.org/2.x/docs/property.html
> 
> And read the parameters section, the answer starts with an e. 
> 
> -----Original Message-----
> From: shai200 [mailto:shai200@gmail.com] 
> Sent: 31 December 2007 06:35
> To: user@struts.apache.org
> Subject: Outputting raw HTML with s:property tag
> 
> 
> I'm using the <s:property name="form"> tag to get invoke the getForm()
> method in my action, to get its output. 
> 
> The problem is that my output is some HTML code, but what comes out is
> output text, with tags converted to be shown on the screen i.e. 
> <tt>
>  &lt;input  type='hidden' name='uaction' value='retrieve'&gt; &lt;input
> type='hidden' name='mode' value='&lt;%=dt.getUiMode()%&gt;'&gt;
> &lt;table&gt;
> &lt;tr&gt;
> &lt;/tr&gt;
> &lt;tr&gt;
> &lt;td align='left' class='text'&gt;User Type: &amp;nbsp;&lt;/td&gt;&lt;td
> align='top'&gt;&lt;img
> src='/gc9/images/icons/mandatoryStartSmall.gif'&gt;&lt;/img&gt;&lt;/td&gt;
> 
> </tt>
> 
> How do I make the s:property tag output my HTML code? Perhaps there is a
> different tag to do this?
> 
> 
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Outputting-raw-HTML-with-s%3Aproperty-tag-tp14554781p1
> 4554781.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Outputting-raw-HTML-with-s%3Aproperty-tag-tp14554781p14556255.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message