You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <an...@gmail.com> on 2007/09/12 10:23:47 UTC

[OT] Re: writing dynamic content using JspWriter out

2007/9/12, temp temp <mi...@yahoo.com>:
> In my jsp I use JspWriter to write my page content .I can write lot of  static data but I cannot write dynamic content like scriptlet  or  tag library ie even if I write tag library or scriptlet it will not be  executed .Is there any solution for this  ?

No! When you use JspWriter, you send your data directly to the client!
Therefore, it does not pass to the JSP compiler.

Antonio

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


Re: [OT] Re: writing dynamic content using JspWriter out

Posted by Antonio Petrelli <an...@gmail.com>.
It works, but it is not your original request... anyway if it is ok for
you...

2007/9/12, temp temp <mi...@yahoo.com>:
>
>
> <field name="my-field" presentation-type="text">
> >       <layout>
> >           <resource align="right">
> >             <![CDATA[
> >                  <span class="smallBlueText"/>
> >                   <bean:write name="my-object"/>
> >               ]]>
> >            <resource>
> >      </layout>
> >   </field>
>
>
>   In my resource  Iinsteand of
>
> <bean:write name="my-object"/>
>
> I used <iframe src='/ext/application-digital-signature.jsp'></iframe>
> and in this jsp I used
> <bean:write name="my-object"/>.
> This way i can write all my dynamic stuff in a in a jsp and call that jsp
> in iframe.
>
>
>   miro
> Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp
> :
> >
> > What if  I use Iframe I tested it it worked do you see any problems
> using
> > iframe ?
>
>
>
> What do you put in the iframe?
>
> Antonio
>
>
>
> ---------------------------------
> Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get
> listings, and more!

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by temp temp <mi...@yahoo.com>.
<field name="my-field" presentation-type="text">
>       <layout>
>           <resource align="right">
>             <![CDATA[
>                  <span class="smallBlueText"/>
>                   <bean:write name="my-object"/>
>               ]]>
>            <resource>
>      </layout>
>   </field>
  

  In my resource  Iinsteand of 
  
 <bean:write name="my-object"/>

I used <iframe src='/ext/application-digital-signature.jsp'></iframe>
and in this jsp I used 
<bean:write name="my-object"/>.
This way i can write all my dynamic stuff in a in a jsp and call that jsp in iframe.


  miro
Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp :
>
> What if  I use Iframe I tested it it worked do you see any problems using
> iframe ?



What do you put in the iframe?

Antonio


       
---------------------------------
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, and more!

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by temp temp <mi...@yahoo.com>.
<iframe src='/ext/application-digital-signature.jsp'></iframe>
  miro

Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp :
>
> What if  I use Iframe I tested it it worked do you see any problems using
> iframe ?



What do you put in the iframe?

Antonio


       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/12, temp temp <mi...@yahoo.com>:
>
> What if  I use Iframe I tested it it worked do you see any problems using
> iframe ?



What do you put in the iframe?

Antonio

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by temp temp <mi...@yahoo.com>.
What if  I use Iframe I tested it it worked do you see any problems using iframe ?
  Miro

Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp :
>
>
> My applications writes html  out of an xml file.this xml has  feilds
> with there presentation type.This field   element  in xml can have  cdata
> section which allows user to  write any thing like
>   scripts or bean tags or any other custom tag library ,html.
>   for example
>   
>       
>           
>             >                  
>                   
>               ]]-->
>            
>      
>   
>
>   I parse this information and use JspWiter to write.The probelm is,
> in  cdata scetion the first part    works
> but  the second line    does not work ie
> bean:write does  not print value of my-object
>   Is there any way  I can reslve this



If you haven't a JSP page, it won't be compiled!
You could use FreeMarker, instead, that can be evaluated at every time. You
can use JSP taglibs with FreeMarker:
http://freemarker.org/docs/pgui_misc_servlet.html

Antonio


       
---------------------------------
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/12, temp temp <mi...@yahoo.com>:
>
>
> My applications writes html  out of an xml file.this xml has  feilds
> with there presentation type.This field   element  in xml can have  cdata
> section which allows user to  write any thing like
>   scripts or bean tags or any other custom tag library ,html.
>   for example
>   <field name="my-field" presentation-type="text">
>       <layout>
>           <resource align="right">
>             <![CDATA[
>                  <span class="smallBlueText"/>
>                   <bean:write name="my-object"/>
>               ]]>
>            <resource>
>      </layout>
>   </field>
>
>   I parse this information and use JspWiter to write.The probelm is,
> in  cdata scetion the first part  <span  class="smallBlueText"/>  works
> but  the second line   <bean:write name="my-object"/> does not work ie
> bean:write does  not print value of my-object
>   Is there any way  I can reslve this



If you haven't a JSP page, it won't be compiled!
You could use FreeMarker, instead, that can be evaluated at every time. You
can use JSP taglibs with FreeMarker:
http://freemarker.org/docs/pgui_misc_servlet.html

Antonio

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by temp temp <mi...@yahoo.com>.
My applications writes html  out of an xml file.this xml has  feilds   with there presentation type.This field   element  in xml can have  cdata section which allows user to  write any thing like 
  scripts or bean tags or any other custom tag library ,html.
  for example 
  <field name="my-field" presentation-type="text">
      <layout>
          <resource align="right">
            <![CDATA[   
                 <span class="smallBlueText"/>
                  <bean:write name="my-object"/>         
              ]]>
           <resource>
     </layout>
  </field>
  
  I parse this information and use JspWiter to write.The probelm is, in  cdata scetion the first part  <span  class="smallBlueText"/>  works but  the second line   <bean:write name="my-object"/> does not work ie bean:write does  not print value of my-object  
  Is there any way  I can reslve this
  Miro 
Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp :
>
> in this case is there is no way to  invoke jsp compiler or is there any
> workaround for this problem ?



Do you want to invoke a  JSP compiler inside a webapp? If it is possible,
surely it is not portable.
I suggest you to write pure HTML.

Antonio


       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/12, temp temp <mi...@yahoo.com>:
>
> in this case is there is no way to  invoke jsp compiler or is there any
> workaround for this problem ?



Do you want to invoke a  JSP compiler inside a webapp? If it is possible,
surely it is not portable.
I suggest you to write pure HTML.

Antonio

Re: [OT] Re: writing dynamic content using JspWriter out

Posted by temp temp <mi...@yahoo.com>.
in this case is there is no way to  invoke jsp compiler or is there any workaround for this problem ?
  Miro

Antonio Petrelli <an...@gmail.com> wrote:  2007/9/12, temp temp :
>  In my jsp I use JspWriter to write my page content .I can write lot of  static data but I cannot write dynamic content like scriptlet or tag  library ie even if I write tag library or scriptlet it will not be  executed .Is there any solution for this ?

No! When you use JspWriter, you send your data directly to the client!
Therefore, it does not pass to the JSP compiler.

Antonio

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



       
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.