I dont know if i get it but if you write this in your webbrowser
http://localhost:8080/MyFirstWebApp/<http://localhost:8080/MyFirstWebApp/MyOwnServelet>your
JSP file shouls open.

If you want to change where to go when you write /MyFirstWebApp do what
Nicolai said.

On Mon, Sep 7, 2009 at 2:33 AM, Nickolai Kurutin <nickolai.kuru...@gmail.com
> wrote:

> Hi, Srilaxmi.
> You should change the Relative URL of the application in order to open your
> welcome jsp-file.
> Try this:
>
>
>
>
>
> Delete "/MyOwnServlet" from "Relative URL" field.
>
> Then build and run the application. Right click MyFirstWebAppproject node
> and select Run.
>
> *Observe that the browser is refreshed and MyOwnJsp.jsp was opened.*
>
> Good coding!
>
>
> On Mon, Sep 7, 2009 at 4:48 AM, Srilaxmi Seetharamachar <
> srilax...@yahoo.com> wrote:
>
>> HELLO,
>>     Below is the web.xml screen shot of my excersise1.I have modified
>> web.xml file as in the lab work to  MyOwnJsp.jsp The screen shot is below.
>>
>>  When I run the project the browser will open as  servelet file.It will
>> not open MyOwnJsp.jsp file  as per the lab work.
>> (http://localhost:8080/MyFirstWebApp/MyOwnServelet)
>>
>> Please help...
>> Thank you..
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>>     <servlet>
>>         <servlet-name>MyOwnServelet</servlet-name>
>>         <servlet-class>myownpackage.MyOwnServelet</servlet-class>
>>     </servlet>
>>     <servlet-mapping>
>>         <servlet-name>MyOwnServelet</servlet-name>
>>         <url-pattern>/MyOwnServelet</url-pattern>
>>     </servlet-mapping>
>>     <session-config>
>>         <session-timeout>
>>             30
>>         </session-timeout>
>>     </session-config>
>>     <welcome-file-list>
>>         <welcome-file>MyOwnJsp.jsp</welcome-file>
>>         </welcome-file-list>
>>     </web-app>
>>
>>
>>
>>
>
>
> >
>


-- 
/*
  Gomez Marcos
  Ssr Java Developer.-
*/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to