2013年10月5日星期六

SSH2 and Ajax to do with user registration information verification , struts how to configure to get value ?

 This post last edited by the aunt132467 on 2013-10-04 17:14:24
SSH2 and Ajax to do with user registration information verification , struts how to configure to get value ?

http://blog.csdn.net/happyking999/article/details/7165245?reload
address above article is very detailed , but no struts.xml configuration file , it is more curious about how to configure how Configuration can only return values ​​?

I like this, but no

jsp / register.jsp
also tried

jsp / register.jsp
------ Solution ----------------------- ---------------------
strutsz the execute () method returns are generally
SUCCESS and ERROR , right ?
If you are allowed to return value
return null;
Then you write to the return stream information can be returned to the page . .
------ Solution ---------------------------------------- ----


------ For reference only ----------------------------- ----------
I mean , struts.xml how to configure the action, because I found his way back in action is void, so I do not know how to configure in order to allow a test username exists function
------ For reference only -------------------------------- -------


not really understand . However, this approach is originally

public void CheckUsername () throws Exception {
HttpServletResponse response = ServletActionContext.getResponse ();

if (ms.checkUsername (getUsername ())> 0) {

response.getWriter (). write ("1");

} else {

response.getWriter (). write ("0");

}
response.getWriter (). close ();
}

seemingly no return value . .
------ For reference only -------------------------------------- -


not very OK , no response. . Click to open tomacat did not respond .
------ For reference only -------------------------------------- -

  
not very OK , no response. . Click to open tomacat did not respond .  

To Yousha reaction ?
write there look after the implementation of the action
If you perform the action, look at what did not get to take the value of the page , the page displayed to the value on ok ,
write pages and would not jump .

------ For reference only ---------------------------------- -----

    
not very OK , no response. . Click to open tomacat did not respond .          
  
To Yousha reaction ?   
write there look after the implementation of the action   
If you perform the action, look at what did not get to take the value of the page , the page displayed to the value on ok ,   
write pages and would not jump .   
 


Hello . .

Information : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time

do this is wrong . . Point of no response
------ For reference only ---------------------------------- -----
+1
------ For reference only ---------------------------- -----------


return null; should be able to .
------ For reference only -------------------------------------- -



Thank you, but I used the downstairs solved.

没有评论:

发表评论