[java ee programming] Servlet run order

2009-10-08 Thread peeter brunch
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

[java ee programming] Re: LAB 4005

2009-10-08 Thread Anand A. Parikh
  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

[java ee programming] Re: Servlet run order

2009-10-08 Thread Mihai DINCA
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

[java ee programming] Re: LAB 4005

2009-10-08 Thread Victor
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

[java ee programming] Re: Servlet run order

2009-10-08 Thread Moria Shebsovich
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

[java ee programming] Re: LAB-4004: Session tracking - disable cookie on browser

2009-10-08 Thread hieu
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

[java ee programming] J2EEHomework-el

2009-10-08 Thread Amita Engineer
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

[java ee programming] LAB 4011

2009-10-08 Thread diego rangel
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

[java ee programming] Re: J2EEHomework-el

2009-10-08 Thread Mai Minh Hoàng
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

[java ee programming] 4004 - Session Tracking - MyHelloWeb for disable cookie browser

2009-10-08 Thread hnguyen
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

[java ee programming] Need a help...

2009-10-08 Thread SantoshJ
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