The ultimate goal is to write a swing in JavaScript to determine the cancellation to decide whether to perform this function. However, during the execution process, a little problem occurred. Every time it was executed, it would directly insert the data into the database and it could not be controlled. If you want to know how to solve this problem, please refer to the following code details for details:
<%
boolean foo=false;
if (((theqingjiadays<3)&&(thetiqiandays>=1))||((theqingjiadays<10)
&&(theqingjiadays>=3)&&(thetiqiandays>=3))||((theqingjiadays>=10)&&(thetiqiandays>=7))){
foo=true;
}else{
//Didn't ask for leave in advance as required? Should I continue
%>
<script>
var select=confirm('Didn't ask for leave in advance as required, will you continue?');
if(select==true){
foo=true;
}
if(select==false){
foo=false;
="?id=<%=()%>";
}
</script>
I want to replace the script with a Swing window to determine the cancellation to decide whether to execute it, because every time I execute the code in <% %>, it will be inserted directly and inserted into the database, and it cannot be controlled.
<%
}
}
//Insert the database
if(foo==true){
try
{
Insert statement
(qj);
(qjmingxi);
(qj);
}
catch(InfrastructureException ie){
(());
}
finally{
();
();
}
}
%>A piece of swing code in java is needed to control the module. How should it be implemented? And what I want to know is whether the parameters of this page can be passed to another page through a script?
Later I saw it online that I wanted to implement the above delivery, and I could simulate get submission, and analyze and obtain parameters after getting the link on another page.
I tried it according to this thinking, but it was not implemented. The key is that I didn’t know how to do it. However, I solved this problem myself later because I later found that there were too many parameters I passed on myself. Some modifications were made below, as follows:
="?qingjiatypeid=<
%=("qingjiatypeid")%>
&
figure=<
%=("figure")%>
&
qingjiastartdate1=<
%=("qingjiastartdate1")%>
&
qingjiaenddate1=<
%=("qingjiaenddate1")%>
&
reason=<
%=("reason")%>
&
startdaterange1=<
%=("startdaterange1")%>
&
enddaterange1=<
%=("enddaterange1")%>";
Copy the codeThe code is as follows:
<%
boolean foo=false;
if (((theqingjiadays<3)&&(thetiqiandays>=1))||((theqingjiadays<10)
&&(theqingjiadays>=3)&&(thetiqiandays>=3))||((theqingjiadays>=10)&&(thetiqiandays>=7))){
foo=true;
}else{
//Didn't ask for leave in advance as required? Should I continue
%>
<script>
var select=confirm('Didn't ask for leave in advance as required, will you continue?');
if(select==true){
foo=true;
}
if(select==false){
foo=false;
="?id=<%=()%>";
}
</script>
I want to replace the script with a Swing window to determine the cancellation to decide whether to execute it, because every time I execute the code in <% %>, it will be inserted directly and inserted into the database, and it cannot be controlled.
Copy the codeThe code is as follows:
<%
}
}
//Insert the database
if(foo==true){
try
{
Insert statement
Copy the codeThe code is as follows:
(qj);
(qjmingxi);
(qj);
}
catch(InfrastructureException ie){
(());
}
finally{
();
();
}
}
%>A piece of swing code in java is needed to control the module. How should it be implemented? And what I want to know is whether the parameters of this page can be passed to another page through a script?
Later I saw it online that I wanted to implement the above delivery, and I could simulate get submission, and analyze and obtain parameters after getting the link on another page.
I tried it according to this thinking, but it was not implemented. The key is that I didn’t know how to do it. However, I solved this problem myself later because I later found that there were too many parameters I passed on myself. Some modifications were made below, as follows:
Copy the codeThe code is as follows:
="?qingjiatypeid=<
%=("qingjiatypeid")%>
&
figure=<
%=("figure")%>
&
qingjiastartdate1=<
%=("qingjiastartdate1")%>
&
qingjiaenddate1=<
%=("qingjiaenddate1")%>
&
reason=<
%=("reason")%>
&
startdaterange1=<
%=("startdaterange1")%>
&
enddaterange1=<
%=("enddaterange1")%>";