初学Struts的问题
网页报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都删掉
------解决方案--------------------既然用struts就要用struts的标签嘛,要不然就没意思了
<html:form action= "/FS/RegAction ">
不用的话也应该是 <form action= "/FS/RegAction.do " method= "post " >
------解决方案--------------------应该是con 没有连接好.所以返回的是
空指针
------解决方案--------------------Mysql里面不能用insert into ,直接用insert