Re: Passing Parameters from Action to JSP's

2003-12-09 Thread Gurpreet Dhanoa
hi Sam IS your form associated with both of the Actions. - Original Message - From: "Samanth Athrey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 10:41 AM Subject: Passing Parameters from Action to JSP's > Hello All, > > I have a issue here. Any help w

Re: Passing Parameters from Action to JSP's

2003-12-09 Thread hgosper
You should use an ActionForm to store parameters. Your hidden fields can get the value from the request like this: <%-- hidden field (mode is one of "create", "edit", or "view") --%> Of course there are other ways to do it but once you have more than your two params you won't w

Re: Passing parameters between forms

2003-10-14 Thread Susan Bradeen
Hi Shyam, If you change to OR if you just add does it work? Susan Bradeen On 10/13/2003 08:27:41 PM Shyam A wrote: > Hi, > > I have a scenario where I need to pass parameters > between forms.i.e, I have two forms, Form A and Form B > with the same attribute "foo". The value of "foo" is

RE: Passing parameters between forms

2003-10-14 Thread Joe at Team345
Message- > From: Edgar P Dollin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 10:19 AM > To: 'Shyam A'; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: Passing parameters between forms > > > My preference is to emulate the session functio

RE: Passing parameters between forms

2003-10-14 Thread Edgar P Dollin
as well. I like this better because then you can run junit tests w/o worring about the container. Edgar > -Original Message- > From: Shyam A [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 8:39 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Su

RE: Passing parameters between forms

2003-10-14 Thread Shyam A
Carey, Thanks for your mail. I knew about the option you suggested and mentioned it in my mail. quote: I know I can save the "foo" attribute into session in Action A class and access it in Action B, or set the scope of Form A to session in struts-config and access Form A from Action B. unquote:

RE: Passing parameters between forms

2003-10-13 Thread Carey Nation
I have some vague memory (perhaps completely wrong) that the forms are stored wherever they are stored using the names that you specify in struts-config. It may not be the nicest way to do this, but I'm pretty sure that, given session scope on your forms, you can do something like (FormA)forma = s

RE: Passing Parameters Between Actions

2003-07-15 Thread Andrew Hill
uesday, 15 July 2003 22:31 To: [EMAIL PROTECTED] Subject: Re: Passing Parameters Between Actions Is there any reason you are forwarding from JSP? Try using Dispatcher in Action1 class like request.getRequestDispatcher("/Action2.do").forward(request, response); - jung Hunter Hillegas wro

Re: Passing Parameters Between Actions

2003-07-15 Thread Jung Yang
Is there any reason you are forwarding from JSP? Try using Dispatcher in Action1 class like request.getRequestDispatcher("/Action2.do").forward(request, response); - jung Hunter Hillegas wrote: I am trying to pass a parameter between two actions and running into trouble. I call action 1 like t

RE: Passing Parameters Between Actions

2003-07-08 Thread Mathew, Manoj
rameter names into the forward names. Hunter > From: "Mathew, Manoj" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Date: Mon, 7 Jul 2003 15:49:59 -0500 > To: "Struts Users Mailing List" <[EMAIL PROTEC

RE: Passing Parameters Between Actions

2003-07-07 Thread Alex Shneyderman
t;)); > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 7:32 PM > To: Struts List > Subject: Re: Passing Parameters Between Actions > > Won't this look for a forward with '?rec_num=map1' in the name of the >

Re: Passing Parameters Between Actions

2003-07-07 Thread Hunter Hillegas
mes. Hunter > From: "Mathew, Manoj" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Date: Mon, 7 Jul 2003 15:49:59 -0500 > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Subject: RE:

RE: Passing Parameters Between Actions

2003-07-07 Thread Mathew, Manoj
or u can use in action1: actionForward = mapping.findForward(FOR_WARD) + "?rec_num=map1"; -Original Message- From: Mathew, Manoj Sent: Monday, July 07, 2003 3:34 PM To: Struts Users Mailing List Subject: RE: Passing Parameters Between Actions path="/Action2.

RE: Passing Parameters Between Actions

2003-07-07 Thread Mathew, Manoj
path="/Action2.do?rec_num=map1" /> request.getParameter("rec_num"); can use logic:equal if you are forwarding to a JSP -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:03 PM To: Struts List Subject: Passing Parameters Between Actions I am

RE: passing parameters or object from one action to other

