Re: [S2] ExecAndWait interceptor : request.getSession() null

2007-10-10 Thread jignesh(india)
Hi, I have faced the same problem.. But i am successfully able to crop it just by adding "basicStack" interceptors exact before "execAndWait". E.g:- Best Regards, Jignesh mleneveut wrote: > > Hi, > > I try to add the execAndWait interceptor in my application

[S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Hi all, I just give up the datetimepicker component, due to a 2s more page load time. I put anoter JS calendar (YUI calendar), but the problem is that in my Actions I have java.util.Date attributes. So I need to format my Date into a String that the calendar will understand (dd/MM/ in my case

Re: html:select javascript onchange passing parameter problem

2007-10-10 Thread Benz
which part do you mean? Is this? ... ... ... ... ... ... var validStatus = new Array ("PCB","PCS","PCK","RC"); function checkStsCombo(combobox, fieldName, idx) { var index = combobox.selectedIndex; var select

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread Max Pimm
You can call a static method using the OGNL syntax. . (More info can be found here http://www.opensymphony.com/ognl/html/LanguageGuide/) However i suggest you have a look at the s:date tag. max mleneveut wrote: Hi all, I just give up the datetimepicker component, due to a 2s more page lo

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
Dave, Thanks for your efforts. Is it worth me using your setup to test here? And yes I'm using the default interceptor stack. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 01:10 To: Struts Users Mailing List Subject: RE: Bug in 2.0.9 regarding vali

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
I've just done a very simple test too and it appears to be working. I'll endeavour to find out what's wrong and report back. -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 08:53 To: Struts Users Mailing List Subject: RE: Bug in 2.0.9 regarding validat

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Thanks for your answer. The s:date tag is fine, but how to pass it to a s:textfield tag ? "/> maxmil wrote: > > You can call a static method using the OGNL syntax. > > . > > (More info can be found here > http://www.opensymphony.com/ognl/html/LanguageGuide/) > > However i suggest you hav

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Ok sorry for stupid question, I have found :) mleneveut wrote: > > Thanks for your answer. > > The s:date tag is fine, but how to pass it to a s:textfield tag ? > >size="10" maxlength = "10" > value=""/> > > > > maxmil wrote: >> >> You can call a static method using the O

Re: Wildcard action/result names v. Validation

2007-10-10 Thread stanlick
I think I got a result named "*" to work like this with wildcards On 10/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > Do you mean that you don't have a foo_input.jsp? > > No, I mean that since I have no named "input" result > that it pukes and

[OT] are there any other good mailing lists for Java,J2ee,Spring

2007-10-10 Thread Krishna, Hari (FTT-CInternet)
Dear all, I have been with Struts Users Mailing List for the past one and half year and the advice,knowledge,experience I get here is awesome. I wonder whether are there any similar groups relates to Java,J2ee,Spring where we can get daily mails like here? Though I am a member of http://foru

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
Well well well I've found the problem. And it's an odd one. The Action class was extending another class, which had in it the following: private Locale locale; public Locale getLocale() { return locale; } public void setLocale(Locale locale) { this.

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
Maybe I simply shouldn't of over-ridden getLocale from ActionSupport... -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 11:51 To: Struts Users Mailing List Subject: RE: Bug in 2.0.9 regarding validation localization? Well well well I've found th

Documentation versus Community Wiki (was Re: How to improve dojo performance in Struts 2.0.9)

2007-10-10 Thread Ted Husted
Since projects like Struts wear our code "on our sleeve", there's always a discussion over whether the website should represent the latest documentation or the documentation for the "best available" release. Over the years, we've done it one way and the another, and now we do it both ways :) The l

Why does update action fire on load

2007-10-10 Thread zul;jami
I am using struts2+spring+jpa+ajax+sitemesh WHile onload only execute method should be called, but update is also called.Why this is my struts.xml login.jsp login.jsp /pages/dashboard_main.jsp /pages/dashboard.jsp -- View this message in context

[OT] Contract stupidity (was Documentation versus Community Wiki (was Re: How to improve dojo performance in Struts 2.0.9))

2007-10-10 Thread Antonio Petrelli
2007/10/10, Ted Husted <[EMAIL PROTECTED]>: > > Sadly, not everyone can file a CLA. Many organizations still use > aggressive IP agreement that assign rights to our every stray thought > to the company, 24/7. > Once I thought my mind was mine, but now I know it's property of my company :-) This i

RE: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread Martin Gainty
Here is an example from struts2-showcasehttp://localhost:8080/struts2-showcase/viewSource.action?page=/ajax/autocompleter/index.jsppage is referenced from webapp/viewSource.jsp e.g. ${empty page ? "Unknown page" : page} which populates page and renders /ajax/autocompleter/index.jsp Martin __

NULL Session object after execAndWait interceptor

2007-10-10 Thread Igor Vlasov
I found a strange behaviour in action after execAndWait interceptor. I have 1. 2000 RE: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?
take a look at accessor and mutator for 'page' in the ViewSourceAction.java sourceMartin Gainty__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a con

Re: [S2] ExecAndWait interceptor : request.getSession() null

public class SearchAction extends ActionSupport implements ServletRequestAware { protected HttpServletRequest request; private HttpSession sess; public String execute() throws Exception{ /*I*/ sess = request.getSession();// not NULL ! try { // выполняется поиск и опрос все

RE: [OT] are there any other good mailing lists for Java,J2ee,Spring

> I have been with Struts Users Mailing List for the past > one and half year and the advice,knowledge,experience I get > here is awesome. I wonder whether are there any similar > groups relates to Java,J2ee,Spring where we can get daily > mails like here? Though I am a member of > http

RE: Bug in 2.0.9 regarding validation localization?

--- Dean Pullen <[EMAIL PROTECTED]> wrote: > Maybe I simply shouldn't of over-ridden getLocale > from ActionSupport... :D Probably not. I did much the same thing with another ActionSupport-implemented method once; didn't catch it for 3+ weeks :/ Glad you found it! d. -

Re: [S2] Manually obtain previous action parameters after action "chaining"?

You can, if you grab the ValueStck and traverse up it till you get to your previous action. Igor Vlasov wrote: > > > > I have action "one" and it calls action "two" throw: > two > > > I can use ChainingInterceptor to copy properties of "one" action to "two" > action. > > I get behaviour

[S2] Manually obtain previous action parameters after action "chaining"?

I have action "one" and it calls action "two" throw: two I can use ChainingInterceptor to copy properties of "one" action to "two" action. I get behaviour : one.param->two.param. But the property "param" must be in javaBeans specification(have setter and getter method for each property). Ca

Re: [S2] Manually obtain previous action parameters after action "chaining"?

I try this in action "two".execute(): ValueStack stack=ActionContext.getContext().getValueStack(); CompoundRoot root = stack.getRoot(); List list = new ArrayList(root); This list does not contain my previous action "one". It contains only TextProviderObject. Can you write how to "

Ajax Call from a html link

I have a jsp page named "tvshow.jsp", wherein I am populating the characters dropdown as and when the TV Show dropdown value changes , by calling the javascript in the “onchange()” of the select box. have added a html link, and I want to call the same function from my action class and I need to po

org.apache.commons.digester.Digester error

I am new to Strus.I am running a small Struts program. At tomcat startup I am having an error. INFO: Loading chain catalog from jar:file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml Oct 10, 2007 3:15:47 AM

Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

Hi, We have this problem of having to repeat certain validations for the same fields in multiple validation xml files because they occur in multiple scenarios and we have different validation files for the different scenarios. Now this brings about duplication of code in the sense that in futu

[S2] s:if test attribute not a runtime expression?

Okay, this might be a question for the dev list, but bear with me for a minute. My application is currently using Struts 2.0.8. I read about some security and bug fixes in 2.0.9 and 2.0.10. According to the Struts JIRA server, 2.0.10 has been complete since September 9th, so I figured I'd wait f

Re: Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

Have you looked at the visitor validator? It might serve your purposes if the fields are on objects in the action. /Ian Arup Francis wrote: Hi, We have this problem of having to repeat certain validations for the same fields in multiple validation xml files because they occur in multiple

Re: Ajax Call from a html link

I believe this exact example is included with the AjaxParts Taglib, which works well with Struts (1 or 2). If anyone is going to be using Ajax and JSP tags together, AjaxParts is a great way to go (and easy to learn!). * http://www.omnytex.com/articles/apt/ HTH, Ted.

Re: Manually obtain previous action parameters after action "chaining"?

The use case for the chain result is that JavaBean properties on ActionTwo that match JavaBean properties on ActionOne are copied forward. This sounds like the same use case that you describe, and it's unclear why it isn't working, or why you would need to do anything manually. The most helpful th

Re: [S2] Send a request AJAX in JS

You don't need to do anything special to make the request. Any standard Ajax approach will work just fine. The request can be to a servlet or other resource, or to a Struts 2 Action. If it's to a Struts 2 Action, it should return a HTML/Text result, or use the JSON plugin. * http://struts.apache.

RE: How to improve dojo performance in Struts 2.0.9

You can open up the struts 2.0.9 jar and pull out the template folder from . Copy that into your project, then modify template/xhtml/head.ftl and template/simple/head.ftl to refer to the dojo.js file in your directory instead of the one imbedded with struts. Session A. Mwamufiya Carnegie Mellon Un

Re: Wildcard action/result names v. Validation

Awesome --- [EMAIL PROTECTED] wrote: > I think I got a result named "*" to work like this > with wildcards > > On 10/9/07, Dave Newton <[EMAIL PROTECTED]> > wrote: > > > > --- Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > > Do you mean that you don't have a foo_input.jsp? > > > > No, I mean tha

Re: Ajax Call from a html link

Just an FYI, that article is a little outdated... APT's feature set is a bit larger than the article talks about now for one thing, although in glancing over it again, I don't see anything that's not applicable now. Also note that the link to Rick Reumann's article is no longer valid, it is now he

Re: [S2] s:if test attribute not a runtime expression?

I noticed something broken in showcase on trunk once and brought it up - https://issues.apache.org/struts/browse/WW-2206 In discussion, I realized that the dev team is moving away from other expression languages in favor of OGNL only (or whatever is plugged-in in struts 2.1.x). -W On 10/10/07,

RE: [S2] s:if test attribute not a runtime expression?

Pardon me for being totally new to OGNL, but what would be the equivalent of ${not empty rules}? -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 2:44 PM To: Struts Users Mailing List Subject: Re: [S2] s:if test attribute not a runtime e

Re: [S2] s:if test attribute not a runtime expression?

%{rules != null && rules.size() > 0} (I didn't test it, I'm just guessing) -W On 10/10/07, Jake Robb <[EMAIL PROTECTED]> wrote: > Pardon me for being totally new to OGNL, but what would be the > equivalent of ${not empty rules}? > > -Original Message- > From: Wes Wannemacher [mailto:[EMA

RE: Ajax Call from a html link

Not to detract at all from the great JWP project but you can also do this with AjaxTags. The ajax:select tag is described here: http://ajaxtags.sourceforge.net/usage.html I used ajax:select to call an action that returned XML using the handy AjaxXmlBuilder that came with AjaxTags. Cheers, Grant

Re: How to improve dojo performance in Struts 2.0.9

thanks at all, my application work fine now, the load of pages took too much time. Juan Carlos Musachy Barroso wrote: > > Oh, that makes more sense :), in 2.1 there will also be a property to > specify the base url to load dojo, so you could use a different dojo > distribution (served from any

RE: How to improve dojo performance in Struts 2.0.9

If you find your missing ${parameters.templateDir} then you wont get simple/head.ftl you'll need djConfig baseRelativePath so struts can find root dojo.js e.g. // Dojo configurationdjConfig = {baseRelativePath: "<@s.url includeParams='none' value='/struts/dojo' includeParams="no

RE: [S2] s:if test attribute not a runtime expression?

Thanks, that seems to have done the trick. :) -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 2:50 PM To: Struts Users Mailing List Subject: Re: [S2] s:if test attribute not a runtime expression? %{rules != null && rules.size() > 0}

S2 custom validator : getting field value

Hi, Within a custom validator for field1, i need access to another field, say field2 to perform some comparison. getFieldValue("field2", object) does not help. Please advise. Thanks, Joseph

RE: Ajax Call from a html link

You already have the code, you posted it! :) If you're having some *specific* problem, you'll find many helpful people here, but just saying "my code doesn't work, please help" won't elicit too many (helpful) replies. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Techn

RE: Ajax Call from a html link

Can someone provide me with an example code.I need to implement ajax in my struts project, when html link is clicked. ghodgins wrote: > > Not to detract at all from the great JWP project but you can also do > this with AjaxTags. > > The ajax:select tag is described here: > http://ajaxtags.so

RE: Ajax Call from a html link

In my code " /jsp/tvshow.jsp Click here " when the html link is clicked, it does not populate the second drop down box with values. I dont know what the problem is? Frank W. Zammetti wrote: > > You already have the code, you posted it! :) If you're having some > *specific* problem, you'll

RE: Ajax Call from a html link

Well, what debugging have you attempted? Are you running in Firefox with Firebug for instance and seeing some client-side error? Have you verified that your Action is getting called? Have you examined the returned data to ensure it's correct? -- Frank W. Zammetti Founder and Chief Software Arc

RE: Ajax Call from a html link

No.I am running in I.E. >Have you verified that your Action is getting called? Action class is not being called. Have you examined the returned data to ensure it's correct? returned data is correct.but I don't get any data back from the action class. Frank W. Zammetti wrote: > > Well, what d

[S2] Indexed properties

Okay, so I figured out the right syntax for the question I posted yesterday (subject: List properties in Struts 2). Let's say I have a List of key-value pairs and I want to render the entire list to the user as a form. In Struts 1.x, here's the JSP snippet: But in S2, I have to

RE: Ajax Call from a html link

--- aarthy <[EMAIL PROTECTED]> wrote: > No.I am running in I.E. Unless you are using one of the IE plugins for web development you are making things more difficult than necessary. Test on Firefox with the Firebug plugin then verify it works under IE. >> Have you examined the returned data to ensu

Struts 2 Plugin

I am writing a plugin that consists of a new interceptor. I would like its struts-plugin.xml to append to the defaultStack so the interceptor works out of the box for packages leveraging the default interceptor stack. What is the ethical thing to do as it relates to a plugin modifying the defaul

Re: Struts 2 Plugin

Scott, I would say that you are okay overriding the defaultStack since it is a plugin. For a user to actively install your plugin, then they are seeking the functionality you are providing. I don't know much about the plugin you are writing, but if it works similar to other interceptors, meaning t

Re: Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

I thought you could also specify validation rules against model classes as well, which might help if the rules that are repeated are always the same for a particular model property; I can't find mention of that capability in the validation docs off-hand, though. You may also be able to leverag

RE: [OT] are there any other good mailing lists for Java,J2ee,Spring

Hi Tim- If you want to use Spring to configure automatic configurations of ORM Mapping Tool such as hibernate start herehttp://www.thearcmind.com/confluence/display/SpribernateSF/Configuring+Hibernate,+Spring,+OpenInSessionViewFilter+and+MyFaces+JSF be careful as configurations of Spring or hibe

Re: Struts 2 Plugin

Rock on my brother! And however did you guess that it might be a breadcrumb plugin? :) Karin has been patiently waiting to see code, so I finished it this morning at 3:00 AM around watering my lawn (with a flashlight) and making coffee! By noon today I was too tired to workout the stuts-plugin.x

Re: [S2] s:if test attribute not a runtime expression?

Jake Robb wrote: Okay, this might be a question for the dev list, but bear with me for a minute. My application is currently using Struts 2.0.8. I read about some security and bug fixes in 2.0.9 and 2.0.10. According to the Struts JIRA server, 2.0.10 has been complete since September 9th, so I

Re: Struts 2 Plugin

Let us know how overriding the default stack turns out. In other plugins, I've been creating new stacks, then assuming a user would just use that stack. Also, I'd make that stack the default stack in the plugin package, something like myplugin-default, so that if a user extended it, my stack woul

Re: Struts 2 Plugin

I think it could go either way, depending on the nature of the interceptor/plugin. As for Scott's question, since I had a good idea of what he was working on (like the Value Stack, it was magic baby!), I think he should override the defaultStack. I agree with Don, though that larger apps should hav

Re: Struts 2 Plugin

Hey Don! I feel as though I know you. Aren't you writing the infamous Struts 2 in Action book? :) Thanks for the tips. I too would like things to "just work" once the jar is dropped. I'll mess around with the plug-in this evening after I shake off the commute. Scott On 10/10/07, Don Brown <[

Re: Struts 2 Plugin

On 10/11/07, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > I was mainly thinking from a "support" perspective. An experienced > struts2 developer would not have much problem configuring their > interceptor stack, whereas others are probably using struts-default, > with defaultStack as their intercep

Re: Struts 2 Plugin

If something overrides struts-default then it's no longer struts-default. I'd rather that it was always explicit when something other than struts-core is involved in normal request processing; I'm not sure that adding a plugin JAR to a project in itself is enough to make it obvious that something

Re: Struts 2 Plugin

On 10/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey Don! I feel as though I know you. Aren't you writing the infamous > Struts 2 in Action book? :) To be fair, I'm operating in more of a reviewer capacity, as the large majority of the work is being written by the excellent author, Ch

The requested resource (/StrutsLoginDemo/WebRoot/index.jsp) is not available error

Hi I worked in My eclipse and Tomcat for a project. I have both of them configured in my system. Yesterday night I worked on one application which was working fine for me. Today I went to back to My eclipse and started the server again, I got following error messages which I typed the URL:

concurrency issue in v. 1.0.2

Hi, We are still using an old version of Struts (1.0.2) and at this point upgrading to a newer version would require a really compelling reason, which I might have found. While investigating reasons behind slowness of our website under a heavy load, I stumbled upon a very heavy contention issue w

how to make ActionForm in session scope

hi All how to make Action Form and a form in session scope in strut 2 help needed. Thanks in advance Joseph -- View this message in context: http://www.nabble.com/how-to-make-ActionForm-in-session-scope-tf4604877.html#a13148752 Sent from the Struts - User mailing list archive at Nabble.com.

Re: How to improve dojo performance in Struts 2.0.9

As suggested, I've added these instructions to the community wiki. http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9 Wes Wannemacher wrote: This was my original suggestion to post it into the community wiki because any changes that would be made t

Configure /Message+Store+Interceptor

-- View this message in context: http://www.nabble.com/Configure--Message%2BStore%2BInterceptor-tf4604931.html#a13148924 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECT

[S2] Configure Message Store Interceptor via Annotations

Hi, Is there a way to configure the message store interceptor via annotations? I started experimenting with the smarturls plugin for Struts 2 (http://code.google.com/p/smarturls-s2/) in order to get rid of my XML configuration but noticed that I need the message store interceptor to have success

Re: Manually obtain previous action parameters after action "chaining"?

Copying of properties with ChainingInterceptor working GOOD. I have very complex object as a property to copy and i MUST make every part of it in javaBean specification. For me it is too tedious. Then i want manually copy whole property from actionOne to actionTwo. The second cause is process

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

mikeh96 wrote: > > I am unable to trap an exception and it's being pushed up until it becomes > a 500 Servlet Exception. > Hello, > Thanks in advanced.! > Do anyone help me,how can i get exception message,StackTrace into my > user defined class ? > My is looks like this:- > >

How can i get Exception message and StackTrace ?

Hello, Thanks in advanced.! Do anyone help me,how can i get exception message,StackTrace into my user defined class ? My code is looks like this:- /AMK.fi_view/Exception.jsp xxxsome action I am able