Re: Action without FormBean

2003-02-26 Thread David Graham
html:form must have a form bean.  Form beans are the framework's way of 
dealing with forms.

David



From: Chen, Gin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Action without FormBean
Date: Wed, 26 Feb 2003 13:05:29 -0500
I set up the following:

action path=/myAction type=com.ui.action.MyAction
parameter=userAction/
//myJsp.jsp

html:form action=/myAction
/html:form
Thats it nothing in between the form tags and I get exception can not 
access
formbean null.

Well I dont want a formbean.
Is this not a legal form?
I do this all the time from anchor hrefs but this is the first time I've
tried it in html:form style.
I can't find anywhere in the docs that says that a html:form MUST have a
related formbean.
Is this just an implied rule?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action without FormBean

2003-02-26 Thread Sri Sankaran
Yes, you *must* have a name attribute if you are going to use an html:form.

Here's a snippet from the docs for html:form

If the name and type attributes are not specified, then the form bean will be located, 
and created if necessary, based on the form bean specification for the associated 
ActionMapping

By the way, this is the default operation since name and type are deprecated.

Sri

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 1:05 PM
To: 'Struts Users Mailing List'
Subject: Action without FormBean


I set up the following:

action path=/myAction type=com.ui.action.MyAction parameter=userAction/

//myJsp.jsp

html:form action=/myAction
/html:form

Thats it nothing in between the form tags and I get exception can not access formbean 
null.

Well I dont want a formbean.
Is this not a legal form?

I do this all the time from anchor hrefs but this is the first time I've tried it in 
html:form style. I can't find anywhere in the docs that says that a html:form MUST 
have a related formbean. Is this just an implied rule?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Jarnot Voytek Contr AU HQ/SC
If you don't want a form bean, why are you a) submitting to an action b) not
using form ... instead of html:form ...?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 To: 'Struts Users Mailing List'
 Subject: Action without FormBean
 
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get exception 
 can not access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Thanks David.
That's what I figured.
Unfortunately it just seems like an unnecessary step sometimes.
For example I have a collection that is returned to me and I show it as such

x   [View] [Delete]
x   [View] [Delete]
x   [View] [Delete]
x   [View] [Delete]

