aspose file tools*
The moose likes Struts and the fly likes input source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "input source" Watch "input source" New topic
Author

input source

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
Hi,
I am trying to solve a next problem but since unsuccessfully.

I created :
add.jsp
edit.jsp(difference only in hidden id)
one class PersonEditForm extends ActionForm
one class PersonEditAction extends DispatchAction

All works fine only without validate forms.

I don't know how to put into "input source" in struts-config.xml.
I think it could be put only ONE input source, couldn't be?

I tried to put add.jsp and then edit.jsp, but this didn't remember state filling items at entry to editing form.




How should I solve this problem?
Could you help me please.
(Struts 1.1,MyEclipse)
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'd suggest that you create two action mappings in the struts-config.xml file, both pointing to the same Action class, but one used for edit and the other for add. That way you can have the correct input page for each.


Merrill
Consultant, Sima Solutions
manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
Do you think by this way:

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Yes, that's exactly what I was suggesting.
 
wood burning stoves
 
subject: input source