Re: [S2] Proper way to clear error messages in session scope

2008-08-12 Thread Laurie Harper
Diego Manilla Suárez wrote: Hi. I have an action in session scope. The problem is that action errors are never cleared and thus are shown repeatedly whenever the user sends the form with validation errors. At first I put a call to clearErrors() at the beginning of mi validate() method, but no

Re: Remotely passing parameters to struts

2008-08-12 Thread Randy Burgess
Have you taken a look at parameters in configuration results? http://struts.apache.org/2.0.11.2/docs/parameters-in-configuration-results.h tml You could pass in the redirectURL from your calling web app. I've never tried this but it seems like it would work. It's worth a shot. Regards, Randy Bur

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Dave Newton
I'm not sure how that's related. --- On Tue, 8/12/08, Martin Gainty <[EMAIL PROTECTED]> wrote: > yes the validator will short-circuit when the validator's > short-circuit="true" e.g. > > > > > > http://struts.apache.org/2.x/docs/validation.html#Validation-ShortCircuitingValidator >

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Martin Gainty
yes the validator will short-circuit when the validator's short-circuit="true" e.g. http://struts.apache.org/2.x/docs/validation.html#Validation-ShortCircuitingValidator HTH Martin __ Disclaimer and confidentiality note Everything

Re: Get path to the webapp

2008-08-12 Thread Paul Benedict
Vasyl, The attempt is very iffy. Some things you need to know: 1) No Servlet API provides the path to your files. 2) If running in a WAR file that is never expanded, there will be no such file directory that will exist. 3) You can use the classloader of the web context to get the root of your w

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
Good catch Pierre. It appeared to be working as is, but for cleanliness, I swapped them. Unfortunately that's not the problem. I did find one other error in my struts.xml though. I was missing the chain interceptor in my stack. Ex. Another important thing was to put

Re: [S2] equivalent to S1's

2008-08-12 Thread Pierre Thibaudeau
2008/8/12 Musachy Barroso <[EMAIL PROTECTED]> > You shouldn't need to use at all. Just use the "url" tag to > build urls to any resource/urls you need, and it will take care of > adding the context to the url for you. > Good point! (That said, the only place where I ever use non--based URLs are

Re: [S2] equivalent to S1's

2008-08-12 Thread Musachy Barroso
You shouldn't need to use at all. Just use the "url" tag to build urls to any resource/urls you need, and it will take care of adding the context to the url for you. musachy On 8/12/08, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > The essence of my question rested specifically on the: > %{some

Re: [S2] Is there a modal dialog component in the current impl?

2008-08-12 Thread prashanth2
Could u help me, in creating a dojo dialog. and I would like pass some variables so that, i can submit to server and response jsp needed to be shown on the dialog. Is it possible to do that way? Dariusz Wojtas wrote: > > Hi, > > Is there a component in the current code to show a modal dialog

DOJO Dialog Problem? Please help me

2008-08-12 Thread prashanth2
Hi, I am using s2 2.0.11 version, I am able to display the dojo dialog, but the contents that supposed to appear on the dialog are appearing on the jsp that iam calling from. I tried many possible ways but endup writing this question here. Well I have one more question, instead of displaying a div

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
Thanks for the feedback Martin. This is a really generic issue to me. I have a list. From the list you can do operations. When you complete the operation you want to go back to the list. Success or error, you want to go the list with a message from the first dispatch. Another example would be

Re: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Pierre Thibaudeau
This may be completely incidental to your problem, but, it seems to me that, if your actions are listed in that order, the first one will catch the occurrences of the second one. ("importRole" is a particular case of "*Role".) Shouldn't they be listed in the reverse order? > > Example struts.xm

Re: [S2] equivalent to S1's

2008-08-12 Thread Pierre Thibaudeau
The essence of my question rested specifically on the: %{somethingOrOther}... On one system where I run my application, the base path is http://www.website.com/ On the other, it is http://localhost:8080/myapp/ took care of that seamlessly. I suppose I could use one given action as base referenc

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Martin Gainty
your action execute method can return "error" result which maps to error page e.g. /error.jsp where error looks like YOU have an error ! better to create a div tag and write a meaningful error to response which displays response in div tag ... http://cwiki.apache.org/WW/ajax-recipes.html

Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
I have an action with two dispatch methods. I have a single JSP that renders a list and also have an import file field. On import failure, I want to populate the list with an error message. THE PROBLEM: It looks like validation for the list() method is wiping the errors from the import() method.

