Ruben,
Why is it your requirement to get a page as HTML
inside an Action? It seems like you've made an
implementation decision. Like several people have
suggested, it is much easier to do this (and probably
better too), by using a custom tag library inside the
JSP itself. Several tag libraries are already
available that email the page content or return it as
a String.
Regards,
Richard
--- ruben [EMAIL PROTECTED] wrote:
hi
Those are my requirements, i have to convert objects
to html, in my
action and get this html in a String, i thought that
the jsp is a good
way to do this,
I want the code that jsp generate (that is sent to
the browser) on my
action , is it possible? thanks a lot ,
Regards.
Qureshi, Affan wrote:
So why cant you use simple JSTL or struts-EL tags
to do it? Ideally
you shouldn't be doing any client-side stuff in
your Actions.
A cleaner approach would be to use Custom Tags to
have the HTML
generation code and you can call them from your
JSPs. (Remember that
JSPs are not sent to the browser, it is the code
they generate that is
sent to the client browser).
Or maybe I dont understand your requirements.
Regards.
-Original Message-
From: ruben [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 10:19 AM
To: Struts Users Mailing List
Subject: Re: html inside an action
Qureshi, Affan wrote:
What part of JSP do you want to generate? Is it
Java code in the JSP
that you want to generate or static
HTML/JavaScript? You might want
to look at Tag Libraries as well.
-Original Message-
From: ruben [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 10:00 AM
To: Struts Users Mailing List
Subject: html inside an action
hi!
how can i get the output generate in a .jsp
inside an action like it
was a resource that i can process(a String or
something else)???
thanks a lot in advance.
PD: I need to call jasper compiler or something
similar? what can i
do that? thanks
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
hi, thanks for the response, i want the code
generated
(HTML/javascript), it's like redirect the output
to a resource that i
can process in the action instead of send to the
navigator,
thanks a lot
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]