RE: html inside an action
HttpUnit is also a neat tool which might help. Have a JSP generate the HTML and access that using HttpUnit (or a simple URLConnection/Socket for that matter). And you can get the generated HTML in your Action. I hope I understand you this time. -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:54 AM To: Struts Users Mailing List Subject: Re: html inside an action 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html inside an action
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]
RE: html inside an action
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]
RE: extending using struts
How are you transferring control from ServletA to ServletB? The request objects will only be shared if you do a server-side forward or include (using requestDispatcher for example). Otherwise if both the servlets belong to the same application the session and servletContext object will be shared and accessible by both servlets. HTH. -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:11 AM To: Struts Users Mailing List Subject: extending using struts Hello All, let me present a case where i want to extend an old web application by adding modules built on struts. i had an initial review of the struts users on this but i still have some issues. let me attempt to explain the same by providing a sample case which is similar to what i want to do. There are two servlets ServletA and ServletB. First ServletA is called which sets some objects the request and session objects and then outputs a link (A href link) to the ServletB. Will ServletB be able to access the these request and session objects without any problems or do i need to modify ServletA. i am sure about the part that if information is stored in the ServletContext object it can be accessed by all the servlets in that context but otherwise it could be a issue. considering my case ServletB would be the ActionServlet from struts. Please do let me know your views about this. Thanks in advance. -- Rajat Pandit | [EMAIL PROTECTED] System Analyst Manchitra Services Pvt. Ltd (www.manchitra.com) Tel: 011-26232696 / 26232798 Cellphone: 9818247126 B231 / C GK I New Delhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hiding URL Parameters
Only if you submit the form using a POST method instead of the default GET. If you want to achieve such functionality on the click of a link, you may need some Javascript support to do a POST in the background on the 'click' event of the hyperlink. ./Affan -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 1:32 PM To: [EMAIL PROTECTED] Subject: Hiding URL Parameters Is there anyway I can hide sending all the URL parameters (in the browser address) from once page to other whenever I do submit/click on html link? any help would be appreciated. Tnx in advance, -Ramadoss - 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]