Re: [S2] equivalent to S1's

2008-08-12 Thread Musachy Barroso
yes, that would work, or a lil bit more readable: musachy On Tue, Aug 12, 2008 at 2:44 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Any suggestion as to an S2 equivalent to S1's ? > > " /> > ??? > > What do you guys do? > > The same question was asked a number of months ago: > http://www

Re: tabbed panels with Struts 2.1.2

2008-08-12 Thread Musachy Barroso
yes, you can safely disregard those collision id errors, they have been around for a long time. musachy On Tue, Aug 12, 2008 at 2:24 PM, Owen Berry <[EMAIL PROTECTED]> wrote: > I don't think so - I get the collision messages, but everything still > works fine for me. > > On Tue, Aug 12, 2008 at 1

[S2] equivalent to S1's

2008-08-12 Thread Pierre Thibaudeau
Any suggestion as to an S2 equivalent to S1's ? " /> ??? What do you guys do? The same question was asked a number of months ago: http://www.nabble.com/%3Chtml%3Abase%3E-equivalent-in-S2-to9547065.html http://www.nabble.com/-s2--Is-there-a-tag-similar-to-%3Chtml%3Abase-%3E-in-s1-to10983577.html

Re: tabbed panels with Struts 2.1.2

2008-08-12 Thread Owen Berry
I don't think so - I get the collision messages, but everything still works fine for me. On Tue, Aug 12, 2008 at 10:06 AM, André Cedik | GDG <[EMAIL PROTECTED]> wrote: > Ok, I'm not planning on messing with the Struts code. > I'll leave that to the ones that know the framework > better than I do.

Re: Changing the way Context Root and Namespaces are rendered in URLS.

2008-08-12 Thread Al Sutton
What you're talking about is an application server issue. An easy solution would be to name your war files/contexts to be your app name and then use a namespace of "". Al. Pandolf wrote: Hi everyone, I'm using Struts 2 to author Facebook applications and I have a bit of a problem. When usin

Changing the way Context Root and Namespaces are rendered in URLS.

2008-08-12 Thread Pandolf
Hi everyone, I'm using Struts 2 to author Facebook applications and I have a bit of a problem. When using the struts "form" or "URL" tags, struts 2 of course wants to render URLs as follows: /// Because I'm running applications through Facebook, the urls must be in the following format: // I

