cancel
Showing results for 
Search instead for 
Did you mean: 

Change the initial page

Former Member
0 Kudos

Hi, i create a new smart project... and the first page is: overview_syncboinstances.jsp

I want change the first page by another that i have... How can i do it?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Victor,

look into your mail. I have send you the modified project. It now calls a welcome page. This page has its own servlet. If you press the button it then calls the previous startpage with the central controller. I guess this explains itself. The Web.XML is changed and the two files are added.

Have fun with it!

Regards,

Oliver

Former Member
0 Kudos

Don´t work... appear an error in web.xml

Answers (2)

Answers (2)

Former Member
0 Kudos

Oh, in your project, if you want to change the JSP that is called instead of the "/jsp/overview_syncbonames.jsp";

change the JSP name in the constants.java file.

This will call another JSP then.

Should help!

Regards,

Oliver

Former Member
0 Kudos

Hi Victor,

as you create the WAR file in MDK you are asked for a url pattern. This is set to /start at default value. If you then have a look into WEB.XML file in the WEB-INF folder, you foind:

<servlet-mapping>

<servlet-name>start</servlet-name>

<url-pattern>/start.jsp</url-pattern>

</servlet-mapping>

change it to

<servlet-mapping>

<servlet-name>start</servlet-name>

<url-pattern>/ownPage.jsp</url-pattern>

</servlet-mapping>

and it will use ownpage intead of start.jsp

Hope this helps!

Regards,

Oliver

Former Member
0 Kudos

I have initially this:

<servlet-mapping>

<servlet-name>MISMARTSYNCJSPAPP</servlet-name>

<url-pattern>/start</url-pattern>

</servlet-mapping>