Re: How to check an action variable with s:if

2007-08-07 Thread Nuwan Chandrasoma
Hi, I think you have to write it like this. Thanks, Nuwan Session A Mwamufiya wrote: Hi, I've been trying for some time to get the following logic to work: where "freshSmigFlag" is a variable in my action, and there is a getter and setter defined for it. I also tried to surr

Re: Handling Session Objects

2007-08-07 Thread Sawan
Thanks a lot Dave for the detail explanation. I have checked the META-INF/context.xml of my web application for cookies and found that it does not have cookies attribute. It means I have cookie enabled session. http://jf.omnis.ch/log/archives/2004/12/disabling-session-cookie-in-tomcat.html

Re: [struts2]: maturity / production experience : thanks!

2007-08-07 Thread sol myr
Thanks very much , Ted, tom tom, Oleg, for your helpful replies. - Pinpoint customers who are looking for what you sell.

How to check an action variable with s:if

2007-08-07 Thread Session A Mwamufiya
Hi, I've been trying for some time to get the following logic to work: where "freshSmigFlag" is a variable in my action, and there is a getter and setter defined for it. I also tried to surround the variable with the property tag as such: But that didn't work either. Any ideas how we'r

Re: Struts 2 Validation multiple validators on same field

2007-08-07 Thread Toni Lyytikäinen
That validation config doesn't seem to make much sense to me. The field accountNumber cannot be both int and string, so you have to use required instead of requiredstring if you want to process the input as int. If you want it as string, you have to use something else than the int validator, possib

Re: [S2] Error Message display

2007-08-07 Thread Zoran Avtarovski
I know you mentioned it but I would suggest that the simplest method is to override the simple theme error tag template filederror.ftl and create a base that you're happy with. You then have something that is independent of the core libraries and can easily modify later. I've had to do this for a

RE: Struts list regeneration problem

2007-08-07 Thread Rajam T .
Hi, You need to have a getter and setter for the id you have given to the iterate tag in the form bean. The return type of the getter method should be the type of object you have inside the arraylist. This way you can retrieve the arraylist. One more point to be noted is all the tags like whi

validation error help needed.

2007-08-07 Thread Sivaswamynatha K
I have three text fields in a row. I.e. City, State and Zip. I have to validate all these fields required and mask properties and show the error by inserting a red star at the end of the zip text field. The error message is shown as a tool tip for the red star. What my problem is if one of the fiel

how to forward some action from javascritp

