Re: [Struts2] SessionToken Interceptor used with json Result and Javascript Calls

2012-11-07 Thread Ken McWilliams
Can you share the interceptor stack configuration for your normal JSP's and the stack configuration for the json actions? On Wed, Nov 7, 2012 at 5:37 AM, Jan Fröhlich wrote: > Hi... > > I try to secure one of my web applications with tokens. > Everything works fine with basic jsp pages. But in o

[Struts2] SessionToken Interceptor used with json Result and Javascript Calls

2012-11-07 Thread Jan Fröhlich
Hi... I try to secure one of my web applications with tokens. Everything works fine with basic jsp pages. But in one case, I call an action from javascript via jquery.ajax and return a json result. To do that, I added two properties to the json result object (documenTable) with token and tokenN

RE: Help with JSP and javascript

2009-07-14 Thread Martin Gainty
Good Morning Mike http://www.prototypejs.org/api/ajax/updater could you illustrate how the prototype JS function works in struts? are you using a plugin? how would struts identify and create the 'items' container for 1st parameter illustrated here: new Ajax.Updater('items', '/items', { paramet

RE: Help with JSP and javascript

2009-07-14 Thread Security Management
For the record, here's what works. Thanks for the help. Mike. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Friday, July 10, 2009 3:03 PM To: Struts Users Mailing List Subject: Re: Help with JSP and javascript There is a way to escape quotes in OGNL

Re: Help with JSP and javascript

2009-07-10 Thread dusty
'$("form1").submit()' like I need. > > Thanks > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org &

RE: Help with JSP and javascript

2009-07-10 Thread Martin Gainty
den Inhalt uebernehmen. > From: w...@wantii.com > To: user@struts.apache.org > Subject: Re: Help with JSP and javascript > Date: Fri, 10 Jul 2009 15:03:08 -0400 > > There is a way to escape quotes in OGNL... I thought I had a sample sitting > around somewhere but I am not fi

Re: Help with JSP and javascript

2009-07-10 Thread Wes Wannemacher
t #foo is. > > > -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Friday, July 10, 2009 12:09 PM > To: Struts Users Mailing List > Subject: Re: Help with JSP and javascript > > On Friday 10 July 2009 11:49:04 Security Management wrote: > &

RE: Help with JSP and javascript

2009-07-10 Thread Security Management
nd 'door3', which is what #foo is. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Friday, July 10, 2009 12:09 PM To: Struts Users Mailing List Subject: Re: Help with JSP and javascript On Friday 10 July 2009 11:49:04 Security Management wrote

Re: Help with JSP and javascript

2009-07-10 Thread Wes Wannemacher
On Friday 10 July 2009 11:49:04 Security Management wrote: > Can someone suggest a way to do this: > > onclick='$("").request(); return false;'/> > > I have tried a bunch of ways, but always wind up with the in the resulting HTML, rather than '$("form1").submit()' like I need. > >

Help with JSP and javascript

2009-07-10 Thread Security Management
Can someone suggest a way to do this: I have tried a bunch of ways, but always wind up with the

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Wes Wannemacher
On Thu, 2008-08-07 at 17:43 -0700, Dave Newton wrote: > --- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote: > > No matter how I tried to pass those values in as > > parameters, my JavaScript function kept treating > > it as literal text > > > > Like: > > > > <%=String aString = "Hi There!"%>

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote: > No matter how I tried to pass those values in as > parameters, my JavaScript function kept treating > it as literal text > > Like: > > <%=String aString = "Hi There!"%> That's most likely not what you wanted, you mean: <% String aString =

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Hi Dave, Thanks for replying. Yeah I declared variables in my JSP file and tried to parse them through as arguments to the JavaScript function like mentioned. No matter how I tried to pass those values in as parameters, my JavaScript function kept treating it as literal text hehe! Like: <%=Strin

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke wrote: > There must be a more elegant solution than this! Not really: you're trying to access server-side resources from the client side. If you're not going to run your JavaScript through the JSP processor your options are limited, for obvious reasons. One solution wa

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Hi Owen, Thanks for your reply. I think I did try that. The only solution I have found to work was to do this: Application.properties: my.message=Hi There! myJSPFile.jsp: myJSFile.js var msg = document.myform.myMessage.value; alert(msg); The deadline is today so I'll have to do what works so

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Owen Berry
In your jsp code set a variable to be the value you want, as shown earlier in this thread by Balwinder, and then read that variable in your Javascript code. If you're using OO javascript, you can make it nice and tidy by passing the parameter in your "constructor", or set it in a method. Example:

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Thanks for that. I think that only works if the javascript is within the JSP file right? My javascript functions are in it's on .js file ... On Thu, Aug 7, 2008 at 8:23 PM, Balwinder <[EMAIL PROTECTED]> wrote: > nauke. wrote: > >> Hi all, >> >> Is there a way to access values in ApplicationResour

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Balwinder
nauke. wrote: Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any ide

