You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sab <bh...@comcast.net> on 2005/02/06 03:40:19 UTC
No form elements in the jsp- ActionForm
I will have a jsp page which will get some results from database as a
list.
But now at present, I have a button which is on this button.
I would like to know what will the ActionForm subclass will be?
I wrote jsp, Actionclass which takes the hidden name of event when
button is passed and in actionclass in execute I have the eventname to
go to another page(another.do) .
How to go about this form?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: No form elements in the jsp- ActionForm
Posted by Sab <bh...@comcast.net>.
The results will be from database with read only.
How to forward from the button to next .do action?
I have jsp1 with button. Jsp2 has Action and Form class with a 2.do
defined with tiles to the jsp2 file.
What should I say in my jsp1? Or struts config?
-----Original Message-----
From: Wendy Smoak [mailto:java@wendysmoak.com]
Sent: Saturday, February 05, 2005 8:56 PM
To: Struts Users Mailing List
Subject: Re: No form elements in the jsp- ActionForm
From: "Sab" <bh...@comcast.net>
>I will have a jsp page which will get some results from database as a
>list. But now at present, I have a button which is on this button.
> I would like to know what will the ActionForm subclass will be?
> I wrote jsp, Actionclass which takes the hidden name of event when
> button is passed and in actionclass in execute I have the eventname to
> go to another page(another.do) .
Without Struts, what needs to happen? I think it's: the user goes to a
page, clicks a button and then sees a page with database results. (Are
the
results read-only or will the user be updating the database?)
It doesn't sound like you need a form for that first page with the
button.
Try it with a plain old <a href="..."> and see if that works.
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
How to forward to next pages?-help urgent
Posted by Sab <bh...@comcast.net>.
I have jsp1 with 2 buttons.(OneAction, OneForm) along with it. One.do
defined action.
I have defined in struts.config to forward to jsp1 with tiles
definition.
I have jsp2 with 2 buttons.(TwoAction, TwoForm defined with it.)Two.do
defined action.
I have defined in struts.config to forward to jsp2 with tiles
definition.
My question is: How to define forward in struts config for above two?
I have jsp3 with 2 buttons.(ThreeAction,ThreeForm). I have defined
Three.do for this.
One of the button here is taking me back to jsp1(One.do)
How do I do this?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: No form elements in the jsp- ActionForm
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Sab" <bh...@comcast.net>
>I will have a jsp page which will get some results from database as a
> list.
> But now at present, I have a button which is on this button.
> I would like to know what will the ActionForm subclass will be?
> I wrote jsp, Actionclass which takes the hidden name of event when
> button is passed and in actionclass in execute I have the eventname to
> go to another page(another.do) .
Without Struts, what needs to happen? I think it's: the user goes to a
page, clicks a button and then sees a page with database results. (Are the
results read-only or will the user be updating the database?)
It doesn't sound like you need a form for that first page with the button.
Try it with a plain old <a href="..."> and see if that works.
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org