Re: How to add a pre-action

2002-10-21 Thread Dave Derry
In addition to Phil's advice, if I understand you correctly you are asking how you can differentiate two different behaviors in the same action class. When action is /mainscreen then ReportParameterAction should do one thing (or nothing) but when action is /report then ReportParameterAction should

Re: How to add a pre-action

2002-10-21 Thread Phil Steitz
validate=false scope=session input=/mainscreen.jsp /action bye, Mohan -Original Message- From: Phil Steitz [mailto:phil;steitz.com] Sent: Monday, October 21, 2002 10:45 AM To: Struts Users Mailing List Subject: Re: How to add a pre

RE: How to add a pre-action

2002-10-21 Thread Jeff_Mychasiw
(WebConstants.MAPPING_SUCCESS)); } } Chappell, Simon P [EMAIL PROTECTED] on 10/21/2002 09:42:56 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:RE: How to add a pre-action Remember

Re: How to add a pre-action

2002-10-21 Thread Phil Steitz
Mohan Radhakrishnan wrote: Hi, I am doing something similar but I have a doubt. I show selection parameters with the following action mapping. The html:form action for that is mainscreen.action. actionpath=/mainscreen type=com.hcl.smartmanage.web.action.ReportParameterAction

RE: How to add a pre-action

2002-10-21 Thread Mohan Radhakrishnan
Hi, input=/a/bookSearch.jsp Could you explain what this parameter means ? We have a similar requirement. bye, Mohan Here is a simple example showing one way to deal with this type of thing. There are no doubt lots of other ways to handle this. Use case: library search. User page

RE: How to add a pre-action

2002-10-21 Thread Mohan Radhakrishnan
Hi, I am doing just that. Hope it works. Thanks. bye, Mohan -Original Message- From: Dave Derry [mailto:dderry;acm.org] Sent: Monday, October 21, 2002 4:52 PM To: Struts Users Mailing List Subject: Re: How to add a pre-action In addition to Phil's advice, if I understand you

RE: How to add a pre-action

2002-10-21 Thread Howard Miller
], [EMAIL PROTECTED] cc: Subject:RE: How to add a pre-action Remember that the Struts example application, while it does work, is perhaps best considered as a bad example. If I ever get any free time, I'd love to re-write it with some of the best practices that are now being discovered

How to add a pre-action

2002-10-20 Thread Howard Miller
Hi, Can somebody kindly help me with the following... I want to add a path and an Action class. The action class will then preload data into a bean and then forward (do I mean forward) to the jsp that displays the bean. That's it. I want this action to be in *addition* to the *normal*

Re: How to add a pre-action

2002-10-20 Thread David M. Karr
Howard == Howard Miller [EMAIL PROTECTED] writes: Howard Hi, Howard Can somebody kindly help me with the following... Howard I want to add a path and an Action class. The action class will then preload data into Howard a bean and then forward (do I mean forward) to the jsp

Re: How to add a pre-action

2002-10-20 Thread Howard Miller
I think I'm seriously missing the point here! I have looked at the example application in some detail and it appears to add a parameter (eg, ?action=new) to tell the action for a form to perform an initialising action. I don't see it using a pre- action. I am incredibly stuck with the concept

Re: How to add a pre-action

2002-10-20 Thread Phil Steitz
Howard Miller wrote: I think I'm seriously missing the point here! I have looked at the example application in some detail and it appears to add a parameter (eg, ?action=new) to tell the action for a form to perform an initialising action. I don't see it using a pre- action. I am incredibly

Re: How to add a pre-action

2002-10-20 Thread Howard Miller
That helps a lot... just one question if you don't mind... can I check how you would forward from the prepareListBookAction to the bookSearch.jsp. I assume you are just using mapping.findForward( success ). That didn't work for me... which is really why I started thinking that I was doing

Re: How to add a pre-action

2002-10-20 Thread Phil Steitz
Howard Miller wrote: That helps a lot... just one question if you don't mind... can I check how you would forward from the prepareListBookAction to the bookSearch.jsp. I assume you are just using mapping.findForward( success ). That didn't work for me... which is really why I started thinking