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
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
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
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
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:
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
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
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
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
9 matches
Mail list logo