Hi,

When you execute in the browser "http://localhost:8080/Hello2";, the 
server looks for a "welcome page" defined in the "web.xml" file
(see "Pages" folder or "<welcome-file-list>" xml entry).

When you execute the application by RUNning the project from NetBeans, 
it may actually start by default the browser with an url like 
"http://localhost:8080/Hello2/Greetings";, where "/Greetings" is the 
relative path of the servlet. To execute "/Greetings" instead of 
something else is defined in the project properties, section "Run":
-- Check "Display Browser on Run" toggle box
-- Specif "/Greetings" in the "Relative URL" text input

However, when executing manually "http://localhost:8080/Hello2";, the 
browser will still execute "index.jsp" or whatever defined as "welcome 
page".

Hope it helps,
mihai

peeter brunch a écrit :
> Hi,
>  
> When right click the Hello2 project node and select the Run command 
> from NetBean IDE. How does the system knows it was the Greeting 
> servlet that is the first servlet to be run? If I want some other 
> default servlet to be run instead of the Greeting servlet, how such 
> control can be accomplished?
>  
> Thanks.
>  
> Regards,
> Peeter  
>
> ------------------------------------------------------------------------
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up 
> now. <http://clk.atdmt.com/GBL/go/171222985/direct/01/>
> >

--~--~---------~--~----~------------~-------~--~----~
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