[java ee programming] Re: Unsubscribe

2009-08-20 Thread Vidmantas Maskoliūnas

Dear People,

I don't want to tutor those who want to unsubscribe, but... have you
tried to check the note at the bottom of each message? It says:


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


Please try using that information for your own sake.

Best regards,
Vidmantas Maskoliunas



On Thu, Aug 20, 2009 at 11:12 AM, kenneth kgatwanekgatwa...@hotmail.com wrote:
 Hi, how do I unsubscribe from this course??

 
 With Windows Live, you can organize, edit, and share your photos.
 




-- 
Vidmantas Maskoliūnas
+370 678 06000

--~--~-~--~~~---~--~~
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-08-20 Thread kenneth kgatwane

Hi, how do I unsubscribe from this course??

_
With Windows Live, you can organize, edit, and share your photos.
http://www.microsoft.com/southafrica/windows/windowslive/products/photo-gallery-edit.aspx
--~--~-~--~~~---~--~~
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] Invitation to connect on LinkedIn

2009-08-20 Thread Rasheed Amir
LinkedIn


Rasheed Amir requested to add you as a connection on LinkedIn:
--

Alex,

I'd like to add you to my professional network on LinkedIn.

- Rasheed


View invitation from Rasheed Amir
http://www.linkedin.com/e/Xbx0_c26-CekDCD1USx08YFPCI3-QV_MYbfZK_tZm7eHLON1W0b08e2Wmpy_D8g1eKcAjSCSpFvv65/blk/I1373658101_2/39vcj0Ne3kScPsPckALqnpPbOYWrSlI/svi/
 
--

DID YOU KNOW LinkedIn can help you find the right service providers using 
recommendations from your trusted network? Using LinkedIn Services, you can 
take the risky guesswork out of selecting service providers by reading the 
recommendations of credible, trustworthy members of your network. 
http://www.linkedin.com/e/svp/inv-25/

 
--
(c) 2009, LinkedIn Corporation


--~--~-~--~~~---~--~~
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] Servlet Basics Lab Exercise

2009-08-20 Thread Prathibha H M
Hi All,

In Servlet_Basics homework, I modified the existing code of Hello2 project
and it was successful.

I tried to create a new project MyHello2 and copied the 2 servlet
files(GreetingServlet and ResponseServlet) and modified the new web.xml.

Build is successful. But When I run the project I get the following error :

*D:\netbeans_projects\J2EE\MyHello2\nbproject\build-impl.xml:545: The module
has not been deployed.*

I have set the context path as /MyHello2 and URL as /greetings2 . Is there
any other change to be done?

Please can anybody help me on this.

Thank you

Regards,
Prathibha H.M.

--~--~-~--~~~---~--~~
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: Required help in using Data Source

2009-08-20 Thread Tommy

Thi is a example with datasource with oracle


//Server
package datasource;

import java.sql.*;
import javax.sql.*;
import oracle.jdbc.pool.OracleDataSource;
import javax.naming.*;
import java.util.*;

/**
 * A class to create a DataSource and bind it to a directory.
 */
public class DataSourceServer {
  static ResourceBundle bundle = null;

  public static void main(String[] args) {
bundle = ResourceBundle.getBundle(DataSource);
try {

  // create and store parameters which are used to create the
context
  Hashtable env = new Hashtable();
  env.put(Context.INITIAL_CONTEXT_FACTORY,
  bundle.getString(datasource.factory));
  env.put(Context.PROVIDER_URL, bundle.getString
(datasource.url));

  // create the context
  Context context = new InitialContext(env);

  // Create a DataSource object
  OracleDataSource dataSource = new OracleDataSource();

  // set the connection parameters
  String s = bundle.getString(datasource.username);
  dataSource.setUser(s);
  s = bundle.getString(datasource.password);
  dataSource.setPassword(s);
  s = bundle.getString(datasource.drivertype);
  dataSource.setDriverType(s);
  s = bundle.getString(datasource.netprotocol);
  dataSource.setNetworkProtocol(s);
  s = bundle.getString(datasource.server);
  dataSource.setServerName(s);
  dataSource.setPortNumber(getPort());
  s = bundle.getString(datasource.databasename);
  dataSource.setDatabaseName(s);

  // get the name
  String bindName = bundle.getString(datasource.bindname);

  // bind the DataSource with the name
  context.rebind(bindName, dataSource);
  System.out.println(DataSource completed);
} catch (Exception e) {
  e.printStackTrace();
}
  }

  static int getPort() throws NumberFormatException {
String s = bundle.getString(datasource.port);
return Integer.parseInt(s);
  }
}

//Client
package datasource;

import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.util.*;
import oracle.jdbc.pool.OracleDataSource;

public class DataSourceClient {
  Connection conn;
  static ResourceBundle bundle = ResourceBundle.getBundle
(MusicStore);//schema
  BasicDataSource dataSource;

  public DataSourceClient() {
Context context;

try {

  // create and store parameters which are used to create the
context
  Hashtable env = new Hashtable();
  env.put(Context.INITIAL_CONTEXT_FACTORY,
  bundle.getString(datasource.factory));
  env.put(Context.PROVIDER_URL, bundle.getString
(datasource.url));

  // create the context
  context = new InitialContext(env);

  // call method to get DataSource and Connection
  String bindName = bundle.getString(datasource.bindname);
  dataSource = (BasicDataSource) context.lookup(bindName);
} catch (Exception e) {
  e.printStackTrace();
}
  }

  public Connection getConnection() throws SQLException {
return dataSource.getConnection();
  }
}


On 17 ago, 23:23, pathak.ni...@gmail.com wrote:
 Datasource has properties which need to be altered for different containers  
 (container specific for physical connections in most of the cases), where  
 our datasource instance will be registered through JNDI API. There are  
 various ways for setting the datasource in Tomcat or WebSphere for that  
 matter. What is your requirement?

 On Aug 18, 2009 5:47am, raja sekhar rajsekhartiruveedh...@gmail.com wrote:

  Hi friends, My application requires connection pooling to database. For  
  that I am going for DataSource. Can any one help/guide me how to use with  
  simple program kind of the thing
  Thanks in advance
  --
  Raja.

--~--~-~--~~~---~--~~
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] text feild

2009-08-20 Thread deepuktvm draps

how to set text field as integer in java using netbean

--~--~-~--~~~---~--~~
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] web application

2009-08-20 Thread ANUJ KUMAR
how to exempt a ports from the firewall

--~--~-~--~~~---~--~~
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: Servlet Basics Lab Exercise

2009-08-20 Thread Diane Ramsey

 

Prathibha,

 

I think I had a similar problems at one point. Not sure if it was the exact 
same thing. But I removed the welcome-file-list elements from the web.xml. 
Also check the web.xml and make sure your servlets are defined only once and 
that only valid servlets are defined. Netbeans can automatically add tags to 
the web.xml.

 

Also check the configuration files against your original working hello2 project 
to see if you can spot an error.

Make sure you do a clean before you try to run.  (I don't build separately I 
just choose clean and then run.)

 

There is also info in various support forums on this. Some contain the same 
info as above; others recommend you clean, build and manually deploy. Actually 
someone stated they had to log into the admin console undeploy the module and 
then redeploy it from netbeans.

 

 

Hope this helps,

 

diane 


Date: Fri, 21 Aug 2009 03:28:39 +0800
Subject: [java ee programming] Servlet Basics Lab Exercise
From: prathibha...@gmail.com
To: java-ee-j2ee-programming-with-passion@googlegroups.com

Hi All,

In Servlet_Basics homework, I modified the existing code of Hello2 project and 
it was successful.

I tried to create a new project MyHello2 and copied the 2 servlet 
files(GreetingServlet and ResponseServlet) and modified the new web.xml.

Build is successful. But When I run the project I get the following error :

D:\netbeans_projects\J2EE\MyHello2\nbproject\build-impl.xml:545: The module has 
not been deployed. 

I have set the context path as /MyHello2 and URL as /greetings2 . Is there any 
other change to be done?

Please can anybody help me on this.

Thank you

Regards,
Prathibha H.M.




_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery
--~--~-~--~~~---~--~~
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: text feild

2009-08-20 Thread tariq masood


Hi Dear

basically JTextField is an swing component .
You need to do as given

e.g  
   JTextField txt1 = new JTextField();

   txt1.setText(25);

   String txtstr = txt1.getText();
   int txtint = Integer.parseInt(txtstr);


 now you can perform any arithmetic operation with txtint .

with best wishes

Tariq Masood



 Date: Thu, 20 Aug 2009 12:16:06 -0700
 Subject: [java ee programming] text feild
 From: deepuktv...@gmail.com
 To: java-ee-j2ee-programming-with-passion@googlegroups.com
 
 
 how to set text field as integer in java using netbean
 
  

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---