[java ee programming] Lab-1020 Project Property Problem

2009-04-14 Thread Jon

When trying to modify the project to add the derbyclient.jar the
1020_javajdbc\javajdbc\samples\JDBCSamples\nbproject
\private.properties file tells me access denied.  Has anyone else had
this problem with this lab?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] Re: tiles-blank-struts1-1

2009-04-14 Thread Karl


well, it's "easy" if you can actually find the libraries that need to be 
resolved already on your system. Maybe you will be luckier then myself, but you 
will most likely find that other samples in this lab module much less obvious 
fix. Let me know how 'tiles-channel' works out for you.

~Karl


--- On Tue, 4/14/09, lisandrodc  wrote:

> From: lisandrodc 
> Subject: [java ee programming] Re: tiles-blank-struts1-1
> To: "Java EE (J2EE) Programming with Passion!" 
> 
> Date: Tuesday, April 14, 2009, 12:21 PM
> 
> I search a way more easy:right click in the project, to
> search
> ("resover...") and there is a way for select the
> '.jar'  and resolve
> the dependences of libraries.
> Regards
> Lisandro
> 
> > 
> 


  

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



[java ee programming] Re: tiles-blank-struts1-1

2009-04-14 Thread lisandrodc

I search a way more easy:right click in the project, to search
("resover...") and there is a way for select the '.jar'  and resolve
the dependences of libraries.
Regards
Lisandro

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



[java ee programming] Re: LAB-4215

2009-04-14 Thread lisandrodc

I found an easier way: click right in the project and there is an
option(now not recollecton exactly) that we select the archive and the
problem is solved.
Thanks!

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



[java ee programming] tiles-blank-struts1-1

2009-04-14 Thread biljana_bljn

Hi!
I copied from struts-template:
class folder in WEB-INF
commons-fileupload.jar
commons-lang.jar
commons-validator.jar
jakarta-oro.jar,
I add library from global
Struts 1.2...
But when I try to run tiles-blank-struts1-1
I got this error:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
C:\Documents and Settings\10.11.2006\My 
Documents\strutstiles\samples\tiles-blank-struts1-1\nbproject\build-impl.xml:518:
 Warning: Could not find file 
C:\handsonlabs\strutstiles\lib\commons-beanutils.jar to copy.
BUILD FAILED (total time: 0 seconds)
 
so I craeted  in C: 
folder :
handsonlabs
and there I copied unzip file strutstiles for  this Lab4215
and it works.
Now I am asking: Is it possible that  I didnt have to do all my copies from 
struts-template, and adding libraries ?
 
Regards,
Biljana
 


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



[java ee programming] Re: LAB-4215

2009-04-14 Thread Karl


The problems in the following samples in this same module get much worse.
Still unable to resolve. See long past unanswered questions...
~Karl

--- On Tue, 4/14/09, Biljana Biljana  wrote:

> From: Biljana Biljana 
> Subject: [java ee programming] Re: LAB-4215
> To: "Java EE (J2EE) Programming with Passion!" 
> , lisandr...@gmail.com
> Date: Tuesday, April 14, 2009, 11:01 AM
> Hi!
> I runed struts-template,
> but first made some changes in 
> templates.css, it is:
>  font_weight:normal;
> font_style:normal;
> like Karl said, and
>  
> before A.link I added one square bracket, and errase
> one after 
>  A.active{
> 
> }
> block, that is all I done and it works!
> Regards,
> Biljana
> 
> 
> --- On Tue, 4/14/09, lisandrodc
>  wrote:
> 
> 
> From: lisandrodc 
> Subject: [java ee programming] LAB-4215
> To: "Java EE (J2EE) Programming with Passion!"
> 
> Date: Tuesday, April 14, 2009, 10:11 AM
> 
> 
> 
> Hi! I have a problem with run the project struts-template,
> at unzip
> "4215_strutstiles.zip". At Run this project, the
> error in console:
> 
> init:
> deps-module-jar:
> deps-ear-jar:
> deps-jar:
> library-inclusion-in-archive:
> D:\Cursos Gratis\Curso
> JavaPassion\Herramientas\strutstiles\samples
> \tiles-blank-struts1-1\nbproject\build-impl.xml:517:
> Warning: Could
> not find file
> C:\handsonlabs\strutstiles\lib\commons-beanutils.jar
> to
> copy.
> BUILD FAILED (total time: 0 seconds)
> 
> Not find a way of change for that find the beanutils.jar(in
> netbeans)
> Thanks!
> 
> 
>  
> 
> > 
> 
> 
> 


  

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



