javydreamercsw Posted March 11, 2008 Share Posted March 11, 2008 Isn't there a way to remove the demo text/links from the login.html page besides doing it manually? I'm using the server in production environment and just upgraded but this is an issue IT dept. won't like much. Isn't there a way to have just the login prompt as before? Thanks in advance! Link to comment Share on other sites More sharing options...
kkelleher Posted March 12, 2008 Share Posted March 12, 2008 In the WEB-INFjsp folder, there are two JSPs for the login page:login_welcome.jsp is the new one (with links to JasperSoft's website)login.jsp is the older version of the Login page.[/ul] Simply renaming the files (so that the older version is now named login_welcome.jsp) should do the trick. Thanks, Kristen Link to comment Share on other sites More sharing options...
javydreamercsw Posted March 12, 2008 Author Share Posted March 12, 2008 Sadly it didn't work. The server is looking for http://<server>:8080/jasperserver/login.html Restarted the server just in case but no luck. Link to comment Share on other sites More sharing options...
GrayChan Posted March 12, 2008 Share Posted March 12, 2008 maybe can not modify the format of login page , also can change the content , for example the login username/password.You can find the file c:Program Filesjasperserver-2.1apache-tomcatwebappsjasperserverWEB-INFbundlesjasperserver_messages.properties,many contents are included here , login's prompt is filed LOGIN_JOEUSER, others can try one by one .After change , you need not restart server , only fresh the page.And , the JS does not support other languages , but english. If you want to use others , please convert to unicode . you can refer to Jasper Babylon.Another thing is , you can write down html code in property file , is it funny ?Post edited by: GrayChan, at: 2008/03/12 01:37 Link to comment Share on other sites More sharing options...
javydreamercsw Posted March 12, 2008 Author Share Posted March 12, 2008 Correction! The jsp name switch worked perfectly! Had to remake the war file with the change for it to work (and obviously redeploy). Seems that it was overwritten by the server after a restart. Thanks to all. kkelleher fix worked! Link to comment Share on other sites More sharing options...
kkelleher Posted March 20, 2008 Share Posted March 20, 2008 Glad I could help out, and thanks for the tip on remaking the war - I should of thought of that! -Kristen Link to comment Share on other sites More sharing options...
sirrond Posted March 30, 2008 Share Posted March 30, 2008 look for the file jasperserver-servlet.xml This file will be in the WEB-INF folder. Inside that file will be the following text:<prop key="/login.html">login_welcome</prop> Modify that as follows:<prop key="/login.html">login</prop> Note: changing "login_welcome" to "login" This file has various parameters for jasperserver, including which of the two logins should be used. Restart your tomcat (or jboss) server and you will see the old "simple" login. Link to comment Share on other sites More sharing options...
alex.chan Posted April 26, 2008 Share Posted April 26, 2008 Actually, an easier way is to do the following: open up jasperserver-servlet.xml go to section: <bean id="paramResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver"> <property name="mappings"> <props> <prop key="/home.html">homePage</prop> <prop key="/login.html">login_welcome</prop>... </props> </property> </bean> change login_welcome to login restart the server (don't need to re-build the WAR file). It will switch back to the old login, which doesn't have the links. 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