Re: Struts 1 Javascript Question

2008-03-27 Thread Antonio Petrelli
2008/3/27, bhaarat Sharma [EMAIL PROTECTED]: Hello I am using struts 1 to show a link to the user like this html:link page=/editProjectMonitor.do paramId=report_id paramName=report paramProperty=reportId target=_blank

Re: Struts 1 Javascript Question

2008-03-27 Thread Laurie Harper
bhaarat Sharma wrote: Hello I am using struts 1 to show a link to the user like this html:link page=/editProjectMonitor.do paramId=report_id paramName=report paramProperty=reportId target=_blank Edit/html:link However I want this link to

Re: struts and javascript

2006-04-14 Thread 王曾wang_zeng
html:select name=Form1 property=typeselected onchange='showPopup(html:rewrite action=/PrepareSchedule.do/);' this is wrong. because as far as I know, a struts tag's atrribute sholud not be filled with mixed stuff by jsp codes and plain text. if you write this way: html:select name=Form1

RE: struts and javascript

2006-04-13 Thread Frank W. Zammetti
The JS file is retrieved by the browser after the page loads and is not processed on the server, so the html:rewrite tag will not be interpreted. Either leave the script in the JSP as you mentioned, or include it in the JSP via server-side JSP include, or configure you web/app server to run .js

Re: struts and javascript

2006-04-13 Thread Michael Jouravlev
Or generate the target location in JSP like this: script language=javascript var mytarget = html:rewrite action=/PrepareSchedule.do/ /script Then look up for target in your main Javascript function. I guess it would be easier to attach target to some well-know object like window, for example:

Re: struts and javascript

2006-04-13 Thread Frank W. Zammetti
On Thu, April 13, 2006 12:26 pm, Michael Jouravlev said: Or generate the target location in JSP like this: script language=javascript var mytarget = html:rewrite action=/PrepareSchedule.do/ /script That's a good option too. Then look up for target in your main Javascript function. I

Re: Struts with javascript

2006-03-29 Thread Deepa Khetan
When the HTMl page is rendered on screen, all the struts controls are rendered as normal HTMl controls. So u can refer them as document.forms [0].cadenaDesdeText.value. On 3/29/06, Jose Maria Tristan [EMAIL PROTECTED] wrote: Hi: I have a text: html:text property=cadenaDesdeText

RE: Struts with javascript

2006-03-29 Thread José María Tristán
ok. Thank you very much. -Mensaje original- De: Deepa Khetan [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 29 de marzo de 2006 11:55 Para: Struts Users Mailing List Asunto: Re: Struts with javascript When the HTMl page is rendered on screen, all the struts controls are rendered

Re: [Struts Validator] JavaScript Validations

2005-04-13 Thread Kumar deepak
Have a look at http://www.roseindia.net/struts/address_struts_validator.shtml Regards Deepak Kumar --- Rosario, Blossom [EMAIL PROTECTED] wrote: Hi, I am trying to use client as well as server-side validations using the Struts Validator. The mapping in the Struts config file is