permaculture playing cards*
The moose likes Struts and the fly likes Problem with dispatch action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with dispatch action" Watch "Problem with dispatch action" New topic
Author

Problem with dispatch action

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
Hi,

Am creating a small application where i am using dispatch action class for Login as well as Change Password button. The login form has two input fields viz Username and Password and both fields cannot be empty.

It is working fine when we click on Login button.

But when we are not entering any inputs and wants to change password, it is not working until and unless i entered some values in two fields.

Please help how to change password for the above case without entering any fields values.

Thanks in advance.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you validating on the form, or on the action? In this case going by action won't work. Personally, I wouldn't use a dispatch action for this, either, since it's not really functionality that's closely related: it's different enough I'd use different actions.
RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
Am validating all the fields values on the Form
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Doesn't really answer my question, but what I've told you already should be enough anyway.
 
Consider Paul's rocket mass heater.
 
subject: Problem with dispatch action
 
Similar Threads
Problem with Form Validation.
page attribute tag for session?
struts very important question to me?
POST method parameters
Struts Auto Validation Message in Different Locale Format