File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes where the control goes if action returns null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "where the control goes if action returns null" Watch "where the control goes if action returns null" New topic
Author

where the control goes if action returns null

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hi,

Can you please guide where the control goes if we return null from action class ececute in struts1.2 in two cases 1 if the input is there in strutsconfig.xml 2. if the input is not there in strutsconfig.xml

Regards,
Uj

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15642
    
  15

This is the JSF Forum, not the Struts forum. If you want to get help from people who know Struts, you need to ask in the place where they are numerous.

Moving...


Customer surveys are for companies who didn't pay proper attention to begin with.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

If an action returns null, Struts does not process the request any further and finalizes the response. It does not matter if an input is configured or not.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hi,

Thanks for the reply,Please elaborate more on finalizes the response means where it goes or what is done with that,

Thanks,
Uj
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

At a high level, the request is ended and control returns to the container, which returns the request to the browser. I'm afraid I don't know more than that. You can always look at the Struts source.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where the control goes if action returns null
 
Similar Threads
exception issues
Threads and Forms and Displays
how to set arrayList property in form from view
nothing is happening in action class when i submit a page(struts )
Validation framework issue in struts2