RE: save dynamic jsp content

2001-08-01 Thread Kapila, Ranjit

Does the  tag solve your problem? Per the Struts
documentation, it can capture the dynamic response and makes it available as
a bean.

See http://jakarta.apache.org/struts/struts-bean.html#include

Hope that helps.

Ranjit


-Original Message-
From: Calvin Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: Re: save dynamic jsp content



Fantastic idea!  This would be an easier way.

Calvin


On 01 Aug 2001 14:31:44 -0500, Chris Nokes wrote:
> An eaiser way may be to create a BodyTagSupport to capture the output
in the
> "doAfterBody" method and send it to the mail input stream or write to
the
> file
> system first if desired.  This doesn't require an extra network call
and
> thread.
> 
> Chris
> 
> - Original Message -
> From: "Calvin Yu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 01, 2001 1:06 PM
> Subject: Re: save dynamic jsp content
> 
> 
> The easiest way would be to write a client that makes a HTTP request
to
> the server and captures the HTML output that way.
> 
> Calvin
> 
> 
> On 01 Aug 2001 13:40:58 -0400, Mustapha Essalihe wrote:
> >
> > Hi,
> >  I am new to struts. In my action class (perform) I want to run a
jsp
> page
> > in background and save its content in  an html file. How Can i do
that
> in
> > perfom method ?. After that i know how i will send this html file by
> e-mail
> > (usinj java smtp) and forward the user to an adequate location
> (success).
> > Thanks in adavance.
> > Mustapha Essalihe
> >
> 
> 




processPopulate() call configurable?

2001-08-01 Thread Kapila, Ranjit

Hi,

In the ActionServlet.process() method, the processPopulate() method is
always called. Is there any way to set some request attribute etc so that
the processPopulate call is configurable. 

The underlying problem is that if I prefill my form, all the values are
overwritten by the Request objects current parameter values.

I this something that other people have run into? Any work around?

Thanks,

Ranjit




RE: Help: Processing Struts tags in XSL output

2001-06-18 Thread Kapila, Ranjit

Hi,

I am including some small files in the attached zip to better illustrate my
problem. (JSP, XSL amd XML files are attached)

The  in the test.jsp reads the value
correctly. The XSL transformation causes the exact string  to appear in the output. This is NOT parsed by the
JSP page.

The issue id that the only the xsl tags are processed. The output of the
transformation is sent straight to the client, the page does not process it.
Any way around this?

Thanks,

Ranjit



-Original Message-
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Help: Processing Struts tags in XSL output


Hi Ranjit,

I didn't follow what you said about including the  tag 
directly (do you mean instantiating it from a scriptlet?) but usually 
when tags come through literally you are not importing the taglib.  Make 
sure your page has:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

somewhere. 

Kapila, Ranjit wrote:

> Hi,
>
>  
>
> When my JSP page uses XSL tag libraries to transform XML to HTML
> the output is fine.
>
>  
>
> However, when I generate Struts tags like  key="workOrder.Market"> in the output, the string is never
> processed. the result goes to the output literally as
> . If I directly include the
>  tag in my JSP page it is processed fine.
>
>  
>
> So how can I get my JSP to get a second go at parsing the Tag
> libraries?
>
>  
>
> I would appreciate any insight or examples.
>
>  
>
> Thanks in advance,
>
>  
>
> Ranjit
>
>  
>
>  
>




 StrutsAndXSL.zip


RE: Help: Processing Struts tags in XSL output

2001-06-18 Thread Kapila, Ranjit

Hi,
Hi,

I am including some small files to better illustrate my problem. (JSP, XSL
amd XML files are attached)

The  in the test.jsp reads the value
correctly. The XSL transformation causes the exact string  to appear in the output. This is NOT parsed by the
JSP page.

The issue id that the only the xsl tags are processed. The output of the
transformation is sent straight to the client, the page does not process it.
Any way around this.

Thanks,

Ranjit


-Original Message-
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Help: Processing Struts tags in XSL output


Hi Ranjit,

I didn't follow what you said about including the  tag 
directly (do you mean instantiating it from a scriptlet?) but usually 
when tags come through literally you are not importing the taglib.  Make 
sure your page has:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

somewhere. 

Kapila, Ranjit wrote:

> Hi,
>
>  
>
> When my JSP page uses XSL tag libraries to transform XML to HTML
> the output is fine.
>
>  
>
> However, when I generate Struts tags like  key="workOrder.Market"> in the output, the string is never
> processed. the result goes to the output literally as
> . If I directly include the
>  tag in my JSP page it is processed fine.
>
>  
>
> So how can I get my JSP to get a second go at parsing the Tag
> libraries?
>
>  
>
> I would appreciate any insight or examples.
>
>  
>
> Thanks in advance,
>
>  
>
> Ranjit
>
>  
>
>  
>




 WorkOrderCommonMarket.xsl
 WorkOrder.xml
 test.jsp


Help: Processing Struts tags in XSL output

2001-06-18 Thread Kapila, Ranjit




  Hi,
   
  When 
  my JSP page uses XSL tag libraries to transform XML to HTML the output is 
  fine.
   
  However, when I generate Struts tags like 
   in the output, the string is never 
  processed. the result goes to the output literally as . If I directly include the  tag 
  in my JSP page it is processed fine.
   
  So 
  how can I get my JSP to get a second go at parsing the Tag 
  libraries?
   
  I 
  would appreciate any insight or examples.
   
  Thanks in advance,
   
  Ranjit