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 problem with action input attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with action input attribute" Watch "problem with action input attribute" New topic
Author

problem with action input attribute

venkatesh loganathan
Greenhorn

Joined: Aug 24, 2004
Posts: 14
On validation failure my struts application is displaying a blank page

No exceptions or errors are thrown

I have included <html:errors> in the jsp which is used fpr the input attribute.

Any help regarding this

Thanks in advance

Venkatesh Loganathan
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

A blank page usually means that the Action is returning a forward that was never defined in the ActionMapping.

For instance,
if the Action has:
return mapping.findForward("success");

but the ActionMapping has this:
<action ....>
<forward name="next" path="/neverGonnaGoHere.do"></forward>
<forward name="back" path="/neverGonnaGoHere.do"></forward>
</action>

If you have further problems, please reply to this thread rather than creating a new one.


A good workman is known by his tools.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Actually, now that I've read an old post of yours I see that you're attempting to use the input attribute on failed validation to send it to a tile.

However, tiles usually have a dot notation like .myTile
I've never tried it without dot notation myself.

Anyway, it wouldn't hurt to test it with a jsp in the input attribute.
venkatesh loganathan
Greenhorn

Joined: Aug 24, 2004
Posts: 14
Hi all
My code is working.The problem was with input attrbute for which i made a separate entry in to my struts-config.xml using relative path

Any idea o email validation.Shud we need to ad our own rules n validator-rules.xml

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with action input attribute