kadimulam Posted February 18, 2009 Share Posted February 18, 2009 Hi,Could you please tell me how can the LOGOUT feature be customized. I need to customize it in the following way:I will allow the user to Login using the following URL:http://localhost:8082/jasperserver/flow.html?_flowId=listReportsFlow&curlnk=2When the user Logouts i again want to redirect him to the above page instead of http://localhost:8082/jasperserver/flow.html?_flowId=repositoryExplorerFlowIs that possible, if yes can you please guide me in acheiving it?Thanks,Kiran Link to comment Share on other sites More sharing options...
anandharaj Posted February 20, 2009 Share Posted February 20, 2009 Thats mean, you want to make Report List as default page? This can be done..i'll get back to you on what file to edit. You may reach me at www.raj2u.net Link to comment Share on other sites More sharing options...
kadimulam Posted February 23, 2009 Author Share Posted February 23, 2009 Yes Anandharaj, i want to make Report List as default page.Thanks,Kiran Link to comment Share on other sites More sharing options...
swood Posted February 27, 2009 Share Posted February 27, 2009 Have a look at http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=51919 for how to customize the home page. Hmmm, but you are after something a bit different than that. If the user is not logged in and then goes to a URL like: http://myserver/jasperserver/olap/viewOlap.html?name=%2fanalysis%2fviews%2fFoodmart_sample or http://myserver/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=%2freports%2fsamples%2fEmployees JasperServer will force them to login and on successful login, will take them to the original URL they requested. ShermanJaspersoft Link to comment Share on other sites More sharing options...
tech_rulez Posted March 30, 2009 Share Posted March 30, 2009 Hi Sherman, Could you also comment on customizing the logout. I have a requirement where I'd like to have a different page when the user clicks on Logout. Rajesh Link to comment Share on other sites More sharing options...
abinabraham Posted October 13, 2009 Share Posted October 13, 2009 Post Edited by joe77 at 10/13/2009 06:49 Link to comment Share on other sites More sharing options...
swood Posted October 13, 2009 Share Posted October 13, 2009 Implement your logout logic in a new class: public class MyLogoutController extends MultiActionController { public ModelAndView logout(HttpServletRequest req, HttpServletResponse res) throws ServletException { // invalidate session HttpSession session = req.getSession(false); if (session != null) { session.invalidate(); } SecurityContextHolder.clearContext(); //invalidate authentication return new ModelAndView("redirect:/login.html" + "?" + "showPasswordChange="+req.getParameter("showPasswordChange")); }} Create a bean that instantiates an instance of the class and include it in the configuration in WEB-INF/jasperserver-servlet.xml <bean id="handlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> ... <prop key="/logout.html">myLogoutController </prop> ShermanJaspersoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now