Re: struts 2 login issue

2008-08-05 Thread Al Sutton
I'm pretty sure it's something else (unless your struts app is coded badly). Try disabling any Anti-Virus/Firewall/etc. software before running the test. Failing that look at your app server and memory usage. Al. nauke. wrote: Hi, I'm not sure if this is a struts problem or something else.

Re: [S2] Refactoring Action classes

2008-08-05 Thread Jeromy Evans
Milan Milanovic wrote: Dear Al and Dave, I tried to fix that error with session variable all weekend and I didn't managed to fix it. When action is defined as redirect action to another namespace, and when that action is called, another action called method doesn't see my session variables. I ju

struts 2 login issue

2008-08-05 Thread nauke .
Hi, I'm not sure if this is a struts problem or something else. I log into my app, when my session times out, I try to do something else. I get presented with the login page, which is correct, but it fails with the following error: Connection Interrupted, The connection to the server was reset w

Re: [S2] Ajax DIV Question

2008-08-05 Thread Jeromy Evans
Hoying, Ken wrote: 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 loc

Re: Treenode, expanded onload

2008-08-05 Thread Jeromy Evans
Jack Stuard wrote: 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 Use a client-side lib

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 th

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: http://www.nabble.com/Create-multiple-struts-configuration-file-problem-tp18748135p1

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: -> http://www.nabble.com/-PROPOSAL--Deprecate-or-remove-Dojo-plugin-td1857370

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]

Struts 2 AJAX

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

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 > > > {"list":{"com.beans.ComplaintDO":{"first__name":"S

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, Shara

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 was

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 name="dictionaryId"]

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 l

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; > > extends="struts-default"> >class="FirstObjectManager">... >class="FirstObjectManager">... >class="SecondObjectManager">

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. Form.jsp

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
More like; ... ... ... ... ... You can also use singletons, utility classes, and good old-fashioned inheritance to reduce code duplication (remember, Actions don't have to extend ActionSupport, ActionSupport is just a utility class). Al. Milan Milan

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

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 18:11:49,119

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 unintentio

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.

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] Sent

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 Unive

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: ... ... ... ? I understand what are you talking about, but my class is connected to little bit

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 Gunders

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: 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

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 bu

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: HowTo: transfer parameter between actions?

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

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

2008-08-05 Thread xianwinwin
thanks!!! Gabriel Belingueres-2 wrote: > > > > 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

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: http://www.nabble.com/Struts2-and-spring-plugin---Action-class--springManagedPros

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
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

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

2008-08-05 Thread Brad A Cupit
I noticed that you have this: > >contextConfigLocation >/WEB-INF/applicationContext-security.xml > but the prosoc-spring-beans.xml is not listed, so Spring won't know to pick it up. I did see that prosoc-spring-beans.xml was listed as an init-param to the uk.co.prodia.prosoc.Config serv

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

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: 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 PrepareDictionaryAc

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 t

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 j

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: 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 we

Re: [S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Markus Stauffer
I have this in my form: It works like a charm. But if i turn on client side validation there are warnings/errors. On 8/5/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > AFAIK, wildcard mapping has sense only inside struts.xml. > In your form, you must specify exactly which a

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: > > > > > > > The javascript validation generated

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 > > wh

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 . So I will not be lost. 3.then through form submit user goes to Work

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 >

[S2] Validating Forms with Wildcard Mapping

2008-08-05 Thread Markus Stauffer
Hello all Say I have a struts2 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 side validation? kind regards -- Markus Stauffer ---

Tags url and form

2008-08-05 Thread Kibo
Hi konference when I use this: link --- After render link is good: