JSF1.2 到 JSF2.0 的迁移问题
在我的示例应用程序中,使用 JSF1.2、richfaces3.3.1 和 Tomcat。
在 chrome 中运行我的应用程序:
我的第一页网址类似于 http://localhost:8080/sampleapp/login.jsp 和 < br> 登录我的页面后,例如 http://localhost:8080/sampleapp/faces/content.jsp。
只需复制网址并粘贴到 FireFox,然后浏览器就会显示加载 URL 类似: http://localhost:8080/sampleapp/faces/login.jsp;jsessionid=14EA9092E0D85CAD279BD6D0F6177AF1
我粘贴到 IE URL 如下: http://localhost:8080/sampleapp/faces/login.jsp
之后,我将我的应用程序 JSF1.2 转换为 JSF2.0 Richfaces3.3.3, tomcat6.0.29
现在运行我的应用程序chrome
我的首页网址如下: http://localhost:8080/sampleapp/login .jsp 和
登录我的页面后,例如 http://localhost:8080/sampleapp/faces/content.jsp
只需复制网址并粘贴到 FireFox 浏览器,然后 加载第一页 URL 如下: http://localhost:8080/sampleapp/faces/login.jsp ;
这次网址未更改。并且IE也显示相同的URL。
我的配置详细信息JSF1.2 到 2.0
我需要登录后,复制网址, 然后粘贴到任何浏览器,我需要生成像这样的URL http://localhost:8080/sampleapp/login.jsp;sessionid=123342342JSDFG1239323SDFKJ1
如何实施
这里发生了什么...... 帮我... 提前致谢
In my sample application working JSF1.2, richfaces3.3.1 and Tomcat.
Run my application in chrome:
My first page URL like http://localhost:8080/sampleapp/login.jsp and
after login my page like http://localhost:8080/sampleapp/faces/content.jsp.
Just i copy the url and paste to FireFox and then browser shows load the
URL Like : http://localhost:8080/sampleapp/faces/login.jsp;jsessionid=14EA9092E0D85CAD279BD6D0F6177AF1
I Paste to IE
The URL Like : http://localhost:8080/sampleapp/faces/login.jsp
After that I convert my application JSF1.2 to JSF2.0 Richfaces3.3.3, tomcat6.0.29
Now run my application in chrome
My firstpage URL like : http://localhost:8080/sampleapp/login.jsp and
after login my page like http://localhost:8080/sampleapp/faces/content.jsp
Just i copy the url and paste to FireFox browser and
load the first page
URL Like : http://localhost:8080/sampleapp/faces/login.jsp;
This time the url not changed. and also IE show the same URL.
My config details JSF1.2 to 2.0
i need to after login,, copy the url,
Then paste to any browser, i need to generate URL like
http://localhost:8080/sampleapp/login.jsp;sessionid=123342342JSDFG1239323SDFKJ1
how to implement
What happen here...
Help me...
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有什么不行吗?
似乎什么也没发生。如果您看到 url 添加了 jsessionid,则服务器检测到浏览器不支持 cookie。即使启用了 cookie,也可能会发生这种情况。这是某种后备措施,仍然允许会话(通过 url 传递会话 ID)。
您拥有的应用程序或会话处理应该仍然可以正常工作。
does anything not work?
it seems nothing happend. If you see the jsessionid added to the url the server detected the browser to not support cookies. this may happen even if cookies are enabled. It is some sort of fallback to still allow sessions (by passing the session id via urls).
the application or session handling you have should still work fine.