aspose file tools
The moose likes JSF and the fly likes jsp:forward alternative for jsf 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "jsp:forward alternative for jsf 2.0" Watch "jsp:forward alternative for jsf 2.0" New topic
Author

jsp:forward alternative for jsf 2.0

Yuri Savhenko
Greenhorn

Joined: Sep 23, 2010
Posts: 3
Hi,
I have an jsf 1.2 web application and I want to transform it to jsf 2.0 web application.
My question is how can I replace the following code
<c:if test="${!myBean.correctAuthorization}">
<jsp:forward page="login.jsp" />
</c:if>
with jsf 2.0 - like
?
Thanks for your help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

Welcome to the JavaRanch, Yuri!

Actually, I could rant long and hard on user-designed security systems. And I have. But the short answer is that it's usually better to use the Security that's built into the J2EE specificaton.

If you do that, you can define security protections for whatever URLs you want as entries in the web.xml file and not need any code on the JSF page. Or JSP pages either. Even non-JSF JSPs and servlets!


Customer surveys are for companies who didn't pay proper attention to begin with.
Yuri Savhenko
Greenhorn

Joined: Sep 23, 2010
Posts: 3
Thanks, Tim
But the main reason I had decided to transform my project was jsf2.0's ajax support. So I'm looking for solution that would be as simple as possible just to make my application work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:forward alternative for jsf 2.0
 
Similar Threads
jsf panelGrid
JSF 2.0 with Tomcat 6
JSF 2.0 on MacOS with Netbeans IDE
Session Tracking is this correct
[facelets] custom taglibrary not recognized