[java ee programming] Re: LAB-4215

2009-04-14 Thread Biljana Biljana
Hi!
I runed struts-template,
but first made some changes in  templates.css, it is:
 font_weight:normal;
font_style:normal;
like Karl said, and
 
before A.link I added one square bracket, and errase one after 
 A.active{

}
block, that is all I done and it works!
Regards,
Biljana


--- On Tue, 4/14/09, lisandrodc  wrote:


From: lisandrodc 
Subject: [java ee programming] LAB-4215
To: "Java EE (J2EE) Programming with Passion!" 

Date: Tuesday, April 14, 2009, 10:11 AM



Hi! I have a problem with run the project struts-template, at unzip
"4215_strutstiles.zip". At Run this project, the error in console:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
D:\Cursos Gratis\Curso JavaPassion\Herramientas\strutstiles\samples
\tiles-blank-struts1-1\nbproject\build-impl.xml:517: Warning: Could
not find file C:\handsonlabs\strutstiles\lib\commons-beanutils.jar to
copy.
BUILD FAILED (total time: 0 seconds)

Not find a way of change for that find the beanutils.jar(in netbeans)
Thanks!





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



[java ee programming] LAB-4215

2009-04-14 Thread Biljana Biljana
Hi!
 
I saw that we dont have example pictures in lab exercise, or in homework. But 
how we know that our program is good?
 
Regards,
Biljana


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



[java ee programming] LAB-4215

2009-04-14 Thread lisandrodc

Hi! I have a problem with run the project struts-template, at unzip
"4215_strutstiles.zip". At Run this project, the error in console:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
D:\Cursos Gratis\Curso JavaPassion\Herramientas\strutstiles\samples
\tiles-blank-struts1-1\nbproject\build-impl.xml:517: Warning: Could
not find file C:\handsonlabs\strutstiles\lib\commons-beanutils.jar to
copy.
BUILD FAILED (total time: 0 seconds)

Not find a way of change for that find the beanutils.jar(in netbeans)
Thanks!

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



[java ee programming] Re: anyone interesting in about soa

2009-04-14 Thread Bill Gordon

Why are you asking us to do your homework?
Anyway, here is a usable reference: Design Patterns Explained, isbn  
0-201-71594-1


On Apr 13, 2009, at 11:24 AM, Erdem Bozbağ wrote:

>
> I need three examples for each one
>
>1.
>
>   Design Pattern Language
>
>2.
>
>   Design Standard
>
>3.
>
>   Best Practice
>
>
>
> >


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



Re: [BULK] [java ee programming] JPA:simple method to get all QUERYSET for a entity

2009-04-14 Thread Bill Gordon

1. Add a NamedQuery to the class:

@NamedQueries{(
   @NamedQuery (name = "Note.listAll", query = "SELECT n FROM Note n")
)}

2. Use JPA code like this:

List listAll {
   em =  getEntityManager();
   List theList = null;
   try {
   Query q = em.createNamedQuery("Note.listAll");
   theList = q.getResultList();
   Collections.sort(theList);
 }
 catch (Exception e)
 {
   java.util.logging.Logger.getLogger(getClass().getName()).log 
(java.util.logging.Level.SEVERE, "exception caught", e);
   throw new RuntimeException(e);
 }
 finally
 {
   em.close();
 }
   return(theList);
   }

3. The key point is that the entity class and JPA operate on single  
records




On Apr 13, 2009, at 12:04 PM, Coonay wrote:

>
> import javax.persistence.Entity
>
> @Entity
> public class Note implements IsSerializable {
> @Id
> @GeneratedValue(strategy = GenerationType.IDENTITY)
> private Long id;
> private String notePoster;
> }
>
> what is the simple method(simple means the least code) to get the all
> records for entity Note using JPA API?
>
> Note:some api calling like  Note.all() is what i expect,
>
> >


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