D
Dakota Mon
Ok heres my situation....
I am using NetBeans 4.1 and just doing a simpler than "Hello World" web
app.
I have a web module which has a servlet called "Control1". I have 4
JSPs. There is the "index.jsp" which comes by default and then there
are 3 which I Created. One if called "mainPage.jsp".
Here is what I want to have happen. When someone goes to my webpage,
the servlet "Control1" is called and instantly passes control over to
and displays "mainPage.jsp".
My questions are ...
1) What is the default page used when the URL is invoked?
2) If the default page is not the servlet then how do I set it to be
the servlet "Control1"?
3) How then do I pass on to a JSP to display? This also includes the
question of how do I make the JSP page available/visible to the
servlet?
4) Within "mainPage.jsp" I want to collect info. How do I then pass
this info back to the servlet "Control1"?
I will eventually deploy to the Sun Applicationn Server but right now I
am just working with this within the NetBeans environment.
I am using NetBeans 4.1 and just doing a simpler than "Hello World" web
app.
I have a web module which has a servlet called "Control1". I have 4
JSPs. There is the "index.jsp" which comes by default and then there
are 3 which I Created. One if called "mainPage.jsp".
Here is what I want to have happen. When someone goes to my webpage,
the servlet "Control1" is called and instantly passes control over to
and displays "mainPage.jsp".
My questions are ...
1) What is the default page used when the URL is invoked?
2) If the default page is not the servlet then how do I set it to be
the servlet "Control1"?
3) How then do I pass on to a JSP to display? This also includes the
question of how do I make the JSP page available/visible to the
servlet?
4) Within "mainPage.jsp" I want to collect info. How do I then pass
this info back to the servlet "Control1"?
I will eventually deploy to the Sun Applicationn Server but right now I
am just working with this within the NetBeans environment.