I have a jsp with 2 buttons. (Update and Cancel buttons.)
When 1 is clicked I want to check which button is clicked. If Update is
clicked I want to forward to another jsp.
How do we write generally to submit button on jsp page, and what we
write in Action class's execute method?
Appreciate your rep
MyCart mycart = new MyCart(...);
request.setAttribute("cart", mycart);
is immediately visible to a JSP page which this servlet forwards to,
using a standard action tag like this:
I have 2 layers
One.jsp uses this mycart object and gets this object.
This page links to another jsp say- two.js
I have the user enter the date in string format. I want to convert it to
Date object. How do I do it?
Also, please let me know if I use Date from util or Date from sql here?
I have Hibernate database methods which will put date object in it.
-
Why are you trying to use page scope?
I guess it will work for session
-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 12:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Tiles scope headache assistance still needed.
The problem is that
Definetly struts config has not been set up properly. Or check your
build you may be using.
Hope this helps
-Original Message-
From: Soaring Eagle [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 2:32 PM
To: user@struts.apache.org
Subject: Class not found error when action servl
Check your xmlparser jar files you are using in your path.
-Original Message-
From: Soaring Eagle [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 1:53 PM
To: user@struts.apache.org
Subject: newbie question
Hello,
I am trying to write my first Struts application. I keep gettin
1>How to create a jsp page in struts with it's mappings in config, if it
has 1 button and no fields.
When user clicks on button it will go to another webpage or action
defined.
2>It's going to be a jsp page which brings in rows of data with checkbox
added to it's front.
--
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 acti
Smoak [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 05, 2005 8:56 PM
To: Struts Users Mailing List
Subject: Re: No form elements in the jsp- ActionForm
From: "Sab" <[EMAIL PROTECTED]>
>I will have a jsp page which will get some results from database as a
>list. But
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
How to show a basic struts text box and a checkbox?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have one action defined in struts config file .
Name="itemsearchForm"
Scope="session"
type="com.my.ItemSearchAction">
I have defined in global forward the
I have a tiles definition which takes me to
Itemsearch.jsp
This jsp has 2 buttons.-Export and Cancel.
When I click on Export it tak
12 matches
Mail list logo