Re: Issue with Url mapping with struts-action-extension=

2008-08-05 Thread Chris Pratt
In your web.xml, you told the system to send ALL requests to the Struts Filter processor, so it's trying to map EVERYTHING including *.css, *.js etc. You might want to try explicitly mapping those things to the dispatcher before mapping the struts filter, that should make them bypass struts as

FireFox 3 and Form Bean in Session

2008-08-05 Thread Balwinder
Hi All, In my development, I put a form bean into session scope, when I access the page in Firefox 3, it is retaining the values of this form bean even if I log out and login as a different user, when I just wanted to retain the values in the same login session. This is not the case if I

Re: Struts 1.3.8 problem html:form

2008-08-05 Thread Antonio Petrelli
2008/8/4 Alexis Abdel [EMAIL PROTECTED]: That exeption in english it is: The server found an error,and cant fill this requirement. org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16 Can you post the complete stack trace, especially the cause? Antonio P.S. I speak also

Tags url and form

2008-08-05 Thread Kibo
Hi konference when I use this: s:url id=url action=HelloWorld namespace=/example s:param name=id value=%{'java'} / /s:url s:a href=%{url} link/s:a s:form action=%{url}

[S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Markus Stauffer
Hello all Say I have a struts2 form: s:form action=Subscribe_* validate=true s:textfield key=something/ /s:form The javascript validation generated for this form is unfortunately invalid. Firefox complains about the * character. Is there any way to get around this without turning to server

Re: [S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Gabriel Belingueres
AFAIK, wildcard mapping has sense only inside struts.xml. In your form, you must specify exactly which action will be called, like Subscribe_dosomething 2008/8/5 Markus Stauffer [EMAIL PROTECTED]: Hello all Say I have a struts2 form: s:form action=Subscribe_* validate=true s:textfield

Re: [S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Markus Stauffer
I have this in my form: s:form action=Subscription_* s:textfield key=something/ s:submit value=%{'Submit'} method=execute/ s:submit value=%{'Cancel'} method=cancel/ /s:form It works like a charm. But if i turn on client side validation there are warnings/errors. On 8/5/08, Gabriel

Re: FilterDispatcher and filter mapping

2008-08-05 Thread stanlick
Thanks bro! I generally agree with you, but was curious about the hard/fast rule. I discovered the dispatcher actually processes only registered extensions and unfortunately a zero length string was in the list alongside action. I changed my experimental resource mapping to .fred and all is

Re: Tags url and form

2008-08-05 Thread Gabriel Belingueres
You don't need to generate an s:url to construct the action of the form. The s:form tag has its own action and namespace attributes. If you need to send extra parameters, like id=java, you could instead use a s:hidden tag inside the form. 2008/8/5 Kibo [EMAIL PROTECTED]: Hi konference when I

Re: Issue with Url mapping with struts-action-extension=

2008-08-05 Thread Haulyn R. Jason
Chris Pratt 写道: In your web.xml, you told the system to send ALL requests to the Struts Filter processor, so it's trying to map EVERYTHING including *.css, *.js etc. You might want to try explicitly mapping those things to the dispatcher before mapping the struts filter, that should make them

Re: Issue with Url mapping with struts-action-extension=

2008-08-05 Thread stanlick
dispatcher will try to find an action mapping for the URL. If it cannot, it processes the request as a static resource. As you have already discovered, even though it is mapped in web.xml as /* it will actually consult with your registered extension(s) in its logic. Scott 2008/8/5 Chris Pratt

Re: HowTo: transfer parameter between actions?

2008-08-05 Thread stanlick
Consider chaining over redirect. However, this does sort of hard wire your flow! On Tue, Aug 5, 2008 at 5:33 AM, holod [EMAIL PROTECTED] wrote: 1.I have action PrepareDictionaryAction it has field String dictionaryId and appropriate getter and setter. dictionaryid comes from previous jsp.

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread doahh
I have set up a very simple test app that is just spring and struts2. It works without a problem. In my main application I have been using a ClassPathXmlApplicationContext(springBeansDefinitionFile) in order to get references to my beans. When I comment this out and add my spring-config file to

Re: HowTo: transfer parameter between actions?

2008-08-05 Thread holod
It was very silly question! Thanks, result type=chain solves the problem! stanlick wrote: Consider chaining over redirect. However, this does sort of hard wire your flow! On Tue, Aug 5, 2008 at 5:33 AM, holod [EMAIL PROTECTED] wrote: 1.I have action PrepareDictionaryAction it has

HowTo: transfer parameter between actions?

2008-08-05 Thread holod
1.I have action PrepareDictionaryAction it has field String dictionaryId and appropriate getter and setter. dictionaryid comes from previous jsp. (enter.jsp) action sends user to dictionary.jsp 2.dictionary jsp has hidden field s:hidden name=dictionaryId/. So I will not be lost. 3.then through

Re: [S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Jim Kiley
I can't see any reference anywhere that suggests that putting a wildcard in the form's action attribute will work. Even if it does work with client side validation turned off, I get the impression -- and I could be wrong -- that you've stumbled into a weird corner case that just happens to work.

Re: [S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Markus Stauffer
thanks, i will give it a try... On 8/5/08, Jim Kiley [EMAIL PROTECTED] wrote: I can't see any reference anywhere that suggests that putting a wildcard in the form's action attribute will work. Even if it does work with client side validation turned off, I get the impression -- and I could be

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread Brad A Cupit
I noticed that you have this: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext-security.xml/param-value /context-param but the prosoc-spring-beans.xml is not listed, so Spring won't know to pick it up. I did see that

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread doahh
It looks like I can use: WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean(myBean); in order to get already deployed beans. That clear up the error I was getting when I started this thread. I am getting another error but I will spend some time on it first before

struts-portlet-sample-2.0.11.2 - validation not working

2008-08-05 Thread Torsten Krah
Hi, i am working on portlets and wanted to get the struts sample mentioned working. It does work so far (changes to web.xml + dependencies) and it runs with pluto 1.1.5 (tomcat 6.0.16). However, i can't get the validation example working - reading the docs it should do - but it won't. I am not

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread doahh
I didn't see your reply before I sent my last post. You were absolutely correct and I must say that, looking through that mass of config, well spotted. Thanks for your help Bard. -- View this message in context:

Re: [S2] what tag to use to get object's field?

2008-08-05 Thread xianwinwin
thanks!!! Gabriel Belingueres-2 wrote: s:property 2008/8/4 xianwinwin [EMAIL PROTECTED]: hi there, say I have an object client and it has firstName and lastName. I wish to write this on the jsp page: Dear Mr. XX welcome to the XX should be substitute with firstName and

Re: HowTo: transfer parameter between actions?

2008-08-05 Thread Greg Lindholm
You can pass parameters on a redirectAction, I do it all the time result type=redirectAction PrepareDictionary /admin ${dictionaryId} /result holod wrote: 1.I have action PrepareDictionaryAction it has field String dictionaryId and appropriate getter and setter. dictionaryid

2 Validation Questions

2008-08-05 Thread Gundersen, Richard
Would really appreciate any help with the following (sent yesterday). Just a pointer to some good docs would be great - Basic question sorry (looked all over but can't find the answer) 1) When validation fails for my 'username' textfield, the error message is

Re: Check if object in list (s:iterator additional constraint)

2008-08-05 Thread netslow
People, I'm really confused. I'm still haven't found any solution. Any ideas? netslow wrote: I hello experts. I'm quite new in struts2, and I have a question. I have an action ShowReports which returns two lists of reports: reports and badReports. I would like to show these reports bud I

Re: Check if object in list (s:iterator additional constraint)

2008-08-05 Thread Gabriel Belingueres
Did you tested with 'not in' instead of '!'? 2008/8/5 netslow [EMAIL PROTECTED]: People, I'm really confused. I'm still haven't found any solution. Any ideas? netslow wrote: I hello experts. I'm quite new in struts2, and I have a question. I have an action ShowReports which returns two

Treenode, expanded onload

2008-08-05 Thread Jack Stuard
Hi, I've searched but maybe I don't have used the right term to this, I'd to know if is possible to show a Tree, with some specific treenodes already opened (or expanded) onload of a page in Struts 2 (stable version). Thanks in advance. Jack Stuard

Re: 2 Validation Questions

2008-08-05 Thread Gabriel Belingueres
1) You can create a new theme and change the look and feel of the form and of course where the field errors will be displayed. You can create individual template Freemarker scripts for the textfield tag too. 2) IIRC, this javascript validation bug was resolved in the 2.1.x branch. 2008/8/5

Re: [S2] Refactoring Action classes

2008-08-05 Thread Milan Milanovic
Dear Al, O.K. You suggest that I have multiple classes in one package/namespace, like this: package name=somePackafe namespace=/myNamespace extends=struts-default action name=load method=execute class=FirstActionClass ... /action ...

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-05 Thread Brad A Cupit
on August 05, 2008 8:14 AM, doahh [EMAIL PROTECTED] wrote: I didn't see your reply before I sent my last post. You were absolutely correct and I must say that, looking through that mass of config, well spotted. Thanks for your help Bard. Terrific!!! Brad Cupit Louisiana State University -

RE: 2 Validation Questions

2008-08-05 Thread Gundersen, Richard
Nice one - thanks for the tips Gabriel, much appreciated. Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]

execAndWait delay issue

2008-08-05 Thread daveck
If I don't use a delay the wait.jsp is displayed on my input and success results. Because I don't want to display the wait.jsp on my input result I'm using a delay. If I use a delay (any length of time) the wait.jsp never displays. Any ideas would be appreciated! Thank you. action

Re: struts-portlet-sample-2.0.11.2 - validation not working

2008-08-05 Thread Torsten Krah
nvm - works now, was a packaging issue, the xml file was not in the proper location. -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Really, I'm not out to destroy Microsoft. That will just be a completely

struts-portlet-sample - UploadFileAction, caption parameter not set, ParametersInterceptor does not set property found by MultiPartRequest

2008-08-05 Thread Torsten Krah
Hi get a problem with the caption parameter of this example, it is sent and found by the MultiPartRequest Handler, but it is not set by the ParametersInterceptor; look at the stacktrace: 18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest] Found item upload

Re: struts-portlet-sample - UploadFileAction, caption parameter not set, ParametersInterceptor does not set property found by MultiPartRequest

2008-08-05 Thread Torsten Krah
Am Dienstag, 5. August 2008 18:18:51 schrieb Torsten Krah: Does look like a bug, is it? https://issues.apache.org/struts/browse/WW-2464 May this be related to this bug? Can anyone tell me what is/was the fix? Can i use the latestet GA release and get this working (without patching)? -- Bitte

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
More like; package name=somePackage namespace=/myNamespace extends=struts-default action name=load method=load class=FirstObjectManager.../action action name=save method=save class=FirstObjectManager.../action action name=load method=load

Re: Struts 2 And JFreeChart

2008-08-05 Thread Leena Borle
Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image.

Re: [S2] Refactoring Action classes

2008-08-05 Thread Milan Milanovic
Thanks Al. But in this way, how I'll now which load is for which class when defining a link ? -- Regards, Milan Al Sutton wrote: More like; package name=somePackage namespace=/myNamespace extends=struts-default action name=load method=load class=FirstObjectManager.../action

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
You can change the action name to something more explicit so instead of just load, save, load, save, you could have firstObjectLoad, firstObjectSave, You may want to look up RESTful URLs to get some inspiration. Al. Milan Milanovic wrote: Thanks Al. But in this way, how I'll now which

Re: HowTo: transfer parameter between actions?

2008-08-05 Thread Greg Lindholm
Sorry, my response got munged by nabble, the param tags disappeared. So pretend I have angle brackets where you see square brackets below: [result type=redirectAction] [param name=actionName]PrepareDictionary[/param] [param name=namespace]/admin[/param] [param

RE: [S2] Ajax DIV Question

2008-08-05 Thread Hoying, Ken
I was able to update the href and formId via JavaScript and DOJO as follows: dojo.widget.byId('divId').href = 'myUrl'; dojo.widget.byId('divId').formId = 'myFormId'; This works fine as long as the form itself was not loaded infot the DIV (divId). However, if myFormId is located in divId and

Re: Struts2 with JSON.

2008-08-05 Thread sharath karnati
Hi All,     I'm getting below value in req.responseText       {list:{com.beans.ComplaintDO:{first__name:Sharath,last__name:Karnati}}}     which I'm passing for JSON       jsonObject=eval( (+ req.responseText +) );     How to read 'first__name' value from jsonObject?   Thanks, Sharath. --- On

Re: Struts2 with JSON.

2008-08-05 Thread Musachy Barroso
jsonObject.list[com.beans.ComplaintDO][first__name] Not related to struts in anyway btw. musachy On Tue, Aug 5, 2008 at 5:09 PM, sharath karnati [EMAIL PROTECTED] wrote: Hi All, I'm getting below value in req.responseText

Struts 2 AJAX

2008-08-05 Thread stanlick
Is Struts 2.1.x still bound to DOJO?

Re: Struts 2 AJAX

2008-08-05 Thread Dave Newton
--- On Tue, 8/5/08, [EMAIL PROTECTED] wrote: Is Struts 2.1.x still bound to DOJO? S2 Ajax/Dojo is a plugin. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 AJAX

2008-08-05 Thread Piero Sartini
Is Struts 2.1.x still bound to DOJO? It isn't - DOJO is available as a plugin since 2.1.x But there is no possibility to use the AJAX theme without DOJO right now. There was an interesting discussion at struts-devel: -

Re: Create multiple struts configuration file problem

2008-08-05 Thread angelwei
ya, i want to know how to create different module. this is because my current work need to do that. can anybody tell me how to create multiple struts configuration file?? Thanks. -- View this message in context:

Re: Issue with Url mapping with struts-action-extension=

2008-08-05 Thread Jeromy Evans
Haulyn R. Jason wrote: In case it is a, I would try the following settings: struts.action.extension=,,action 2.If I use Evans' way, it looks worked well but just need a ...Struts do not have a solution for these? Thanks I thought this was supported by this