网页报Invalid path /RegAction was requested错,是不是和路径有关..
项目名是FS
action类写在action包里
<action
name="stuForm"
path="/FS/RegAction"
scope="request"
type="action.RegAction"
input="/FS/reg.jsp"
>
<forward
name="stu_list"
path="/FS/stu_list.jsp"/>
</action>
项目名是FS
action类写在action包里
<action
name="stuForm"
path="/FS/RegAction"
scope="request"
type="action.RegAction"
input="/FS/reg.jsp"
>
<forward
name="stu_list"
path="/FS/stu_list.jsp"/>
</action>
<body>
<form action="RegAction.do" method="post" >
<html:form action="/FS/RegAction">
不用的话也应该是<form action="/FS/RegAction.do" method="post" >
Servlet action is not available
用MSSQL能顺利调通没问题,但换了MYSQL后,出现java.lang.NullPointerException,好象是说
PreparedStatement pstmt = con.prepareStatement("insert into student (id,name,cardId,age) values(?,?,?,?)");这句有问题..