ApplicationResources.properties and JavaScript

2008-08-06 Thread nauke .
Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any ideas? Thanks heap

Re: and javascript

2008-05-08 Thread Laurie Harper
umainb wrote: Hello, I have a link in my jsp which deletes a record from the list of numbers. When the user clicks on the link above, we need a javascript popup "Are you sure you want to delete the number?" with "OK" and "Cancel" How I can achieve that? Use html:link's onclick attribu

and javascript

2008-05-08 Thread umainb
this message in context: http://www.nabble.com/%3Chtml%3Alink%3E-and-javascript-tp17127304p17127304.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

RE: Struts2 and JavaScript localization

2008-04-01 Thread Filippov, Andrey
Thanx a lot! It works.. -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 8:04 PM To: Struts Users Mailing List Subject: Re: Struts2 and JavaScript localization You'd have to put that expression in a tag that can process it. Try something

Re: Struts2 and JavaScript localization

2008-04-01 Thread Chris Pratt
You'd have to put that expression in a tag that can process it. Try something like: wds : new Array('',"tue","wen","thu","fri","sat","sun"), (*Chris*) On Tue, Apr 1, 2008 at 6:40 AM, Filippov, Andrey <[EMAIL PROTECTED]> wrote: > Hello everybody, > > > > > > I have a javascript dropdown c

Struts2 and JavaScript localization

2008-04-01 Thread Filippov, Andrey
Hello everybody, I have a javascript dropdown calendar on one of my struts2 jsp. I have bi-lingual application. So I need to read bundle files to switch language. Please, does someone know how to use these files in javascript. Here is my js snippet:

Re: Using Nested tag and JavaScript

2007-08-06 Thread semaj.najraham
It works now.. Thanks.. semaj.najraham wrote: > > Hi Paul, > > I successfully copied the values from mailing address textfields to > billing address textfields using javascript (see below). However, the > billing address text fields values are not sent to the server. They are > empty!! > > I

Re: Using Nested tag and JavaScript

2007-08-06 Thread semaj.najraham
Hi Paul, I successfully copied the values from mailing address textfields to billing address textfields using javascript (see below). However, the billing address text fields values are not sent to the server. They are empty!! If I directly type mailing and billing address, the values are sent t

Re: Using Nested tag and JavaScript

2007-08-03 Thread semaj.najraham
ess using >> above JavaScript? The dot in between name prevents to execute the above >> javascript... >> >> Could anybody point me how I can resolve this problem? >> >> Thank you, >> semaj >> > > -

Re: Using Nested tag and JavaScript

2007-08-03 Thread Paul Benedict
Attach styleId to your fields. Then you can use JavaScript to manipulate form fields by their id. use getElementById scripting method. semaj.najraham wrote: Hey guys, I need some help using nested tag library and javascript. I have an actionForm named RegistrationForm that has two

Re: Using Nested tag and JavaScript

2007-08-03 Thread Jasper Floor
On 8/3/07, semaj.najraham <[EMAIL PROTECTED]> wrote: > > Guys.. any ideas?? Hi, I have never used this so I don't really know what I 'm talking about, but can't you use the onclick attribute of the nested tag to give it a javascript to execute?

Re: Using Nested tag and JavaScript

2007-08-03 Thread semaj.najraham
Guys.. any ideas?? semaj.najraham wrote: > > Hey guys, > > I need some help using nested tag library and javascript. I have an > actionForm named RegistrationForm that has two AddressForm; mailing and > billing addresses. I need to implement a requirement if a user click

Using Nested tag and JavaScript

2007-08-02 Thread semaj.najraham
Hey guys, I need some help using nested tag library and javascript. I have an actionForm named RegistrationForm that has two AddressForm; mailing and billing addresses. I need to implement a requirement if a user clicks a checkbox say 'same as mailing', I need to copy the textfield v

