on 08-14-2015 10:35 AM
登陆界面使用了一次TOKEN,在提取提示对象方面又使用了一次,通过jsp的方法提取的办法可以满足两边同时登陆的效果,但是提取提示对象的数据时会自动把值列表提取了出来,效率问题不行,改成了.java的方式提取,但是这种的登陆方式和前面的登陆方式不一样,而且是登陆页面在前,提取在后,没办法保证两边登陆一起,想问下这个该怎么弄啊?
登录方式用的这种方式
String cms = req.getParameter("cms");
String username = req.getParameter("user");
String password = req.getParameter("password");
String authentication = req.getParameter("auth");
req.getSession().setAttribute("username",username);
req.getSession().setAttribute("password",paaword);
提取方式是下面这种
private static final String CMS_LOG_HOST = "server:6405";
private static final String CMS_LOG_USER = "ADMIN";
private static final String CMS_LOG_PASS = "ABC123";
private static final String CMS_AUTH_MODE = "secEnterprise";
问题解决了,是我2B了,jsp的那个我把l搞成L了,结果那段代码的拼接地方无效。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.