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 accomp
When a session attribute is added/replaced/removed the methods will be called
automatically.
The homework asks you to add a session attribute in Greeting and remove it in
Response.
But, I noticed that the attributeReplaced() was called when the attribute was
removed.
--- On Wed, 10/7/09, d
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 "" xml entry).
When you execute the application by RUNning the project from NetBeans,
it may actually start by default the browser with
Use session.setAttribute("attr", "value") in greeting, and you could add
session.removeAttribute("attr ") in response
_
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
Anand A. Parikh
Sent: Thu
Hello,
This is very well explained in lab 4001 in paragraph (1.4) Add a Servlet
to the application.
Go through screens and you will see that you can manage what should run
first with right click on your project, select Properties->Run and set
name on needed file (in our case default servlet
I had deployed the file TomcatServletExample.war on JBoss app server, and
the session tracking on browser with cookie disable is working as expected.
At this point, I would conclude that URL rewriting does not work with
GlassFish.
On Thu, Oct 8, 2009 at 9:31 AM, hieu wrote:
> Could you please le
I am confused with
"Create (and initialize) a Person object and save it as an attribute
called person in the ServletContext scope"
What is ServletContext scope ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Jav
HELLO:LAB4011
I added the following to the file Namehandlertest.java:
public void testcompareTwoNamesIgnoringCase(){
System.out.println("setNamecompare");
String name1="passion";
String name2="Passion";
NameHandler instance = new NameHandler();
first,i´d like to know if that
ServletContext has a APPLICATION SCOPE .. [GLOBALLY ACCESSIBLE ACROSS THE
PAGES]
ServletContext has a SESSION SCOPE.. [LOCAL SCOPE..which is mostly used
for intialising purpose].
Application *scope*
Application *scope* is the broadest *scope* and should only be used when
necessary. You can cre
I don't think the homework for Session Tracking is go far enough to
illustrate the beauty of the J2EE Session Tracking, which should work
for either browser with cookie enable nor disable. So I had added
couple steps to cover that gap. Here are what I did:
- For index.jsp:
">
- For res
Hi friends,
I m writing small java code which will read the MS doc i.e. MS word
(98-2003) format doc file. This file contains the one table of 10rows
and 5 columns. with some entries in that.
Now here I want to read that table entries by cell-by-cell meaner and
convert it into the CSV format.
I
11 matches
Mail list logo