2007-08-07 Thread msg2ajay
hi i have to forward to controller with javascritp my script is as below. function fwd(field){ var val=field.value; if(val == 1){ [b]mypage.do[/b] //<--- this is how i needed } } one one one thx in Adv Ajay -- View this message in context: http://www.nabbl

Re: [struts2]: maturity / production experience ?

2007-08-07 Thread Ted Husted
On 8/7/07, sol myr <[EMAIL PROTECTED]> wrote: > 2. Would you happen to know when struts2 was released as "stable" version ? > we couldn't find documentaion on the site. * http://struts.apache.org/announce.html#a20070223 Version 2.0.6 was the first GA, but there have been two GA release since

RE: Ajax validation example on Apache Struts website

2007-08-07 Thread orshoe
JIRA issue WW-2091 created for this. -- View this message in context: http://www.nabble.com/Ajax-validation-example-on-Apache-Struts-website-tf4232972.html#a12046419 Sent from the Struts - User mailing list archive at Nabble.com.

RE: Ajax validation example on Apache Struts website

2007-08-07 Thread James Holmes
The best way to get the docs updated or fixed is to create a ticket in JIRA so that the work can be prioritized. It would be even better if you were to contribute some documentation to help get the page up to date. http://issues.apache.org/struts/ James -Original Message- From: orsh

Re: using xml validation for a jsp at the same time as action validateable

2007-08-07 Thread Session A Mwamufiya
Any ideas about how to stop a form from validating the data when it first gets launch? Thanks > A bit more info on this. My struts.xml (actually, a different config > file that's called from struts.xml) contains the following: > > class="edu.cmu.sei.smart.zen.server.smigmaintenance.SMIGSelec

Re: [struts2]: maturity / production experience ?

2007-08-07 Thread tom tom
Yes we got it working on production, works fine, there are tiny little areas you need to work out, What we did was struts2 portlets, which is one step ahead to the applications, Looks good so far, But have a look at the bug I raised recently. Look for the forum. Other than that, with thorou

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
Here's a better example that I just ran into: I had getEmail() and getPassword() with @RequiredStringValidator on the base UserAction. When I came to test ResetPasswordAction (which only requires an email), my execute() method was never called but I got no field errors on the rendered page.

Re: using xml validation for a jsp at the same time as action validateable

2007-08-07 Thread Session A Mwamufiya
A bit more info on this. My struts.xml (actually, a different config file that's called from struts.xml) contains the following: /pages/smigmaintenance/SMIGSelection.jsp /pages/smigmaintenance/EmptyReloadNavigationTree.jsp SMIGCreation_input /pages/smigmaintenance/SMIGCreation.jsp

Re: reloading a tree at a certain level of expension

2007-08-07 Thread Oleg Mikheev
Session A Mwamufiya wrote: I'm relaunching this thread in case an s:tree expert may have missed it the first time around :). Is there a way that when a s:tree is reloaded, it expends to a particular level of expansion? I presume that I will save that expansion level in my session object, but

Re: reloading a tree at a certain level of expension

2007-08-07 Thread Oleg Mikheev
Session A Mwamufiya wrote: I'm relaunching this thread in case an s:tree expert may have missed it the first time around :). Is there a way that when a s:tree is reloaded, it expends to a particular level of expansion? I presume that I will save that expansion level in my session object, but I

Ajax validation example on Apache Struts website

2007-08-07 Thread orshoe
Hi Can anyone please fix the example page at http://struts.apache.org/2.0.6/docs/ajax-validation.html I am having to implement ajax validation with Struts 2, and not only is there a lack of concrete resources on the web, the existing one - like the one above are either incomplete or do not provide

using xml validation for a jsp at the same time as action validateable

2007-08-07 Thread Session A Mwamufiya
Hi, I've been trying to not have my validation fire when I navigate to a form and populate it with data to be edited. Unfortunately, it still fires. To clarify, I'm using both xml validation and my action is validateable with a validate() method. I used the approach from the HelloWorld examp

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Ian Roughley
The validation and the related messages are on the domain objects and not the action, so they are separate. Then the action defines which domain object is validated via the visitor validation - there is also a prefix (not sure of the exact attribute off hand), which would ensure that coapp or

Access Form property from JSP

2007-08-07 Thread Oleg Konovalov
Hi, I would like to access a Struts [1.3] Form property from the JSP page via scriplet. Is there a simple way of doing that ? TIA, Oleg.

Struts 2 Validation multiple validators on same field

2007-08-07 Thread orshoe
Hi all, I am trying to enforce a "requiredstring" on a text field and also make sure it follows certain constraints. I am using the following in the -validation.xml: ---

Re: Ajax submit button executeScripts="true" evaluates javascript before DOM elements are defined

2007-08-07 Thread Oleg Mikheev
rrecoba wrote: i have an ajax submit button that replaces the div specified by the targets attribute with the result from an action, and the result returned by the action has some javascript to be executed that uses the document.getElementById(). I´ve read that this is a known issue (WW-1951)

Re: Ajax submit button executeScripts="true" evaluates javascript before DOM elements are defined

2007-08-07 Thread Oleg Mikheev
rrecoba wrote: i have an ajax submit button that replaces the div specified by the targets attribute with the result from an action, and the result returned by the action has some javascript to be executed that uses the document.getElementById(). I´ve read that this is a known issue (WW-1951)

using different icons for different types of elements in a tree

2007-08-07 Thread Session A Mwamufiya
Hi, I have an s:tree with category, question, and answer elements, and I'd like to differentiate them a bit by having a different icon for each type of element. Is there a way to specify which icon to use for an element of the tree? I know which function gets called to obtain the root element

Re: reloading a tree at a certain level of expension

2007-08-07 Thread Session A Mwamufiya
I'm relaunching this thread in case an s:tree expert may have missed it the first time around :). Thanks for any help, Session > Hi, > > Is there a way that when a s:tree is reloaded, it expends to a particular > level of expansion? I presume that I will save that expansion level in > my sess

Re: [S2] validation continue even if there is an error

2007-08-07 Thread Oleg Mikheev
nodep wrote: and it's wrong because there's a tag "field-validator" not closed. Struts2 doesn't stop the flow and go to my action: for me it's not logic, it should stop with some error and return to the prev page ... What do you think? We think that XML validity check is a task of DTD attac

Re: executeScript not working?

2007-08-07 Thread Oleg Mikheev
rrecoba wrote: Hi, The problem was that the js has some javascript to be executed that uses the document.getElementById(). ( known issue (WW-1951) ), that will be fixed in v2.1.0. Now i´m trying to find some workaround ¿any ideas? Define a function with your JS and execute it once page is loade

Re: [struts2]: maturity / production experience ?

2007-08-07 Thread Oleg Mikheev
sol myr wrote: 1. Have you used struts2 in production, and did you feel it was mature and stable? We used it. It's AJAX theme is not very mature, the rest is. If you know how to use DOJO manually - you're pretty safe. Oleg ---

Autocompleter search modification

2007-08-07 Thread King, Leon C
All, I've implemented the autocompleter for my project. For some autocompleters, my user would like the ability to enter a value and have the autocompleter display the name. IE. Enter a country code and the country autocompleter, and have the autocompleter 'refresh' with the count

RE: executeScript not working?

2007-08-07 Thread Manuel Correa
I have the same problem, how we fix this ?? we have to wait to 2.1 release ?? Manuel Correa. -Original Message- From: rrecoba [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 4:17 PM To: user@struts.apache.org Subject: Re: executeScript not working? Hi, The problem was that th

Autocompleter search modification

2007-08-07 Thread King, Leon C
All, I've implemented the autocompleter for my project. For some autocompleters, my user would like the ability to enter a value and have the autocompleter display the name. IE. Enter a country code and the country autocompleter, and have the autocompleter 'refresh' with the count

Re: executeScript not working?

2007-08-07 Thread rrecoba
Hi, The problem was that the js has some javascript to be executed that uses the document.getElementById(). ( known issue (WW-1951) ), that will be fixed in v2.1.0. Now i´m trying to find some workaround ¿any ideas? thanks. mihel wrote: > > rrecoba wrote: >> Hi, i´m trying to do something li

Ajax submit button executeScripts="true" evaluates javascript before DOM elements are defined

2007-08-07 Thread rrecoba
i have an ajax submit button that replaces the div specified by the targets attribute with the result from an action, and the result returned by the action has some javascript to be executed that uses the document.getElementById(). I´ve read that this is a known issue (WW-1951) that will be fixe

Problem with iterate tag

2007-08-07 Thread Suresh MKVS
Hi All, I am facing some problem with iterate tag. I am able to display data using iterate tag, but the i am not able to regenerate the list that is used in iterate tag. I am using the following code: JSP Code: Java Code : In Form: *private* ArrayList data = *new* A

Re: Struts 2 Dojo tld struts-dojo-tags issue for Ajax validation

2007-08-07 Thread Musachy Barroso
The dojo plugin will be available on version 2.1 which has not been released yet. To do ajax validation on the 2.0.x family you would have to use DWR. regards musachy On 8/7/07, orshoe <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to set up Struts 2 ajax-validation for my application, but the

Struts 2 Dojo tld struts-dojo-tags issue for Ajax validation

2007-08-07 Thread orshoe
Hi, I am trying to set up Struts 2 ajax-validation for my application, but the application is not finding the struts-dojo-tags tld. Can anyone tell me where I can find the tld jar, or if there is a dojo plugin for struts2 that is shipped separately from the core. I am using Struts 2.0.9, and Freem

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
Hi Ian, >From the documentation, VisitorFieldValidator seems interesting. Can you please provide some inputs on if/how we can use this for the following scenario : the domain object Name has properties firstname, lastname, initial etc. now, Name could be associated with a primaryapplicant or a

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Ian Roughley
And you can place them on the domain objects and use a visitor validator ;) Dave Newton wrote: --- j alex <[EMAIL PROTECTED]> wrote: My understanding is that the validators are tied to fields and not methods - right? They *can* be tied to the fields (in other words, every action metho

Re: struts1 or struts 2?

2007-08-07 Thread Frank W. Zammetti
Not just poor Italy... my experience has been that this isn't uncommon in the United States either, and anecdotally in other countries as well... in fact, I'm willing to say that S1 usage, and even 1.1 usage, is still the most common Struts usage world-wide. Dunno where it'll be a year from now of

Re: how to set global constants cross all of the scripts ?

2007-08-07 Thread john lee
would you mind giving me some example? tks in advance. john Paul Benedict <[EMAIL PROTECTED]> wrote: If you want to link to absolute URLs, perform a JSP include at the top of your pages. The included page should contain all the definitions you need. Alternatively, you can writ

Re: 2.09 and Tiles

2007-08-07 Thread Antonio Petrelli
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Downloading Commons Digester and Collections to get ClassDefNotFoundErrors > to go away for a starter. Uh you're right. Anyway here are the instructions for Tiles (without Struts): http://tiles.apache.org/getting_started.html Antonio ---

Re: struts1 or struts 2?

2007-08-07 Thread Piero Sartini
> - For a new project, which I would like to eventually move it to JSF? choose the technology (component based or action based) before choosing the framework. if you want to go for a component based approach like JSF then choose a framework like Apache Shale or JBoss Seam. Even VWP may be consi

Re: 2.09 and Tiles

2007-08-07 Thread stanlick
Downloading Commons Digester and Collections to get ClassDefNotFoundErrors to go away for a starter. On 8/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > What about the other trial & error steps? > > What are you referring to? > >

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
I am a struts newbie so take my thoughts for what they are ... a newbie grappling with a new way of doing things. Maybe (I hope!) an expert will show me the error of my ways. A simple example: I wanted to put all the user properties on a UserAction that is shared by my 'create user' and 'upda

Re: struts1 or struts 2?

2007-08-07 Thread Antonio Petrelli
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > - For the job market, which one is in higher demand? It depends on the nation, I suppose. In Italy, there are lots of requests for Struts 1 (in fact they still call it "Jakarta Struts", and Struts 1.1 is still in use, poor Italy :-) ) Antonio --

struts1 or struts 2?

2007-08-07 Thread ggb7
Hi, I am getting seriously involved with Struts and have 2 questions related to choosing either s1 or s2? - For a new project, which I would like to eventually move it to JSF? - For the job market, which one is in higher demand? thanks much! gaétan -

Re: 2.09 and Tiles

2007-08-07 Thread Antonio Petrelli
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > What about the other trial & error steps? What are you referring to? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to set global constants cross all of the scripts ?

2007-08-07 Thread Paul Benedict
If you want to link to absolute URLs, perform a JSP include at the top of your pages. The included page should contain all the definitions you need. Alternatively, you can write yourself a ContextListener to put attributes into application scope. If you want to link to other Struts actions, use th

Re: 2.09 and Tiles

2007-08-07 Thread stanlick
What about the other trial & error steps? On 8/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Can someone point me to the actual steps to add Tiles to the blank app > in > > the struts2-blank-2.0.9.war. I followed all the instructions I

Re: 2.09 and Tiles

2007-08-07 Thread Antonio Petrelli
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Can someone point me to the actual steps to add Tiles to the blank app in > the struts2-blank-2.0.9.war. I followed all the instructions I could find > between bouncing between S2 and T2 and ultimately had to download Commons > Digester and Collec

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Dave Newton
--- j alex <[EMAIL PROTECTED]> wrote: > My understanding is that the validators are tied to > fields and not methods - right? They *can* be tied to the fields (in other words, every action method) but you can specify validations based on the action name as well. d. ___

RE: div href dojo scripts

2007-08-07 Thread Manuel Correa
When I put that, the application freeze and do anything Manuel Correa. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 1:18 PM To: Struts Users Mailing List Subject: Re: div href dojo scripts set executeScripts = "true" on the div tag.

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
Thanks for your inputs. Kevin, can you please explain a bit more abt the "provide a new annotation to enable/disable particular validations for particular methods" -- are you saying that for certain actions (aka methods, i presume) you don't want the fields to be validated, but the validation nee

Re: div href dojo scripts

2007-08-07 Thread Musachy Barroso
set executeScripts = "true" on the div tag. musachy On 8/7/07, Manuel Correa <[EMAIL PROTECTED]> wrote: > Some knows why I cant write methods javascript using tabbedpanel, when I > write some div with references another page, for example: > > > > > >label="Home" /> > >

div href dojo scripts

2007-08-07 Thread Manuel Correa
Some knows why I cant write methods javascript using tabbedpanel, when I write some div with references another page, for example: The Javascript that are in the index.jsp and page1.jsp don't work, if I put the javascript outside, where is the t

Re: [S2] Error Message display

2007-08-07 Thread mraible
Here's what I've done: IMO, should detect when there's only one error and emit no tags. I've entered an issue in JIRA for this: https://issues.apache.org/struts/browse/WW-2090 On a related note, looking at the docs, it looks like you're required to use to specify the field name. Is this

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
I started with annotations and wild-carded actions and I very quickly ran into the problem of not all fields apply to every action. I briefly considered switching to xml validations but decided instead to stick with one method per action. I hated the duplicate code in the actions and in struts

Struts list regeneration problem

2007-08-07 Thread Suresh MKVS
Hi All, When i am submitting a page which holds a list of objects, this list is not getting populated in form object. In form object i am holding data as an arraylist of objects and I am populating a series of rows in JSP using struts nested:iterate tag over the array list. But when i am submitttin

2.09 and Tiles

2007-08-07 Thread stanlick
Can someone point me to the actual steps to add Tiles to the blank app in the struts2-blank-2.0.9.war. I followed all the instructions I could find between bouncing between S2 and T2 and ultimately had to download Commons Digester and Collections to get ClassDefNotFound errors to go away! I also

Re: LookandFeel

2007-08-07 Thread Richard Sayre
I asked this same question and got this answer: There are several threads on this topic. You need to set the "templateCssPath" to the url of the css file. You will have to take a look at the current css to know what you have to overwrite: http://svn.apache.org/viewvc/struts/struts2/branches/STRU

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Musachy Barroso
On my current project I started using annotations, but very soon my few actions were packed with them, to the point that I had more annotations that actual code in my actions :), so I went the xml way. musachy On 8/7/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Hi Joseph, > > I haven't used anno

Re: Problems migrating Roller to Struts 2.0.9

2007-08-07 Thread Dave
Thanks to Antonio and Elias, Roller is now working fine with Struts 2.0.9. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] validation continue even if there is an error

2007-08-07 Thread nodep
Hi, I wrote this xml-file for validation: << ... ... >> and it's wrong because there's a tag "field-validator" not closed. Struts2 doesn't stop the flow and go to my

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Jeromy Evans
Hi Joseph, I haven't used annotation validation since S2.0.6 so these issues may be a little dated. These are my experiences: 1. I tend to use wildcards in actions. In this situation, annotations applied to properties in an action are not appropriate as not all validations apply for each ac

LookandFeel

2007-08-07 Thread Manuel Correa
I need to change the lookandfeel of the tabbedpane component, I found the image that load is: /struts/dojo/src/widget/templates/images/tab_top_right.gif But, I want to know how make my own lookandfeel using this gadget. Manuel Correa.

how to set global constants cross all of the scripts ?

2007-08-07 Thread john lee
inside jsp/struts 1.3, how can i set global constants that i can make change one place, but can make all the corrspondent change cross all the files. for example, if i have script file 1.jsp, 2.jsp ..n.jsp, all the file contains any way i can set it as , then i change one

reloading a tree at a certain level of expension

2007-08-07 Thread Session A Mwamufiya
Hi, Is there a way that when a s:tree is reloaded, it expends to a particular level of expansion? I presume that I will save that expansion level in my session object, but I'm not sure how to get it or set the tree to it, or if it's even possible. Thanks, Session ---

Re: executeScript not working?

2007-08-07 Thread rrecoba
Yes it has, but when i use it, a "Undefined" message appears in the page inside the div. What i´m doing wrong? Thanks. mihel wrote: > > rrecoba wrote: >> Hi, i´m trying to do something like the example "A div that calls the >> server, >> and JS in the resulting page is executed" in the showca

change the colors of tagpanned

2007-08-07 Thread Manuel Correa
How how I change the color blue of the tabbedpane. Thanks. Manuel Correa.

Re: Handling Session Objects

2007-08-07 Thread Dave Newton
--- Sawan <[EMAIL PROTECTED]> wrote: >> Don't type it in / paste it when you test on the >> other machine. > Can you please explain me in detail. That what is > "\", What I don't type in "\", etc. ... "\", which I assume is a misspelling of "/" (the character I used) is used to separate two words

Re: Handling Session Objects

2007-08-07 Thread Sawan
>Don't type it in / paste it when you test on the other >machine. Can you please explain me in detail. That what is "\", What I don't type in "\", etc. Thanks and regards Sawan newton.dave wrote: > > --- Sawan <[EMAIL PROTECTED]> wrote: >> If the problem is due to addition of jsessionid then

Re: Handling exceptions in a custom result

2007-08-07 Thread Vinod Singh
To do have a similar behavior I have extended ServletDispatcherResult and overridden doExecute(...)- @Override public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception { try { // some operation } catch (Exception e) { su

Re: Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
It doesn´t works, the Result is executed after the Interceptors On 8/7/07, Thorsten Schäfer <[EMAIL PROTECTED]> wrote: > > > I need to do something like: > > > > public void execute(ActionInvocation invocation) throws > > Exception { > > try { > >// Some operations > >

S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
Hi, I am about to migrate a S1 app to S2 and need to decide which route to take regarding validations - XML or annotations? . Our app has a lot of custom validators involving rules dependent on multiple fields. Is there a specific benefit to using annotations vs XML ? Thanks, Joseph

RE: Handling exceptions in a custom result

2007-08-07 Thread Thorsten Schäfer
> I need to do something like: > > public void execute(ActionInvocation invocation) throws > Exception { > try { >// Some operations > } catch (Exception e) { >//Send user to a error page > } > } > > Any idea? You could write an intercepto

Re: Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
Thanks for reply Vinod, but my class is a Result not a action. public class CustomResult implements Result { public void execute(ActionInvocation invocation) throws Exception { try { // Some operations } catch (Exception e) { //Send user to a error page

Re: Handling exceptions in a custom result

2007-08-07 Thread Vinod Singh
Do something like below- path_to_error.jsp public void execute(ActionInvocation invocation) throws Exception { try { // Some operations } catch (Exception e) { //Send user to a error page return "error"; } } Vinod

Handling exceptions in a custom result

2007-08-07 Thread Juan Damasceno
I need to do something like: public void execute(ActionInvocation invocation) throws Exception { try { // Some operations } catch (Exception e) { //Send user to a error page } } Any idea?

Re: Handling Session Objects

2007-08-07 Thread Dave Newton
--- Sawan <[EMAIL PROTECTED]> wrote: > If the problem is due to addition of jsessionid then > I really wants to remove it from my url. Don't type it in / paste it when you test on the other machine. d.

[S2] Error Message display

2007-08-07 Thread Petzsch, Martin
Hi, Short of modifying the template for s:fielderror is there a way to retrieve just the text of the error message on a JSP? Even with the theme set to simple I get the following on my jsp: An Error Message What I want is just the message: An Error Message And then I am free to decorate it as

Extending ActionConfig in Struts2

2007-08-07 Thread Vinod Singh
Hi All, The Struts 1.x provides a facility to extend the ActionMapping by defining it in web.xml in following manner- mapping CustomActionMapping In Struts 2.x I don't see anyway to extend ActionConfig. The ActionConfig class is hard coded in addAction(...) method of c

[struts2]: maturity / production experience ?

2007-08-07 Thread sol myr
Hi, We've been using webwork, and naturally we're considering migration to struts2. However, we are slight concerned about maturity and "real-life production experience" of struts2 (Our company has very limited resources, and we can't afford the risk of using "experimental/beta versions