Struts error -- 404 input. jsp

Source: Internet
Author: User

 

 

When using a formThe parameter cannot be converted correctly.To the input. jsp page.

 

For example, we have a real student with attributes such as name, num, and age.

Student. Name, student. Num, and student. age should be sent from the form.

However, it is possible that the transmitted data type is incorrect, or the transmission name is incorrectly written, such as student. Mame.The parameter cannot be converted correctly.This error is very difficult to debug. you can insert a breakpoint in the action, but it is not in the action.

 

At this time, it will automatically come to input. jsp. If you do not have input. jsp under webroot, the Error 404 will be returned.

 

This gives us a good inspiration.

 

We construct the input. jsp page under webroot,

Write in it

<Body>
<S: fielderror> </S: fielderror>
</Body>

 

This error will be displayed on the input. jsp page, which is very practical.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.