Action ÀïÃæµÄ
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)throws Exception {
// TODO Auto-generated method stub
String username=request.getParameter("username");
String pass=request.getParameter ......
<select name="aaa">
<option >1</option>
<option >2</option>
<option >3</option>
</select>
ÔÚÏÂÀÁбíÖÐÑ¡Ôñ1ʱ£¬ÔÚ±¾Ò³ÃæÖÐÏÔʾ1.jspµÄÄÚÈÝ
Ñ¡Ôñ2ʱ£¬ÔÚ±¾Ò³ÃæÖÐÏÔʾ2.jspµÄÄÚÈÝ
²»ÊÇÌøµ½ÏàÓ¦Ò³Ã棬¶øÊÇÔ ......
ÎÒÏëÏÂÀ¿òÏÔʾµÄÄÚÈÝÊÇ´ÓÊý¾Ý¿âÏà¹Ø±íµÄÏà¹Ø×ֶλñÈ¡µÄ£¨ÕâÒ»µãºÜºÃʵÏÖ£©£¬¿ÉÊǵ±Óû§Ñ¡ÔñÆäÖеÄijһÏîÖ®ºó£¬ÎÒÈçºÎÈ¡µÃËûÑ¡ÔñµÄÕâ¸öÖµ£¿¾ÍºÃ±È˵ÊǼÈëÈËÃû£¬ÏÖÔÚ¿âÀïÃæÏÔʾÓС°ÕÅÈý£¬ÀîËÄ£¬ÍõÎ塱£¬ÏÂÀ¿òÒ²ÓÐÕâÈý¸öÑ¡Ôñ£¬È»ºóÎÒÑ¡ÔñÍõÎ壬Ôõô°ÑÍõÎå´æ½øÁíÒ»ÕűíÀïÃ棿
ÖÐÎç´ó¼Ò¶¼ÔÚ˯¾õ°¡
¡¾Ñ¡ÔñÍõÎ壬Ôõô°ÑÍõÎå ......
ÔÚtomcatÎļþ¼ÐÏ£¬ÓëWEB-INFͬ¼¶Ä¿Â¼Ï½¨Á¢ÁËpluginÎļþ¼Ð£¬ÀïÃæÓÐTest.classÊÇÒ»¸öapplet¡£
µôÓõÄjspÎļþÊÇÔÚC:\Tomcat 6.0\webapps\ROOT\user\search ϵÄapplet.jsp¡£
Õâ¶ÎÒªÔõÑùÐ޸IJÅÄÜÕýÈ·µ÷ÓÃapplet³ÌÐò
<jsp:plugin type="applet" code="Test.class"
......
ÏÂÀÁбíÖеÄÖµÊÇ´ÓÊý¾Ý¿âÖеõ½µÄ£¬ÔõÑùʵÏÖÈ¡µ½ÏÂÀÁбíµÄÖµ²¢²éѯÊý¾Ý¿â
sqlÓï¾ä£ºString sql="select * from xiaofei where regname like '%"+userid+"%' and xfdate=´ÓÏÂÀÁбíÖÐÈ¡µÃµÄÖµ";
selectµÄÓï¾ä£º
<form name="form" method="post">
<div alig ......
public class Base64Encoder
{
private static final int i= 1024;
private static int j=0;
}
.javaÀﶼÊǶԵÄ
ÏÖÔÚÔÚjspÀïÕâÑùд
<%!
public class Base64Encoder
{
private static final int i= 1024;//Õâ¸öÊǶԵÄ
private static int j=0;//Õâ¸öÊÇ´íµÄ Èç¹û°ÑÀà¼Óstatic¾ÍÊÇÕýÈ·µÄ
}
%>
Çó½â ......