文章分类 -  Struts2

摘要:import java.util.Properties; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transpo 阅读全文
posted @ 2018-04-19 20:07 AaronCnblogs 阅读(117) 评论(0) 推荐(0)
摘要:表单: <form action="upload" method="post" enctype="multipart/form-data"> <label for="myFile">Upload your file</label> <input type="file" name="myFile" / 阅读全文
posted @ 2018-04-19 20:06 AaronCnblogs 阅读(270) 评论(0) 推荐(0)
摘要:<struts> <constant name="struts.devMode" value="true" /> <package name="helloworld" extends="struts-default"> <action name="hello" class="cn.w3cschool 阅读全文
posted @ 2018-04-19 20:05 AaronCnblogs 阅读(64) 评论(0) 推荐(0)
摘要:Struts2中actions必须有一个无参数方法返回String或Result对象,并且必须是POJO。如果没有指定no-argument方法,则默认是使用execute()方法。 public abstract interface Action { public static final Str 阅读全文
posted @ 2018-04-19 20:04 AaronCnblogs 阅读(124) 评论(0) 推荐(0)
摘要:web.xml: <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-cla 阅读全文
posted @ 2018-04-19 20:03 AaronCnblogs 阅读(91) 评论(0) 推荐(0)