Results 1 to 9 of 9

Thread: web error 400

  1. #1
    srivempala is offline Member
    Join Date
    Jan 2011
    Posts
    13
    Rep Power
    0

    Default web error 400

    Hai all,

    Iam working on struts application .In my application i need to display one jsp
    for web errors in tomcat like 400,424 404 like errors . plz help me in this.


    Thanks

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default

    You can do this in web.xml itself.
    Mak
    (Living @ Virtual World)

  3. #3
    srivempala is offline Member
    Join Date
    Jan 2011
    Posts
    13
    Rep Power
    0

    Default regarding error in tomacat

    could u help me how can we do in web.xml

  4. #4
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default

    <error-page>
    <error-code>404</error-code>
    <location>/jsp/errorPageFor404.jsp</location>
    <error-code>500</error-code>
    <location>/jsp/errorPageFor500.jsp</location>
    </error-page>


    Hope this helps a lot you.
    Mak
    (Living @ Virtual World)

  5. #5
    srivempala is offline Member
    Join Date
    Jan 2011
    Posts
    13
    Rep Power
    0

    Default

    Thanks for replied me boss.Now i will try this Thanks alot..

  6. #6
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default

    You are Welcome..
    Mak
    (Living @ Virtual World)

  7. #7
    srivempala is offline Member
    Join Date
    Jan 2011
    Posts
    13
    Rep Power
    0

    Default

    Hai makpandian,

    i need to get weberrors like 400,404,406 into one jsp .So according to that error i can display some meaningful message. could u plz help me

    Thanks,

  8. #8
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    449
    Rep Power
    6

    Default

    Have you tried that way what i suggested to you?
    Mak
    (Living @ Virtual World)

  9. #9
    srivempala is offline Member
    Join Date
    Jan 2011
    Posts
    13
    Rep Power
    0

    Default

    i tried its workin fine also. but problem is i've jsp with so many messages. according to that weberror i need to disply msg. so first i need to get weberrors into that jsp.

Similar Threads

  1. java out of memory error-heap space error
    By elsanthosh in forum NetBeans
    Replies: 4
    Last Post: 06-15-2010, 09:31 AM
  2. Replies: 1
    Last Post: 03-10-2010, 01:53 PM
  3. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  4. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  5. Replies: 3
    Last Post: 01-23-2009, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •