RE: chaining actions i think!!

2005-10-05 Thread faisal.shoukat
Thanks! As Frank sayes if I can use the action as a normal class then I am comfortable with writing a method to or using the execute method. If I use the execute method what would I pass in as my action mapping?? For the actionForm I can pass my form which I hold in the session. -Origin

RE: encoding the session

2005-10-05 Thread faisal.shoukat
yes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 October 2005 13:47 To: Struts Users Mailing List Cc: user@struts.apache.org Subject: Re: encoding the session are you using struts framework <[EMAIL PROTECTED]> 05/10/2005 18:12 Please respond to "Strut

encoding the session

2005-10-05 Thread faisal.shoukat
Hi, Can anyone advise on how to encode the session Id so that a user cannot just type in the URL and get to the jsp? For example my user can create a client form creatClient.jsp but can also go straight to the editClient.jsp by adding it to the URl and I want to stop this Thanks -

RE: chaining actions i think!!

2005-10-05 Thread faisal.shoukat
Maybe it is because I am new to struts but I don't see the benefit of writing one action class to handle a lot of mappings. For maintainablitity and the way my application is written I have multiple action classes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent

chaining actions i think!!

2005-10-05 Thread faisal.shoukat
Hi, Is there a way that I can call another action from within a action class. Is it as simple as just calling the execute method of the other action or another method of the action class as is required.? My scenario is as follows: A user searches on a client and is returned a number of results

RE: reset form in session scope

2005-09-30 Thread faisal.shoukat
To do it the way you have shown then I would have to have a reset button/link next to the edit/delete link at the bottom of the page. Is that right? -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: 30 September 2005 15:52 To: Struts Users Mailing List Subject: Re: r

RE: reset form in session scope

2005-09-30 Thread faisal.shoukat
The reset button seems to work fine before I do a search. Once I have returned some results the reset button does not seem to do anything -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 30 September 2005 15:42 To: user@struts.apache.org; [EMAIL PROTECTED] Subje

RE: reset form in session scope

2005-09-30 Thread faisal.shoukat
The reset button from the search form does not go to the actionclientaction class. Maybe I have explained it badly. My jsp has some search fields and the user enters criteria into these then clicks submit. This returns a table of results further down the page with checkboxes associated with each

reset form in session scope

2005-09-30 Thread faisal.shoukat
Hi, I have a search.jsp which contains two forms search form and a action form. The search form submits all the search criteria to the action class which queries the DB then returns a result. The action form then decides which action to do with what result. The problem I have is how do I re

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
Yes, the flow is like this: My struts config has this action for the search page: This sends the actionclientForm to the actionclientaction class. This class goes to the db gets the information then forwards to editClient.jsp which has the action mapped: > > >

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
Again doing this I think will throw a class cast exception. localvariable = (CreateClientForm)form I already have the form beans elements in my config.xml -Original Message- From: Vijaya S [mailto:[EMAIL PROTECTED] Sent: 29 September 2005 10:49 To: Struts Users Mailing List Subject: RE:

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
I cannot do the following CreateClientForm updateForm = (CreateClientForm)actionForm; Because the action is called from a search page and has a different form coming in. Thus when I try to reassign it I get a class cast exception. I also tried the first way you mentioned, but that did not pop

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
Do this in your action: CreateClientForm updateForm = new CreateClientForm(); // populate the bean here // then form = updateForm; When you say form = updateForm; what is my variable form of type? -Original Message- From: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]

prepopulating jsp page

2005-09-29 Thread faisal.shoukat
Hi, I am trying to pre-populate my JSP page with the values returned from the database when a user edits a client. I have just recently upgraded to Struts download 1.2.4. This is what I did before which worked: In my action class I created the form then populated it with the values from t

using html:option tag

2005-09-27 Thread faisal.shoukat
Hi All, I am using the html option tag embedded within the html select tag to select a value from a drop down list as follows: Mr Mrs This works fine and I can save the correct value to the database. The question I have is how do I display the same option

RE: Sending value from popup to parent window

2005-06-13 Thread faisal.shoukat
Has anybody any advice on this at all...? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 13 June 2005 11:33 To: user@struts.apache.org Subject: Sending value from popup to parent window Hi, I am a bit stuck on implementing the following so all help is a

Sending value from popup to parent window

2005-06-13 Thread faisal.shoukat
Hi, I am a bit stuck on implementing the following so all help is appreciated. I open up a search page as a pop up window. The user implements the search options and is returned a number of rows. The user then selects one of these rows using a check box which I have defined as a multibox in my

RE: using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
The href="javascript:document.{Form Name}.submit();" will allow me to submit the form but how would I send the request parameter through which the forward allows me to send. Eg: for this particular link I am also sending action=edit as a request param Thanks -Original Message- Fr

RE: using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
Would I use the href tag in addition to using the forward tag within the link? -Original Message- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:16 To: 'Struts Users Mailing List' Subject: RE: using html link to submit form and params If set your href

using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
I have a search page which allows the user to perform multiple actions. i.e The user can select a returned row and then he can edit or delete via a link. However if I use the following link tag in my jsp: This is encompassed within a form tag. The struts config has the following: and:

RE: Html:muttibox tag help

2005-05-11 Thread Faisal.Shoukat
I tried the below and the value of String [] resourceIds in my action form is still null. I have looked through many examples on using the multibox and just cannot see as to why the resourceIds array is not being populated. Help! -Original Message- From: Rafael Taboada [mailto:[EMAIL PRO

RE: Html:muttibox tag help

2005-05-10 Thread Faisal.Shoukat
Can u specify a bit further please. I thought I had already specified the object by the property value in the tag as below. Where resourceIds is the field in the actionclient form and the value to write to this object is the resourceId of the clientVO. -Original Message- From: Rafael

Html:muttibox tag help

2005-05-10 Thread Faisal.Shoukat
Hi, I need some help with the html:multibox tag. I have the following situation where I do a search for some clients and the search.jsp displays displays a number of rows each with a checkbox associated with it. The user can then click one or many checkboxes and click submit. The submit passe