Originally to do the purpose of data mining in which network, the structure has become a system development ...
But still more serious to do for three months, the teacher is very agree with my work attitude and results ...
The internship is coming to an end, summarizing a few things that have not been noticed before to become habits and problems, to share to everyone.
At the same time to play an advertisement: to which network Internal audit department recruit Javaweb Development intern, Time is very free, a week, Saturday Sunday even can, the time of the small partners to give me a message ah, earn a pocket money, but also a long experience .... (GPA, want to work a senior dog is the most suitable ... )
<span style= "White-space:pre" ></span><script type= "Text/javascript" >function del (ID) {if (! Confirm ("Confirm to delete?") ")) { <span style=" White-space:pre "></span>window.event.returnvalue = false; <span style= "White-space:pre" ></span>}else{$.ajax ({type: "Post", <strong>url: "ajaxSubmit.jsp",/ /Send form data to Ajaxsubmit.jsp</strong>data: "Source=delmonitorpoint&submitdata=" +id,contenttype: " application/x-www-form-urlencoded; Charset=utf-8 ", error:function (Request) {alert (" Failed to send requests! },success:function (data) {if (data== "1") {alert ("Operation succeeded!) "); Location.reload ();} Else{alert ("The operation failed! ");}}});}} </script>
ajaxsubmit.jsp page:
<span style= "White-space:pre" ></span><%//solve the problem of garbled, http://blog.csdn.net/wallimn/article/details/ 1380106String Source = Java.net.URLDecoder.decode (request.getparameter ("source"), "UTF-8"); SYSTEM.OUT.PRINTLN (source); String SubmitData = Java.net.URLDecoder.decode (request.getparameter ("SubmitData"), "UTF-8"); System.out.println (SubmitData), if (Source.equals ("Delmonitorpointinstance")) {Newmonitorpointinstance Newmonitorpointinstance = new Newmonitorpointinstance (); Newmonitorpointinstance.deletedata (submitData);} Out.print ("1");%>
I know the method above is very water, but the task is tight during the internship, can not find a better way to submit; Because the first contact with Javaweb, those
URL: "Ajaxsubmit. Action" or
URL: "Ajaxsubmit
. do
"I don't know what it means .... Seek the guidance of the Great God.
See this blog and know the standard submission method of small partners trouble to leave a link or demo to see, first thanked ^_^
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Where to go net Internship Summary: Javaweb using jquery submission form (javaweb)