Re: [s2] OGNL and javascript

2007-05-31 Thread Laurie Harper
If you're hand-coding the Javascript, you may also be able to write something like document.addressForm['address.street'] or document.addressForm.elements['address.street'] L. Jeromy Evans wrote: > Interesting problem... > Using textfield as an example, the template (eg. text.ftl) takes th

Re: [s2] OGNL and javascript

2007-05-31 Thread Jeromy Evans
Interesting problem... Using textfield as an example, the template (eg. text.ftl) takes the literal name attribute from and writes it straight to the html. You could create your own theme that replaces the '.' with a different character in the html. You could then write your own interceptor that c

[s2] OGNL and javascript

2007-05-31 Thread Fowler, Perryn
Hi People, I usually like to access form elements using their names ( rather than ids) as I find it more readable. So, if I had a field named 'street' on a form named 'addressForm' I can access it using something like document.addressForm.street Now, I am using struts 2 and its OGNL support

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-05-28 Thread Dave Newton
> > Be a PS3 game guru. > > Get your game face on with the latest PS3 news and > previews at Yahoo! > > Games. > > > http://videogames.yahoo.com/platform?

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-05-28 Thread d4kris
http://videogames.yahoo.com/platform?platform=120121 > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.na

Re: i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7

2007-04-13 Thread Ray Clough
The real truth is that IE5,6,7 are terrible browsers which are not very css compliant. IE is infamous among developers for making consistent coding impossible. If only there were some way of forbidding people from using IE, or even more improbable, getting Microsoft to make it a good product.

i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7

