You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <as...@gmail.com> on 2008/04/01 21:24:56 UTC

display XML file in JSP page

Hi
I need to display XML file in JSP page (raw XML file)
in my Action Class i read this XML file, but how do i display in proper
format in JSP, i want the XML file displayed as is.
Regards
Ashish

Re: display XML file in JSP page

Posted by Ashish Kulkarni <as...@gmail.com>.
Hi
thanks it works

On 4/1/08, Laurie Harper <la...@holoweb.net> wrote:
>
> Ashish Kulkarni wrote:
> > Hi
> > I need to display XML file in JSP page (raw XML file)
> > in my Action Class i read this XML file, but how do i display in proper
> > format in JSP, i want the XML file displayed as is.
> > Regards
> > Ashish
>
>
> Don't use a JSP. Either link to the XML file directly (if it's somewhere
> accessible in your web application content) or write it to the response
> output stream in your action and return null to let Struts know the
> response has been completed.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: display XML file in JSP page

Posted by Laurie Harper <la...@holoweb.net>.
Ashish Kulkarni wrote:
> Hi
> I need to display XML file in JSP page (raw XML file)
> in my Action Class i read this XML file, but how do i display in proper
> format in JSP, i want the XML file displayed as is.
> Regards
> Ashish

Don't use a JSP. Either link to the XML file directly (if it's somewhere 
accessible in your web application content) or write it to the response 
output stream in your action and return null to let Struts know the 
response has been completed.

L.


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