You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <ma...@raibledesigns.com> on 2002/01/15 17:07:37 UTC
Getting result of JSP in Action Class - how?
I'm trying to use filters to do my XML/XSL Transformation. I'm wondering if
anyone knows how to get the JSP as XML in my action class? Basically, I
want to do something like:
Document doc = mapping.getXMLfromJSP(mapping.findForward("continue"));
Where "continue" maps to a local forward (i.e. login.jsp) in my
struts-config.xml. The login.jsp has contentType="text/xml" and contains
<html:form> and <bean:message> elements that I'd like to be populated as if
the page was really forwarded to.
This seems fairly simple - any help is appreciated.
Thanks,
Matt
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Getting result of JSP in Action Class - how?
Posted by Fernando Otero <fe...@visionnaire.com.br>.
Hi,
I didn't understand your problem at all.
I have 3 questions that could help to clarify it:
1) Why you need to get the JSP as XML in your action class?
2) Since your JSP contains <html:form>, you are generating
HTML code in your JSP. Is this correct? Using other HTML tags
you could possibly generate a bad formed XML.
3) The "filters" that you mentioned are servlet filters from
the servlet 2.3 specs, right?
Fernando
----- Original Message -----
From: "Matt Raible" <ma...@raibledesigns.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, January 15, 2002 1:07 PM
Subject: Getting result of JSP in Action Class - how?
> I'm trying to use filters to do my XML/XSL Transformation. I'm wondering
if
> anyone knows how to get the JSP as XML in my action class? Basically, I
> want to do something like:
>
> Document doc = mapping.getXMLfromJSP(mapping.findForward("continue"));
>
> Where "continue" maps to a local forward (i.e. login.jsp) in my
> struts-config.xml. The login.jsp has contentType="text/xml" and contains
> <html:form> and <bean:message> elements that I'd like to be populated as
if
> the page was really forwarded to.
>
> This seems fairly simple - any help is appreciated.
>
> Thanks,
>
> Matt
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>