Setting a cookie

2003-07-21 Thread bort
p", LoginForm.getPassword()); response.addCookie(cookie); cookie = new Cookie("g", LoginForm.getGroup()); response.addCookie(cookie); return mapping.findForward(forward); Any help would be appreciated, bort - To un

Re: Submitting a form

2003-11-03 Thread bort
I just realized that part of my post was cut out. Here is the post in its entirety: Hi all I have a form that has a series of fields. When I submit the form, the action retrieves information from a database, based on the information in the form. The information retrieved is then shown the sam

Re: Submitting a form

2003-11-03 Thread bort
Here is where I'm having a problem... will update a hidden field in the form, and submit the form to a different action. If this is possible, how would I do it? TIA "bort" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I just realized that part of my po

Re: Submitting a form

2003-11-03 Thread bort
ld look like this : > > linkClicked() { > document.forms[0].myHiddenField.value = 'something'; > document.forms[0].action = '/differentAction.do'; > document.forms[0].submit(); > } > > You could pass the "something" value int

Submitting a Struts Form from outside of it

2003-11-03 Thread bort
Hi How would I go about submitting a struts form from outside of it? I've tried using javascript's submit() function, but that doesn't seem to be supported by the struts form. Does anyone know how I could do this? TIA - To

ActionForm field not changing when forwarded to Action

2003-11-24 Thread bort
viour 2. Does anyone know why? TIA bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread bort
values from Form F. Thus, values are reset and populated) > > HTH > Manish Singla > > bort wrote: > > Hi all > > > > I have an application which exhibits two similar, yet distinct, behaviours. > > > > Behaviour 1: > > > > Submit Form F to Action

Displaying messages as a result of failure

2004-01-06 Thread bort
d. In the case of a "failure", I forward the user back to the same page. What I'd like to do now, however, is to print out a customized message on this page, explaining what the problem was. I realize that this is a rather simple question...

Re: Displaying messages as a result of failure

2004-01-07 Thread bort
my head so if the syntax is wrong opps... it > should be close). > > Rick Hightower > Developer > > Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm > > Struts/J2EE consulting -- > http://www.arc-mind.com/consulting.htm#StrutsMentoring > > > -Or

Passing a vector to a JSP from an Action

2004-03-04 Thread bort
g and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread bort
the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter("vectorname"); TIA bort "Geeta Ramani" <[EMAIL PROTECTED]> wrote i

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread bort
ad in question was more about nested beans and forms, i don't > think anyone would suggest putting readonly stuff in the session. > > > > On 4 Mar 2004, at 17:14, bort wrote: > > > > > A request parameter would probably be a better solution, you're right. > &g

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread bort
but memory usage is not the only > (or even main?) issue against using session variables.. It's more a question of > what makes sense. But you can just look up that thread for all the gory > details..;) > > Regards, > Geeta > > bort wrote: > > > A request

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread bort
I feel like an idiot asking this, but... within the tags how am I supposed to pull out the objects I have stored in my Vector? bort "Mark Lowe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Vector myvector = .. > > request.setAt

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread bort
; with a getter for the > property called "myproperty".. Is there something in particular you are having > a problem with..? > > Geeta > > bort wrote: > > > I feel like an idiot asking this, but... > > > > within the tags how am I supposed to pull &g

[OT] Getting the current page's file name

2004-03-10 Thread bort
know how to pick up the file name. I was thinking of using JavaScript's location.href, but I don't know how to access that value from java. Anyone have any ideas for a solution? tia bort - To unsubscribe, e-mail: [

Iterating through a Hashtable of Vectors

2004-03-19 Thread bort
able(); ht.put ("key", a); ht.put ("anotherkey", b); request.setAttribute("attrkey", ht); What I want to be able to do is iterate through this Hashtable (in the JSP), pull out a Vector, and iterate through it. How would I do this? tia bort ---

Re: Iterating through a Hashtable of Vectors

2004-03-19 Thread bort
ially, what I want is: for each account number in ACCVEC { display the account number attempt to retrieve a value from the Hashtable for this account number if there is a INVVEC { for each invoice number in INNVEC { create a select drop down box } } }