RE: [java ee programming] Lab 4205_Strutsbasics homework problem

2009-12-14 Thread Moria Shebsovich
Hello, And make sure that in struts-config.xml you set a type to "submit": mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of peeter brunch Sent: Monday, December 14, 2009 1:35 AM To: j2ee passion Subject: [java ee programming] Lab 4205_Strutsbasics hom

RE: [java ee programming] LAB-4205

2009-12-14 Thread Moria Shebsovich
Hello Stepan, Try to set names in exactly how they are defined in attributes: Regards, Moria. -Original Message- From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.c

RE: [java ee programming] Question about LAB4101

2009-12-09 Thread Moria Shebsovich
Hi Fernando, If you will look into the homework assignment again, It says that you should have two .jsp files and two separate .java files (one of them will be named HobbyBean.java. In this file you will create HobbyBean class and setters and getter for hobby). Then you will set a value as

RE: [java ee programming] J2ee lab 1020

2009-11-23 Thread Moria Shebsovich
Hi Fernando, You probably should add a new .java file JDBCSamples-->Source packages-->New-->MyOwnJDBCProgram.java; inside it you will create both tables (CD and Location) and insert rows into them. Regards, Moria. From: fernando pardo [mailt

RE: [java ee programming] anyone help me lab1020

2009-11-22 Thread Moria Shebsovich
Hi Fernando, Try this instead: "(LOCATION_ID int NOT NULL, " + "LOCATION varchar(40), " + "primary key(LOCATION_ID))"; I think you should declare constraints ( and primary key in one of them) in the end, after all fields already defined ... Regards, M

RE: [java ee programming] anyone help me lab1020

2009-11-22 Thread Moria Shebsovich
Hi Fernando, Have you tried this?? createLocation = "create table LOCATION " + "(LOCATION_ID int NOT NULL, " + "LOCATION varchar(40), " + "primary key(LOCATION_ID))"; Regards, Moria. From: fernando pa

[java ee programming] j2ee - 4018 - webappsecurity homework

2009-11-18 Thread Moria Shebsovich
Hello all, Let me repeat my - I am REALLY stuck with the homework :-( The question about the 4018 j2ee - websecurity homework. The homework requires 1. Add the following set of concrete username/password (principals) and concrete groups to the file-based security realm through th

[java ee programming] j2ee - 4018 error code question

2009-11-16 Thread Moria Shebsovich
Hello, I have question about the 4018 j2ee - websecurity homework. The homework requires 1. Add the following set of concrete username/password (principals) and concrete groups to the file-based security realm through the admin console of GlassFish App Server - DONE 2. Modi

[java ee programming] Re: doubt-question about 4015

2009-11-12 Thread Moria Shebsovich
Hi, I think it is kind of typo. I could not find place where and what I should change in index.jsp code, so I left it as it is. Not sure that I am right, more comments will be helpful. Regards, Moria. From: java-ee-j2ee-programming-with-passion@go

[java ee programming] Re: LAB 4005

2009-11-11 Thread Moria Shebsovich
Hi Sparky, There is a continue of the thread: From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of Victor Sent: Thursday, October 08, 2009 10:06 AM To: 'Java EE (J2EE) Programming with Passion!'; derez...@yaho

[java ee programming] Re: LAB 4004

2009-10-22 Thread Moria Shebsovich
[mailto:gomezmarcos...@gmail.com] Sent: Thursday, October 22, 2009 12:06 PM To: Moria Shebsovich Cc: ingsopor...@gmail.com; java-ee-j2ee-programming-with-passion@googlegroups.com Subject: Re: [java ee programming] Re: LAB 4004 Hi, i have just done this homework. I did the following: - add the link as

[java ee programming] Re: LAB 4004

2009-10-22 Thread Moria Shebsovich
Hi Fernando, I am working on this assignment too. I modified scope of mybean to session and changed setName() as suggested. I added link in response.jsp After This return logic back to index.jsp. At this point I don't have any idea how to modify form that it wil

[java ee programming] Re: lab 4005

2009-10-14 Thread Moria Shebsovich
Hi Diego, Try this as you should first get session and then get servlet context for this session: evt.getSession().getServletContext().log("contextInitialized() method is invoked"); Regards, Moria. -Original Message- From: java-ee-j2ee-programming-with-passion@googlegroups.com [mail

[java ee programming] Re: LAB 4011

2009-10-09 Thread Moria Shebsovich
Hello, 1. Yes, this is all what had to do when strings are the same ignoring case - test pass, string ARE equal under this condition. 2. You should look into next scenario in the homework when two strings are not equal: next compare String name1 ="passion" and String name2 = "beaut

[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: help

2009-10-05 Thread Moria Shebsovich
Hi Diego, Try to reboot your system, might help... Moria. From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of diego rangel Sent: Monday, October 05, 2009 1:09 PM To

[java ee programming] Re: problen in homework3.....

2009-09-30 Thread Moria Shebsovich
Hello, I think you messed up with 2 examples. Look into hello1 example - there is no forward page at all. Change the index.jsp of hello1 such that @include will contain your middle.jsp: <%...@include file="middle.jsp" %> Now from middle.jsp invoke response.jsp (I also included "passion" string

[java ee programming] Re: could some explain the error cannot make a static refrence to a non static method

2009-09-28 Thread Moria Shebsovich
Hello, You are receiving this error because you call add() method to class instead of to instantiated object when your method add () is not static and must be called to an instance. Try this: HorizontalPanel row = new HorizontalPanel(); public void Crow() { row.add(edit

[java ee programming] Re: Trying to get a child calss to call a function in its parent class

2009-09-23 Thread Moria Shebsovich
Hello, you should create proper parent class and establish hierarchy where child class will extend its parent something like that: public class Example1 { private String ex; public Example1( ) { } public Example1( String ex) { this.ex = ex; } public String getE

[java ee programming] Re: consultation

2009-09-18 Thread Moria Shebsovich
Hi, I think this is good explanation: Question: What is the difference between servlet and Java Server Pages? Which is preferred? Answer: Servlets and Java Server Pages are complementary APIs, both providing a means for generating dynamic Web content. A servlet is a Java class implemen