[java ee programming] Re: LAB-4011. NetBeans IDE Quick Start Guide for Web Applications II

2009-09-04 Thread Ricardo Hernandez Rivera

Diego... I can't do a screenshot because it has to hold down ctrl key
plus mouse pointer on netbeans.

I tested on opensolaris and it works... maybe it has to do with Tools -
Java Platforms Sources tab is empty in my box ubuntu...

Thanks,
Ricardo

On Fri, 2009-09-04 at 09:52 -0700, diegosouza.br wrote:
> Please, post more details like a screenshot, the web.xml, etc...
> 
> 
> On Sep 3, 6:33 pm, Ricardo Hernandez Rivera
>  wrote:
> > Hi,
> >
> > Your help please with Exercise 2: Exercise code navigation...
> > Hiperlinking doesn't work... how can I configure my netbeans6.7.1 on my
> > box linux-ubuntu-904.
> >
> > I move the cursor holding down ctrl key and key-words turn into
> > hyperlink but the click fails.
> >
> > Thanks in advance,
> > Ricardo
> 
> > 


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



Odp: [java ee programming] Re: Lab. 4011 - homework

2009-09-04 Thread Rafa%u0142 Laczek


Hi Nickolai,
 
Very good suggestion. It works.
 
Thanks for advice!
 
Regards,
Rafał Laczek

Dnia 4-09-2009 o godz. 16:49 Nickolai Kurutin napisał(a):
Hi, Rafał.Problem is connected with variable scope.Try this:public void test3_
compareTwoNamesIgnoringCase(){         String name1="passion";         String name2="beauty";         NameHandler instance = new NameHandler();         System.out.println("Result of CompareTwoNamesIgnoringCase forname1=passion and         name2=beauty is "+instance.compareTwoNamesIgnoringCase(name1, 
name2));     }

2009/9/4 Rafał Laczek 
Hi Colleagues,In NameHandler.java I have following method:public int compareTwoNamesIgnoringCase(String name1, String name2){       return result= name1.compareToIgnoreCase(name2);   }and in NameHandlerTest.java there is also following method:public void test3_compareTwoNamesIgnoringCase(){         String name1="passion";         String name2="beauty";         NameHandler instance = new NameHandler();         instance.compareTwoNamesIgnoringCase(name1, name2);         System.out.println("Result of CompareTwoNamesIgnoringCase forname1=passion and         name2=beauty is "+result);  
   }I don't know why the response is "Result of CompareTwoNamesIgnoringCasefor name1=passion and name2=beauty is 0"As you can note the variable name1 and name2 are different and that'swhy the result should be different than "0"When I m doing the JUnit test the project is working fine.Please advise me where there is an error.ThanksBest regards,Rafał LaczekGRAMY FAIR PLAY , NIE MNOŻYMY OPŁAT  - Konferencje w Trójmieściehttp://klik.wp.pl/?adr=www.nadmorski.pl&sid=850

-- Best regards,Nickolai KurutinEuroBasket 2009 - Kibicuj z nami!wszystko o Mistrzostwach Europy koszykarzyKliknij: http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/eurobasket2009-2.html&sid=851



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



[java ee programming] Re: LAB-4011. NetBeans IDE Quick Start Guide for Web Applications II

2009-09-04 Thread diegosouza.br

Please, post more details like a screenshot, the web.xml, etc...


On Sep 3, 6:33 pm, Ricardo Hernandez Rivera
 wrote:
> Hi,
>
> Your help please with Exercise 2: Exercise code navigation...
> Hiperlinking doesn't work... how can I configure my netbeans6.7.1 on my
> box linux-ubuntu-904.
>
> I move the cursor holding down ctrl key and key-words turn into
> hyperlink but the click fails.
>
> Thanks in advance,
> Ricardo

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



[java ee programming] Re: Lab. 4011 - homework

2009-09-04 Thread derezone

Uncomment this statement  (possible line 80)   assertEquals(expResult,
result);

On Sep 4, 8:58 am, "Rafa%u0142 Laczek"  wrote:
> Hi Colleagues,
>
> In NameHandler.java I have following method:
> public int compareTwoNamesIgnoringCase(String name1, String name2){
>         return result= name1.compareToIgnoreCase(name2);
>     }
>
> and in NameHandlerTest.java there is also following method:
> public void test3_compareTwoNamesIgnoringCase(){
>           String name1="passion";
>           String name2="beauty";
>           NameHandler instance = new NameHandler();
>           instance.compareTwoNamesIgnoringCase(name1, name2);
>           System.out.println("Result of CompareTwoNamesIgnoringCase for
> name1=passion and
>           name2=beauty is "+result);
>       }
>
> I don't know why the response is "Result of CompareTwoNamesIgnoringCase
> for name1=passion and name2=beauty is 0"
> As you can note the variable name1 and name2 are different and that's
> why the result should be different than "0"
> When I m doing the JUnit test the project is working fine.
> Please advise me where there is an error.
>
> Thanks
>
> Best regards,
> Rafał Laczek
>
> 
> GRAMY FAIR PLAY , NIE MNOŻYMY OPŁAT  - Konferencje w 
> Trójmieściehttp://klik.wp.pl/?adr=www.nadmorski.pl&sid=850

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



[java ee programming] Re: Lab. 4011 - homework

2009-09-04 Thread Nickolai Kurutin
Hi, Rafał.
Problem is connected with variable scope.
Try this:
public void test3_compareTwoNamesIgnoringCase(){
 String name1="passion";
 String name2="beauty";
 NameHandler instance = new NameHandler();
 System.out.println("Result of CompareTwoNamesIgnoringCase for
name1=passion and
 name2=beauty is "+*instance.compareTwoNamesIgnoringCase(name1,
name2)*);
 }


