• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

problem on choosing jsp file direclty

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

in my struts 1.3 application when user type the direct path of jsp page it says "the form bean is not found".
what is the solution for this issue?

should we need to allow direct invokation of jsp in applicaion?
or make it accessible only through action class?

i am new to struts and in confusion with this issue.

hope to get a solution...
thanks in advance....
 
Bartender
Posts: 9567
12
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is the user typing in the path to a JSP?
Struts is a Front Controller, a strategy to separate the responsibility for controlling the application, the business logic of the application and the view of the data (commonly referred to as MVC). Your user is trying to bypass two of those and rush right to the view, where there is nothing to view.
 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Joe Ess,

but it looks bad when it display some error message on page.
is there any way to redirect to some other page like login, or error page?
 
Joe Ess
Bartender
Posts: 9567
12
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify custom error pages in web.xml and redirect from there.
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!