Dear all,

I am using one form <html:form>...  which contains the master information of
1 record.
Within that form I show the details of linked records. Something like order
and orderdetails records.

The master records can be edited and there are two buttons: Save and Cancel.
The details records are listed only and i am using <a href ...> to link to
the screen with the information of the details record.

I am using Struts Validator and currently have no separate validate method
in my Form"bean"
In th actionmapping I set validate=true
I don't use Javascript to do a prevalidation.

Schematic example:
----------------------------------------------------
Order : ___________

Save Cancel


List of orderitems

1.  Item1            and then with hrefs: Show / Delete
2. Item 2            Show / Delete.
----------------------------------------------------

I have two problems. 

1. 
The cancel-button still validates. The isCancelled() method does not seem to
work. I call it in the method executeAction of this screen.
How can I pre-empt the validation?

2.
When I modify information in the master part adn I what to a detail-screen,
then I want the master part to be commited first, before I go to this
detailscreen. 
The links to these items are set up using the format:
href="./orderitem.do?id=num   where num is the actual unique code in the
database of this item..
Of course leaving the page using href, will not commit the master part. My
question is: How can I make it happen? (commit the master first and then go
the detail).

Hope you can help,
Kind regards,

Robert Lamping


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

Reply via email to