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
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
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:
>
>
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
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
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
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]
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
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
>
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
>
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
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
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
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]
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
15 matches
Mail list logo