2009/9/4 Rafa%u0142 Laczek 

>
> Hi Colleagues,
>
> In NameHandler.java I have following method:
> public int compareTwoNamesIgnoringCase(String name1, String name2){
>return result= name1.compareToIgnoreCase(name2);
>}
>
> and in NameHandlerTest.java there is also following method:
> public void test3_compareTwoNamesIgnoringCase(){
>  String name1="passion";
>  String name2="beauty";
>  NameHandler instance = new NameHandler();
>  instance.compareTwoNamesIgnoringCase(name1, name2);
>  System.out.println("Result of CompareTwoNamesIgnoringCase for
> name1=passion and
>  name2=beauty is "+result);
>  }
>
> I don't know why the response is "Result of CompareTwoNamesIgnoringCase
> for name1=passion and name2=beauty is 0"
> As you can note the variable name1 and name2 are different and that's
> why the result should be different than "0"
> When I m doing the JUnit test the project is working fine.
> Please advise me where there is an error.
>
> Thanks
>
> Best regards,
> Rafał Laczek
>
> 
> GRAMY FAIR PLAY , NIE MNOŻYMY OPŁAT  - Konferencje w Trójmieście
> http://klik.wp.pl/?adr=www.nadmorski.pl&sid=850
>
>
>
> >
>


-- 
Best regards,
Nickolai Kurutin

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



[java ee programming] Lab. 4011 - homework

2009-09-04 Thread Rafa%u0142 Laczek

Hi Colleagues,

In NameHandler.java I have following method:
public int compareTwoNamesIgnoringCase(String name1, String name2){
return result= name1.compareToIgnoreCase(name2);
}

and in NameHandlerTest.java there is also following method:
public void test3_compareTwoNamesIgnoringCase(){
  String name1="passion";
  String name2="beauty";
  NameHandler instance = new NameHandler();
  instance.compareTwoNamesIgnoringCase(name1, name2);
  System.out.println("Result of CompareTwoNamesIgnoringCase for 
name1=passion and
  name2=beauty is "+result);
  }

I don't know why the response is "Result of CompareTwoNamesIgnoringCase 
for name1=passion and name2=beauty is 0"
As you can note the variable name1 and name2 are different and that's 
why the result should be different than "0"
When I m doing the JUnit test the project is working fine.
Please advise me where there is an error.

Thanks

Best regards,
Rafał Laczek


GRAMY FAIR PLAY , NIE MNOŻYMY OPŁAT  - Konferencje w Trójmieście 
http://klik.wp.pl/?adr=www.nadmorski.pl&sid=850



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



[java ee programming] Re: Lab 4003

2009-09-04 Thread Alfredo Torres
Sorry, My fault i was using the wrong tamplate, plase delete this post

2009/9/4 Alfredo Torres 

> Hi,
>
>   I am on hand on lab 4003 in exsercise
> (2.1) Build and run "JSP Examples" sample application
> I create a new JSP project with the template JSP Examples under Web but
> when i run it i just see 6 exampls and can not find the JSP 1.2 section.
>
> So i can not proceed with this lab.
>
> I am using Netbeans 6.7 with Tomcat Apache 2.2 on Windows XP service pack 3
>
> Any help will be appreciated
> --
> Saludos
> Alfredo Torres
> Hab.+58 212 9446304
> Cel. +58 416 6118599
>



-- 
Saludos
Alfredo Torres
Hab.+58 212 9446304
Cel. +58 416 6118599

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



[java ee programming] Lab 4003

2009-09-04 Thread Alfredo Torres
Hi,

  I am on hand on lab 4003 in exsercise
(2.1) Build and run "JSP Examples" sample application
I create a new JSP project with the template JSP Examples under Web but when
i run it i just see 6 exampls and can not find the JSP 1.2 section.

So i can not proceed with this lab.

I am using Netbeans 6.7 with Tomcat Apache 2.2 on Windows XP service pack 3

Any help will be appreciated
-- 
Saludos
Alfredo Torres
Hab.+58 212 9446304
Cel. +58 416 6118599

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



[java ee programming] Re: Unsubscribe

2009-09-04 Thread Evans '

There are instructions on how to manage your subscription including 
unsubscribing on the footer of every email sent on this list.

Please take the time to read it and unsubscribe yourself quietly without 
announcing it.

--
Evans
http://www.javawug.org


Subject: [java ee programming] Unsubscribe
Date: Fri, 4 Sep 2009 15:46:36 +0530
From: r...@niapune.com
To: java-ee-j2ee-programming-with-passion@googlegroups.com
















Kindly remove my email address from the list.

 

Thanks and
Regards,

Sincerely
Yours,

 

Das R

Asso. Prof. & Information
Officer

National Insurance Academy

25, Balewadi, Baner Road

NIA PO, Pune 411045

Maharashtra - India

Tel. 91-20-27204070

Fax.91-29-27204555

www.niapune.com

niap...@vsnl.com

Internal Users

'Computer Center Help Desk Contact
No. 4789

Online
Help Desk http://intranet/selecthdms.asp

 

 

 











_
Save time by using Hotmail to access your other email accounts.
http://clk.atdmt.com/UKM/go/167688463/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
-~--~~~~--~~--~--~---



[java ee programming] Re: Where is the domain-directory?

2009-09-04 Thread miga



On 4 sep, 12:09, peeter brunch  wrote:
> Hi,
>
> Where is the domain-directory?
The domain directory is the directory where the application is
deployed. Inside Netbeans, there is an in-place deployment, so that
the domain directory is the build directory, or the dist directory is
you build and clean the project, thus creating a war file.
Otherwise, the domain directory is inside glassfish/domains/domain1
either applications or autodeploy subdirectory if you deploy by hand.

Then depending on version of Netbeans/Glassifh you use, glassfish
directory is inside:
SUNWappserver for Glassfish v2
sges-v3-prelude for Glassfish v3-prelude
glassfish-v3-b57 for Glassfidh v3 (at this date of writing)

And if Glassfish have been installed with Netbeans, those directories
are inside Netbeans directory.

At least on a Mac.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] Unsubscribe

2009-09-04 Thread Das Rashmiranjan
Kindly remove my email address from the list.

 

Thanks and Regards,

Sincerely Yours,

 

Das R

Asso. Prof. & Information Officer

National Insurance Academy

25, Balewadi, Baner Road

NIA PO, Pune 411045

Maharashtra - India

Tel. 91-20-27204070

Fax.91-29-27204555

www.niapune.com

niap...@vsnl.com

Internal Users

'Computer Center Help Desk Contact No. 4789

Online Help Desk http://intranet/selecthdms.asp
 

 

 

 


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



[java ee programming] Where is the domain-directory?

2009-09-04 Thread peeter brunch

Hi,

 

Where is the domain-directory? I couldn't find it in any sub-directory under 
tut-install/javaeetutorial5/examples/web/hello1. Or is it a directory in 
NETBEANS? I am referring to the text description in J2EE Passion Basic course.

 

Dynamic Reloading
If dynamic reloading is enabled, you do not have to redeploy an application or 
module when you change its code or deployment descriptors. All you have to do 
is copy the changed JSP or class files into the deployment directory for the 
application or module. The deployment directory for a web module named 
context-root is domain-dir/applications/j2ee-modules/context-root. The server 
checks for changes periodically and redeploys the application, automatically 
and dynamically, with the changes.

This capability is useful in a development environment, because it allows code 
changes to be tested quickly. Dynamic reloading is not recommended for a 
production environment, however, because it may degrade performance. In 
addition, whenever a reload is done, the sessions at that time become invalid 
and the client must restart the session.

_
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] Problem with jsp

