[java ee programming] How can work JPA with stored procedured in PostgreSQL

2008-09-17 Thread Hernán Nina Hanco
I need to know because the next stored procedure code to work after making several times click the command. public void crearAsientoIngreso(String fechaInicio, String fechaFin){ EntityManager em = javax.persistence.Persistence.createEntityManagerFactory("SigaConta10PU").createEntityManage

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread xich
Hi create a class with a main method. Just put new code into the main method. It will read input from the keyboard and print them. > Now, I'm confused where to insert this new code in the program > provided by Heman. > > > Sep 17, 2008 06:05:23 AM, [EMAIL PROTECTED] wrote: > Hi, > > please tr

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread raydisc
Now, I'm confused where to insert this new code in the program provided by Heman.Sep 17, 2008 06:05:23 AM, [EMAIL PROTECTED] wrote:Hi,please try . BufferedReader aBR=new BufferedReader(new InputStreamReader(System.in)); try { String aW=aBR.readLine(); System.out.print(aW); aBR.read(); } catc

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread Hemanth KE
try this... import java.io.*; public class ConsoleInput { public static String readLine() { StringBuffer response = new StringBuffer(); try { BufferedInputStream buff = new BufferedInputStream(System.in); int in = 0; char in

[java ee programming] (Struts and Databases) Lab 4222_Struts_DataBase

2008-09-17 Thread Ice-Man
Hi Sang, how u're doing?!! ;-)) We already get a great widely number of Struts Lab available. So I beleave DataBase Struts Lab would be more relevante and interesting (for the sake and completeness of Struts study), don't you agree?! Sang, do you get a previewing of 'Lab 4222_Stru

[java ee programming] Re: Substitute for Sun one Web Server

2008-09-17 Thread Ice-Man
On Sep 16, 1:48 pm, "SAUMIL MEHTA" <[EMAIL PROTECTED]> wrote: > Hi guys, > I have to enhance one application which is been developed in 2005 using Sun > One Web Server. > > Can I use Apache Tomcat instead of it? Sure, naturally!! ;-)) > > Or is it better to use Sun one web server? (if you restri

[java ee programming] how to implement ACEGI security in a java web Application(Non -Spring )

2008-09-17 Thread naveen jagotra
Hi All , Can Anyone tell me how to implement ACEGI security in a java web Application(Non -Spring ) . Thanks in Advance .. -- with Regards ' n' Thanks Naveen Jagotra --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread xich
Hi, please try . BufferedReader aBR=new BufferedReader(new InputStreamReader(System.in)); try { String aW=aBR.readLine(); System.out.print(aW); aBR.read(); } catch (IOException e) { // TODO Auto-generated catch bl

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread raydisc
I tried to run the program but I got an error message that says: Exception occurred: java.io.FileNotFoundException: LPT1 (The system cannot find the file specified)   I think the error occurred because I'm using a network printer.  It is connected directly to the router and the computer that I u

[java ee programming] Re: regarding get input from keyboard

2008-09-17 Thread raydisc
I tried to run  the program but I got an Exception error message that says: Exception occurred: java.io.FileNotFoundException: LPT1 (The system cannot find the file specified)I think the error occurred because my printer is a network printer. The printer is directly connected to the router and