Jump to content
We've recently updated our Privacy Statement, available here ×

JS 2.1 login.html modification


javydreamercsw

Recommended Posts

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

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

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

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

  • 2 weeks later...

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

  • 4 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...