2003-06-05 Thread Andrew Hill
If you take a quick look through the archives you will see it has been discussed quite a bit not all that long ago. -Original Message- From: David Chelimsky [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 June 2003 20:59 To: Struts Users Mailing List Subject: Re: passing parameters or object

Re: passing parameters or object from one action to other

2003-06-05 Thread David Chelimsky
Isn't this just action chaining using HTTP instead of within the jvm? I'm not sure I get the reasons why action chaining is inherently a bad idea, though I do get that there are potential pitfalls if misused, but that's true of many patterns. Can you explain? Or point me to an article that expl

Réf. : RE: passing parameters or object from oneaction to other

2003-06-05 Thread meissa . Sakho
why do you say 'Action chains are bad'. Is there another solution then. Meissa "Andrew Hill" <[EMAIL PROTECTED]> 05/06/2003 13:28 Veuillez répondre à "Struts Users Mailing List" Pour : "Struts Users Mailing List" <[EMAIL PRO

RE: passing parameters or object from one action to other

2003-06-05 Thread Andrew Hill
(Oops. Hit send too soon. Try again!) You can put them in the request as attributes and use a non-redirecting forward *but* then you are 'action chaining'. (Action chains are bad. n'kay) The other alternative - suitable for string parameters - is to make them request parameters by appending to t

RE: passing parameters or object from one action to other

2003-06-05 Thread Andrew Hill
You can put them in the request as attributes and use a non-redirecting forward *but* then you are 'action chaining'. (Action chains are bad. n'kay) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 June 2003 19:25 To: [EMAIL PROTECTED] Subject: passin

RE: Passing parameters to Actions

2003-02-25 Thread Andrew Shirk
(406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Guido [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:32 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions I wonder if MyExtendedActionMapping is as simple as: public

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
Mailing List Subject: Re: Passing parameters to Actions Well, I'm sure it's a typo, but make sure the methods are called setXxx(String) and getXxx()..! :) Geeta Guido wrote: > I wonder if MyExtendedActionMapping is as simple as: > > public class MyExtendedActionMapping ex

Re: Passing parameters to Actions

2003-02-25 Thread Geeta Ramani
Well, I'm sure it's a typo, but make sure the methods are called setXxx(String) and getXxx()..! :) Geeta Guido wrote: > I wonder if MyExtendedActionMapping is as simple as: > > public class MyExtendedActionMapping extends ActionMapping { > private String xxx; > public void setXXX(

RE: Passing parameters to Actions

2003-02-25 Thread James Mitchell
ebruary 25, 2003 3:32 PM > To: Struts Users Mailing List > Subject: RE: Passing parameters to Actions > > > I wonder if MyExtendedActionMapping is as simple as: > > public class MyExtendedActionMapping extends ActionMapping { > private String xxx; >

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
Sent: Tuesday, February 25, 2003 1:32 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void setXXX(Strin

RE: Passing parameters to Actions

2003-02-25 Thread Guido
I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void setXXX(String xxx) { this.xxx = xxx; } public String getXXX() { return xxx; } } Should I implement any other method...? Thanks

Re: Passing parameters to Actions

2003-02-25 Thread Sloan Seaman
Very cool. Thanks!!! -- Sloan - Original Message - From: "Brandon Goodin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:06 PM Subject: RE: Passing parameters to Actions > It is done

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:56 PM To: Struts Users Mailing List Subject: Re: Passing parameters to Actions Ok. sounds like a plan. Question though: How do I access the information? Do I have to parse the XML or something? Sorry... I'm a bit new to Struts... -- S

Re: Passing parameters to Actions

2003-02-25 Thread Sloan Seaman
" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 2:40 PM Subject: RE: Passing parameters to Actions > Here is a config sample: > > parameter="submit" > type="com.foo.MyAction" > name="myF

RE: Passing parameters to Actions

2003-02-25 Thread Jarnot Voytek Contr AU HQ/SC
It may be easier for you to extend RequestProcessor and override processRoles(...) and perform your own authorization there. I started down that road, but didn't like the effect of return false from processRoles, so we always return true and do the real role checking in our base action class (mapp

RE: Passing parameters to Actions

2003-02-25 Thread Derek Richardson
ts Users Mailing List > Subject: RE: Passing parameters to Actions > > > parameter is only used for dispatch actions. If you want to > set properties > for an action... you can extend the ActionMapping class and use the > set-property in an action element while specifying the >

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
, February 25, 2003 12:33 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions parameter is only used for dispatch actions. If you want to set properties for an action... you can extend the ActionMapping class and use the set-property in an action element while specifying the

RE: Passing parameters to Actions

2003-02-25 Thread James Mitchell
Have looked at extending ActionConfig? You could add a field for assigning roles. If you wanted to allow more than one, it would let you do: The rest is really up to you. Just giving you some ideas. -- James Mitchell Software Engineer/Struts Evangelist > -O

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
parameter is only used for dispatch actions. If you want to set properties for an action... you can extend the ActionMapping class and use the set-property in an action element while specifying the className attribute of the action element. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefi

RE: Passing parameters with requestURI of tag

2003-01-09 Thread Susan Bradeen
n [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 09, 2003 3:30 PM > > To: Struts Users Mailing List > > Subject: RE: Passing parameters with requestURI of tag > > > > > > See Struts tag. It should make your life easier. > > Something > > like th

RE: Passing parameters with requestURI of tag

2003-01-09 Thread Jerome Jacobsen
Correction: need the paramId attribute too: > -Original Message- > From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 09, 2003 3:30 PM > To: Struts Users Mailing List > Subject: RE: Passing parameters with requestURI of tag > > > See

RE: Passing parameters with requestURI of tag

2003-01-09 Thread Jerome Jacobsen
See Struts tag. It should make your life easier. Something like this: However in the rewrite you'll need myField to be a scoped variable (bean). > -Original Message- > From: Susan Bradeen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 09, 2003 3:11 PM > To: [EMAIL PRO

RE: passing parameters

2002-09-11 Thread Craig Longman
On Wed, 2002-09-11 at 08:15, Galbreath, Mark wrote: > Go to www.amazon.com. > > Search for "books," "Mastering Jakarta Struts." > > Click "checkout." > > Purchase book. > > Read it, learn it, live it. thats great. thanks. -- CraigL->Thx(); Be Developer ID: 5852 signature.asc

RE: passing parameters

2002-09-11 Thread Galbreath, Mark
Go to www.amazon.com. Search for "books," "Mastering Jakarta Struts." Click "checkout." Purchase book. Read it, learn it, live it. Mark -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:58 AM To: struts-user Subject: passing param

Re: Passing parameters directly to Action Servlet

2002-05-01 Thread ajTreece
Yes I just didn't realize it was that simple. Later, ajTreece James Mitchell wrote: > If I'm not way off [again ;)] > > Are you wanting to do this? > > > > JM > > > > >>-Original Message- >>From: ajTreece [mailto:[EMAIL PROTECTED]] >>Sent: Wednesday, May 01, 2002 4:57 PM

RE: Passing parameters directly to Action Servlet

2002-05-01 Thread James Mitchell
If I'm not way off [again ;)] Are you wanting to do this? JM > -Original Message- > From: ajTreece [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 4:57 PM > To: Struts Users Mailing List > Subject: Passing parameters directly to Action Servlet > > > Is it possible... An

RE: Passing parameters directly to Action Servlet

2002-05-01 Thread Pedone, Tim
You can use the query string to pass parameters to your Action class: http://www.whatever.com/myapp/myaction.do?color=red Then use request.getParameter("color") to retrieve the query parameter in the Action class. In this case you are still using an Action class not Action Servlet. Don't confu

RE: Passing parameters

2002-04-19 Thread Frederico Schuh
You could also return a new ActionForward object passing the parameters you want. I don't think it works with mapping.findForward(). --- Leonardo Maciel <[EMAIL PROTECTED]> escreveu: > use a flag variable in the form > > -Original Message- > From: Bhaskar Gopalan > [mailto:[EMAIL PROTEC

RE: Passing parameters

2002-04-19 Thread Witbeck, Shane
you could do something like this in your action: String forwardPath = "/action/Blah?source=" + sourceValue; return new ActionForward(forwardPath, true); // which sets redirect=true OR return new ActionForward(forwardPath); // which is redirect=false Sincerely, Shane Witbeck

RE: Passing parameters

2002-04-19 Thread Leonardo Maciel
use a flag variable in the form -Original Message- From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 10:09 AM To: Struts Group (E-mail) Subject: Passing parameters Hi, I am going to a jsp(A) from two different jsps(B,C). Now, when I click 'save' on A I want

RE: passing parameters

2002-02-28 Thread Chris Means
Alternatively, I believe that the Action class supports a "parameter" attribute, which you could possibly use if the Action class doesn't use it itself. > -Original Message- > From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 8:27 AM > To: 'Struts Us

RE: Passing parameters when chaining actions

2001-07-27 Thread Fabien Modoux
nt: Friday, July 27, 2001 2:34 PM To: [EMAIL PROTECTED] Subject: Re: Passing parameters when chaining actions Hello Fabien, Friday, July 27, 2001, 8:02:28 PM, you wrote: FM> I would like to have an action pass parameters FM> to another actions using a forward action mapping. FM> The sec

Re: Passing parameters when chaining actions

2001-07-27 Thread Oleg V Alexeev
Hello Fabien, Friday, July 27, 2001, 8:02:28 PM, you wrote: FM> I would like to have an action pass parameters FM> to another actions using a forward action mapping. FM> The second action is configured with a form in FM> the request scope: FM> type="Action2Form"/> FM>

Re: passing parameters from a template to a sub-template

2001-05-15 Thread Cedric Dumoulin
There is an error in your code : try to remove the ending '/' in file '/template/index.jsp' line -^-- error Also, you can have a look to Components/Extended Templates proposal : it provides more features to deal with templates / sub-tem