2007-04-13 Thread Ashuin Sharma Chamorro
Im developing a web application with struts 1.2.9 and if I run it in firefox everything looks good, But in IE everything is messed up, and I think some of the tags create like line breaks, and the Taglibs imports create empty spaces, so windows display to much blank space, and everything no

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-03 Thread Musachy Barroso
https://issues.apache.org/struts/browse/WW-1869 I will fix it tonight regards musachy On 4/3/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Ok I found the problem, it is in the function "splitAndFixPaths"(can hurt your eyes :) ) the one that is breaking the href, in Dojo's ContentPane, it app

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-03 Thread Musachy Barroso
Ok I found the problem, it is in the function "splitAndFixPaths"(can hurt your eyes :) ) the one that is breaking the href, in Dojo's ContentPane, it appends the context to paths. So long for "fixPaths" musachy On 4/3/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Not that I doubted, but you a

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-03 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Not that I doubted, but you are right :) *lol* *I* was doubting me. > so the href is fine, but when i debug the javascript, > the href for that widget is: > /struts2-showcase/nodecorate/"/struts2-showcase/nodecorate/minimal2!execute.action?dojo.pr

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-03 Thread Musachy Barroso
Not that I doubted, but you are right :). Now, this is quite weird, if I look at the returned html it is: I made it here!!! alert("Plugh! from minimalFailureInclude."); Loading... so the href is fine, but when i debug the javascript, the href for that widget is: /struts2-showcase/nodec

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-03 Thread Dave Newton
I have a minimum (AFAICT) failure scenario for the nested-divs-inside-tabbedPanel-divs; it's reasonably short so I just stuck it in here for now. The "failure" (which I still suspect is because I just can't do what I'm trying to do, but it's not clear to me why not yet) lies in minimalFailureInclud

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > I already exceeded the "Works for me quota" this > week, so I won't say it :), > modifying /remotediv/example1.jsp in showcase to: > > method="execute" /> > theme="ajax" > href="%{ajaxTest0}" /> > > > theme="ajax" >

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Musachy Barroso
I already exceeded the "Works for me quota" this week, so I won't say it :), modifying /remotediv/example1.jsp in showcase to: They both work. What is different in your case? musachy On 4/1/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: yeah I know, the thing is that the button and the

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Musachy Barroso
yeah I know, the thing is that the button and the anchor tags would generate the url (add context path), and if you would use the url tag with them, the context got duplicated, so we removed the url building logic from them, forcing users to build the url with the url tag and pass it to the tags,

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > I think we had this same problem with the anchor and > button tags, and that's why we made it mandatory to > use the url tag to build the url, otherwise the > context gets duplicated. But... I *am* using It's when there's a method (specified via

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Musachy Barroso
I think we had this same problem with the anchor and button tags, and that's why we made it mandatory to use the url tag to build the url, otherwise the context gets duplicated. musachy On 4/1/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > (1) is pr

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > (1) is probably related to this one: > > https://issues.apache.org/struts/browse/WW-1784 I can't tell what the problem is there, but I just verified that the action!method creates the funked-up URL: creates /s2samples/forms/dynaFileAction.actio

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > for (2), do you have executeScripts set to "true"? > I'm not sure what to do here, as it works for me and > showcase. In other words, it is certified :) :p Yep, I set executeScripts="true" for both divs, the outer tabbedPanel div and the inner wit

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Musachy Barroso
(1) is probably related to this one: https://issues.apache.org/struts/browse/WW-1784 Which I haven't looked at yet. musachy On 4/1/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Dave, for (1), if you have a testcase at hand and could attach it to a jira ticket it would be great. for (2),

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Musachy Barroso
Dave, for (1), if you have a testcase at hand and could attach it to a jira ticket it would be great. for (2), do you have executeScripts set to "true"? I'm not sure what to do here, as it works for me and showcase. In other words, it is certified :) http://www.codinghorror.com/blog/archives/0

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-04-01 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > And it shows the two alerts, and sets the tab > content to: "Show me some text also" I have run in to a similar problem now under 2.0.6... My top-level page is a JSP with a tabbedPanel and two divs, one remote. I've had two issues. (1) Remote div

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Musachy Barroso
on showcase, remote div, there is an example that works(#6 I think), based on that example I modified one of tabbedpanel examples on showcase to this: The returned jsp is test.jsp from apps/showcase/src/main/webapp/ajax: alert('This JavaScript currently being evaluated is in the re

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Guillaume Carré
2007/3/28, Brian Thompson <[EMAIL PROTECTED]>: I HAD thought that setting executeScripts="true" on the div would do the trick, but I saw the same behavior with or without it. My divs looked like: same problem here I define a javascript function in the div, and a call to that function from

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Brian Thompson
I HAD thought that setting executeScripts="true" on the div would do the trick, but I saw the same behavior with or without it. My divs looked like: -Brian On 3/28/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Just set executeScripts="true" on the div, and that will do the trick. musach

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Guillaume Carré
2007/3/28, Musachy Barroso <[EMAIL PROTECTED]>: Just set executeScripts="true" on the div, and that will do the trick. why not setting true as the default value? -- Guillaume Carré - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Musachy Barroso
Just set executeScripts="true" on the div, and that will do the trick. musachy On 3/28/07, Brian Thompson <[EMAIL PROTECTED]> wrote: I'm using a simple jsp with Inside my selectResource action, I have some javascript defined: Test alert("jav

[S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Brian Thompson
I'm using a simple jsp with Inside my selectResource action, I have some javascript defined: Test alert("javascript!"); However, when I load the page, I don't see the alert. When I inspect the source using Firebug, I note that the

Re: Struts, AJAX, JSP, and JavaScript question

2006-12-04 Thread Adam Gordon
nd that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Adam Gordon" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 3:43 PM Subject: Struts, AJAX, JSP, and JavaScript question I have a JSP and

Re: Struts, AJAX, JSP, and JavaScript question

2006-12-04 Thread Adam Gordon
Frank- Yikes, I had no idea this thread would take on a life of its own...regardless, the execScripts function was exactly what I was looking forhad to tweak it to accomodate for the "type='text/javascript'" attribute on an opening

RE: Struts, AJAX, JSP, and JavaScript question

2006-12-01 Thread Levan Dvalishvili
t those two errors below. Levan Dvalishvili Support Lead  US Verticali,Inc (646) 736 - 6075 -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 9:08 PM To: Struts Users Mailing List Subject: Re: Struts, AJAX, JSP, and JavaScript question (

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Martin Gainty
ordon" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 3:43 PM Subject: Struts, AJAX, JSP, and JavaScript question >I have a JSP and there's a link in the rendered page that makes an AJAX call > (to a Struts action) when clicked. The results of that action, and the

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Dave Newton
From: Chris Pratt [mailto:[EMAIL PROTECTED] > eval() evaluates JavaScript, not XML or HTML. Well, in FF, apparently it evaluates XML to some degree, huh? Dave > On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > > > (interestingly, in IE I

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Chris Pratt
eval() evaluates JavaScript, not XML or HTML. (*Chris*) On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote: From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > (interestingly, in IE I get a syntax error, because it's trying to > interpret the markup as script, but in FF it just quietly doesn't

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
Yeah, can't say I knew it either :) One would assume then that what you ge back from eval()'ing valid XML is a Document object that you can then use DOM methods on, just as you do in IE if you get responseXML from XMLHttpRequest (assuming it was in fact an XML response)... that'd be pretty close t

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
s > - Original Message - > From: "Frank W. Zammetti" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Wednesday, November 29, 2006 12:49 AM > Subject: Re: Struts, AJAX, JSP, and JavaScript question > > >> That will only work i

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > I guess maybe it examines the contents your eval'ing > and differentiates between pure markup and script? Interesting! It must be; I didn't know it would do that. My first thought (here, by "thought" I mean "hope") was that FF had made XML into

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
Yeah, those messages make sense I think... I guess FF realizes that your trying to eval something that's purely markup and tries to parse it as XML... incorrect nesting of the tags in the first case makes sense for that message, as no closing tag makes sense for the second, if it were trying to par

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Musachy Barroso
You will save a lot of time if you use something that is done already, and tested, like the links provided by Frank. If you still want to try it yourself you can check "Bind.js" : http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/wid

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Dave Newton [mailto:[EMAIL PROTECTED] > From: Chris Loschen [mailto:[EMAIL PROTECTED] > > Perhaps I'm missing something > > Yes; that eval evaluates *javascript*. ...generally. In FireBug if you eval("baz") in the console it will print a bold "baz". Dave

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Chris Loschen [mailto:[EMAIL PROTECTED] > Perhaps I'm missing something Yes; that eval evaluates *javascript*. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Chris Loschen
sure if that makes sense -- still waking up this morning. Hope it helps. Chris -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 7:49 AM To: Struts Users Mailing List Subject: RE: Struts, AJAX, JSP, and JavaScript question From: Frank W. Zammetti

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Martin Gainty
or copying of it or its contents - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, November 29, 2006 12:49 AM Subject: Re: Struts, AJAX, JSP, and JavaScript question > That will only work if

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > (interestingly, in IE I get a syntax error, because it's trying to > interpret the markup as script, but in FF it just quietly doesn't > work, not even a notice in Firebug). Something else interesting in FF: eval("") "XML tag name mismatch"

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Frank W. Zammetti
That will only work if the response is nothing but JavaScript, in which case your 100% correct (although many people say that eval() should be renamed evil() and should be avoided like the plague... I'm not *quite* that extreme in my avoidance of it). As a quick proof: var

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Chris Pratt
Or you could just call eval(ajax.responseText). (*Chris*) On 11/28/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Hi Adam, If your doing straight AJAX yourself, i.e., directly interacting with the XMLHttpRequest object, this won't execute script for you automatically. In fact, it won't do m

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Frank W. Zammetti
Hi Adam, If your doing straight AJAX yourself, i.e., directly interacting with the XMLHttpRequest object, this won't execute script for you automatically. In fact, it won't do much of anything for you automatially, aside from parsing XML if that's your return type. Otherwise, it's just text to t

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Musachy Barroso
In struts 2 we already do that for you(link tag and button tag in the ajax theme), this is the code to extract the javascript sections(from Dojo): parse : function(s) { this.log("Parsing: " + s); var match = []; var tmp = []; var scripts = []; while(match){ match = s.match(/]

Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Adam Gordon
I have a JSP and there's a link in the rendered page that makes an AJAX call (to a Struts action) when clicked. The results of that action, and the contents of the response are set as the innerHTML on a hidden defined inside the afore mentioned rendered page. The is then un-hid. Everything is

Re: Scriptlet and Javascript

2006-11-28 Thread Martin Gainty
copying of it or its contents - Original Message - From: "LIM Adam" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 10:26 AM Subject: Scriptlet and Javascript Hi y'all Here is my problem: I have a "javascript:history.back()" link button. When I c

Re: [OT] Scriptlet and Javascript

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, LIM Adam wrote: > I have a "javascript:history.back()" link button. When I click on it, I > want to remove an entry in my object with scriptlet. > The problem is that the scriptlet is executed when my page is loaded and > not when I click on my

Scriptlet and Javascript

2006-11-28 Thread LIM Adam
Hi y'all Here is my problem: I have a "javascript:history.back()" link button. When I click on it, I want to remove an entry in my object with scriptlet. The problem is that the scriptlet is executed when my page is loaded and not when I click on my button. How could I manage it? Thanks. ---

Re: RE : validateValidWhen and javascript

2006-09-01 Thread Laurie Harper
what is the reason there isn't javascript validation for this rule ? -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : jeudi 31 août 2006 17:55 À : Struts Users Mailing List Objet : Re: validateValidWhen and javascript On 8/31/06, Jean-Marie Pitre &l

RE : validateValidWhen and javascript

2006-08-31 Thread Jean-Marie Pitre
Do you know what is the reason there isn't javascript validation for this rule ? -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : jeudi 31 août 2006 17:55 À : Struts Users Mailing List Objet : Re: validateValidWhen and javascript On 8/31/06, Jean-M

Re: validateValidWhen and javascript

2006-08-31 Thread Laurie Harper
Wendy Smoak wrote: On 8/31/06, John R. Dumonceaux <[EMAIL PROTECTED]> wrote: Is there a way to include only the J/S actually used? I'm doing client side validation with j/s and ended up writting my own routines - thus the validation does seem to add much. Where are you putting your JavaScrip

Re: validateValidWhen and javascript

2006-08-31 Thread Wendy Smoak
On 8/31/06, John R. Dumonceaux <[EMAIL PROTECTED]> wrote: Is there a way to include only the J/S actually used? I'm doing client side validation with j/s and ended up writting my own routines - thus the validation does seem to add much. Where are you putting your JavaScript? There might be a

Re: validateValidWhen and javascript

2006-08-31 Thread John R. Dumonceaux
:39 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: validateValidWhen and javascript J- IIRC, the J/S that is inserted is ALL the validation J/S whether you use it or not. I.e., even if you aren't using, say 'maxlength,&

Re: validateValidWhen and javascript

2006-08-31 Thread Wendy Smoak
On 8/31/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Is there a javascript file to use validateValidWhen method on client side ? No. If you look in the bundled validation-rules.xml file for 1.3, there is no 'jsFunction' attribute for validwhen. (The JavaScript for the default rules now li

Re: validateValidWhen and javascript

2006-08-31 Thread Adam Gordon
J- IIRC, the J/S that is inserted is ALL the validation J/S whether you use it or not. I.e., even if you aren't using, say 'maxlength,' I belive that method is included. That said, we don't use client-side validation because you really should do server-side anyway and we didn't like the way

validateValidWhen and javascript

2006-08-31 Thread Jean-Marie Pitre
Hi, Is there a javascript file to use validateValidWhen method on client side ? Thanks, Regards, Jean-Marie --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php - To unsubscribe, e-mail: [EMAIL PRO

Re: struts and javascript

2006-04-14 Thread 王曾wang_zeng
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: " > I guess the error won't occur.

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: > > > var mytarget = > That's a good option too. > Then look up for target in your main Javascript function. I guess it > would be easier t

Re: struts and javascript

2006-04-13 Thread Michael Jouravlev
e 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 files > through the JSP processor. > > Frank > > -Original Message- > From: "fea jabi" <[EMAIL PROTECTED]> >

RE: struts and javascript

2006-04-13 Thread Frank W. Zammetti
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 and javascript

2006-04-13 Thread fea jabi
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', "",

Re: Struts html taglib and javascript

2006-03-14 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi I am trying to put dynamic javascript in html:text tag. I have a checkbox next to a name (names are backed up by a list) and whenever the user changes the name the checkbox next to the name is automatically checked. javascript: document.someform.chkbox[<%=indexId p

Struts html taglib and javascript

2006-03-12 Thread Jay . Jakilinki
Hi I am trying to put dynamic javascript in html:text tag. I have a checkbox next to a name (names are backed up by a list) and whenever the user changes the name the checkbox next to the name is automatically checked. javascript: document.someform.chkbox[<%=indexId property in nested:iterate

[OT] Re: struts and javascript

2005-12-14 Thread Dave Newton
fea jabi wrote: In my JSP, have to use the defined variable in javascript. How can I use it? var totalObj = document.getElementById("total"); Wow, that's so far off I'm not even sure where to start. Marked OT because this has more to do with a fundamental misunderstanding of how webapps wor

struts and javascript

2005-12-14 Thread fea jabi
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. . . var totalObj = document.getElementById("total"); totalObj=Number(obj1) + Number(obj2); .

  1   2   >