To set this up using struts i have to make a form bean that is simply a
container for my collection
Cant do this with dynaform cause it doesnt handle collections :[
Is there a better way to do this?
Or should I just break away from struts for this?
-Tim

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Action without FormBean


html:form must have a form bean.  Form beans are the framework's way of 
dealing with forms.

David



From: Chen, Gin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Action without FormBean
Date: Wed, 26 Feb 2003 13:05:29 -0500

I set up the following:

action path=/myAction type=com.ui.action.MyAction
parameter=userAction/

//myJsp.jsp

html:form action=/myAction
/html:form

Thats it nothing in between the form tags and I get exception can not 
access
formbean null.

Well I dont want a formbean.
Is this not a legal form?

I do this all the time from anchor hrefs but this is the first time I've
tried it in html:form style.
I can't find anywhere in the docs that says that a html:form MUST have a
related formbean.
Is this just an implied rule?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread James Mitchell
So your [View] and [Delete] are submit buttons?

Why can't you use links within an iterator?



--
James Mitchell
Software Engineer/Struts Evangelist




 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 13:24
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Thanks David.
 That's what I figured.
 Unfortunately it just seems like an unnecessary step sometimes.
 For example I have a collection that is returned to me and I 
 show it as such
 
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 
 To set this up using struts i have to make a form bean that 
 is simply a
 container for my collection
 Cant do this with dynaform cause it doesnt handle collections :[
 Is there a better way to do this?
 Or should I just break away from struts for this?
 -Tim
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Action without FormBean
 
 
 html:form must have a form bean.  Form beans are the 
 framework's way of 
 dealing with forms.
 
 David
 
 
 
 From: Chen, Gin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: Action without FormBean
 Date: Wed, 26 Feb 2003 13:05:29 -0500
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get 
 exception can not 
 access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Chen, Gin
I could but I use a regular form but I want to stay within the struts
constraints.
As for why I need to submit to an action, it's explained in my post.
A collegue once suggested using an html:image with an image that looks like
a button but its more trouble to set up an image that to just do the wrapper
formbean. (especially since i'm not a graphics guy :P)
-Tim

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:17 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


If you don't want a form bean, why are you a) submitting to an action b) not
using form ... instead of html:form ...?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 To: 'Struts Users Mailing List'
 Subject: Action without FormBean
 
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get exception 
 can not access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Jarnot Voytek Contr AU HQ/SC
I do that all the time, my results (rows) reside in a collection in request
scope.  The form bean simply contains enough attributes to uniquely identify
a particular row, when the user click 'View' or 'Delete', I use JavaScript
to populate the hidden form fields with values representing the selected row
and do a submit().  I'm sure there are other ways, but we found this easier
than making each row a form...

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:24 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Thanks David.
 That's what I figured.
 Unfortunately it just seems like an unnecessary step sometimes.
 For example I have a collection that is returned to me and I 
 show it as such
 
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 
 To set this up using struts i have to make a form bean that 
 is simply a
 container for my collection
 Cant do this with dynaform cause it doesnt handle collections :[
 Is there a better way to do this?
 Or should I just break away from struts for this?
 -Tim
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Action without FormBean
 
 
 html:form must have a form bean.  Form beans are the 
 framework's way of 
 dealing with forms.
 
 David
 
 
 
 From: Chen, Gin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: Action without FormBean
 Date: Wed, 26 Feb 2003 13:05:29 -0500
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get 
 exception can not 
 access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Ooh sorry you misunderstood me.
Each line is not a form. There is a formbean that holds a collection and
nothing else.
That is the formbean associated with the form:

html:form action=/myAction
logic:iterate ...
...blah...
/logic:iterate
/html:form

-Tim

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:36 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


I do that all the time, my results (rows) reside in a collection in request
scope.  The form bean simply contains enough attributes to uniquely identify
a particular row, when the user click 'View' or 'Delete', I use JavaScript
to populate the hidden form fields with values representing the selected row
and do a submit().  I'm sure there are other ways, but we found this easier
than making each row a form...

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:24 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Thanks David.
 That's what I figured.
 Unfortunately it just seems like an unnecessary step sometimes.
 For example I have a collection that is returned to me and I 
 show it as such
 
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 
 To set this up using struts i have to make a form bean that 
 is simply a
 container for my collection
 Cant do this with dynaform cause it doesnt handle collections :[
 Is there a better way to do this?
 Or should I just break away from struts for this?
 -Tim
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Action without FormBean
 
 
 html:form must have a form bean.  Form beans are the 
 framework's way of 
 dealing with forms.
 
 David
 
 
 
 From: Chen, Gin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: Action without FormBean
 Date: Wed, 26 Feb 2003 13:05:29 -0500
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get 
 exception can not 
 access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Hi James,
I did use links before. But they want to see buttons instead of href
links.
D*mn users. ;P
-Tim

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:34 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


So your [View] and [Delete] are submit buttons?

Why can't you use links within an iterator?



--
James Mitchell
Software Engineer/Struts Evangelist




 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 13:24
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Thanks David.
 That's what I figured.
 Unfortunately it just seems like an unnecessary step sometimes.
 For example I have a collection that is returned to me and I 
 show it as such
 
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 x   [View] [Delete]
 
 To set this up using struts i have to make a form bean that 
 is simply a
 container for my collection
 Cant do this with dynaform cause it doesnt handle collections :[
 Is there a better way to do this?
 Or should I just break away from struts for this?
 -Tim
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Action without FormBean
 
 
 html:form must have a form bean.  Form beans are the 
 framework's way of 
 dealing with forms.
 
 David
 
 
 
 From: Chen, Gin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: Action without FormBean
 Date: Wed, 26 Feb 2003 13:05:29 -0500
 
 I set up the following:
 
 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/
 
 //myJsp.jsp
 
 html:form action=/myAction
 /html:form
 
 Thats it nothing in between the form tags and I get 
 exception can not 
 access
 formbean null.
 
 Well I dont want a formbean.
 Is this not a legal form?
 
 I do this all the time from anchor hrefs but this is the 
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form 
 MUST have a
 related formbean.
 Is this just an implied rule?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread David Graham
IMHO, using graphics for buttons is usually a bad idea.  Users are used to 
seeing a normal button so they can visually find it faster.  Also, I have 
more confidence in a site that uses normal submit buttons rather than 
graphics.  With CSS capabilities you can customize submit buttons' look 
without using graphics.

David



From: Chen, Gin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Action without FormBean
Date: Wed, 26 Feb 2003 13:36:20 -0500
I could but I use a regular form but I want to stay within the struts
constraints.
As for why I need to submit to an action, it's explained in my post.
A collegue once suggested using an html:image with an image that looks like
a button but its more trouble to set up an image that to just do the 
wrapper
formbean. (especially since i'm not a graphics guy :P)
-Tim

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:17 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean
If you don't want a form bean, why are you a) submitting to an action b) 
not
using form ... instead of html:form ...?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.
 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 To: 'Struts Users Mailing List'
 Subject: Action without FormBean


 I set up the following:

 action path=/myAction type=com.ui.action.MyAction
 parameter=userAction/

 //myJsp.jsp

 html:form action=/myAction
 /html:form

 Thats it nothing in between the form tags and I get exception
 can not access
 formbean null.

 Well I dont want a formbean.
 Is this not a legal form?

 I do this all the time from anchor hrefs but this is the
 first time I've
 tried it in html:form style.
 I can't find anywhere in the docs that says that a html:form
 MUST have a
 related formbean.
 Is this just an implied rule?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action without FormBean

2003-02-26 Thread James Mitchell
Ok, assuming the number of rows are not known, how do you plan to deal
with:
1. Which id they picked
2. Whether they hit edit or delete for the id they picked

This can be easily accomplished with a little JavaScript, but I'm not
sure if you want to (or can) go that route.


--
James Mitchell
Software Engineer/Struts Evangelist




 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 13:49
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Hi James,
   I did use links before. But they want to see buttons 
 instead of href
 links.
 D*mn users. ;P
 -Tim
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 So your [View] and [Delete] are submit buttons?
 
 Why can't you use links within an iterator?
 
 
 
 --
 James Mitchell
 Software Engineer/Struts Evangelist
 
 
 
 
  -Original Message-
  From: Chen, Gin [mailto:[EMAIL PROTECTED] 
  Sent: mercredi 26 février 2003 13:24
  To: 'Struts Users Mailing List'
  Subject: RE: Action without FormBean
  
  
  Thanks David.
  That's what I figured.
  Unfortunately it just seems like an unnecessary step sometimes.
  For example I have a collection that is returned to me and I 
  show it as such
  
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  
  To set this up using struts i have to make a form bean that 
  is simply a
  container for my collection
  Cant do this with dynaform cause it doesnt handle collections :[
  Is there a better way to do this?
  Or should I just break away from struts for this?
  -Tim
  
  -Original Message-
  From: David Graham [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:13 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Action without FormBean
  
  
  html:form must have a form bean.  Form beans are the 
  framework's way of 
  dealing with forms.
  
  David
  
  
  
  From: Chen, Gin [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
  [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: Action without FormBean
  Date: Wed, 26 Feb 2003 13:05:29 -0500
  
  I set up the following:
  
  action path=/myAction type=com.ui.action.MyAction
  parameter=userAction/
  
  //myJsp.jsp
  
  html:form action=/myAction
  /html:form
  
  Thats it nothing in between the form tags and I get 
  exception can not 
  access
  formbean null.
  
  Well I dont want a formbean.
  Is this not a legal form?
  
  I do this all the time from anchor hrefs but this is the 
  first time I've
  tried it in html:form style.
  I can't find anywhere in the docs that says that a html:form 
  MUST have a
  related formbean.
  Is this just an implied rule?
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  _
  Tired of spam? Get advanced junk mail protection with MSN 8. 
  http://join.msn.com/?page=features/junkmail
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Piper, James D CECOM SEC EPS
I don't know if it helps but I have used collections not in a form in order
to make a table similar to the one you show below:

I Put the object containing the collection (i.e. an ArrayList) in the
session scope then have the jsp use the nested:iterate tag to show each item
of the collection as a row in a table.  Use nested:link to make the [view]
and [delete] activate what you need for that row.  Doing it this way the jsp
has no form tags on it at all:

JSP---SNIP---
table
nested:root name=Query
nested:iterate property=queryResults
row:row oddStyleClass=TableRowOdd evenStyleClass=TableRowEven
  tdnested:link page=/showCatalog.do
property=ParameterMapnested:write property=RECID //nested:link/td
  tdnested:write property=NAME //td
  nested:match property=INSTOCK value=Y
tdnested:link page=/showMerchandiseOnline.do
paramId=merchandise paramProperty=RECIDView/nested:link/td
  /nested:match
  nested:match property=INSTOCK value=N
tdNot Available/td
  /nested:match
/row:row
/nested:iterate
/nested:root
  /table
---SNIP---

The struts.config action definition then doesn't need any form stuff either:

action  
 path=/showMerchandiseOnline
 type=com.scro.controller.showMerchandiseOnlineAction
 forward name=view_failed path=/fail.html/
/action

- Jim Piper 

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


Thanks David.
That's what I figured.
Unfortunately it just seems like an unnecessary step sometimes.
For example I have a collection that is returned to me and I show it as such

x   [View] [Delete]
x   [View] [Delete]
x   [View] [Delete]
x   [View] [Delete]

To set this up using struts i have to make a form bean that is simply a
container for my collection
Cant do this with dynaform cause it doesnt handle collections :[
Is there a better way to do this?
Or should I just break away from struts for this?
-Tim

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Action without FormBean


html:form must have a form bean.  Form beans are the framework's way of 
dealing with forms.

David



From: Chen, Gin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Action without FormBean
Date: Wed, 26 Feb 2003 13:05:29 -0500

I set up the following:

action path=/myAction type=com.ui.action.MyAction
parameter=userAction/

//myJsp.jsp

html:form action=/myAction
/html:form

Thats it nothing in between the form tags and I get exception can not 
access
formbean null.

Well I dont want a formbean.
Is this not a legal form?

I do this all the time from anchor hrefs but this is the first time I've
tried it in html:form style.
I can't find anywhere in the docs that says that a html:form MUST have a
related formbean.
Is this just an implied rule?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Yea JavaScript is the only way to go right now.
I invoke a javascript function to populate hidden fields during the onclick.
If you have a better id (other than going away from struts for this page
:-/) plz let me know.
-Tim

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


Ok, assuming the number of rows are not known, how do you plan to deal
with:
1. Which id they picked
2. Whether they hit edit or delete for the id they picked

This can be easily accomplished with a little JavaScript, but I'm not
sure if you want to (or can) go that route.


--
James Mitchell
Software Engineer/Struts Evangelist




 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 13:49
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Hi James,
   I did use links before. But they want to see buttons 
 instead of href
 links.
 D*mn users. ;P
 -Tim
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 So your [View] and [Delete] are submit buttons?
 
 Why can't you use links within an iterator?
 
 
 
 --
 James Mitchell
 Software Engineer/Struts Evangelist
 
 
 
 
  -Original Message-
  From: Chen, Gin [mailto:[EMAIL PROTECTED] 
  Sent: mercredi 26 février 2003 13:24
  To: 'Struts Users Mailing List'
  Subject: RE: Action without FormBean
  
  
  Thanks David.
  That's what I figured.
  Unfortunately it just seems like an unnecessary step sometimes.
  For example I have a collection that is returned to me and I 
  show it as such
  
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  
  To set this up using struts i have to make a form bean that 
  is simply a
  container for my collection
  Cant do this with dynaform cause it doesnt handle collections :[
  Is there a better way to do this?
  Or should I just break away from struts for this?
  -Tim
  
  -Original Message-
  From: David Graham [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:13 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Action without FormBean
  
  
  html:form must have a form bean.  Form beans are the 
  framework's way of 
  dealing with forms.
  
  David
  
  
  
  From: Chen, Gin [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
  [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: Action without FormBean
  Date: Wed, 26 Feb 2003 13:05:29 -0500
  
  I set up the following:
  
  action path=/myAction type=com.ui.action.MyAction
  parameter=userAction/
  
  //myJsp.jsp
  
  html:form action=/myAction
  /html:form
  
  Thats it nothing in between the form tags and I get 
  exception can not 
  access
  formbean null.
  
  Well I dont want a formbean.
  Is this not a legal form?
  
  I do this all the time from anchor hrefs but this is the 
  first time I've
  tried it in html:form style.
  I can't find anywhere in the docs that says that a html:form 
  MUST have a
  related formbean.
  Is this just an implied rule?
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  _
  Tired of spam? Get advanced junk mail protection with MSN 8. 
  http://join.msn.com/?page=features/junkmail
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action without FormBean

2003-02-26 Thread James Mitchell
Good, sounds like you've got a good start.  Let us know if you need
further assistance.



--
James Mitchell
Software Engineer/Struts Evangelist


 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 14:57
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Yea JavaScript is the only way to go right now.
 I invoke a javascript function to populate hidden fields 
 during the onclick.
 If you have a better id (other than going away from struts 
 for this page
 :-/) plz let me know.
 -Tim
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 2:00 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 Ok, assuming the number of rows are not known, how do you plan to deal
 with:
 1. Which id they picked
 2. Whether they hit edit or delete for the id they picked
 
 This can be easily accomplished with a little JavaScript, but I'm not
 sure if you want to (or can) go that route.
 
 
 --
 James Mitchell
 Software Engineer/Struts Evangelist
 
 
 
 
  -Original Message-
  From: Chen, Gin [mailto:[EMAIL PROTECTED] 
  Sent: mercredi 26 février 2003 13:49
  To: 'Struts Users Mailing List'
  Subject: RE: Action without FormBean
  
  
  Hi James,
  I did use links before. But they want to see buttons 
  instead of href
  links.
  D*mn users. ;P
  -Tim
  
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:34 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Action without FormBean
  
  
  So your [View] and [Delete] are submit buttons?
  
  Why can't you use links within an iterator?
  
  
  
  --
  James Mitchell
  Software Engineer/Struts Evangelist
  
  
  
  
   -Original Message-
   From: Chen, Gin [mailto:[EMAIL PROTECTED] 
   Sent: mercredi 26 février 2003 13:24
   To: 'Struts Users Mailing List'
   Subject: RE: Action without FormBean
   
   
   Thanks David.
   That's what I figured.
   Unfortunately it just seems like an unnecessary step sometimes.
   For example I have a collection that is returned to me and I 
   show it as such
   
   x   [View] [Delete]
   x   [View] [Delete]
   x   [View] [Delete]
   x   [View] [Delete]
   
   To set this up using struts i have to make a form bean that 
   is simply a
   container for my collection
   Cant do this with dynaform cause it doesnt handle collections :[
   Is there a better way to do this?
   Or should I just break away from struts for this?
   -Tim
   
   -Original Message-
   From: David Graham [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, February 26, 2003 1:13 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Action without FormBean
   
   
   html:form must have a form bean.  Form beans are the 
   framework's way of 
   dealing with forms.
   
   David
   
   
   
   From: Chen, Gin [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List 
   [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' 
 [EMAIL PROTECTED]
   Subject: Action without FormBean
   Date: Wed, 26 Feb 2003 13:05:29 -0500
   
   I set up the following:
   
   action path=/myAction type=com.ui.action.MyAction
   parameter=userAction/
   
   //myJsp.jsp
   
   html:form action=/myAction
   /html:form
   
   Thats it nothing in between the form tags and I get 
   exception can not 
   access
   formbean null.
   
   Well I dont want a formbean.
   Is this not a legal form?
   
   I do this all the time from anchor hrefs but this is the 
   first time I've
   tried it in html:form style.
   I can't find anywhere in the docs that says that a html:form 
   MUST have a
   related formbean.
   Is this just an implied rule?
   
   
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
   
   
   _
   Tired of spam? Get advanced junk mail protection with MSN 8. 
   http://join.msn.com/?page=features/junkmail
   
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Action without FormBean

2003-02-26 Thread Dennis Muhlestein
Use an image instead of a form button?? 
ie: a href=myaction..img src=users pretty image/a

-Dennis

On Wed, 2003-02-26 at 11:48, Chen, Gin wrote:
 *This message was transferred with a trial version of CommuniGate(tm) Pro*
 Hi James,
   I did use links before. But they want to see buttons instead of href
 links.
 D*mn users. ;P
 -Tim
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Action without FormBean
 
 
 So your [View] and [Delete] are submit buttons?
 
 Why can't you use links within an iterator?
 
 
 
 --
 James Mitchell
 Software Engineer/Struts Evangelist
 
 
 
 
  -Original Message-
  From: Chen, Gin [mailto:[EMAIL PROTECTED] 
  Sent: mercredi 26 février 2003 13:24
  To: 'Struts Users Mailing List'
  Subject: RE: Action without FormBean
  
  
  Thanks David.
  That's what I figured.
  Unfortunately it just seems like an unnecessary step sometimes.
  For example I have a collection that is returned to me and I 
  show it as such
  
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  x   [View] [Delete]
  
  To set this up using struts i have to make a form bean that 
  is simply a
  container for my collection
  Cant do this with dynaform cause it doesnt handle collections :[
  Is there a better way to do this?
  Or should I just break away from struts for this?
  -Tim
  
  -Original Message-
  From: David Graham [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:13 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Action without FormBean
  
  
  html:form must have a form bean.  Form beans are the 
  framework's way of 
  dealing with forms.
  
  David
  
  
  
  From: Chen, Gin [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
  [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: Action without FormBean
  Date: Wed, 26 Feb 2003 13:05:29 -0500
  
  I set up the following:
  
  action path=/myAction type=com.ui.action.MyAction
  parameter=userAction/
  
  //myJsp.jsp
  
  html:form action=/myAction
  /html:form
  
  Thats it nothing in between the form tags and I get 
  exception can not 
  access
  formbean null.
  
  Well I dont want a formbean.
  Is this not a legal form?
  
  I do this all the time from anchor hrefs but this is the 
  first time I've
  tried it in html:form style.
  I can't find anywhere in the docs that says that a html:form 
  MUST have a
  related formbean.
  Is this just an implied rule?
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  _
  Tired of spam? Get advanced junk mail protection with MSN 8. 
  http://join.msn.com/?page=features/junkmail
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]