Re: Passing request objects - Struts 1

2011-01-05 Thread Dave Newton
The first one: don't call a different action to get the options--get the options in the same action that handles the original request. The second one: read something about ajax; any tutorial discusses how to deal with what you get back. Dave On Jan 5, 2011 12:14 AM, "Anjib" wrote: > > Sorry I di

Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
Sorry I didn't get the first one. Can you please elaborate for me? For second option I didn't find the way to pass result to view especially Sturts tag. Anjib On 1/4/2011 7:47 PM, Dave Newton wrote: Don't make a separate request? I mean, why wouldn't you just use the same service inside t

Re: Passing request objects - Struts 1

2011-01-04 Thread Dave Newton
Don't make a separate request? I mean, why wouldn't you just use the same service inside the action you're actually calling? Either that, or do the Ajax call, and use normal Ajax response handling mechanisms (HTML, JSON, whatever) you want. Dave On Tue, Jan 4, 2011 at 7:29 PM, Anjib wrote: > >

Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
How can I achieve this with only using Struts then? On 1/4/2011 7:20 PM, Dave Newton wrote: The ajax post is an entirely separate request. Dave On Jan 4, 2011 5:38 PM, "Anjib Mulepati" wrote: struts 1.3.8 1. I try to use JSTL but when i include jstl reference it doesn't let me in saying it

Re: Passing request objects - Struts 1

2011-01-04 Thread Dave Newton
The ajax post is an entirely separate request. Dave On Jan 4, 2011 5:38 PM, "Anjib Mulepati" wrote: > struts 1.3.8 > 1. I try to use JSTL but when i include jstl reference it doesn't let me > in saying it version conflict wih web.xml. > My web.xml has > http://java.sun.com/xml/ns/javaee"; > xmlns

Passing request objects - Struts 1

2011-01-04 Thread Anjib Mulepati
struts 1.3.8 1. I try to use JSTL but when i include jstl reference it doesn't let me in saying it version conflict wih web.xml. My web.xml has http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http

Re: Request objects

2005-02-22 Thread Lee Harrington
Thanks to all who helped. I resorted to using a session variable as I wanted to save an object. Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Request objects

2005-02-22 Thread Andre Van Klaveren
Yes, I believe Hubert has the answer. If you don't store the value of the bean ("test value") in at least a hidden field on your form, it won't be sent back to your metricCRUD.do Action. You effectively lose it when the user clicks the submit button. Try putting a hidden field in your form, name

Re: Request objects

2005-02-22 Thread Hubert Rabago
For the most part you can only store string values. As far as your Action objects are concerned, they behave the way other form fields do. Hubert On Tue, 22 Feb 2005 14:39:56 -0600, Lee Harrington <[EMAIL PROTECTED]> wrote: > > When you hit submit, that generates a *new* request, and therefore >

Re: Request objects

2005-02-22 Thread Hubert Rabago
See my response for the reason. :) - Hubert On Tue, 22 Feb 2005 14:37:21 -0600, Lee Harrington <[EMAIL PROTECTED]> wrote: > Thanks for the help. I'm still stumped. > > > Why is the request variables I displayed in my jsp...not being sent to > my process form method? > > Lee >

Re: Request objects

2005-02-22 Thread Lee Harrington
Thanks for the help. I'm still stumped. When I call my "display form" action it has the following: request.setAttribute("test","test value"); it forwards to a jspthe jsp correctly displays the value with this code: Test: All is good. The jsp has a form wi

Re: Request objects

2005-02-22 Thread Andre Van Klaveren
To answer your first question, redirect="false" will forward your request to a servlet/jsp/Action while preserving the request object. Setting redirect="true" tells Struts to send an HTTP redirect to the client which of course would terminate the current request therefore destroying any objects in

Re: Request objects

2005-02-22 Thread Hubert Rabago
If your goal is to retain a value from the time you prepare it in an action, through to the JSP that's displayed, and all the way through till the user submits the form on the JSP, simply using redirect=false wouldn't be enough. You'd want to either place the value in a hidden field to be submitte

Re: Request objects

2005-02-22 Thread Jeff Beal
false Lee Harrington wrote: Which is the way to forward that preserves the request object? Is it redirect="true" or redirect="false". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Request objects

2005-02-22 Thread Lee Harrington
Which is the way to forward that preserves the request object? Is it redirect="true" or redirect="false". I'm having trouble setting a request variable on display of an edit screenthat is available for the process form action when I hit the form submit. I'm trying to use the hibernate featu