• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem on choosing jsp file direclty

 
Jomy George
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....
 
Joe Ess
Bartender
Posts: 9295
10
Linux Mac OS X 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: 9295
10
Linux Mac OS X 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic