Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
you are right, it now works. Thanks a lot for your help and patience Best, Session > I believe the correct spelling is redirect-action > > http://cwiki.apache.org/WW/action-configuration.html > > On 8/6/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: >> >> I get the following: Caused by:

Re: populating input fields on page load

2007-08-06 Thread Dave Newton
--- Session A Mwamufiya wrote: > I'm using struts 2.0.6, is redirectAction not > defined for it? I don't recall when the result type renaming happened, but I suspect post-2.0.6 so I'd try redirect-action. Giving the information about what the error actually was made it much, much easier to help.

Re: populating input fields on page load

2007-08-06 Thread Toni Lyytikäinen
I believe the correct spelling is redirect-action http://cwiki.apache.org/WW/action-configuration.html On 8/6/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > > I get the following: > Caused by: There is no result type defined for type 'redirectAction' > mapped with name 'createSMIG' - result

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
I get the following: Caused by: There is no result type defined for type 'redirectAction' mapped with name 'createSMIG' - result - file:/C:/jboss-4.2.1.GA/server/default/deploy/zen.server.war/WEB-INF/classes/edu/cmu/sei/smart/zen/server/smigmaintenance/smigmaintenance-config.xml:21:52 I'm using

Re: populating input fields on page load

2007-08-06 Thread Dave Newton
--- Session A Mwamufiya wrote: > I tried to follow this approach, but my server fails > in struts.xml, stating that there's an error in > building results for my first action. Does it say anything in particular about the error? d.

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
tText('smigDesc')}" /> > method="saveButtonPressed" /> >> >> Any ideas? >> >> Thanks, Session >> >> >> - To >> unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: populating input fields on page load

2007-08-06 Thread mleneveut
[EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/populating-input-fields-on-page-load-tf4223102.html#a12014964 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: populating input fields on page load

2007-08-06 Thread Toni Lyytikäinen
Does your class implement Preparable interface? Do you have the interceptor in your interceptor stack? Also, check the syntax of the preparable method - it should be void like this public class TestAction extends SomeClass implements Preparable { ... public void prepare() { log.debug("This should

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
Hi, could you give me an actual example, because I added a method called Prepare() in my class, but it never gets called. Here's my code: public String Prepare() { log.debug("Populating form fields if a SMIG was selected"); // ... return SUCCESS; } Nothing gets logged when the form is d

Re: populating input fields on page load

2007-08-06 Thread Nuwan Chandrasoma
Hi, Implement the prepare method in your action class and add the code in that method. Thanks, Nuwan Session A Mwamufiya wrote: Hi, I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, bu

populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
Hi, I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, but it is the result page from a different action (I click on a button in the previous action form, and this one gets called up). I put s