flex+javaÎÊÌâ
ÎÒÓиöservlet£¬Õâ¸öservletÊÇÏ൱ÓÚindex.jsp£¬¶ÔÊ×Ò³Ãæ½øÐÐÌø×ª¡£
´úÂëÈçÏÂ
Java code:
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
/* RequestDispatcher rd = request.getRequestDispatcher("flex/index.html");
rd.forward(request, response);*/
response.sendRedirect("flex/index.html");
}
ÎÒÓÃRequestDispatcher rd = request.getRequestDispatcher("flex/index.html");
rd.forward(request, response); Ò³Ãæ¾Í±à³ÌÈ«°×£¬Ê²Ã´¶¼Ã»ÓС£¡£
Èç¹ûÎÒÓà response.sendRedirect("flex/index.html"); ¾Í¿ÉÒÔÌø×ª¡£¡£
¸ßÊÖ°ïæ¡£¡£»¹ÓÐÁ½¸öÎÊÌâ¡£¡£
´ó¼ÒÇë°ï濴һϡ£
1£ºhttp://topic.csdn.net/u/20100402/22/ec8a50ff-2fcf-4023-bc86-745bf97b64fb.html
2£ºhttp://topic.csdn.net/u/20100324/15/bb7036e7-ff9f-452c-a53b-542cf45275fa.html
flex/index.html
¿´¿´Â·¾¶ÊÇ·ñдµÄÕýÈ·£¬Ê¹ÓÃÏà¶Ô·¾¶£¬Ïà¶ÔÓÚÏîÄ¿
¶ÔµÄ¡£¡£
Ïà¹ØÎÊ´ð£º
ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
ÎÒÒѾ°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......