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 open up from Javascript
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
In a JS file I created a function as below.
function showPopup(htmlRewrite) {
var w = 480, h = 340;
if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var popW = 200, popH = 100;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
window.open( 'htmlRewrite', ,
files
through the JSP processor.
Frank
-Original Message-
From: fea jabi [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: 4/13/06 9:14 AM
Subject: struts and javascript
In a JS file I created a function as below.
function showPopup(htmlRewrite) {
var w = 480, h = 340
@struts.apache.org
Sent: 4/13/06 9:14 AM
Subject: struts and javascript
In a JS file I created a function as below.
function showPopup(htmlRewrite) {
var w = 480, h = 340;
if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var popW = 200, popH = 100;
var leftPos
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
Hi
I am trying to do a test application using struts, DWR
I am having problem with document.getElementById
method in javascript, this works fine in IE 6.0 and
opera
I am using struts tag
html:text title=last property=last size=60
readonly=true /
and then in my javascript doing the following
I am trying to do a test application using struts, DWR
I am having problem with document.getElementById
method in javascript, this works fine in IE 6.0 and
opera
I am using struts tag
html:text title=last property=last size=60 readonly=true /
and then in my javascript doing the following
Hi
Thanx for the answer, where in documenation is it
written that styleId is id??
Ashish
--- Slattery, Tim - BLS [EMAIL PROTECTED]
wrote:
I am trying to do a test application using struts,
DWR
I am having problem with document.getElementById
method in javascript, this works fine in IE
Thanx for the answer, where in documenation is it
written that styleId is id??
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm
l:text
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail:
Ashish Kulkarni wrote:
where in documenation is it written that styleId is id??
http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#text
Identifier to be assigned to this HTML element (renders an id
attribute).
Dave
On 4/4/06, Ashish Kulkarni [EMAIL PROTECTED] wrote:
Hi
Thanx for the answer, where in documenation is it
written that styleId is id??
semi-offtopic
Current Struts website is too busy and font in the left menu is too
small, which is especially striking comparing to gigantic wiki font.
JSP
Hi:
I have a text: html:text property=cadenaDesdeText maxlength=10/.
I need use this control in a function of javascript.
Por example
function showText(){
alert(cadenaDesdeText);
}
How can i use any control of struts into a function?
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
I'm sorry, but this is a Javascript issue. If you want to use Struts,
use Struts. Create an ActionForm to get your value from the drop-down
list and then redirect to any number of Actions from your Action. I
believe that is the easiest way, and a LOT less time consuming then
sending all of
-Original Message-
From: Gary Feidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 7:44 AM
To: user@struts.apache.org
Subject: Re: why my page can't redirect under Struts with Javascript?
I'm sorry, but this is a Javascript issue. If you want to use Struts,
use Struts. Create
phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0
Swapnil Patil wrote:
Hi,
I modify my Javascript like follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
Is eval really needed? . Check whether you really need /Log in
contexet path?
Try wih following function.
function
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
}
My page also can't redirect!
And I try
function
red phoenix wrote:
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
}
My page also can't
@struts.apache.org
Sent: Monday, February 20, 2006 8:17 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
red phoenix wrote:
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp
Struts with Javascript?
red phoenix wrote:
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
}
My page
Martin Gainty wrote:
If you are looking for a way for JavaScript to dynamically change
targetting action based on Javascript code take a look at
http://husted.com/struts/tips/002.html
Uh, no, I was answering the OP with regards to his hosed up JavaScript :)
Dave
I try follows:
function goURL(tmp){
document.forms[0].submit();
}
I debug the Javascript,when running the statement
document.forms[0].submit();
Javascript raise a error:
Microsoft JScript running error:object can't support this attribute or
method
Why?
On 2/21/06, Dave Newton [EMAIL
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0].submit();
}
/script
html:form method=post action=log.do
html:link page=/log.do?action=FirstFirst Page/html:link
html:select
]
To: user@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0
@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0].submit
in this case.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before,like
phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action
.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script
redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action=+eval(tmp);
but when I change the value of html:select,it still can't
redirect,I
am
puzzled it for several days.I don't know
page can't redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action=+eval(tmp);
but when I change the value of html:select,it still can't
redirect,I
am
puzzled
Subject: Re: why my page can't redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action=+eval(tmp);
but when I change the value of html:select,it still can't
.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with
Javascript?
My
In my JSP, have to use the defined variable in javascript. How can I use it?
The below code is returning a null obj for totalObj in the javascript.
.
script
.
var totalObj = document.getElementById(total);
totalObj=Number(obj1) + Number(obj2);
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
actionpath=/register
type=com.pampers.registration.action.RegisterAction
name=registerForm
scope=session
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
Hi folks
it seems like struts prints all the javascript validation code from
validation-rule.xml regardless wheather they are used or not, for
example, i only use the basic validation-required. but the javasript
functions such as validateCreditCard and validateEmail still gets
printed regardless.
42 matches
Mail list logo