• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The input attribute of the action tag not working

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have set the input attribute of the action tag to point to a desired jsp.
This jsp is at the same location as my other jsp's.
But when the validate() method of my ActioForm is called upon error the jsp pointed to by the input attribute is not displayed.
Instead a blank page gets displayed.

Why is this happening.
My resource bundle is in the classes folder and named as ApplicationResources.properties.
The same name is configured in the struts-config.xml

What could be the problem.

Also if I remove the input attribute then the a message is displayed in the browser saying that "no input confitured"

Thanks
Abhay.
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the blank screen from the result of validate() being called and you have an input in the struts configuration action mapping, can be caused when the value of the input="" attribute does not references a jsp file, there is a typo in the path or file name, or you have included the application context as part of the path. the jsp path should be refrenced from the web application without the context path in front of it.
for example, my input form is in /WEB-INF/jsp/input1.jsp
then i would have input="/WEB-INF/jsp/input1.jsp"

Other times may be when the input jsp file has an error and does not compile.

I have found too when my execute() method cannot find a forward, or if my action class does not implement the execute() method I also get just a blank screen with no error messgaes, but that is after the validate().
 
Abhay Katekar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Travis Hein:
the blank screen from the result of validate() being called and you have an input in the struts configuration action mapping, can be caused when the value of the input="" attribute does not references a jsp file, there is a typo in the path or file name, or you have included the application context as part of the path. the jsp path should be refrenced from the web application without the context path in front of it.
for example, my input form is in /WEB-INF/jsp/input1.jsp
then i would have input="/WEB-INF/jsp/input1.jsp"

Other times may be when the input jsp file has an error and does not compile.

I have found too when my execute() method cannot find a forward, or if my action class does not implement the execute() method I also get just a blank screen with no error messgaes, but that is after the validate().

 
Abhay Katekar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Travis Hein:
the blank screen from the result of validate() being called and you have an input in the struts configuration action mapping, can be caused when the value of the input="" attribute does not references a jsp file, there is a typo in the path or file name, or you have included the application context as part of the path. the jsp path should be refrenced from the web application without the context path in front of it.
for example, my input form is in /WEB-INF/jsp/input1.jsp
then i would have input="/WEB-INF/jsp/input1.jsp"

Other times may be when the input jsp file has an error and does not compile.

I have found too when my execute() method cannot find a forward, or if my action class does not implement the execute() method I also get just a blank screen with no error messgaes, but that is after the validate().




Thanks for the help.
I will check if there is a problem with the jsp compilation.
But I have earlier tried to use the input jsp value as a jsp which is already getting used but still that does not work.
Anyway will try again and get back.
Regards,
Abhay.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic