HTTP Status 500 - No input attribute for mapping path /regis-stepthree
--------------------------------------------------------------------------------
type Status report
message No input attribute for mapping path /regis-stepthree
description The server encountered an internal error (No input attribute for mapping path /regis-stepthree) that prevented it from fulfilling this request.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.12
แสดงว่า ในขณะที่มีการ Check email โดยใช้ Struts เมื่อมี error เกิดขึ้น ไม่ได้ ระบุ attribute ใน
action mapping /regis-stepthree ที่ต้องการจะให้ link ไปยังหน้า Page นั้น ๆ เมื่อมีการ error
เกิดขึ้น
เช่น
จาก การเซ็ต action ที่ทำให้เกิด error
<action path="/regis-stepthree" type="com.arg.sme.regis.struts.actions.RegisCodeAction" name="registrationForm" scope="request" >
<forward name="success" path=".regis-stepthree" />
<forward name="failure" path=".regis-steptwo-skip" />
</action>
หลังจากแก้ไข โดยใส่ input=".regis-steptwo-skip" เข้าไป
<action path="/regis-stepthree" type="com.arg.sme.regis.struts.actions.RegisCodeAction" name="registrationForm" scope="request" validate="true" input=".regis-steptwo-skip">
<forward name="success" path=".regis-stepthree" />
<forward name="failure" path=".regis-steptwo-skip" />
</action>
อธิบาย
input=".regis-steptwo-skip" เมื่อเกิด error แล้ว จะ link ไปที่หน้า page regis-steptwo.vm
การ์ตูนนารูโตะสนุกมาก
มาลองดูคับแจ่มป่ะ