2009-09-04 Thread Rohan Bhatte
Hi,I am working on new project. Till date I embed java code inside jsp.
Finally better programming sense struck me and I decided to write classes
and call methods to access them. So for new project setup was done in
eclipse

Dynamic Web Project.

   - Java files go inside src folder. Auto Compiled to build folder. I have
   a package db_sql.
   - JSP files are inside WebContent.
   - Now In my JSP file i have following lines



  sql_select sql1=new sql_select();
rs=sql1.select_record("SELECT *  FROM Programs order by Name_Program;");
%>

<%
 while(rs.next())
 {
 %>
 <%
out.write(rs.getString(1)+"-"+rs.getString(2)); %> 
 <%
 }
 %>


<%



   1. sql_select class is now under \WebContent\WEB-INF\classes\db_sql.


The error I get is
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
Only a type can be imported. db_sql.sql_select resolves to a package

An error occurred at line: 380 in the jsp file: /Project
Name/WebContent/student_details.jsp
sql_select cannot be resolved to a type
377:   
378: 
379: <%
380: sql_select sql1=new sql_select();
381: rs=sql1.select_record("SELECT *  FROM Programs order by
Name_Program;");
382: %>
383: 


An error occurred at line: 380 in the jsp file: /Project
Name/WebContent/student_details.jsp
sql_select cannot be resolved to a type
377:   
378: 
379: <%
380: sql_select sql1=new sql_select();
381: rs=sql1.select_record("SELECT *  FROM Programs order by
Name_Program;");
382: %>
383: 


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.

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