reset password
Author Message
sunitha
Posts: 12
Posted 08:37 Apr 22, 2010 |

Hello professor,

How should the home page URL should  look like on cs3 server. Does it need to be:

http://cs3.calstatela.edu:8080/cs520stuxx/content/default

(or)

http://cs3.calstatela.edu:8080/cs520stuxx/wiki/content/default

 

trivedidr
Posts: 54
Posted 09:14 Apr 22, 2010 |

Hi,

It should be second option: 

http://cs3.calstatela.edu:8080/cs520stuxx/wiki/content/default

Bcoz  /wiki/ is the name of project. so, in web.xml ,we put the display name in the beginning that is project name and in our case its "/wiki/".

Last edited by trivedidr at 09:28 Apr 22, 2010.
Pallavi0205
Posts: 30
Posted 09:25 Apr 22, 2010 |

The url should be http://cs3.calstatela.edu:8080/cs520stuxx/content/default. Project name should not come in the url when you are running on cs3 server.

Instead of project name we are using cs3 account cs520stuxx.

cysun
Posts: 2935
Posted 10:07 Apr 22, 2010 |

For a Java web application, the "home page" URL is always http://<HostName>[:Port]/<ContextName>/. In Eclipse the context name is your project name, e.g. wiki, or homework2 or something, and on CS3 the context name is your account name, i.e cs520stu##.

The request to the home page URL is handled by the welcome file(s) specified in web.xml, or by a servlet if a servlet mapping maps it to the URL pattern "/".

The URL to the default page of your wiki can be anything, e.g. /content/default or /content/MainPage or something else - it doesn't really matter as long as you can direct me to the page, e.g. put the link to the page in your hw2.html.

cysun
Posts: 2935
Posted 10:10 Apr 22, 2010 |
cysun wrote:

For a Java web application, the "home page" URL is always http://<HostName>[:Port]/<ContextName>/. In Eclipse the context name is your project name, e.g. wiki, or homework2 or something, and on CS3 the context name is your account name, i.e cs520stu##.

The request to the home page URL is handled by the welcome file(s) specified in web.xml, or by a servlet if a servlet mapping maps it to the URL pattern "/".

The URL to the default page of your wiki can be anything, e.g. /content/default or /content/MainPage or something else - it doesn't really matter as long as you can direct me to the page, e.g. put the link to the page in your hw2.html.

I guess I digressed a little. Basically Pallavi0205 is correct - the URL shouldn't contain the "wiki" part.