Re: (Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Ylva Degerfeldt
I'm not sure how to check that but I don't think the URI has any spaces and it can't be empty. After all, the file Was saved to the action without problems (at least the setFile method was executed and others after that). And this can't be about that specific file, since I've used that file in tes

Re: (Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Jim Kiley
The javadoc for java.io.File mentions a constructor that accepts a URI as its parameter. It has the following note: uri - An absolute, hierarchical URI with a scheme equal to "file", a non-empty path component, and undefined authority, query, and fragment components So: * Does the URI's path hav

(Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Ylva Degerfeldt
Hi, I'm trying to upload a file (and some text values) from a multipart/form-data form. I'm also trying to use the validation framework (I have created a -validation.xml file) but when the action is receiving the values I get this exception: Caused by: java.lang.IllegalArgumentException: URI is n

exception unregistering portlet @undeploying the webapp, configuration manager -> null

2008-08-12 Thread Torsten Krah
Undeploying a struts2 webapp and deregister the portlets does result in this exception: 8:22:26,869 ERROR [MainServlet] java.lang.IllegalStateException: The configuration manager shouldn't be null java.lang.IllegalStateException: The configuration manager shouldn't be null at org.apache

chain interceptor

2008-08-12 Thread Brad A Cupit
I have a question about the placement of the chain interceptor in the defaultStack. Take the following situation: * preferredUserId is a form field submitted by the user. It is the user id they want (if that user id is not already taken) * Action1 has a setPreferredUserId() method but if the use

Re: Regarding tiles error

2008-08-12 Thread sam thothi
Thanks Lukasz for your help, It's working now. I don't know Rad 7.5 behaves indifferently. On 8/12/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > > com.ibm.ws.jsp.JspCoreException: JSPG0218E: Error failed to locate > > setter method for attribute locale in tag class > > org.apache.struts.tagl

Re: URL mapping in Struts 2

2008-08-12 Thread Dave Newton
--- On Tue, 8/12/08, XML User <[EMAIL PROTECTED]> wrote: > Can you explain me with the code or some hint, how can i do that.? Do what, use the REST plugin in Struts 2.1? It's helpful to include at least a little message context. http://struts.apache.org/2.x/docs/rest-plugin.html Dave

Re: Regarding tiles error

2008-08-12 Thread Lukasz Lenart
> com.ibm.ws.jsp.JspCoreException: JSPG0218E: Error failed to locate > setter method for attribute locale in tag class > org.apache.struts.taglib.html.HtmlTag There is no local attribute, you should use lang attribute. Regards -- Lukasz http://www.lenart.org.pl/ ---

Re: Regarding tiles error

2008-08-12 Thread sam thothi
Now i get different error *Root Cause:* com.ibm.ws.jsp.JspCoreException: JSPG0218E: Error failed to locate setter method for attribute locale in tag class org.apache.struts.taglib.html.HtmlTag at com.ibm.ws.jsp.taglib.TagClassInfo.getParameterClassName(TagClassInfo.java:191) at

Re: URL mapping in Struts 2

2008-08-12 Thread XML User
Can you explain me with the code or some hint, how can i do that.? -- View this message in context: http://www.nabble.com/URL-mapping-in-Struts-2-tp18945350p18946067.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Regarding tiles error

2008-08-12 Thread sam thothi
I tried with this , still have the same error. On 8/12/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > Try this > > processorClass="org.apache.struts.tiles.TilesRequestProcessor" > locale="false" contentType="UTF-8"/> > > > > > value="/WEB-INF/tiles-defs.xml"/> > > > > Reg

Re: Regarding tiles error

2008-08-12 Thread sam thothi
Hey lenart, I think i have confused you. I am using Rad 7.5 which is in beta , it gives some weird results. I inserted that tiles plugin initially, what i was doing was just i am deleting the problems getting for the definitions-config. That's the reason to make sure i was asking you. The text in

Re: Regarding tiles error

2008-08-12 Thread Lukasz Lenart
Try this Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: URL mapping in Struts 2

2008-08-12 Thread tommy xiao
RESTfull plugin can provide this feature. 2008/8/12 XML User <[EMAIL PROTECTED]> > > Hi, > > How can I implement the URL mapping so that our URL will always look like > "www.abc.com/products/toys/acbtoy" It should not end with something like > abctoy.action OR abctoy.do. > > Is there a way for

URL mapping in Struts 2

2008-08-12 Thread XML User
Hi, How can I implement the URL mapping so that our URL will always look like "www.abc.com/products/toys/acbtoy" It should not end with something like abctoy.action OR abctoy.do. Is there a way for making this happen? If so then can you please let me know with code? -- View this message in co

Re: Regarding tiles error

2008-08-12 Thread sam thothi
I am inserting into struts-config.xml. It gives me a problem that Attribute property has a run timevalue of definitions-config. Property must reference a valid Java identifier. Do you have any idea why it is getting me the problem. I followed the instructions and everything looks f

Re: How start with multilanguage app

2008-08-12 Thread Dave Newton
--- On Tue, 8/12/08, Felipe Lorenz wrote: > But my actions class need to extend ActionSupport? If you want the built-in I18N support, yes. I suppose you could implement it yourself. Dave > On Mon, Aug 11, 2008 at 4:31 PM, Dave Newton > <[EMAIL PROTECTED]> wrote: > > --- On Mon, 8/11/08, Felipe

Re: How to resolve list property for ModelDriven Action?

2008-08-12 Thread Dave Newton
--- On Mon, 8/11/08, Haulyn R. Jason wrote: > I mean , I know how to populate data to a select tag, and I > know how to collection data from a select tag, but the problem > is: If the list I want to collection from select tag is not a > simple data type(String), but it's another object, how can I

Re: tabbed panels with Struts 2.1.2

2008-08-12 Thread André Cedik | GDG
Ok, I'm not planning on messing with the Struts code. I'll leave that to the ones that know the framework better than I do. Unfortunately I do have a negative effect since the Tabs are not responding to any clicks. Thought it had something to do with the id collision. Owen Berry wrote: There's

Re: tabbed panels with Struts 2.1.2

2008-08-12 Thread Owen Berry
There's nothing much you can do about this collision message, unless you want to "fix" the Struts code, but the good news is that it doesn't seem to have any negative effects. The reason for the message is that the tabs are parsed twice by Dojo. Owen On Tue, Aug 12, 2008 at 5:43 AM, André Cedik |

Re: Regarding tiles error

2008-08-12 Thread Lukasz Lenart
> I am using struts 1.3 Did you follow the installation instruction [1]? [1] http://struts.apache.org/1.3.8/struts-tiles/installation.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Regarding tiles error

2008-08-12 Thread sam thothi
I am using struts 1.3 thanks sam On 8/12/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > > Yes i added it > > Which version of Struts1? > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: [EM

Re: Regarding tiles error

2008-08-12 Thread Lukasz Lenart
> Yes i added it Which version of Struts1? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Regarding tiles error

2008-08-12 Thread sam thothi
Yes i added it On 8/12/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > Did you add the Tiles plugin to the struts-config.xml? > > > /> > > > > > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e

Re: Regarding tiles error

2008-08-12 Thread Lukasz Lenart
Did you add the Tiles plugin to the struts-config.xml? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Regarding tiles error

2008-08-12 Thread sam thothi
I am running to run a sample application in struts. I get the the following exception when i run my app that is http://localhost:9082/webapppath/welcome.do [8/11/08 16:20:02:848 CDT] FFDC Exception:java.io.FileNotFoundException SourceId:com.ibm.ws.webcontainer.extension.DefaultExtensionProce

Get path to the webapp

2008-08-12 Thread Vasyl Skrypij
Hi all I have Struts 2.0.9 I need to get the path to the directory in which my web application is situated during interceptor's asking. How can I do this been using ActionInvocation class object which passes into intercept method, or maybe i should try some other way? -- View this message in c

Re: value-stack data lost when using dynamic result.

2008-08-12 Thread stanlick
The problem is that when validation fails, your action is not called to set your loginPage! Does it vary? Why not initialize the variable in your action? Remember that actions are no longer singletons, so each request is a new instantiation and instance variables are reset! You could also stash

Re: @DateRangeFieldValidator max=currentDate

2008-08-12 Thread holod
I've found this one discussion: http://forums.opensymphony.com/thread.jspa;jsessionid=aaSWPA1PEcc4tixQ2U?messageID=5041Ꮁ I need the same: min parameter is fixed, max parameter is dynamic (currentDay + 1 day). Please, show me how can I use some static method inside annotation. holod wrote: > >

Re: How start with multilanguage app

2008-08-12 Thread Felipe Lorenz
Uhummm... good... i follow this links and work... very good. But my actions class need to extend ActionSupport? On Mon, Aug 11, 2008 at 4:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Mon, 8/11/08, Felipe Lorenz <[EMAIL PROTECTED]> wrote: >> I want to learn about multilanguages applicati

Re: Problem displaying jsp after form submitting

2008-08-12 Thread holod
Excuse me for flooding. The answer is very-very easy. Designer put away tags for JavaScript and ccs files. That is why they were not visible for browser. Check your designers :) holod wrote: > > I have an action: > <.action name="StoreLawDraft" > class="project.action.admin.StoreLawDraftAction"

Problem displaying jsp after form submitting

2008-08-12 Thread holod
I have an action: ShowMainPage /admin /admin/processlaw.jsp /admin/processlaw.jsp if success it chains to: /admin/catalog.jsp My project.action.admin.StoreLawDraftAction sets actionM

@DateRangeFieldValidator max=currentDate

2008-08-12 Thread holod
@TypeConversion(converter = "project.action.admin.converter.DateConverter") @RequiredFieldValidator(message="Please, enter date. Field can't be empty") //@DateRangeFieldValidator(min = "01.01.1990", max = "${new Date()}", message = "date must be between ${min} and ${max},

AW: [S2] using SSL; configuration error

2008-08-12 Thread Anastasios Patrikis
Hello. I added a new package definition into my struts.xml file like this: true 8080

tabbed panels with Struts 2.1.2

2008-08-12 Thread André Cedik | GDG
Hi everyone, has anyone tried using tabbed panels with Struts 2.1.2? http://struts.apache.org/2.1.2/docs/tabbedpanel.html When I'm testing the example on the Struts website I always receive errors from the debugger the there's a collision on the widgets' id even when I'm not specifying one. ---

Re: append value inside <:iterator

2008-08-12 Thread holod
holod wrote: > > I use > inside this tag I want to compose a String. > I've tried this one: > > > > >value

[S2] Proper way to clear error messages in session scope

2008-08-12 Thread Diego Manilla Suárez
Hi. I have an action in session scope. The problem is that action errors are never cleared and thus are shown repeatedly whenever the user sends the form with validation errors. At first I put a call to clearErrors() at the beginning of mi validate() method, but now I'm using also the validati