[java ee programming] Hi Friends ! Looking for Java Experts

2009-07-16 Thread jitesh dundas

Hi Friends,

I am an MCA with 2 years experience, working in Mumbai.

I am well-versed with Java, but I need to improve my skills in it. The
reason is that I was working on other platforms till now.

I need to become an expert in Java and C/C++ to aid in my research
work.

I will be posting questions in my programming and hopefully you all
will help me out. I will do the same too.

I wish to send a mail using Javamail API for which I have wrtten a
code that compiles but gives a Connection Time Out. I am using gmail
smtp server.

What could be wrong?

Regards ,
Jitesh

--~--~-~--~~~---~--~~
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: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi,

This is another way I was trying to send my mail. Maybe you could help me
out here.
We have an SMTP server(server name and other details are available). I am
trying to send my mail via this server (and not gmail this time).

However, the code is compiling fine but gives a runtime error.Please have a
look and tell me what is wrong.
--

 Code:-
---
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

import java.util.Properties;


public class javamailauth
{

private static final String SMTP_HOST_NAME = "*..**.**";
private static final String SMTP_AUTH_USER = "**";
private static final String SMTP_AUTH_PWD  = "***";

public static void main(String[] args) throws Exception{
   new javamailauth().test();
}

public void test() throws Exception{
Properties props = new Properties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", SMTP_HOST_NAME);
 props.put("mail.smtp.port",80);
props.put("mail.smtp.auth", "true");

Authenticator auth = new SMTPAuthenticator();
Session mailSession = Session.getDefaultInstance(props, auth);
// uncomment for debugging infos to stdout
// mailSession.setDebug(true);
Transport transport = mailSession.getTransport();

MimeMessage message = new MimeMessage(mailSession);
message.setContent("This is a test", "text/plain");
message.setFrom(new InternetAddress("jit...@it.iitb.ac.in"));
message.addRecipient(Message.RecipientType.TO,new InternetAddress("
jiteshbdun...@gmail.com"));

transport.connect();
transport.sendMessage(message,message.getRecipients(
Message.RecipientType.TO));
transport.close();
}

private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication()
 {
   String username = SMTP_AUTH_USER;
   String password = SMTP_AUTH_PWD;
   return new PasswordAuthentication(username, password);
}
}
}
---
Error:-
---
C:\Program Files\Java\jdk1.5.0_10\bin>java javamailauth
Exception in thread "main" javax.mail.MessagingException: Could not connect
to S
MTP host: smtp-auth.iitb.ac.in, port: 80;
  nested exception is:
java.net.ConnectException: Connection timed out: connect
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1545)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:45
3)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javamailauth.test(javamailauth.java:38)
at javamailauth.main(javamailauth.java:17)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at
com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:267)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1511)
... 6 more

C:\Program Files\Java\jdk1.5.0_10\bin>

---

Note: For connecting to the internet, we use a UserName and Password . Once
this is done, we can go and browse any page, include the mailing websites(
our institution mail box too). After this authentication, we goto the
institution email website and enter our Email UserName and Password.

Am I entering the credentials correctly. My PC's Ip Address has been added
to the MTA of the SMTP server. Thus the emails must be relayed properly.

Please help.

Thanks & Regards,
Jitesh Dundas


On Fri, Jul 17, 2009 at 11:02 AM, Vasile Braileanu <
vasilebraile...@gmail.com> wrote:

> Hi,
> Did you use a SSL connection on port 465?
>
> Best regards,
> Vasile Braileanu
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with 

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi Frends,

I changed the port to 25 as this is the one used for sending emails. Now I
am getting this error:-


C:\Program Files\Java\jdk1.5.0_10\bin>java Mailer
There was an error in sending the mail. Please check the username, password
and
the mail-server information provided
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 554 <
jit...@it.iitb.ac.in>
: Relay access denied
;
  nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 554 <
jbdun...@gmail.com>:
Relay access denied

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1446)
at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:736)
at javax.mail.Transport.send0(Transport.java:191)
at javax.mail.Transport.send(Transport.java:120)
at Mailer.postMail(Mailer.java:82)
at Mailer.main(Mailer.java:30)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <
jit...@it.iitb.ac.
in>: Relay access denied
;
  nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 554 <
jbdun...@gmail.com>:
Relay access denied

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1344)
... 5 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <
jbdun...@gmail.com
>: Relay access denied

... 6 more

C:\Program Files\Java\jdk1.5.0_10\bin>


Please help..
Thanks & Regards,
Jitesh Dundas


On Tue, Jul 21, 2009 at 3:54 PM, jitesh dundas  wrote:

> Hi,
>
> This is another way I was trying to send my mail. Maybe you could help me
> out here.
> We have an SMTP server(server name and other details are available). I am
> trying to send my mail via this server (and not gmail this time).
>
> However, the code is compiling fine but gives a runtime error.Please have a
> look and tell me what is wrong.
> --
>
>  Code:-
> ---
> import javax.mail.*;
> import javax.mail.internet.*;
> import javax.mail.Authenticator;
> import javax.mail.PasswordAuthentication;
>
> import java.util.Properties;
>
>
> public class javamailauth
> {
>
> private static final String SMTP_HOST_NAME = "*..**.**";
> private static final String SMTP_AUTH_USER = "**";
> private static final String SMTP_AUTH_PWD  = "***";
>
> public static void main(String[] args) throws Exception{
>new javamailauth().test();
> }
>
> public void test() throws Exception{
> Properties props = new Properties();
> props.put("mail.transport.protocol", "smtp");
> props.put("mail.smtp.host", SMTP_HOST_NAME);
>  props.put("mail.smtp.port",80);
> props.put("mail.smtp.auth", "true");
>
> Authenticator auth = new SMTPAuthenticator();
> Session mailSession = Session.getDefaultInstance(props, auth);
> // uncomment for debugging infos to stdout
> // mailSession.setDebug(true);
> Transport transport = mailSession.getTransport();
>
> MimeMessage message = new MimeMessage(mailSession);
> message.setContent("This is a test", "text/plain");
> message.setFrom(new InternetAddress("jit...@it.iitb.ac.in"));
> message.addRecipient(Message.RecipientType.TO,new
> InternetAddress("jiteshbdun...@gmail.com"));
>
> transport.connect();
> transport.sendMessage(message,message.getRecipients(
> Message.RecipientType.TO));
> transport.close();
> }
>
> private class SMTPAuthenticator extends javax.mail.Authenticator {
> public PasswordAuthentication getPasswordAuthentication()
>  {
>String username = SMTP_AUTH_USER;
>String password = SMTP_AUTH_PWD;
>return new PasswordAuthentication(username, password);
> }
> }
> }
> ---
> Error:-
> ---
> C:\Program Files\Java\jdk1.5.0_10\bin>java javamailauth
> Exception in thread "main" javax.mail.MessagingException: Could not connect
> to S
> MTP host: smtp-auth.iitb.ac.in, port: 80;
>
>   nested exception is:
> java.net.ConnectException: Connection timed out: connect
> at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1545)
> at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:45
> 3)
> at javax.mail.Service.con

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi,

Many thanks for your reply(Also for the usage of your code on my other email
id:-jiteshbdun...@gmail.com  :)  ).

I implemented the code that you told me to add:
Code is as follows:-

--
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

import java.util.Properties;


public class javamailauth
{

private static final String SMTP_HOST_NAME = "-..**.**";
private static final String SMTP_AUTH_USER = "**";
private static final String SMTP_AUTH_PWD  = "***";

public static void main(String[] args) throws Exception{
   new javamailauth().test();
}

public void test() throws Exception{
Properties props = new Properties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", SMTP_HOST_NAME);

props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.socketFactory.port", 465);
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");

//props.put("mail.smtp.port",25);
props.put("mail.smtp.auth", "true");

Authenticator auth = new SMTPAuthenticator();
Session mailSession = Session.getDefaultInstance(props, auth);
// uncomment for debugging infos to stdout
 mailSession.setDebug(true);
Transport transport = mailSession.getTransport();

MimeMessage message = new MimeMessage(mailSession);
message.setContent("This is a test", "text/plain");
message.setFrom(new InternetAddress("jit...@it.iitb.ac.in"));
message.addRecipient(Message.RecipientType.TO,new InternetAddress("
jiteshbdun...@gmail.com"));

transport.connect();
transport.sendMessage(message,message.getRecipients(
Message.RecipientType.TO));
transport.close();
}

private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication()
{
   String username = SMTP_AUTH_USER;
   String password = SMTP_AUTH_PWD;
   return new PasswordAuthentication(username, password);
}
}
}

-

Error that I get is :-
---
C:\Program Files\Java\jdk1.5.0_10\bin>java javamailauth
DEBUG: setDebug: JavaMail version 1.4.2
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s
mtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp-auth.iitb.ac.in", port 25, isSSL
fal
se
Exception in thread "main" javax.mail.MessagingException: Could not connect
to S
MTP host: smtp-auth.iitb.ac.in, port: 25;
  nested exception is:
java.net.ConnectException: Connection timed out: connect
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1545)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:45
3)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javamailauth.test(javamailauth.java:44)
at javamailauth.main(javamailauth.java:17)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java
:549)
at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketI
mpl.java:141)
at
com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:267)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:201)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1511)
... 6 more

C:\Program Files\Java\jdk1.5.0_10\bin>



Is this some kind of authentication problem? The code is compiling fine but
it gives the above runtime error.

Thanks & Regards,
Jitesh Dundas

On Tue, Jul 21, 2009 at 7:11 PM, pacior  wrote:

>
> What You need is to write code responsible for using ssl withjavamail
> api:
> For instance, for gmail, ssl port is 465:
>
> 

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi,

Thanks for your reply. The smtp-server name seems to be fine. For
authentication, I enter only the username and password.

Though username/password are correct(this is my mail id/password for this
institution), I am getting a feeling that the code is fine but there is some
issue in the credentials supplied(as you have pointed out).

Any suggestions how I could check if my credentials are fine.

Also, I have also got the Relay Access is denied error earlier. Should I get
a verification if the relay is allowed for my IP address.

Any settings I need to take care of here. Also, how do I get them checked.

I request your reply.

Thanks & Regards,
Jitesh Dundas


On Tue, Jul 21, 2009 at 8:23 PM, Mick Timony  wrote:

> I see two problems.
>
> The first is this:
>
> javax.mail.SendFailedException: Invalid Addresses;
>   nested exception is:
> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
> jit...@it.iitb.ac.in>
> : Relay access denied
>
> It's not recognising your credentials, so either your username/password is
> incorrect, or you need to use something else to authenticate. It's possible
> that you need to use just the username without the domain, or some variation
> on the domain.
>
> The second one is this:
>
> nested exception is:
> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
> jbdun...@gmail.com>:
> Relay access denied
>
> Most servers disable "relay access" to prevent unauthorized users from
> using their mail servers (to send spam). See this article on "Open Relay"
> for more details: http://en.wikipedia.org/wiki/Open_mail_relay .
>
> Mick T.
>
>
> On Tue, Jul 21, 2009 at 8:20 AM, jitesh dundas  wrote:
>
>> Hi Frends,
>>
>> I changed the port to 25 as this is the one used for sending emails. Now I
>> am getting this error:-
>>
>>
>> C:\Program Files\Java\jdk1.5.0_10\bin>java Mailer
>> There was an error in sending the mail. Please check the username,
>> password and
>> the mail-server information provided
>> javax.mail.SendFailedException: Invalid Addresses;
>>   nested exception is:
>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>> jit...@it.iitb.ac.in>
>> : Relay access denied
>> ;
>>   nested exception is:
>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>> jbdun...@gmail.com>:
>> Relay access denied
>>
>> at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1446)
>> at
>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:736)
>> at javax.mail.Transport.send0(Transport.java:191)
>> at javax.mail.Transport.send(Transport.java:120)
>> at Mailer.postMail(Mailer.java:82)
>> at Mailer.main(Mailer.java:30)
>> Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>> jit...@it.iitb.ac.
>> in>: Relay access denied
>> ;
>>   nested exception is:
>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>> jbdun...@gmail.com>:
>> Relay access denied
>>
>> at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1344)
>> ... 5 more
>> Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>> jbdun...@gmail.com
>> >: Relay access denied
>>
>> ... 6 more
>>
>> C:\Program Files\Java\jdk1.5.0_10\bin>
>>
>>
>> Please help..
>> Thanks & Regards,
>> Jitesh Dundas
>>
>>
>> On Tue, Jul 21, 2009 at 3:54 PM, jitesh dundas wrote:
>>
>>> Hi,
>>>
>>> This is another way I was trying to send my mail. Maybe you could help me
>>> out here.
>>> We have an SMTP server(server name and other details are available). I am
>>> trying to send my mail via this server (and not gmail this time).
>>>
>>> However, the code is compiling fine but gives a runtime error.Please have
>>> a look and tell me what is wrong.
>>> --
>>>
>>>  Code:-
>>>
>>> ---
>>> import javax.mail.*;
>>> import javax.mail.internet.*;
>>> import javax.mail.Authenticator;
>>> import javax.mail.PasswordAuthentication;
>>>
>>> import java.util.Properties;
>>>
>>>
>>> public class javamailauth
>>> {
>>>
>>> private static final String SMTP_HOST_NAME = "*..**.**";
>>> private static final String SMTP_AUTH_U

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi,

Yes I am sending my mails from my localhost machine but it is in my
institution network. I have the host name, ID/PWD but this does not seem to
work correctly.

I am getting certain that this is a networks/admin/permissions issue and not
a programming issue now.

Any comments ?


Thanks & Regards,
Jitesh Dundas

On Tue, Jul 21, 2009 at 10:54 PM, Ice-Man wrote:

>   Oh, Jetesh
>
>   Are u trying to execute it "locally (from localhost/your computer) and
> are your computer connected within a coorporate network??!
>   Maybe, Mail Sending from Desktop (localhost) within your network.
>
> I'm gonna tell u my cas/instance: Here where I work, my App running from
> localhost canNOT send E-Mails. So, I need to (bias (the sending mail) flux
> to console) generate my App .WAR, ask to Deploy it to Developing, ou
> Homologation, Enviroment then I can "test" sending mail, get it??! :O
>
> Ice-Man
>
> 2009/7/21 jitesh dundas 
>
>> Hi,
>>
>> Thanks for your reply. The smtp-server name seems to be fine. For
>> authentication, I enter only the username and password.
>>
>> Though username/password are correct(this is my mail id/password for this
>> institution), I am getting a feeling that the code is fine but there is some
>> issue in the credentials supplied(as you have pointed out).
>>
>> Any suggestions how I could check if my credentials are fine.
>>
>> Also, I have also got the Relay Access is denied error earlier. Should I
>> get a verification if the relay is allowed for my IP address.
>>
>> Any settings I need to take care of here. Also, how do I get them checked.
>>
>> I request your reply.
>>
>> Thanks & Regards,
>> Jitesh Dundas
>>
>>
>>
>> On Tue, Jul 21, 2009 at 8:23 PM, Mick Timony wrote:
>>
>>> I see two problems.
>>>
>>> The first is this:
>>>
>>> javax.mail.SendFailedException: Invalid Addresses;
>>>   nested exception is:
>>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>>> jit...@it.iitb.ac.in>
>>> : Relay access denied
>>>
>>> It's not recognising your credentials, so either your username/password
>>> is incorrect, or you need to use something else to authenticate. It's
>>> possible that you need to use just the username without the domain, or some
>>> variation on the domain.
>>>
>>> The second one is this:
>>>
>>> nested exception is:
>>>     com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>>> jbdun...@gmail.com>:
>>> Relay access denied
>>>
>>> Most servers disable "relay access" to prevent unauthorized users from
>>> using their mail servers (to send spam). See this article on "Open Relay"
>>> for more details: http://en.wikipedia.org/wiki/Open_mail_relay .
>>>
>>> Mick T.
>>>
>>>
>>>   On Tue, Jul 21, 2009 at 8:20 AM, jitesh dundas wrote:
>>>
>>>>  Hi Frends,
>>>>
>>>> I changed the port to 25 as this is the one used for sending emails. Now
>>>> I am getting this error:-
>>>>
>>>>
>>>> C:\Program Files\Java\jdk1.5.0_10\bin>java Mailer
>>>> There was an error in sending the mail. Please check the username,
>>>> password and
>>>> the mail-server information provided
>>>> javax.mail.SendFailedException: Invalid Addresses;
>>>>   nested exception is:
>>>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>>>> jit...@it.iitb.ac.in>
>>>> : Relay access denied
>>>> ;
>>>>   nested exception is:
>>>> com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>>>> jbdun...@gmail.com>:
>>>> Relay access denied
>>>>
>>>> at
>>>> com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1446)
>>>> at
>>>> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:736)
>>>> at javax.mail.Transport.send0(Transport.java:191)
>>>> at javax.mail.Transport.send(Transport.java:120)
>>>> at Mailer.postMail(Mailer.java:82)
>>>> at Mailer.main(Mailer.java:30)
>>>> Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <
>>>> jit...@it.iitb.ac.
>>>> in>: Relay access denied
>>>> ;
>>>>   nested exception i

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-21 Thread jitesh dundas
Hi,

I did that as you suggested. It gave me this response:-

C:\>ping smtp-auth.iitb.ac.in

Pinging smtp-auth.iitb.ac.in [10.200.1.125] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.200.1.125:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

=--

My Sys Admin told me that Ping will not work for smtp server (Dont know why,
must be some protection policy),

I tried ping using localhost:-
---
C:\>ping localhost

Pinging dil [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
---

so I tried telnet.

telnet smtp-auth.iitb.ac.in 25

In response, screen clears and I get this reply.

220 smtp-auth.iitb.ac.in ESMTP Postfix

This means it is connecting here.

Next I tried this :-

C:\>telnet smtp-auth.iitb.ac.in 465
Connecting To smtp-auth.iitb.ac.in...Could not open connection to the host,
on p
ort 465: Connect failed


Does this mean I have to change the port to 25 to connect to the server.I
tried that too in my code and I get this :-

---

C:\Program Files\Java\jdk1.5.0_10\bin>java javamailauth
DEBUG: setDebug: JavaMail version 1.4.2
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s
mtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp-auth.iitb.ac.in", port 25, isSSL
fal
se
DEBUG SMTP: exception reading response: javax.net.ssl.SSLException:
Unrecognized
 SSL message, plaintext connection?
Exception in thread "main" javax.mail.MessagingException: Exception reading
resp
onse;
  nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connecti
on?
at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
:1764)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1523)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:45
3)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javamailauth.test(javamailauth.java:44)
at javamailauth.main(javamailauth.java:17)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
conne
ction?
at
com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRec
ord.java:521)
at
com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.j
ava:723)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SS
LSocketImpl.java:1030)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketIm
pl.java:678)
at
com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:
75)
at
com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:106)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:84)
at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
:1742)
... 7 more

C:\Program Files\Java\jdk1.5.0_10\bin>

-

Can somebody please tell me what is wrong or missing here. The code seems to
be fine, there is some connection/settings issue. How do I resolve this
problem?

Thanks & Regards,
Jitesh Dundas



On Wed, Jul 22, 2009 at 1:25 AM, pacior  wrote:

> The problem is that the host: smtp-auth.iitb.ac.in is not responding
> now.
> You can check that host is responding ( or not responding ) typing:
> ping hostname in windows or linux operating system.
> my smtp client: smtp.gmail.com is responding on that command.
>
> On Jul 21, 7:38 pm, jitesh dundas  wrote:
> > Hi,
> >
> > Thanks for your reply. The smtp-server name seems to be fine. For
> > authentication, I enter only the username and password.
> >
> > Though username/password are correct(this is my mail id/password for this
> > institution), I am getting a feeling that the code is fine but there i

[java ee programming] Re: Hi Friends ! Looking for Java Experts

2009-07-24 Thread jitesh dundas
Dear All,

For 1-2 days I went through some stuff about SMTP servers and I found the
James Apache SMTP server a good choice for my testing. It seems my IP
Address has not been added to the MTA of the SMTP Server. Thus, this will
take some permissions and thus some time before I can do that.

When I setup my Apache James Server(SMTP) on my localhost, the code (the
simple one without SSL authentication ) ran just beautifully. I will do the
same for SSL authentication code too.

Thank you everyone for helping me out. I think it is a network settings
issue and not a problem in my code.

IS anyone familiar with James Apache SMTP server. I am thinking of using it
for our live project, as this permissions issue is really tedious. Having
our own server is good for us too.

I want to change my server name from localhost to my IP Address alias . Can
other people in my network access it. If yes, how. Where do register this
alias. I want to to create a mail like jit...@dil-lab.org ..

Can anyone help me out here.

Thanks & Regards,
Jitesh Dundas

On Thu, Jul 23, 2009 at 6:09 PM, Ice-Man  wrote:

>   As what meant (was meaning) your "network" doesN'T Alow local mail
> sending. You have to find out the Secure Polititians with the net
> administrator / infra-structure staff.
>   Try to deploy the App (.WAR) in a Test Server (or even
> Production/Official Server). So, test mailling sending within these
> Enviroments.
>   Hope helping
>
> Ice-Man
>
> 2009/7/22 jitesh dundas 
>
>> Hi,
>>
>> I did that as you suggested. It gave me this response:-
>>
>> C:\>ping smtp-auth.iitb.ac.in
>>
>> Pinging smtp-auth.iitb.ac.in [10.200.1.125] with 32 bytes of data:
>>
>> Request timed out.
>> Request timed out.
>> Request timed out.
>> Request timed out.
>>
>> Ping statistics for 10.200.1.125:
>> Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
>>
>> =--
>>
>> My Sys Admin told me that Ping will not work for smtp server (Dont know
>> why, must be some protection policy),
>>
>> I tried ping using localhost:-
>> ---
>> C:\>ping localhost
>>
>> Pinging dil [127.0.0.1] with 32 bytes of data:
>>
>> Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
>> Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
>> Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
>> Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
>>
>> Ping statistics for 127.0.0.1:
>> Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
>> Approximate round trip times in milli-seconds:
>> Minimum = 0ms, Maximum = 0ms, Average = 0ms
>> ---
>>
>> so I tried telnet.
>> 
>> telnet smtp-auth.iitb.ac.in 25
>>
>> In response, screen clears and I get this reply.
>>
>> 220 smtp-auth.iitb.ac.in ESMTP Postfix
>>
>> This means it is connecting here.
>>
>> Next I tried this :-
>>
>> C:\>telnet smtp-auth.iitb.ac.in 465
>> Connecting To smtp-auth.iitb.ac.in...Could not open connection to the
>> host, on p
>> ort 465: Connect failed
>>
>> 
>> Does this mean I have to change the port to 25 to connect to the server.I
>> tried that too in my code and I get this :-
>>
>> ---
>>
>> C:\Program Files\Java\jdk1.5.0_10\bin>java javamailauth
>> DEBUG: setDebug: JavaMail version 1.4.2
>> DEBUG: getProvider() returning
>> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s
>> mtp.SMTPTransport,Sun Microsystems, Inc]
>> DEBUG SMTP: useEhlo true, useAuth true
>> DEBUG SMTP: useEhlo true, useAuth true
>> DEBUG SMTP: trying to connect to host "smtp-auth.iitb.ac.in", port 25,
>> isSSL fal
>> se
>> DEBUG SMTP: exception reading response: javax.net.ssl.SSLException:
>> Unrecognized
>>  SSL message, plaintext connection?
>> Exception in thread "main" javax.mail.MessagingException: Exception
>> reading resp
>> onse;
>>   nested exception is:
>> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
>> connecti
>> on?
>> at
>> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
>> :1764)
>> at
>> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1523)
>> at
>> com.sun.mail.smtp.SMTPTransport.p

[java ee programming] Re: Need Help on Java Script

2009-07-27 Thread jitesh dundas
Hi

You have to select the event in which you wish to call the function. The
call for the function will be in the text box field itself.

Create a span or div tag for that part besides the name text field. Keep it
hidden by default. Once it enters the error validation, then make the div /
span field as visible.

Alternatively you could populate the span or div tag with the error message
using the "innerhtml" in javascript.

document.forms.field.innerhtml = "Error";

Alternatively , you could use hidden/display part for the error message.

Hope this helps.


Thanks & Regards,
Jitesh Dundas


On Mon, Jul 27, 2009 at 2:53 PM, aryan  wrote:

>
> How can i show inline error message.
> For Example:-  If any one leave name field blank and move to next
> field in html form then java script must show error next to name text
> field.
> I am using script dialog box but want to use inline error.
>
> CAN ANY ONE TELL HOW SHOULD I DO THIS.
> Please. 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?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Hi Friends ! Need Help

2009-07-31 Thread jitesh dundas
Hi Friends,

I have this issue. I have written an Ajax code(googiespell API-->*
orangoo.com/labs/GoogieSpell/ *) to get the Spell check functionality.

All works fine in IE but it gives me a Security Exception in Mozilla (the
security model is different.)



The gmail server is an outside domain so it throws an exception.

Can you tell me how I can get rid of this error using URL Connection class.

Error:-
---
Error: uncaught exception: [Exception... "Access to restricted URI denied"
code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "
http://localhost:8080/newproject/ajaxspellchecker.jsp# Line: 247"]
--


Client-Side Code


 function spell_check()
 {
  alert("spell check function");
  var val = document.getElementById("txtspellcheckid").value ;
  var googie1 = new GoogieSpell("googiespell/",
"/newproject/spellchecking.jsp?lang=");
  googie1.decorateTextarea("txtspellcheckid");
  alert("done");
 }
  



where txtspellcheckid is the textarea on which spellcheck will work
-

Server-Side Script Code
--

<%@ page language = "java" %>
<%@ page import = "java.sql.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.io.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.net.*" %>
<%


URL url;
HttpURLConnection connection = null;
String lang = (request.getParameter("lang")).trim();
String urlParameters = "";//"lang=" + URLEncoder.encode(lang, "UTF-8");

targetURL = https://www.google.com/tbproxy/spell?lang="+lang ;

try
{
  //Create connection
  url = new URL(targetURL);
  connection = (HttpURLConnection)url.openConnection();
  connection.setRequestMethod("POST");
  connection.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");

   BASE64Encoder enc = new sun.misc.BASE64Encoder();
  String userpassword = "P09132" + ":" + "jitesh*";
  String encodedAuthorization = enc.encode( userpassword.getBytes() );
  connection.setRequestProperty("Authorization", "Basic " +
encodedAuthorization);

  connection.setRequestProperty("Content-Length", "" +
Integer.toString(urlParameters.getBytes().length));
  connection.setRequestProperty("Content-Language", "en-US");

  connection.setUseCaches (false);
  connection.setDoInput(true);
  connection.setDoOutput(true);

  //Send request
  DataOutputStream wr = new DataOutputStream (
  connection.getOutputStream ());
  wr.writeBytes (urlParameters);
  wr.flush ();
  wr.close ();

  //Get Response
  InputStream is = connection.getInputStream();
  BufferedReader rd = new BufferedReader(new InputStreamReader(is));
  String line;
  StringBuffer response = new StringBuffer();
  while((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
  }
  rd.close();
  return response.toString();

} catch (Exception e) {

  e.printStackTrace();
  return null;

} finally {

  if(connection != null) {
connection.disconnect();
  }
}
 --
Client-Side Script (This is all fine. This script calls the JSP page which
in turn calls the Google Spell Check page). This way the above error should
not come. Yet it gives, --->An error was encountered on the server. Please
try again later." prompt

---\

Please help...I am really thankful for your help in my javamail issue. :).



I request your reply.


Thanks & Regards,
Jitesh Dundas

--~--~-~--~~~---~--~~
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: Build e-commerce website using JavaEE?

2009-08-05 Thread jitesh dundas

Hi Atif,

I agree with you completely.

Hi Kevin,

I suggested the same link of konakat in my previous mails.

To save time, it is better to deploy an existing solution than build a new one.

It is no use reinventing the wheel, unless the final product will be a
better wheel.

MySQL is an open-source database. You can use JavaMail API for sending emails.

Hope this helps.

--~--~-~--~~~---~--~~
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] Build e-commerce website using JavaEE?

2009-08-06 Thread jitesh dundas
Hope this helps. Check the mailing list for this conversation.

Regards,
JD

On 8/6/09, NWOKOLO SUNDAY  wrote:
>
>   hi
> i am interested in using java to design e-commerce site
>
>
> >
>
-- Forwarded message --
From: jitesh dundas 
Date: Aug 5, 2009 6:31 PM
Subject: Re: [java ee programming] Build e-commerce website using JavaEE?
To: kaidiz...@gmail.com

Hi kevin,

You will need JSp/Servlets and a backend database at the least.

Just search for a e-commerce website and there are plenty of programs and
tutorials available.

Websites like www.w3schools.com have good tutorials.

These days, Ajax is very important, so you could use a library (yahoo
Interface library is one of the best , also jQuery is supported by Google
APIs) so you could use them too.

For payment options (gateways) , paypal has API for developers. check their
website.

JSTL reduces the code on JSP pages and I use it regulary now. You might like
Java Server faces too.

Java Tutorial on java.sun.com website is very good.

Security will be an issue too. So avoid using cookies or queryString
directly.


Let me know if you need anything else.

Hope this helps.

Regards,
Jitesh

 On 8/5/09, Kevin  wrote:
>
>
> I am wondering, for a typical e-commerce website, that supports
> customer login, browsing products, adding to cart, checkout, and
> paying by credit card, what are the exact products or techniques it
> may need? I am familiar with JavaSE, but javaEE is kind of huge and I
> assume it will be helpful, but exactly which ones/parts?
>
> Any keywords (or URLs) are welcome so I can do some google on that.
>
> Also, are there any existing products/projects that can help on this?
> (say, I only need to customize the UI, hook up my own payment
> information, etc.)
>
> Thanks.
> Kevin
>
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
>
>


-- 
Thanks & Regards,
Jitesh Dundas

Research Associate, DIL Lab,
IIT-Bombay(www.dil.iitb.ac.in),

Scientist, Edencore Technologies(www.edencore.net)

Phone:- +91-9860925706

http://jiteshbdundas.blogspot.com

"No idea is stupid,either its too good to be true, or its way ahead of its
future"- GEORGE BERNARD SHAW.

--~--~-~--~~~---~--~~
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: can anyone please tell me wat does this code mean??

2009-08-15 Thread jitesh dundas
Hi,

This is the code for connection to a database using the ODBC Driver for
Java.

The code explanation is as follows:-

public Connection getConnection()
   {

*this defines the start of the method i.e. the connection code is written in
this method.*

   Connection con = null;
   try
   {

*here you declare the Connection object . INitially it is set to null. Next
the Try block is defined.*

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

*This line loads the Driver i.e. the Java ODBC driver in this case.*

   con =
DriverManager.getConnection("jdbc:odbc:TSMS","TSMS","TSMS");

*Using the loaded driver, next the connection is made using the
getConnection method of the DriverManager Class. Credentials that are to be
supplied to this method are DSN Name , user name and password. i.e. ( DSN
Name, username ,password)*

   System.out.println("Con : "+con);

*Here we just print the connection details to the system console*

 return con;
*Here we return the Connection object to the program where this user-defined
method getConnection was called.*

   }
   catch(Exception e)
   {

*This defines the Exception handling. If any error occurs, then this
exception handler thorws the details of this error to the system console
using the statement below.*

   System.out.println("Exception  ");


   e.printStackTrace();
*The above line prints the entire stack of the flow in which Error was
generatred by Java. It gives details as to the reason behind the error*

   }
   return null;

*Close the function and return null in such a case*

*I suggest you place the return null statement in the Exception block rather
than at the end of execution. The code seems fine for now. But it is better
you keep it inside to make it modular.*

Hope this helps,
Jitesh Dundas

On 8/15/09, jatti  wrote:
>
>
> public Connection getConnection()
>{
>Connection con = null;
>try
>{
>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>con =
> DriverManager.getConnection("jdbc:odbc:TSMS","TSMS","TSMS");
>System.out.println("Con : "+con);
>return con;
>}
>catch(Exception e)
>{
>System.out.println("Exception  ");
>e.printStackTrace();
>}
>return null;
>
> >
>


-- 
Thanks & Regards,
Jitesh Dundas

Research Associate, DIL Lab,
IIT-Bombay(www.dil.iitb.ac.in),

Scientist, Edencore Technologies(www.edencore.net)

Phone:- +91-9860925706

http://jiteshbdundas.blogspot.com

"No idea is stupid,either its too good to be true, or its way ahead of its
future"- GEORGE BERNARD SHAW.

--~--~-~--~~~---~--~~
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] Fwd: Code

2009-08-21 Thread jitesh dundas
Hi Friends,

I need your help in this problem of URL Connection class.

I have to make a hit to the google spellcheck functionality(link mentioned
in the code), and get the resultset.

However, the code compiles fine but gives me run-time exeption: Connection
time out.

I just want to hit to an external website and get the result back. I am not
able to do the same for any website:-

Can you tell what is going wrong here:-

Code:-
--

import java.net.*;
import java.io.*;
import java.util.*;

public class TestAuth
{
  public static void main (String args[])
  {

String targetURL = "https://www.google.com/tbproxy/spell?lang=en";;
try
{

  System.setProperty("http.proxyHost", "*.**..**.**");
  System.setProperty("http.proxyPort", "**");

  BufferedReader in = new BufferedReader(new
InputStreamReader(openURLForInput(new URL(targetURL),"*","")));
  String line;
  while ((line = in.readLine()) != null)
  {
  System.out.println(line);
  }
}
catch (IOException e)
{
  e.printStackTrace();
}
  }


  public static InputStream openURLForInput(URL url, String uname, String
pword) throws IOException
  {
URLConnection conn = url.openConnection();
conn.setDoInput (true);
conn.setRequestProperty
("Authorization",userNamePasswordBase64(uname,pword));
conn.connect ();
return conn.getInputStream();
  }

  public static String userNamePasswordBase64
   (String username, String password)
  {
return "Basic " + base64Encode (username + ":" + password);
  }

  private final static char base64Array [] =
  {
  'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
  'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
  'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
  'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
  'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  'w', 'x', 'y', 'z', '0', '1', '2', '3',
  '4', '5', '6', '7', '8', '9', '+', '/'
  };



  private static String base64Encode (String string)
  {
String encodedString = "";
byte bytes [] = string.getBytes ();
int i = 0;
int pad = 0;
while (i < bytes.length) {
  byte b1 = bytes [i++];
  byte b2;
  byte b3;
  if (i >= bytes.length) {
 b2 = 0;
 b3 = 0;
 pad = 2;
 }
  else {
 b2 = bytes [i++];
 if (i >= bytes.length) {
b3 = 0;
pad = 1;
    }
 else
b3 = bytes [i++];
 }
  byte c1 = (byte)(b1 >> 2);
  byte c2 = (byte)(((b1 & 0x3) << 4) | (b2 >> 4));
  byte c3 = (byte)(((b2 & 0xf) << 2) | (b3 >> 6));
  byte c4 = (byte)(b3 & 0x3f);
  encodedString += base64Array [c1];
  encodedString += base64Array [c2];
  switch (pad) {
   case 0:
 encodedString += base64Array [c3];
 encodedString += base64Array [c4];
 break;
   case 1:
 encodedString += base64Array [c3];
 encodedString += "=";
 break;
   case 2:
 encodedString += "==";
 break;
   }
  }
  return encodedString;
  }
}
--



Thanks in advance.



Regards,

Jitesh Dundas

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



Re: Về: [java ee programming] Fwd: Code

2009-08-21 Thread jitesh dundas
Hi,

Many thanks for your reply. I am using the Googie SpellCheck functionality
for spell check in my JSP page(Ajax based.)

http://orangoo.com/labs/GoogieSpell/
http://orangoo.com/labs/GoogieSpell/Documentation/

Now, I have a JSP page that referes to this .js library of googiespell.


As per the directions on their page, i entered the link->
https://www.google.com/tbproxy/spell?lang=en in my JSP code but it works
fine for IE but for Mozilla it gives Security exception.

Thus, I have to write a URLConeection class (see the last part of
googiespell Documentation page whose link is given above) that will send the
request to google on behalf of JSP page.

JSP Code:- (File attached with this email)
The googiespell library is stored in the .js folder of the project (stored
in webapps directory of tomcat engine. no problems here.all configurations
are ok.)

As I have to pass the authentication and also the Mozilla security issue, it
gives me BAD_URI exception in Error Console. No Issues in IE.

This program is for this purpose. I hope you can help me out here.

Regards,
JD

On Fri, Aug 21, 2009 at 5:07 PM, Duy Khang Vo wrote:

>
> There are two problems here:
> 1/ This sites seem not working well or the url is wrong
> https://www.google.com/tbproxy/spell?lang=en
> 2/ The problem may be because of your proxy server.. Check out to see if
> you type right ip and port. Also check out if there is any authentication
> there.
> This code should work well from any machine not behind the proxy server
> import java.net.*;
> import java.io.*;
> import java.util.*;
>
> public class TestAuth {
>
> public static void main(String args[]) {
>
> String targetURL = "http://www.google.com";;
> try {
>
> //System.setProperty("http.proxyHost", "*.**..**.**");
> //System.setProperty("http.proxyPort", "**");
>
> BufferedReader in = new BufferedReader(new
> InputStreamReader(openURLForInput(new URL(targetURL), "*",
> "")));
> String line;
> while ((line = in.readLine()) != null) {
> //System.out.println("hello");
> line = in.readLine();
> System.out.println(line);
> }
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
>
> public static InputStream openURLForInput(URL url, String uname, String
> pword) throws IOException {
> URLConnection conn = url.openConnection();
> conn.setDoInput(true);
>     //conn.setRequestProperty("Authorization",
> userNamePasswordBase64(uname, pword));
> conn.connect();
> return conn.getInputStream();
> }
> }
>
> --- Ngày *Thứ 6, 21/08/09, jitesh dundas * đã viết:
>
>
> Từ: jitesh dundas 
> Chủ đề: [java ee programming] Fwd: Code
> Đến: "Java EE (J2EE) Programming with Passion!" <
> java-ee-j2ee-programming-with-passion@googlegroups.com>
> Ngày: Thứ Sáu, 21 tháng 8, 2009, 17:55
>
> Hi Friends,
>
> I need your help in this problem of URL Connection class.
>
> I have to make a hit to the google spellcheck functionality(link mentioned
> in the code), and get the resultset.
>
> However, the code compiles fine but gives me run-time exeption: Connection
> time out.
>
> I just want to hit to an external website and get the result back. I am not
> able to do the same for any website:-
>
> Can you tell what is going wrong here:-
>
> Code:-
> --
>
> import java.net.*;
> import java.io.*;
> import java.util.*;
>
> public class TestAuth
> {
>   public static void main (String args[])
>   {
>
> String targetURL = "https://www.google.com/tbproxy/spell?lang=en";;
> try
> {
>
>   System.setProperty("http.proxyHost", "*.**..**.**");
>   System.setProperty("http.proxyPort", "**");
>
>   BufferedReader in = new BufferedReader(new
> InputStreamReader(openURLForInput(new URL(targetURL),"*","")));
>   String line;
>   while ((line = in.readLine()) != null)
>   {
>   System.out.println(line);
>   }
> }
> catch (IOException e)
> {
>   e.printStackTrace();
> }
>   }
>
>
>   public static InputStream openURLForInput(URL url, String uname, String
> pword) throws IOException
>   {
> URLConnection conn = url.openConnection();
> conn.setDoInput (true);
> conn.setRequestProperty
> ("Authorization",userNamePasswordBase64(uname,pword));
> conn.connect ();
> return 

[java ee programming] Help in URL Connectin Class

2009-08-26 Thread jitesh dundas
Hi Friends,

I could use your help now:-

I have to hit this Google URL and get the resultset. The result is string
type.

URL -> "
http://www.google.com/transliterate/indic?tlqt=1&langpair=en|hi&text=amitabachan,blog&&tl_app=1
"
When you put this into the URL and press enter, it will give you the
modified string with the result(array).


I am tring to do the same thing using Java program, but it is printing the
entire HTML page of transliterate.

The code is as follows:-
---
import java.io.*;
import java.net.*;
import java.util.*;

public class URLExample
{
public static void main(String[] args) throws Exception
{

  try
  {
 Properties systemSettings = System.getProperties();
 systemSettings.put("http.proxyHost", "proxy.it.iitb.ac.in");
 systemSettings.put("http.proxyPort", "80");
 systemSettings.put("sun.net.client.defaultConnectTimeout", "1");
 systemSettings.put("sun.net.client.defaultReadTimeout", "1");

  System.out.println("Properties Set");
 Authenticator.setDefault(new Authenticator()
 {
protected PasswordAuthentication
getPasswordAuthentication()
{
return new
PasswordAuthentication("aaqua", "aaqua123".toCharArray()); // specify ur
user name password of iitb login
}
});
System.setProperties(systemSettings);
System.out.println("After Authentication & Properties Settings");


//the input to google api
String str = "
http://www.google.com/transliterate/indic?tlqt=1&langpair=en|hi&text=amitabachan,blog&&tl_app=1
";
String stringToReverse = URLEncoder.encode(str, "UTF-8");

URL url = new URL(str);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);

OutputStreamWriter out = new OutputStreamWriter(
connection.getOutputStream());
out.write("string url=" + str);
out.close();

BufferedReader in = new BufferedReader( new InputStreamReader(
connection.getInputStream()));

String decodedString;

while ((decodedString = in.readLine()) != null) {
System.out.println(decodedString);
}
in.close();
  }
  catch(Exception ex)
  {
  System.out.println("Exception->"+ex);
  ex.printStackTrace();
  }

}
}
--


I modified the same page as a JSP page and it opens up the transliterate
page of Google. I need the result from the string entered, not the page.
JSP File
---
<%@ page language = "java" %>
<%@ page import = "java.sql.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.io.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.net.*" %>
<%@ page import="com.google.gwt.language.*" %>
<%@ page import="com.google.gwt.user.*" %>

<%

 try
 {
 Properties systemSettings = System.getProperties();
 systemSettings.put("http.proxyHost", "proxy.it.iitb.ac.in");
 systemSettings.put("http.proxyPort", "80");
 systemSettings.put("sun.net.client.defaultConnectTimeout", "1");
 systemSettings.put("sun.net.client.defaultReadTimeout", "1");

  out.println("Properties Set");
 Authenticator.setDefault(new Authenticator()
 {
protected PasswordAuthentication
getPasswordAuthentication()
{
return new
PasswordAuthentication("aaqua", "aaqua123".toCharArray()); // specify ur
user name password of iitb login
}
 });
System.setProperties(systemSettings);
out.println("After Authentication & Properties Settings");


//the input to google api
String str = "
http://www.google.com/transliterate/indic?tlqt=1&langpair=en|hi&text=amitabachan,blog&&tl_app=1
";
String stringToReverse = URLEncoder.encode(str, "UTF-8");

URL url = new URL(str);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);

OutputStreamWriter outwr = new OutputStreamWriter(
connection.getOutputStream());
outwr.write("string url=" + str);
outwr.close();

BufferedReader in = new BufferedReader( new InputStreamReader(
connection.getInputStream()));

String decodedString;

while ((decodedString = in.readLine()) != null)
{
out.println(decode

[java ee programming] Re: WAR vs. EAR vs. JAR

2009-09-08 Thread jitesh dundas
Hi,

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Overview4.html
http://en.wikipedia.org/wiki/EAR_%28file_format%29

Hope this helps..

Regards,
Jitesh Dundas

On Sun, Sep 6, 2009 at 5:58 PM, Martin Skurla  wrote:

>
> Hello,
>
>
> I just start with JavaEE but i dont understand the difference between
> WAR (Web ARchive) and EAR (Enterprise ARchive). What is the difference
> between them? And how are they related to JAR (zip compressed Java
> ARchive) ???
>
> >
>

--~--~-~--~~~---~--~~
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] Advise Needed-> networking question

2009-09-15 Thread jitesh dundas
Hi Friends,

I have to develop this progem and I need some expert to advise me on this..

Consider an SMTP server that sends an email via relay method. In this relay,
it accesses multiple IP addresses and then sends to the receiver.

I want to track this entire activity via java networking(maybe c programming
is needed here)..

Later, I intend to do this for mobiles wherein the user can block messages
or calls that they maintain in a local block list..

Can anybody help me in this..

Regards,
Jitesh Dundas

--~--~-~--~~~---~--~~
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] Error in URL Connection Method

2009-09-24 Thread jitesh dundas
e.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source) Hello Properties Set After
Authentication & Properties Settings
Exception->java.net.SocketTimeoutException: connect timed out


Looking forward for your reply.

Regards,
Jitesh Dundas

--~--~-~--~~~---~--~~
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] Java Error:- XML Parsing Error: XML or text declaration not at start of entity

2009-11-01 Thread jitesh dundas
Hi friends,

I am getting this error on doing a post(using the code below) to this url->
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=cancer&reldate=10

I have written this code in .jsp file. Later I will change it into servlet.

Error:-
XML Parsing Error: XML or text declaration not at start of entity
Location:
http://localhost:8080/ProteomDb/ImportFromPubmed2.jsp?txtDbName=pubmed&txtTerm=cancer&txtreldate=10&comSDay=01&comSMonth=01&txtSYear=&comEDay=01&comEMonth=01&txtEYear=&txtURLString=http%3A%2F%2Feutils.ncbi.nlm.nih.gov%2Fentrez%2Feutils%2Fesearch.fcgi%3Fdb%3Dpubmed%26term%3Dcancer%26reldate%3D10&txtsubmit=Fetch+Data+From+NCBI
Line Number 11, Column 1:http://www.ncbi.nlm.nih.gov/entrez/query/DTD/eSearch_020511.dtd";>2034200
198773501987730419877297
198772841987727119877265
198772501987724519877226
198772101987717919877175
198771611987715919877158
198771231987712219877120
1987711919877118
 cancer
"neoplasms"[MeSH Terms] OR "neoplasms"[All Fields] OR "cancer"[All
Fields]
"neoplasms"[MeSH Terms]MeSH
Terms2082133Y
   "neoplasms"[All Fields]All
Fields1634731Y
   OR   "cancer"[All Fields]
All Fields902537Y
   OR   GROUP   
2009/10/22[EDAT]EDAT0
Y  
2009/11/01[EDAT]EDAT0
Y  RANGE   AND
("neoplasms"[MeSH Terms] OR
"neoplasms"[All Fields] OR "cancer"[All Fields]) AND 2009/10/22[EDAT] :
2009/11/01[EDAT]
^

As you can see, the XML output is coming fine but the above error does not
go..The output via this program should be just like hitting manually the
above URL in the browser..
The browser is Mozilla Firefox.

Code:-

<%@ page language = "java" %>
<%@ page import = "java.sql.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.io.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.net.*" %>
<%@ page import="java.nio.*" %>
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" %>


<%

 try
 {
 //String str = "";
 //out.println("");

 Properties systemSettings = System.getProperties();
 systemSettings.put("http.proxyHost", "");
 systemSettings.put("http.proxyPort", "**");
 systemSettings.put("sun.net.client.defaultConnectTimeout", "1");
 systemSettings.put("sun.net.client.defaultReadTimeout", "1");

  //out.println("Properties Set");
 Authenticator.setDefault(new Authenticator()
 {
   protected PasswordAuthentication getPasswordAuthentication()
   {
   return new PasswordAuthentication("**",
"**".toCharArray()); // specify ur user name password of iitb login
   }
 });


System.setProperties(systemSettings);
//out.println("After Authentication & Properties Settings");

//create xml file.
//the input to google api
//String textAreaContent = request.getParameter("text");
String textAreaContent = "This si a tst";

String str = "";

//xml file generation ends here..
//FetchDataFromNCBI_URLString.jsp
String URLString = request.getParameter("txtURLString").trim();

//URL url = new URL("
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=protein&term=BAA20519
");
URL url = new URL(URLString); //url string taken from user input.
HttpURLConnection connection = null;

connection = (HttpURLConnection) url.openConnection();
System.out.println("After open connection");
connection.setRequestMethod("POST");
connection.setDoInput(true);
connection.setDoOutput(true);

connection.setUseCaches(false);
connection.setAllowUserInteraction(false);
//connection.setFollowRedirects(true);
//connection.setInstanceFollowRedirects(true);
//System.out.println("Before---");
connection.setRequestProperty ("Content-Type","text/xml;
charset=\"utf-8\"");
//System.out.println("After---");

//System.out.println(""+ connection.getOutputStream());

//System.out.println("After dataoutputstream..Line No-65");

//System.out.println("Response Code="+ connection.getResponseCode);

OutputStreamWriter dosout = new
OutputStreamWriter(connection.getOutputStream());
//System.out.println("Aft

[java ee programming] Re: How to output HTML within java code

2009-11-08 Thread jitesh dundas
Hi,

It seems you are printing it to the log file of your web-server. For tomcat
server, you will see the entry in the logs folder in the file (time at which
you executed this program)..

For web-based entry, try out.println(str) at all places..

Again, this code is for a console based program. Try writing a servlet or
jsp page. Execute this on the java console ( jdk\bin folder) and then try..

To output to html, you write out.prinltn(str);

You need the Java Complete Reference by Herbert Schildt and the Java
Tutorial at java.sun.comI think you need to get your basics right..

Regards,
Jitesh Dundas

On Sat, Nov 7, 2009 at 12:13 AM, Molly  wrote:

>
> Hello,
>
> I am trying to figure out how to output my HTML code. When I run the
> program I want "Your IP Address Is: (IP here)" to appear at localhost:
> 3000. It appears when I execute the code in Eclipse but nothing shows
> up in my browser. Can someone help? Thanks!! :)
>
> MY CODE:
>
> import java.io.*;
> import java.net.*;
>
> public class EchoClient {
>public static void main(String[] args) throws IOException {
>
>try {
>InetAddress addr = InetAddress.getLocalHost();
>byte[] ipAddr = addr.getAddress();
>
>// Convert to dot representation
>String ipAddrStr = "";
>for (int i=0; iif (i > 0) {
>ipAddrStr += ".";
>}
>ipAddrStr += ipAddr[i]&0xFF;
>
>}
>
>int port = 3000;
>ServerSocket srv = new ServerSocket(port);
>
>// Wait for connection from client.
>Socket socket = srv.accept();
>BufferedReader rd = new BufferedReader(new InputStreamReader
> (socket.getInputStream()));
>BufferedWriter bw = new BufferedWriter(new
> OutputStreamWriter(socket.getOutputStream()));
>
>// write the HTML header
>bw.write("SocketYour IP
> Address Is: ");
>String str;
>while ((str = rd.readLine()) != null) {
>System.out.println(str);
>}
>rd.close();
>System.out.println("Your IP Address is: " +ipAddrStr);
>}
>catch (IOException e) {
>
>}
>}
> }
>
> >
>

--~--~-~--~~~---~--~~
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] How do I get set of protein interactors for a specific protein from my code

2009-12-01 Thread jitesh dundas
Dear Sir/Madam,

Many thanks for your help in solving my previous problem(XML parsing error).

I am writing a program to fetch details regarding any protein from the NCBI
database.  However, I do not know how to fetch the details of
Protein-Protein interactors for a specific protein.

For e.g.) If I click on protein p53, it should give me a list of protein
interactors for p53.
such as  shown in
http://www.hprd.org/interactions?hprd_id=01859&isoform_id=01859_1&isoform_name=

Can someone please tell me how I can get this data from NCBI or any other
source.  Which database should I consider and which are the params involved.


I am using Java as my language for doing so.

Thanks in  advance.

Regards,
Jitesh Dundas

-- 
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] Error In Fetching Data from STRING EMBL File

2009-12-18 Thread jitesh dundas
Dear Sir/Madam,

I am trying to fetch data from EMBL STRING Database (http://string.embl.de/)
for a list of protein interactors. The file is attached with this email.

On executing the code, it gives me a "version number" error.  The same code
is working fine when I fetch data from NCBI databases. Thus, I am trying to
know what is going wrong here.

I request your reply. Please let me know if you need anything else from my
side.

Regards,
Jitesh Dundas

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

ImportGet.jsp
Description: Binary data


[java ee programming] JSTL Error - org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlSqlTLV

2010-02-11 Thread jitesh dundas
Hi Friends,

I am getting this error if you guys could help. On my Tomcat 5.5. and JDK
1.5, this seems to work fine but on migrating to another server Tomcat
5.0.19, this gives an error:-

---

org.apache.jasper.JasperException: Failed to load or instantiate
TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlSqlTLV

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:319)

org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:669)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:289)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:205)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
org.apache.jasper.compiler.Parser.parse(Parser.java:171)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

*root cause*

java.lang.ClassNotFoundException: org.apache.taglibs.standard.tlv.JstlSqlTLV

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)

org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:665)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:289)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:205)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
org.apache.jasper.compiler.Parser.parse(Parser.java:171)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



Please note that my project named "newproject" is located in Tomcat /webapps
directory with WEB-INF having all the class and tld files..

Could this be an issue with the version of JSTL that I am using ? Tomcat 5.0
is using JSTL 1.0 while Tomcat 5.5. uses JSTL1.1. ...

Any help guys is appreciated ..Please help ASAP..note that my project is
working fine on Tomcat 5.5. while it gives the above error on Tomcat 5.0
..Both these servers are on seperate computers..

Thanks,
Jitesh Dundas

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

Re: [java ee programming] Find the J2ee web hosting site........

2010-03-18 Thread jitesh dundas
Hello,

Why dont you use your localhost or your network server to do that. You could
use Apache Tomcat as your server. Once done and tested, you could look at
professional website hosting services to load your site.

Hope this helps.

A few liners in Gujarati.

* BIJU KAI KAAM HOYE TO MANE YAAD KARJO SIR. HU VIDYANAGAR (NVPAS
COLLEGE,ANAND ) MAA BHANYO CHU.

*Regards,
Jitesh Dundas

On Mon, Mar 15, 2010 at 2:30 PM, Parag Dave  wrote:

>
> Hi, Friends
>
> I want to need the site name for upload my small test website. So, have u
> know any free web-hosting site for JSP with oracle or MySql.
>
> Please help me any one know .
> --
>   PARAG N DAVE
>
>MCA ( Lecturer )
>OM V.V.I.M. B.C.A. College
>Opp. Sardar Baug, Sanala Road ,
>Morbi , Gujarat
>
> Cell : +919426718980
>
> --
> 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

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

Re: [java ee programming] Network Packet sniffer using JPCap

2010-03-18 Thread jitesh dundas
Wow you seem to be having this as a project submission. I doubt you will
pass like this. Anyweays, wish you good luck..Sorry i cannot help.

do change some of your code else you will get caught..

thanks.
jitesh dundas

On Wed, Mar 17, 2010 at 6:04 PM, Meghana  wrote:

> Hello friends,
>
> I am in need of this project..Network packet sniffer using JPcap..
> if anybody has it with complete code and documentation ,i am ready to
> pay him/her.
>
> With regards,
> Meghana
>
> --
> 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

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

Re: [java ee programming] how to access the scope variable from outside the application.

2010-03-22 Thread jitesh dundas
Maybe passing the values as a querystring parameter might help..Again, could
you store the information in some config file and then use this info..

Have you tried adding params in web.xml..try that and see if this helps..

jitesh dundas


On 3/18/10, thanooj bharateeyudu  wrote:
>
> hello all.
>  Let us assume that, i have 2 applications running
> in a single tomcat server
> i am using JSP to develop the applications
> if i have set a scope attribute in one application ... and i need to access
> that scope attribute in the another application.
>  how can we access that scope attribute from another application.
>  please let me know the alternatives if any.
>thanking u ...
>
>
>
>
> --
> Yours  thanooj bharateeyudu
>
> --
> 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

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

To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscribegooglegroups.com or reply to 
this email with the words "REMOVE ME" as the subject.


Re: [java ee programming] problem with running a war file on a tomcat on a server(not localhost)

2010-04-11 Thread jitesh dundas
Hello,

Just paste the war folder into the webapps fo
der of tomcat. The war file must have the required structure of any
project(web-inf contains lib & classes..)

What is the error that you get. Check the structure of any sample
example present in tomcat webapps folder.

Another way is to start tomcat manager  page & then upload the war file there...

Regards,
jd

On 4/10/10, merve t  wrote:
> hello,
> should not it work when i paste my project.war file into the directory named
> www under my host on a server which is using tomcat?
> i connected to my host by using filezilla. there is no problem. i uploaded
> my project.war into www and also web-inf directories and call it on browser
> by typing http://mysite.com/project. but it doesnt work.
> should i copy and paste all the classes and jsp's one by one into folders
> named class and lib?
> where am i wrong?
> thanks in advance
> merve
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

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


Re: [java ee programming] Error in running jBoss 4.2 with Eclipse3.5

2010-04-15 Thread jitesh dundas
Dear Sir/Madam,

Thank you very much. My server is working fine now. I installed v5.0 and
removed the JSf implementations(besides the changes in web.xml of the
server).

Regards,
Jitesh Dundas

On Thu, Apr 15, 2010 at 1:37 AM, Evans '  wrote:

> Sorry, I couldn't open your file as my computer is flagging it as a virus.
> Please use Pastebin and post a link here instead.
>
> Good luck
> Evans
>
> *Remember to use 'Reply All' or your email will be ignored!*
>
> --
> Date: Wed, 14 Apr 2010 20:28:24 +0530
> Subject: [java ee programming] Error in running jBoss 4.2 with Eclipse3.5
> From: jbdun...@gmail.com
> To: java-ee-j2ee-programming-with-passion@googlegroups.com
>
>
>  Hey Guys,
>
>
> I have just installed eclipse gallileo v 3.5 for JSF 1.2...
>
> I am trying to run the JBoss 4.2 server but it gives me the error shown i
> nthe file attached..Please advise me guys as I have bee trying to run this
> configuration for the last 2-3 days..
>
> I added the necessary jars also..Could anybody tell me what is the error..I
> have tried tomcat6.0 with JSF1.2 and it runs fine on eclipse 3.3..But thta
> was on my laptop..
> --
> http://www.ooeasytracker.org/tikiwiki/tiki-read_article.php?articleId=4
> --
>
> Regards,
> JItesh Dundas
>
>
> --
> 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
>  --
> Get a new e-mail account with Hotmail - Free. Sign-up 
> now.<http://clk.atdmt.com/UKM/go/19780/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

Re: [java ee programming] Error in running jBoss 4.2 with Eclipse3.5

2010-04-17 Thread jitesh dundas
Dear All,

I just want to thank you all for your help in resolving my errors. I am
relatively new to JSf and the implementation was difficult. Please keep
sending your replies like this.

Any solutions to my latest problem (Reg using RichFaces and JSf for Ajax
Autocomplete functionality..Seems to be an implementation issue)?

Regards,
Jitesh Dundas


On 4/15/10, jitesh dundas  wrote:
>
> Dear Sir/Madam,
>
> Thank you very much. My server is working fine now. I installed v5.0 and
> removed the JSf implementations(besides the changes in web.xml of the
> server).
>
> Regards,
> Jitesh Dundas
>
>  On Thu, Apr 15, 2010 at 1:37 AM, Evans ' wrote:
>
>> Sorry, I couldn't open your file as my computer is flagging it as a virus.
>> Please use Pastebin and post a link here instead.
>>
>> Good luck
>> Evans
>>
>> *Remember to use 'Reply All' or your email will be ignored!*
>>
>> --
>> Date: Wed, 14 Apr 2010 20:28:24 +0530
>> Subject: [java ee programming] Error in running jBoss 4.2 with Eclipse3.5
>> From: jbdun...@gmail.com
>> To: java-ee-j2ee-programming-with-passion@googlegroups.com
>>
>>
>>  Hey Guys,
>>
>>
>> I have just installed eclipse gallileo v 3.5 for JSF 1.2...
>>
>> I am trying to run the JBoss 4.2 server but it gives me the error shown i
>> nthe file attached..Please advise me guys as I have bee trying to run this
>> configuration for the last 2-3 days..
>>
>> I added the necessary jars also..Could anybody tell me what is the
>> error..I have tried tomcat6.0 with JSF1.2 and it runs fine on eclipse
>> 3.3..But thta was on my laptop..
>> --
>> http://www.ooeasytracker.org/tikiwiki/tiki-read_article.php?articleId=4
>> --
>>
>> Regards,
>> JItesh Dundas
>>
>>
>>
>> --
>> 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
>>
>>  --
>> Get a new e-mail account with Hotmail - Free. Sign-up 
>> now.<http://clk.atdmt.com/UKM/go/19780/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] Error :- JSF 1.2 / Tomahauk MyFaces with jBoss 5.0/eclipse3.5

2010-04-21 Thread jitesh dundas
 Dear All,

My previous problems got solved on upgrading to Jboss v5.0 .Thanks to you
and all in this group. I am now getting this error in installing Tomahauk on
my installation. I have also installed MySQL for my JBoss server. I am using
the default implementation of JSF 1.2 of JBoss server here and adding the
Tomahauk jar file.

Please let me know what is the error in this installation?

Regards,
JItesh Dundas

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

JBoss_ErrorForTomahauk.rtf
Description: RTF file


[java ee programming] Fwd: EJB Error with Axis-

2010-05-16 Thread jitesh dundas
sed by: com.gisil.iris.common.IrisException: Service currently
unavailable at
 IRCTC. Please call -
at com.gisil.iris.ejb.IrisBean.getTrainsOnRoute(IrisBean.java:466)
at
com.gisil.iris.ejb.Iris_ecor7a_EOImpl.getTrainsOnRoute(Iris_ecor7a_EO
Impl.java:4899)
at com.gisil.iris.ejb.Iris_ecor7a_EOImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at
weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef
.java:224)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)


Axis is working fine as we can see the HappyAxis page now..

Thanks,
Jitesh Dundas

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

Re: [java ee programming] Hibernate Mapping

2010-05-30 Thread jitesh dundas
You don't need too.just define the class operation properly.have you
read the hibernate tutorial on jboss site...
do note..you might need cp3connectionprovider if using jboss for some
versions.can you install & tell us..

plz read the online tutorial and revert with issues if any ..

thanks,
jd

On 5/30/10, Kunal Raikar  wrote:
> Hi Ali
> I don't want to include SQL query in hbm.xml file but I want a tool which
> convert sql query into xml mapping so that I can use it in hbm.xml file.
>
> 2010/5/30 Ali Ekber Çelik 
>
>> Hi Kunal,
>>
>> 
>> 
>> 
>>
>>
>> simply you can use this codein your hbm.xml file.And dont forget to call
>> this sql code in your java class with sqlname "getYourSqlName".
>>
>>
>>
>> 2010/5/30 Kunal Raikar 
>>
>>
>>> Hi Ben
>>> Can you please explain step by step sql to hbm converting process after
>>> installing Hibernate tool in eclipse?
>>>
>>> regards
>>> Kunal
>>>
>>> On Sun, May 30, 2010 at 11:43 AM, Benedict Aluan
>>> wrote:
>>>
 Hello,

 You can use Eclipse and install Hibernate Tools plugin.

 Regards
 Ben


 On Sat, May 29, 2010 at 10:02 PM, Kunal Raikar
 wrote:

> I am new to Hibernate. I want to know how to convert SQL query into
> hibernate mapping so that I can make use of hbm.xml file instead making
> use
> of manual sql query.
>
> Is there any converter through which we directly convert sql query into
> hbm.xml mapping
>
> --
> Warm regards
> Kunal
>
> --
> 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




 --
 Good design is more important than the underlying technology.

>>>
>>>
>>>
>>> --
>>> Warm regards
>>> Kunal
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>>
>>
>> Ali Ekber ÇELİK
>> +905556129172
>>
>
>
>
> --
> Warm regards
> Kunal
>
> --
> 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

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


Re: [java ee programming] Hibernate Mapping

2010-05-30 Thread jitesh dundas
As you know, there are twi imp xml files, hibernate.cfg.xml and the
classname.xml ..

the classname.xml stores the class variables ,methods including
getter-setter methods.

First wrie all the things in classname.xml(after creation of
classname.java).the classname.xml maps the class variable with the
table column name...

Next, hibernate.cfg.xml maps the classes(here classname.xml ) with the
location and other dependent class files...Here we define connection
settings,etc.

Read -> the hibernate  tutorial on hibernate website.

Lastly, don't forget to define the session factory class also..after
that , define a method in
classname.xml to create objects of itself and define the method to add
or delete the created objects.

eclipse has an easu gui based interface for all these sultry
things...so don't worry,its easy...

I used eclipse plugin of hibernate tools v3.2 ...

lastly, follow the help file for hibernate in eclipse..

Thanks ...you refreshed my memory.I am learning myself..

Regards,
Jitesh Dundas


On 5/30/10, Kunal Raikar  wrote:
> I am new to Hibernate. I want to know how to convert SQL query into
> hibernate mapping so that I can make use of hbm.xml file instead making use
> of manual sql query.
>
> Is there any converter through which we directly convert sql query into
> hbm.xml mapping
>
> --
> Warm regards
> Kunal
>
> --
> 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

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


Re: [java ee programming] Re: Hibernate Mapping

2010-05-30 Thread jitesh dundas
I wonder if learning SQL would be the best solution here..
However,I will keep looking but I think you will get some answers from
this group soon.
Regards,
jd

On 5/31/10, Michèle Garoche  wrote:
>
>
> On May 30, 11:14 am, Kunal Raikar  wrote:
>> Hi Ali
>> I don't want to include SQL query in hbm.xml file but I want a tool which
>> convert sql query into xml mapping so that I can use it in hbm.xml file.
> You may also use NetBeans and reverse engineer your database, it then
> create the mappings for you.
> See on the NetBeans site the tutorial:
> http://netbeans.org/kb/65/web/hibernate-vwp.html
>
> Michèle Garoche
>>
>> 2010/5/30 Ali Ekber Çelik 
>>
>>
>>
>>
>>
>> > Hi Kunal,
>>
>> >     
>> >     
>> >     
>>
>> > simply you can use this codein your hbm.xml file.And dont forget to call
>> > this sql code in your java class with sqlname "getYourSqlName".
>>
>> > 2010/5/30 Kunal Raikar 
>>
>> >> Hi Ben
>> >> Can you please explain step by step sql to hbm converting process after
>> >> installing Hibernate tool in eclipse?
>>
>> >> regards
>> >> Kunal
>>
>> >> On Sun, May 30, 2010 at 11:43 AM, Benedict Aluan
>> >> wrote:
>>
>> >>> Hello,
>>
>> >>> You can use Eclipse and install Hibernate Tools plugin.
>>
>> >>> Regards
>> >>> Ben
>>
>> >>> On Sat, May 29, 2010 at 10:02 PM, Kunal Raikar
>> >>> wrote:
>>
>>  I am new to Hibernate. I want to know how to convert SQL query into
>>  hibernate mapping so that I can make use of hbm.xml file instead
>>  making use
>>  of manual sql query.
>>
>>  Is there any converter through which we directly convert sql query
>>  into
>>  hbm.xml mapping
>>
>>  --
>>  Warm regards
>>  Kunal
>>
>>  --
>>  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>  j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
>>  For more options, visit this group at
>>
>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?...
>>
>> >>> --
>> >>> Good design is more important than the underlying technology.
>>
>> >> --
>> >> Warm regards
>> >> Kunal
>>
>> >> --
>> >> 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> >> j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
>> >> For more options, visit this group at
>>
>> >>http://groups.google.com/group/java-ee-j2ee-programming-with-passion?...
>>
>> > --
>>
>> > Ali Ekber ÇELİK
>> > +905556129172
>>
>> --
>> Warm regards
>> Kunal
>
> --
> 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

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


Re: [java ee programming] Re: Hibernate Mapping

2010-05-31 Thread jitesh dundas
Hey Kunal,

In addition to this, you might want to go through this tutorial. Notice how
they dont mention any SQL queries either.

http://www.vaannila.com/hibernate/hibernate-example/hibernate-tools-1.html

http://www.hibernate.org/subprojects/tools.html

I really think you need to learn basic SQL, but its your call..Again, use
the eclipse plugin eg. for help.

Thanks,
jd

On Mon, May 31, 2010 at 12:02 PM, Benedict Aluan wrote:

> Hello Kunal,
>
> It's hard to explain here the step by step conversion process. I
> suggest download the pdf documentation on how to get started with
> Hibernate tools plugin here:
>
>
> http://www.redhat.com/developer_studio/guides/hibernatetools/pdf/hibernate_tools.pdf
>
> Regards,
> Ben
>
> On May 30, 2:50 pm, Kunal Raikar  wrote:
> > Hi Ben
> > Can you please explain step by step sql to hbm converting process after
> > installing Hibernate tool in eclipse?
> >
> > regards
> > Kunal
> >
> > On Sun, May 30, 2010 at 11:43 AM, Benedict Aluan  >wrote:
> >
> >
> >
> >
> >
> > > Hello,
> >
> > > You can use Eclipse and install Hibernate Tools plugin.
> >
> > > Regards
> > > Ben
> >
> > > On Sat, May 29, 2010 at 10:02 PM, Kunal Raikar 
> wrote:
> >
> > >> I am new to Hibernate. I want to know how to convert SQL query into
> > >> hibernate mapping so that I can make use of hbm.xml file instead
> making use
> > >> of manual sql query.
> >
> > >> Is there any converter through which we directly convert sql query
> into
> > >> hbm.xml mapping
> >
> > >> --
> > >> Warm regards
> > >> Kunal
> >
> > >> --
> > >> 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 j2ee-programming-with-passion%2bunsubscr...@googlegroups.com
> >
> > >> For more options, visit this group at
> >
> > >>http://groups.google.com/group/java-ee-j2ee-programming-with-passion?.
> ..
> >
> > > --
> > > Good design is more important than the underlying technology.
> >
> > --
> > Warm regards
> > Kunal
>
> --
> 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
>

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

Re: [java ee programming] Hibernate Mapping

2010-05-31 Thread jitesh dundas
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html

http://www.javalobby.org/articles/hibernate-query-101/

hope this helps...

thanks,
jd

On Sun, May 30, 2010 at 2:44 PM, Kunal Raikar  wrote:

> Hi Ali
> I don't want to include SQL query in hbm.xml file but I want a tool which
> convert sql query into xml mapping so that I can use it in hbm.xml file.
>
> 2010/5/30 Ali Ekber Çelik 
>
>> Hi Kunal,
>>
>> 
>> 
>> 
>>
>>
>> simply you can use this codein your hbm.xml file.And dont forget to call
>> this sql code in your java class with sqlname "getYourSqlName".
>>
>>
>>
>> 2010/5/30 Kunal Raikar 
>>
>>
>>> Hi Ben
>>> Can you please explain step by step sql to hbm converting process after
>>> installing Hibernate tool in eclipse?
>>>
>>> regards
>>> Kunal
>>>
>>> On Sun, May 30, 2010 at 11:43 AM, Benedict Aluan wrote:
>>>
 Hello,

 You can use Eclipse and install Hibernate Tools plugin.

 Regards
 Ben


 On Sat, May 29, 2010 at 10:02 PM, Kunal Raikar wrote:

> I am new to Hibernate. I want to know how to convert SQL query into
> hibernate mapping so that I can make use of hbm.xml file instead making 
> use
> of manual sql query.
>
> Is there any converter through which we directly convert sql query into
> hbm.xml mapping
>
> --
> Warm regards
> Kunal
>
> --
> 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




 --
 Good design is more important than the underlying technology.

>>>
>>>
>>>
>>> --
>>> Warm regards
>>> Kunal
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>>
>>
>> Ali Ekber ÇELİK
>> +905556129172
>>
>
>
>
> --
> Warm regards
> Kunal
>
> --
> 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
>

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

Re: [java ee programming] Hibernate Mapping

2010-06-01 Thread jitesh dundas
Thanks..This should clarify any doubts..

Regards,
Jitesh Dundas

On Tue, Jun 1, 2010 at 12:24 PM, bambang passion <
bambang.teleinfocomproj...@gmail.com> wrote:

> Hi,
>
> Remember though that HQL is affecting on the entity or persistence object
>
> not the DB object.
>
>
> bb
>
>
> On Tue, Jun 1, 2010 at 10:07 AM, Shiv Shankar 
> wrote:
>
>>  Very useful Link
>>
>>
>> On 5/31/2010 8:18 PM, jitesh dundas wrote:
>>
>> http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html
>>
>> http://www.javalobby.org/articles/hibernate-query-101/
>>
>> hope this helps...
>>
>> thanks,
>> jd
>>
>> On Sun, May 30, 2010 at 2:44 PM, Kunal Raikar  wrote:
>>
>>> Hi Ali
>>> I don't want to include SQL query in hbm.xml file but I want a tool which
>>> convert sql query into xml mapping so that I can use it in hbm.xml file.
>>>
>>> 2010/5/30 Ali Ekber Çelik 
>>>
>>>> Hi Kunal,
>>>>
>>>> 
>>>> 
>>>> 
>>>>
>>>>
>>>> simply you can use this codein your hbm.xml file.And dont forget to call
>>>> this sql code in your java class with sqlname "getYourSqlName".
>>>>
>>>>
>>>>
>>>> 2010/5/30 Kunal Raikar 
>>>>
>>>>
>>>>> Hi Ben
>>>>> Can you please explain step by step sql to hbm converting process after
>>>>> installing Hibernate tool in eclipse?
>>>>>
>>>>>  regards
>>>>> Kunal
>>>>>
>>>>> On Sun, May 30, 2010 at 11:43 AM, Benedict Aluan 
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> You can use Eclipse and install Hibernate Tools plugin.
>>>>>>
>>>>>> Regards
>>>>>> Ben
>>>>>>
>>>>>>
>>>>>>  On Sat, May 29, 2010 at 10:02 PM, Kunal Raikar 
>>>>>> wrote:
>>>>>>
>>>>>>>  I am new to Hibernate. I want to know how to convert SQL query into
>>>>>>> hibernate mapping so that I can make use of hbm.xml file instead making 
>>>>>>> use
>>>>>>> of manual sql query.
>>>>>>>
>>>>>>>  Is there any converter through which we directly convert sql query
>>>>>>> into hbm.xml mapping
>>>>>>>
>>>>>>> --
>>>>>>> Warm regards
>>>>>>> Kunal
>>>>>>>   --
>>>>>>> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  --
>>>>>> Good design is more important than the underlying technology.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Warm regards
>>>>> Kunal
>>>>>   --
>>>>> 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> Ali Ekber ÇELİK
>>>> +905556129172
>>>>
>>>
>>>
>>>
>>&

Re: [java ee programming] Re: J2EE BOOK RECOMMENDATION

2010-06-25 Thread jitesh dundas
Maybe this helps too..

http://www.amazon.com/Best-J2EE-books/lm/3TH00N4LDATL0

and

http://www.info4java.com/free_ebooks/?free_ebook=free_j2ee_books

Thanks,
jd

On Fri, Jun 25, 2010 at 12:57 AM, JKid314159 @ Windows 7 <
lucky314...@gmail.com> wrote:

> Hi:
>
> Thank you for these references.  I am trying these.
>
> My internet connection is NOT good.  Are there some books which I
> could use also.  Thank you.
>
> Alex
>
> --
> 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
>

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

Re: [java ee programming] J2EE BOOK RECOMMENDATION

2010-06-25 Thread jitesh dundas
3]
 Weaver J.L., Mukhar K., & Crume J.P. (February 2004). Beginning J2EE
 1.4: From Novice to Professional. USA: Apress
http://www.amazon.com/Beginning-J2EE-1-4-Professional-Beginner/dp/1590593413/ref=sr_1_1?ie=UTF8&s=books&qid=1277476692&sr=1-1#noop


really good..I read this at my library..
don't forget the java tutorials on java.sun.com

Regards,
jd



On 6/25/10, JKid314159 @ Windows 7  wrote:
> Hi J2EE Developers!
>
> Thank you all for your generous suggestions.  All have been very
> helpful.
> I have narrowed down the suggestions to the following four bound
> books .
> I would appreciate any comments to which you think would be best for a
> beginner.  I want to choose one, please.
>
> [1]
> Johnson R. (October 2002). Expert One-on-One j2EE Design and
> Development (Programmer to Programmer). Indianapolis, IN: Wiley
> Publishing, Inc.
> http://www.amazon.com/Expert-One-Design-Development-Programmer/dp/0764543857/ref=pd_bxgy_b_img_b#noop
>
> [2]
> Alur D., Malks D., & Crupi J. (May 2003). Core J2EE Patterns: Best
> Practices and Design Strategies (2nd Ed). USA: Prentice Hall
> http://www.amazon.com/Core-J2EE-Patterns-Practices-Strategies/dp/0131422464/ref=pd_bxgy_b_img_c#noop
>
> [3]
> Weaver J.L., Mukhar K., & Crume J.P. (February 2004). Beginning J2EE
> 1.4: From Novice to Professional. USA: Apress
> http://www.amazon.com/Beginning-J2EE-1-4-Professional-Beginner/dp/1590593413/ref=sr_1_1?ie=UTF8&s=books&qid=1277476692&sr=1-1#noop
>
> [4]
> Pandu D., Rahman R., & Lane D. (April 2007). EJB 3 in Action.
> Greenwich, CT: Manning Publications
> http://www.amazon.com/EJB-3-Action-Debu-Panda/dp/1933988347/ref=cm_cr_pr_product_top#noop
>
> Alex
>
> --
> 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

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


Re: [java ee programming] [Java EE (J2EE) Programming with Passion!]

2010-06-27 Thread jitesh dundas
goto eclipse or netbeans and download the IDE for the jdk that you want to
use..Again, i assume you have downloaded the Java package from
java.sun.com...

follow the java tutorial for details..

regards,
jd

On Sun, Jun 27, 2010 at 5:02 PM, agungx2  wrote:

> please help me. how to create applications with J2EE. I'm eager to
> create simple applications with it is there that have tutorials.
> please help me.
>
>
> --
> 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

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

Re: [java ee programming] Help

2010-06-28 Thread jitesh dundas
Java : From Novice to Professional from Wrox should be a good start..

I would suggest that you practise a specific area in Java. It is an ocean so
being specific would help..These days, there is a lot of work on Web Based
and Distributed MVC architecture.. So try out whatever is latest for now
(ofcourse after being clear of the concepts..)

Regards,
JD

On Tue, Jun 29, 2010 at 10:09 AM, jitesh dundas  wrote:

> There is no such request to be processed yaar. Just start contributing..
> Have you gone through the advanced Java concepts..Join the tutorials, which
> should help you participate.
>
> Welcome!
>
> Regards,
> jd
>
>
> On Mon, Jun 28, 2010 at 10:09 PM, Irfan Ahmed  wrote:
>
>> Just couple of weeks before I have completed Java (Basic or Raw)..Now what
>> should I need learn to become a java developer?? Please help me...I have
>> been with this group so many days. I saw your activities and I love it. I
>> want to be a part of you. Please accept me.
>>
>> --
>> Regards
>> Irfan Ahmed
>>
>>  --
>> 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
>
>
>

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

Re: [java ee programming] Help

2010-06-28 Thread jitesh dundas
There is no such request to be processed yaar. Just start contributing..
Have you gone through the advanced Java concepts..Join the tutorials, which
should help you participate.

Welcome!

Regards,
jd

On Mon, Jun 28, 2010 at 10:09 PM, Irfan Ahmed  wrote:

> Just couple of weeks before I have completed Java (Basic or Raw)..Now what
> should I need learn to become a java developer?? Please help me...I have
> been with this group so many days. I saw your activities and I love it. I
> want to be a part of you. Please accept me.
>
> --
> Regards
> Irfan Ahmed
>
>  --
> 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

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

Re: [java ee programming] Re: How to submit a form with form datas passed to it in a web service call

2010-07-21 Thread jitesh dundas
pass the request as an http post using webservices in xml form(mostly
in xml form)..

webservices server is axis2 or maybe others..

check the functions of the soap interfaces for ur webservice instance..

regards,
jd

On 7/21/10, Ram  wrote:
> Hi,
> Are you using html forms?
> Thanks
> am
>
> On Jul 17, 6:25 pm, jayakumar ramachandran  wrote:
>> Hi ,
>>      My requirement is such that i should submit the form when it is
>> called as a webservices from any clent..and also i should be able
>> to submit the form datas .Please help me in resolving
>> this.Awaiting for reply
>
> --
> 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

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


Re: [java ee programming] Re: Status Code 404

2010-08-09 Thread jitesh dundas
file name could be wrong in web.xml or path is wrong..

google for plenty solutions on this..
jd

On 8/9/10, pradeek k  wrote:
>
> may could be happens when the client request is not available in the
> server ,can have have some mistakes while deploying or web xml not
> configures properly refer server error status
> On Aug 9, 2:14 pm, NB-J2EE  wrote:
>> Hi,
>>
>> I have placed my compiled servlet code identical to this location "c:
>> \...\LApps\WEB-INF\classes\coreservlets\ShowBalalnce" which in turn is
>> using another servlet class BankCustomer present in the same location.
>>
>> While trying to access the servlet ShowBalance using this
>> URL:http://localhost:8181/LApps/coreservlets.ShowBalance?id=id001, I am
>> getting 404 error page stating that "/LApps/coreservlets.ShowBalance"
>> is not available.
>>
>> PS: Inside the ShowBalance servlet, if the id is id001 then I am
>> forwarding the request to a JSP. So the above URL result in a jsp page
>> but it isnt
>>
>> Please correct me.
>>
>> 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?hl=en

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


Re: [java ee programming] FW: Configure Apache

2010-08-10 Thread jitesh dundas
in the server tab in the bottom section of the window, right click and
add server.then use the wizard to add ur server details &
location..check the help file for this...
regards,
jd

On 8/10/10, Nelson Rodrigo - LHQ  wrote:
> Hi Ramesh
>
> Thanks for your reply!
>
>
>
> Actually servlet issue is done by me.
>
> Now I want to add a server to my project
>
>
>
> When I go to projectàproperties server tab there is no any servers
>
> So please guide me to add server
>
>
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
>
>
> From: Ramesh A [mailto:ramesha...@gmail.com]
> Sent: Tuesday, August 10, 2010 11:33 AM
> To: nelson.rodr...@loadstarlk.com
> Subject: Re: [java ee programming] FW: Configure Apache
>
>
>
> Hi Nelson,
>
> Hope you have forgot one more step of including the library files related to
> the javax.  In the project libraries add the lib files related to the
> servlet (these files will be in the local drive where you have installed
> java kit
>
> Hope this suffices all your needs
>
> Thanks,
> Ramesh A
>
> On Tue, Aug 10, 2010 at 9:53 AM, Nelson Rodrigo - LHQ
>  wrote:
>
> Hi Kiran
>
> Thanks your reply
>
> This Eclips folder is what I used earlier, so all the plugins are should
> there, because its worked perfectly.
>
>  Actually I have make to tomcat start mood by create a bat file manually,
> its starting and getting welcome page also.
>
>
>
> Simple hello word also working
>
> Now, when I add a Servlet (import javax.servlet.*;) it says The import
> javax.servlet can not be resolved.
>
>
>
> What is this ?
>
> I can’t remember
>
>
>
>
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
>
>
> From: kiran kadam [mailto:kirankada...@gmail.com]
> Sent: Tuesday, August 10, 2010 8:47 AM
> To: nelson.rodr...@loadstarlk.com
> Subject: Re: [java ee programming] FW: Configure Apache
>
>
>
> Hi Nelson,
>
> I got solution, please go through following link.Please reply if you not get
> exact solution.
>
> http://www.jarvana.com/jarvana/view/org/apache/struts/struts2-assembly/2.0.1
> 4/struts2-assembly-2.0.14-all.zip!/struts-2.0.14/docs/docs/setting-up-eclips
> e-with-tomcat.html
>  14/struts2-assembly-2.0.14-all.zip%21/struts-2.0.14/docs/docs/setting-up-ecl
> ipse-with-tomcat.html>
>
>
>
> Regards
>
> Kiran Kadam.
>
> On Tue, Aug 10, 2010 at 8:36 AM, Nelson Rodrigo - LHQ
>  wrote:
>
> Hi Friends,
>
>
>
> So dear I’m in big problem here, in few years ago I had configured apache
> tomcat and worked properly.
>
> But I have switched to new machine (laptop with windows xp)
>
> So I want to configure apache-tomcat-5.5.20 with eclips actually I can’t
> remember the steps to do that,
>
>
>
> Please help me to solved the problem.
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
> --
> 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?h
> l=en
>
>
>
> --
> 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?h
> l=en
>
>
>
>
> --
> With Cheers & Regards
>
> Ramesh
>
> "Pleasure in the job puts perfection in the work."
>
> --
> 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-wit

Re: [java ee programming] Suggestion about Web service

2010-08-17 Thread jitesh dundas
Axis2 web services -apache project ..check online on its site..

regards ,
jitesh dundas

On 8/17/10, tamal das  wrote:
> Hi,
>
> I want to learn web service and its implementation using Java.
> Can somebody suggest any good book or website which is useful for beginner
> in webservice like me.
> Thanks in advance.
>
> regards,
> tamal das
>
> --
> 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

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


Re: [java ee programming] progect JSF problem tag richFaces

2010-08-19 Thread jitesh dundas
It seem that your libraries are not in the project classpath..Have your
included the JSF libraries ( with dependencies ) in the lib folder and
mapped the entries in the config files of the project.
Check your libraries..

Regards,
Jitesh Dundas

On Thu, Aug 19, 2010 at 4:05 PM, Christian wrote:

> Hello,
> I am creating a new JSF project but when I create a new XHTML page by
> pressing CONTROL + SPACE does not suggests to me the tag rich;
> I have inserted references ...
> 
> http://www.w3.org/1999/xhtml";
>  xmlns:h="http://java.sun.com/jsf/html";
>  xmlns:f="http://java.sun.com/jsf/core";
>  xxmlns:ui="http://java.sun.com/jsf/facelets";
>  xmlns:c="http://java.sun.com/jsp/jstl/core";
>  xmlns:rich="http://richfaces.org/rich";>
> 
>
> someone can help me?
>
> --
> 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

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

Re: [java ee programming] progect JSF problem tag richFaces

2010-08-19 Thread jitesh dundas
Right..Also, have you included in your page the directives to import the JSF
libraries..

Rich-faces might be missing some dependencies..

Something with your libraries & installation is wrong in name or path..

Regards,
JD

2010/8/19 Faruk Gürses 

> hi
> did you check your libraries ( jars ) ? did you put the libraries ( jsf,
> richfaces, etc ) properly ?
>
> take care
>
>
> 2010/8/19 Christian 
>
> Hello,
>> I am creating a new JSF project but when I create a new XHTML page by
>> pressing CONTROL + SPACE does not suggests to me the tag rich;
>> I have inserted references ...
>> 
>> http://www.w3.org/1999/xhtml";
>>  xmlns:h="http://java.sun.com/jsf/html";
>>  xmlns:f="http://java.sun.com/jsf/core";
>>  xxmlns:ui="http://java.sun.com/jsf/facelets";
>>  xmlns:c="http://java.sun.com/jsp/jstl/core";
>>  xmlns:rich="http://richfaces.org/rich";>
>> 
>>
>> someone can help me?
>>
>> --
>> 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
>
>
>  --
> 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
>

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

Re: [java ee programming] Re: Servlet Error

2010-08-23 Thread jitesh dundas
Note that the meta method is deemed deprecated but it worked for me several
times.check it before use..For external sites, you could also use
HTTPURLconnection or socket objects too..

Regards,
JD

On Mon, Aug 23, 2010 at 9:57 PM, jitesh dundas  wrote:

> Thanks and I forgot to add this method if you are using this URL ( which is
> outside the existing application)...
>
> Heard of META -REFRESH METHOD for URL redirection..If the page is in your
> application, then what MEaraj said is fine..Else use the above..
> URL :- http://www.w3schools.com/tags/tag_meta.asp
>
> out.println(meta-refresh method ); in your code ( in place of sendRedirect
> method)
>
>
> PS:- Your code has a few logic related issues..I have sent you an email
> regarding one of these and I hope this was useful..
>
> Thanks,
> JD
>
>
> On Mon, Aug 23, 2010 at 8:35 PM, Devilking  wrote:
>
>> Hi Nelson,
>> you are missing something, when you call sendRedirect(url) what
>> actually happens is that the server asks the client to fetch a new
>> page given by your url, most of the time with new request.
>> So, no matter what attribute you set you gonna loose that.
>>
>> But if you have to, then create a HttpSession object like
>> HttpSession session  = request.getSession();
>> then store whatever you want to store like
>>
>> session.setAttribute("stFullName",stFullName);
>>
>> you can take similar steps in jsp to get the session and
>> then get the attributes by
>>
>> session.getAttribute("stFullName");
>>
>>
>> You can also use RequestDispatcher object. and use forward method.
>>
>>
>>
>> Regards
>>
>> Mearaj
>>
>> On Aug 23, 5:26 pm, "Nelson Rodrigo - LHQ"
>>  wrote:
>> > Dear Ahish
>> >
>> > As your example, I have use that.
>> >
>> > So how I get those values in my jsp.
>> >
>> > Thanks & Kind Regards,
>> >
>> > Nelson Rodrigo
>> > Executive – Software Development
>> > LOADSTAR (PRIVATE) LIMITED
>> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311
>> > 6556
>> >
>> > P SAVE PAPER  - Please consider our environment before printing ü
>> >
>> > From: Ashish Mishra [mailto:misra.ash...@gmail.com]
>> > Sent: Monday, August 23, 2010 5:21 PM
>> > To: nelson.rodr...@loadstarlk.com
>> > Subject: Re: [java ee programming] Servlet Error
>> >
>> > Dear Nelson,
>> >
>> > You need to set the value to request in the " if block "
>> >
>> >
>> ---
>> -
>> > -
>> >
>> > if (rs.next()) {
>> >
>> > String stFullName = rs.getString("FullName");
>> >
>> >   request.setAttribute("",stFullName);
>> >
>> >   response.sendRedirect("MainFrame.jsp");
>> >
>> > } else {
>> >
>> >
>> ---
>> -
>> > --
>> >
>> > Regards,
>> >
>> > Ashish
>> >
>> > On Mon, Aug 23, 2010 at 5:14 PM, Nelson Rodrigo - LHQ
>> >
>> >  wrote:
>> >
>> > Dear Friends
>> >
>> > Hi Friends
>> >
>> > In my login servlet I have use as follows
>> >
>> > ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName,
>> SAPNo,
>> > eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>> >
>> > And if success I want to use those db values to my jsp
>> >
>> > if (rs.next()) {
>> >
>> > String stFullName = rs.getString("FullName");
>> >
>> >   response.sendRedirect("MainFrame.jsp");
>> >
>> > } else {
>> >
>> > In JSP I have use
>> >
>> > String sUserName = request.getParameter("stFullName");
>> >
>> > out.println("Name : " + sUserName  );
>> >
>> > but result is null
>> >
>> > what happened?  Where I missed?
>> >
>> > Thanks & Kind Regards,
>> >
>> > Nelson Rodrigo
>> > Executive – Software Development
>> > LOADSTAR (PRIVATE) LIMITED
>> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94

Re: [java ee programming] Re: Servlet Error

2010-08-23 Thread jitesh dundas
Thanks and I forgot to add this method if you are using this URL ( which is
outside the existing application)...

Heard of META -REFRESH METHOD for URL redirection..If the page is in your
application, then what MEaraj said is fine..Else use the above..
URL :- http://www.w3schools.com/tags/tag_meta.asp

out.println(meta-refresh method ); in your code ( in place of sendRedirect
method)


PS:- Your code has a few logic related issues..I have sent you an email
regarding one of these and I hope this was useful..

Thanks,
JD

On Mon, Aug 23, 2010 at 8:35 PM, Devilking  wrote:

> Hi Nelson,
> you are missing something, when you call sendRedirect(url) what
> actually happens is that the server asks the client to fetch a new
> page given by your url, most of the time with new request.
> So, no matter what attribute you set you gonna loose that.
>
> But if you have to, then create a HttpSession object like
> HttpSession session  = request.getSession();
> then store whatever you want to store like
>
> session.setAttribute("stFullName",stFullName);
>
> you can take similar steps in jsp to get the session and
> then get the attributes by
>
> session.getAttribute("stFullName");
>
>
> You can also use RequestDispatcher object. and use forward method.
>
>
>
> Regards
>
> Mearaj
>
> On Aug 23, 5:26 pm, "Nelson Rodrigo - LHQ"
>  wrote:
> > Dear Ahish
> >
> > As your example, I have use that.
> >
> > So how I get those values in my jsp.
> >
> > Thanks & Kind Regards,
> >
> > Nelson Rodrigo
> > Executive – Software Development
> > LOADSTAR (PRIVATE) LIMITED
> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311
> > 6556
> >
> > P SAVE PAPER  - Please consider our environment before printing ü
> >
> > From: Ashish Mishra [mailto:misra.ash...@gmail.com]
> > Sent: Monday, August 23, 2010 5:21 PM
> > To: nelson.rodr...@loadstarlk.com
> > Subject: Re: [java ee programming] Servlet Error
> >
> > Dear Nelson,
> >
> > You need to set the value to request in the " if block "
> >
> >
> ---
> -
> > -
> >
> > if (rs.next()) {
> >
> > String stFullName = rs.getString("FullName");
> >
> >   request.setAttribute("",stFullName);
> >
> >   response.sendRedirect("MainFrame.jsp");
> >
> > } else {
> >
> >
> ---
> -
> > --
> >
> > Regards,
> >
> > Ashish
> >
> > On Mon, Aug 23, 2010 at 5:14 PM, Nelson Rodrigo - LHQ
> >
> >  wrote:
> >
> > Dear Friends
> >
> > Hi Friends
> >
> > In my login servlet I have use as follows
> >
> > ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
> > eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
> >
> > And if success I want to use those db values to my jsp
> >
> > if (rs.next()) {
> >
> > String stFullName = rs.getString("FullName");
> >
> >   response.sendRedirect("MainFrame.jsp");
> >
> > } else {
> >
> > In JSP I have use
> >
> > String sUserName = request.getParameter("stFullName");
> >
> > out.println("Name : " + sUserName  );
> >
> > but result is null
> >
> > what happened?  Where I missed?
> >
> > Thanks & Kind Regards,
> >
> > Nelson Rodrigo
> > Executive – Software Development
> > LOADSTAR (PRIVATE) LIMITED
> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311
> > 6556
> >
> > P SAVE PAPER  - Please consider our environment before printing ü
> >
> > --
> > 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
> >  java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com
> >
> > For more options, visit this group athttp://
> groups.google.com/group/java-ee-j2ee-programming-with-passion?...
> > l=en
> >
> > --
> > Best Regards
> > Ashish Mishra
>
> --
> 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
>

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

Re: [java ee programming] Servlet Error

2010-08-24 Thread jitesh dundas
*There is one issue in this suggestion my friend...*

On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K wrote:

> Hi Nelson Rodrigo,
> after retrieving the FullName from Database you have to store it in
> any one of these scopes:
> request,session or application
> like
>
> *if* (rs.next()) {
>
> String *stFullName* = rs.getString("FullName");
>
>
>
>   //add this line to your code
>
>   response.setAttribute("fullname",stFullName);
>
>
>
>   response.sendRedirect("MainFrame.jsp");
>
>
> }
>
> *In JSP use Like this
> *
>
> //typecast the Object into String
>
> String sUserName = (String)request.getAttribute("fulllname");
>
> out.println("Name : " + sUserName  );
>
> *if you print something just before a sendRedirect call, then your servlet
might throw you an error and ofcourse stop processing..so please avoid using
print stmts with redirect callls..

good suggestion though. Nelson my friend, you need to learn from the
tutorials and practise..else you will not be able to gain your skills as
needed..

Java COmplete Reference by Herbert Schildt
Servelts by Dustin Callaway
Java Tutorial on oracle.com

Hope this helps.Please try all the suggestions in this thread and let us
know if needed...


Thanks,
jd
*

>
> On Mon, Aug 23, 2010 at 5:14 PM, Nelson Rodrigo - LHQ <
> nelson.rodr...@loadstarlk.com> wrote:
>
>>
>>
>> Dear Friends
>>
>> Hi Friends
>>
>>
>>
>> *In my login servlet I have use as follows*
>>
>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>
>>
>>
>> *And if success I want to use those db values to my jsp*
>>
>> *if* (rs.next()) {
>>
>> String *stFullName* = rs.getString("FullName");
>>
>>
>>
>>   response.sendRedirect("MainFrame.jsp");
>>
>>
>>
>> } *else* {
>>
>>
>>
>> *In JSP I have use*
>>
>> String sUserName = request.getParameter("stFullName");
>>
>> out.println("Name : " + sUserName  );
>>
>>
>>
>> but result is null
>>
>> what happened?  Where I missed?
>>
>>
>>
>> Thanks & Kind Regards,
>>
>> Nelson Rodrigo
>> Executive – Software Development
>> *LOADSTAR (PRIVATE) LIMITED
>> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311 6556
>>
>> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>>
>>
>>
>> --
>> 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
>
>
>
>
> --
> Thanks & Regards,
> Ramesh K
>
>  --
> 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
>

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

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
Do these..

check if table column names,types & details  is correct and if db
connection is also fine..

Next, insert a new record and query the table from db command prompt
itself.see if u get the value..if yes,paste it into the  query string
in the loop..

String vari = '';

try
{

while (rs.next() )
{
  vari = rs.getString('column name');
  out.println(vari);
}
}
catch(Exception ex)
//I assume that you will put all specific exceptions in place..
{
ex.printStackTrace();
}//end catch ..
//finally block if //needed..

Please check the Java examples in your books for details.Without stack
trace (assuming no silly mistakes are tere in the existing code), it
is difficult to solve..

regards,
jd

On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Hi Friends,
>
> Thanks for your valuable responses.
>
> But friends sad to say still I’m in same issue. My codes are
> here please look in to this, where I missed.
>
>
>
> In My Servlet .
>
>
>
> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>
>
>
> if (rs.next()) {
>
> String stFullName =
> rs.getString("FullName");
>
> request.setAttribute("fullname",stFullName);
>
>
>
>
>
> In My JSP
>
>
>
> <%
>
> String sUserName = (String)request.getAttribute("fulllname");
>
> out.println("Name : " + sUserName  );
>
>
>
> %>
>
>
>
> But result is Name : null
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
>
>
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
> jitesh dundas
> Sent: Tuesday, August 24, 2010 12:18 PM
> To: nelson.rodr...@loadstarlk.com
> Cc: rameshcharyko...@gmail.com;
> java-ee-j2ee-programming-with-passion@googlegroups.com
> Subject: Re: [java ee programming] Servlet Error
>
>
>
> There is one issue in this suggestion my friend...
>
> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
> wrote:
>
> Hi Nelson Rodrigo,
> after retrieving the FullName from Database you have to store it in
> any one of these scopes:
> request,session or application
> like
>
> if (rs.next()) {
>
> String stFullName = rs.getString("FullName");
>
>
>
>   //add this line to your code
>
>   response.setAttribute("fullname",stFullName);
>
>
>
>   response.sendRedirect("MainFrame.jsp");
>
>
>
> }
>
> In JSP use Like this
>
> //typecast the Object into String
>
> String sUserName = (String)request.getAttribute("fulllname");
>
> out.println("Name : " + sUserName  );
>
>
>
> if you print something just before a sendRedirect call, then your servlet
> might throw you an error and ofcourse stop processing..so please avoid using
> print stmts with redirect callls..
>
> good suggestion though. Nelson my friend, you need to learn from the
> tutorials and practise..else you will not be able to gain your skills as
> needed..
>
> Java COmplete Reference by Herbert Schildt
> Servelts by Dustin Callaway
> Java Tutorial on oracle.com
>
> Hope this helps.Please try all the suggestions in this thread and let us
> know if needed...
>
>
> Thanks,
> jd
>
>
>
>
> On Mon, Aug 23, 2010 at 5:14 PM, Nelson Rodrigo - LHQ
>  wrote:
>
>
>
> Dear Friends
>
> Hi Friends
>
>
>
> In my login servlet I have use as follows
>
> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>
>
>
> And if success I want to use those db values to my jsp
>
> if (rs.next()) {
>
> String stFullName = rs.getString("FullName");
>
>
>
>   response.sendRedirect("MainFrame.jsp");
>
>
>
> } else {
>
>
>
> In JSP I have use
>
> String sUserName = request.getParameter("stFullName");
>
> out.println("Name : " + sUserName  );
>
>
>
> but result is null
>
> what happened?  Where I missed?
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive –

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
Please check if the values are present in the database I.e. table -tbllogin

Next, please use a while loop,remove if stmt..

PLEASE GIVE THE ERROR  STACK TRace that you get..
use exception handling with try catch block..

regards
jd

On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Hi Friends,
>
> Thanks for your valuable responses.
>
> But friends sad to say still I’m in same issue. My codes are
> here please look in to this, where I missed.
>
>
>
> In My Servlet .
>
>
>
> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>
>
>
> if (rs.next()) {
>
> String stFullName =
> rs.getString("FullName");
>
> request.setAttribute("fullname",stFullName);
>
>
>
>
>
> In My JSP
>
>
>
> <%
>
> String sUserName = (String)request.getAttribute("fulllname");
>
> out.println("Name : " + sUserName  );
>
>
>
> %>
>
>
>
> But result is Name : null
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
>
>
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
> jitesh dundas
> Sent: Tuesday, August 24, 2010 12:18 PM
> To: nelson.rodr...@loadstarlk.com
> Cc: rameshcharyko...@gmail.com;
> java-ee-j2ee-programming-with-passion@googlegroups.com
> Subject: Re: [java ee programming] Servlet Error
>
>
>
> There is one issue in this suggestion my friend...
>
> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
> wrote:
>
> Hi Nelson Rodrigo,
> after retrieving the FullName from Database you have to store it in
> any one of these scopes:
> request,session or application
> like
>
> if (rs.next()) {
>
> String stFullName = rs.getString("FullName");
>
>
>
>   //add this line to your code
>
>   response.setAttribute("fullname",stFullName);
>
>
>
>   response.sendRedirect("MainFrame.jsp");
>
>
>
> }
>
> In JSP use Like this
>
> //typecast the Object into String
>
> String sUserName = (String)request.getAttribute("fulllname");
>
> out.println("Name : " + sUserName  );
>
>
>
> if you print something just before a sendRedirect call, then your servlet
> might throw you an error and ofcourse stop processing..so please avoid using
> print stmts with redirect callls..
>
> good suggestion though. Nelson my friend, you need to learn from the
> tutorials and practise..else you will not be able to gain your skills as
> needed..
>
> Java COmplete Reference by Herbert Schildt
> Servelts by Dustin Callaway
> Java Tutorial on oracle.com
>
> Hope this helps.Please try all the suggestions in this thread and let us
> know if needed...
>
>
> Thanks,
> jd
>
>
>
>
> On Mon, Aug 23, 2010 at 5:14 PM, Nelson Rodrigo - LHQ
>  wrote:
>
>
>
> Dear Friends
>
> Hi Friends
>
>
>
> In my login servlet I have use as follows
>
> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>
>
>
> And if success I want to use those db values to my jsp
>
> if (rs.next()) {
>
> String stFullName = rs.getString("FullName");
>
>
>
>   response.sendRedirect("MainFrame.jsp");
>
>
>
> } else {
>
>
>
> In JSP I have use
>
> String sUserName = request.getParameter("stFullName");
>
> out.println("Name : " + sUserName  );
>
>
>
> but result is null
>
> what happened?  Where I missed?
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing ü
>
>
>
> --
> 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.c

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
Hi,

If might not move the counter to the first record..
'try rs.movefirst or rs.first (check the command as I don't remember that..

then use rs.getString('column name');

like ...

while (rs.next() )
{
 rs.first()//check //the command here..

 String st = rs.getString('column name');

}

and yes, check if the column type is string..

lastly, try to use session instead of request object to store variable.

Regards,
jd

On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Hi Jd
> Thanks for your reply.
>
>   Why I used > if (rs.next()) { is there are only one value came then no 
> need
> to use while statement.
>
> No errors came actually application working I want to use these servlet
> values (db login values) in jsp for validation purpose.
> In this case no values come with variables that is my main issue.
>
>
> Thanks & Kind Regards,
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>  SAVE PAPER  - Please consider our environment before printing 
>
>
> -Original Message-
> From: jitesh dundas [mailto:jbdun...@gmail.com]
> Sent: Wednesday, August 25, 2010 9:05 AM
> To: nelson.rodr...@loadstarlk.com
> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh A
> Subject: Re: [java ee programming] Servlet Error
>
> Please check if the values are present in the database I.e. table -tbllogin
>
> Next, please use a while loop,remove if stmt..
>
> PLEASE GIVE THE ERROR  STACK TRace that you get..
> use exception handling with try catch block..
>
> regards
> jd
>
> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>> Hi Friends,
>>
>> Thanks for your valuable responses.
>>
>> But friends sad to say still I’m in same issue. My codes
>> are
>> here please look in to this, where I missed.
>>
>>
>>
>> In My Servlet .
>>
>>
>>
>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>
>>
>>
>> if (rs.next()) {
>>
>> String stFullName =
>> rs.getString("FullName");
>>
>> request.setAttribute("fullname",stFullName);
>>
>>
>>
>>
>>
>> In My JSP
>>
>>
>>
>> <%
>>
>> String sUserName = (String)request.getAttribute("fulllname");
>>
>> out.println("Name : " + sUserName  );
>>
>>
>>
>> %>
>>
>>
>>
>> But result is Name : null
>>
>>
>>
>>
>>
>> Thanks & Kind Regards,
>>
>> Nelson Rodrigo
>> Executive – Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311
>> 6556
>>
>> P SAVE PAPER  - Please consider our environment before printing ü
>>
>>
>>
>> From: java-ee-j2ee-programming-with-passion@googlegroups.com
>> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf
>> Of
>> jitesh dundas
>> Sent: Tuesday, August 24, 2010 12:18 PM
>> To: nelson.rodr...@loadstarlk.com
>> Cc: rameshcharyko...@gmail.com;
>> java-ee-j2ee-programming-with-passion@googlegroups.com
>> Subject: Re: [java ee programming] Servlet Error
>>
>>
>>
>> There is one issue in this suggestion my friend...
>>
>> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
>> wrote:
>>
>> Hi Nelson Rodrigo,
>> after retrieving the FullName from Database you have to store it in
>> any one of these scopes:
>> request,session or application
>> like
>>
>> if (rs.next()) {
>>
>> String stFullName = rs.getString("FullName");
>>
>>
>>
>>   //add this line to your code
>>
>>   response.setAttribute("fullname",stFullName);
>>
>>
>>
>>   response.sendRedirect("MainFrame.jsp");
>>
>>
>>
>> }
>>
>> In JSP use Like this
>>
>> //typecast the Object into String
>>
>> String sUserName = (String)request.getAttribute("fulllname");
>>
>> out.println("Name : " + sUserName  );
>>
>>
>>
>> if you print something just before a sendRedirect c

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
>
 > <%
 >
 > String sUserName = (String)request.getAttribute("fulllname");

IS THIS TRIPLE L IN THIS..("fulllname") or ("fullname")..
plz check..


 >
 > out.println("Name : " + sUserName  );
 >
 >
 >
 > %>

Ok then please try sessions..I.e.
session hs=request.getSession();
hs.setAttribute &
hs.get Attribute to get your values..instead of request object..


On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Dear JD
>   Connection and everything is fine, see my sql is in my below mail.
>   When sql success only come to jsp otherwise direct to message html page.
>   
>
>
> Thanks & Kind Regards,
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>  SAVE PAPER  - Please consider our environment before printing 
>
>
> -Original Message-
> From: jitesh dundas [mailto:jbdun...@gmail.com]
> Sent: Wednesday, August 25, 2010 9:24 AM
> To: nelson.rodr...@loadstarlk.com
> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh A
> Subject: Re: [java ee programming] Servlet Error
>
> Do these..
>
> check if table column names,types & details  is correct and if db
> connection is also fine..
>
> Next, insert a new record and query the table from db command prompt
> itself.see if u get the value..if yes,paste it into the  query string
> in the loop..
>
> String vari = '';
>
> try
> {
>
> while (rs.next() )
> {
>   vari = rs.getString('column name');
>   out.println(vari);
> }
> }
> catch(Exception ex)
> //I assume that you will put all specific exceptions in place..
> {
> ex.printStackTrace();
> }//end catch ..
> //finally block if //needed..
>
> Please check the Java examples in your books for details.Without stack
> trace (assuming no silly mistakes are tere in the existing code), it
> is difficult to solve..
>
> regards,
> jd
>
> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>> Hi Friends,
>>
>> Thanks for your valuable responses.
>>
>> But friends sad to say still I’m in same issue. My codes
>> are
>> here please look in to this, where I missed.
>>
>>
>>
>> In My Servlet .
>>
>>
>>
>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>
>>
>>
>> if (rs.next()) {
>>
>> String stFullName =
>> rs.getString("FullName");
>>
>> request.setAttribute("fullname",stFullName);
>>
>>
>>
>>
>>
>> In My JSP
>>
>>
>>
>> <%
>>
>> String sUserName = (String)request.getAttribute("fulllname");
>>
>> out.println("Name : " + sUserName  );
>>
>>
>>
>> %>
>>
>>
>>
>> But result is Name : null
>>
>>
>>
>>
>>
>> Thanks & Kind Regards,
>>
>> Nelson Rodrigo
>> Executive – Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311
>> 6556
>>
>> P SAVE PAPER  - Please consider our environment before printing ü
>>
>>
>>
>> From: java-ee-j2ee-programming-with-passion@googlegroups.com
>> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf
>> Of
>> jitesh dundas
>> Sent: Tuesday, August 24, 2010 12:18 PM
>> To: nelson.rodr...@loadstarlk.com
>> Cc: rameshcharyko...@gmail.com;
>> java-ee-j2ee-programming-with-passion@googlegroups.com
>> Subject: Re: [java ee programming] Servlet Error
>>
>>
>>
>> There is one issue in this suggestion my friend...
>>
>> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
>> wrote:
>>
>> Hi Nelson Rodrigo,
>> after retrieving the FullName from Database you have to store it in
>> any one of these scopes:
>> request,session or application
>> like
>>
>> if (rs.next()) {
>>
>> String stFullName = rs.getString("FullName");
>>
>>
>>
>>   //add this line to your code
>>
>>   response.setAttribute("fullname",stFullName);
>>
>>
>>
>>   response.sendRedirect(&

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
The problem is the extra 'l' in

("fulllname")

your jsp call..plz check and verify if true..

thanks,
jd

On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Dear JD
>   Connection and everything is fine, see my sql is in my below mail.
>   When sql success only come to jsp otherwise direct to message html page.
>   
>
>
> Thanks & Kind Regards,
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>  SAVE PAPER  - Please consider our environment before printing 
>
>
> -Original Message-
> From: jitesh dundas [mailto:jbdun...@gmail.com]
> Sent: Wednesday, August 25, 2010 9:24 AM
> To: nelson.rodr...@loadstarlk.com
> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh A
> Subject: Re: [java ee programming] Servlet Error
>
> Do these..
>
> check if table column names,types & details  is correct and if db
> connection is also fine..
>
> Next, insert a new record and query the table from db command prompt
> itself.see if u get the value..if yes,paste it into the  query string
> in the loop..
>
> String vari = '';
>
> try
> {
>
> while (rs.next() )
> {
>   vari = rs.getString('column name');
>   out.println(vari);
> }
> }
> catch(Exception ex)
> //I assume that you will put all specific exceptions in place..
> {
> ex.printStackTrace();
> }//end catch ..
> //finally block if //needed..
>
> Please check the Java examples in your books for details.Without stack
> trace (assuming no silly mistakes are tere in the existing code), it
> is difficult to solve..
>
> regards,
> jd
>
> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>> Hi Friends,
>>
>> Thanks for your valuable responses.
>>
>> But friends sad to say still I’m in same issue. My codes
>> are
>> here please look in to this, where I missed.
>>
>>
>>
>> In My Servlet .
>>
>>
>>
>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>
>>
>>
>> if (rs.next()) {
>>
>> String stFullName =
>> rs.getString("FullName");
>>
>> request.setAttribute("fullname",stFullName);
>>
>>
>>
>>
>>
>> In My JSP
>>
>>
>>
>> <%
>>
>> String sUserName = (String)request.getAttribute("fulllname");
>>
>> out.println("Name : " + sUserName  );
>>
>>
>>
>> %>
>>
>>
>>
>> But result is Name : null
>>
>>
>>
>>
>>
>> Thanks & Kind Regards,
>>
>> Nelson Rodrigo
>> Executive – Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311
>> 6556
>>
>> P SAVE PAPER  - Please consider our environment before printing ü
>>
>>
>>
>> From: java-ee-j2ee-programming-with-passion@googlegroups.com
>> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf
>> Of
>> jitesh dundas
>> Sent: Tuesday, August 24, 2010 12:18 PM
>> To: nelson.rodr...@loadstarlk.com
>> Cc: rameshcharyko...@gmail.com;
>> java-ee-j2ee-programming-with-passion@googlegroups.com
>> Subject: Re: [java ee programming] Servlet Error
>>
>>
>>
>> There is one issue in this suggestion my friend...
>>
>> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
>> wrote:
>>
>> Hi Nelson Rodrigo,
>> after retrieving the FullName from Database you have to store it in
>> any one of these scopes:
>> request,session or application
>> like
>>
>> if (rs.next()) {
>>
>> String stFullName = rs.getString("FullName");
>>
>>
>>
>>   //add this line to your code
>>
>>   response.setAttribute("fullname",stFullName);
>>
>>
>>
>>   response.sendRedirect("MainFrame.jsp");
>>
>>
>>
>> }
>>
>> In JSP use Like this
>>
>> //typecast the Object into String
>>
>> String sUserName = (String)request.getAttribute("fulllname");
>>
>> out.println("Name : " + sUserName  

Re: [java ee programming] Servlet Error

2010-08-26 Thread jitesh dundas
compile the servlet,then restart the server (tomcat/jboss,etc) and then try..

also, maybe clear the temp folder of your server,which may be holding
an old copy of your project..

Can you please print the values after setAttribute and before
getAttribute of the variable ..

Thanks,
jd
On 8/25/10, Nelson Rodrigo - LHQ  wrote:
> Hi
> No JD I have corrected before your posting, same result :(
>
>
> Thanks & Kind Regards,
> Nelson Rodrigo
> Executive – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>  SAVE PAPER  - Please consider our environment before printing 
>
>
> -----Original Message-
> From: jitesh dundas [mailto:jbdun...@gmail.com]
> Sent: Wednesday, August 25, 2010 10:13 AM
> To: nelson.rodr...@loadstarlk.com
> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh A
> Subject: Re: [java ee programming] Servlet Error
>
> The problem is the extra 'l' in
>
> ("fulllname")
>
> your jsp call..plz check and verify if true..
>
> thanks,
> jd
>
> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>> Dear JD
>>  Connection and everything is fine, see my sql is in my below mail.
>>  When sql success only come to jsp otherwise direct to message html page.
>>
>>
>>
>> Thanks & Kind Regards,
>> Nelson Rodrigo
>> Executive  Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 311
>> 6556
>> ? SAVE PAPER  - Please consider our environment before printing ?
>>
>>
>> -Original Message-
>> From: jitesh dundas [mailto:jbdun...@gmail.com]
>> Sent: Wednesday, August 25, 2010 9:24 AM
>> To: nelson.rodr...@loadstarlk.com
>> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
>> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh
>> A
>> Subject: Re: [java ee programming] Servlet Error
>>
>> Do these..
>>
>> check if table column names,types & details  is correct and if db
>> connection is also fine..
>>
>> Next, insert a new record and query the table from db command prompt
>> itself.see if u get the value..if yes,paste it into the  query string
>> in the loop..
>>
>> String vari = '';
>>
>> try
>> {
>>
>> while (rs.next() )
>> {
>>   vari = rs.getString('column name');
>>   out.println(vari);
>> }
>> }
>> catch(Exception ex)
>> //I assume that you will put all specific exceptions in place..
>> {
>> ex.printStackTrace();
>> }//end catch ..
>> //finally block if //needed..
>>
>> Please check the Java examples in your books for details.Without stack
>> trace (assuming no silly mistakes are tere in the existing code), it
>> is difficult to solve..
>>
>> regards,
>> jd
>>
>> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>>> Hi Friends,
>>>
>>> Thanks for your valuable responses.
>>>
>>> But friends sad to say still Im in same issue. My codes
>>> are
>>> here please look in to this, where I missed.
>>>
>>>
>>>
>>> In My Servlet .
>>>
>>>
>>>
>>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>>
>>>
>>>
>>> if (rs.next()) {
>>>
>>> String stFullName =
>>> rs.getString("FullName");
>>>
>>> request.setAttribute("fullname",stFullName);
>>>
>>>
>>>
>>>
>>>
>>> In My JSP
>>>
>>>
>>>
>>> <%
>>>
>>> String sUserName = (String)request.getAttribute("fulllname");
>>>
>>> out.println("Name : " + sUserName  );
>>>
>>>
>>>
>>> %>
>>>
>>>
>>>
>>> But result is Name : null
>>>
>>>
>>>
>>>
>>>
>>> Thanks & Kind Regards,
>>>
>>> Nelson Rodrigo
>>> Executive  Software Development
>>> LOADSTAR (PRIVATE) LIMITED
>>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
&

Re: [java ee programming] How to use jdbc without openning SQLServer Management Studio and adding it ?

2010-08-27 Thread jitesh dundas
Hi,

2 ways for now

Use JDBC but get the driver first for your  database...put it in your
project folder...then write the code(google that..plenty of items  are
there).

Another way is to use Hibernate (if your project is Hibernate )...

Thanks,
jd

On 8/27/10, Nguyễn Đình Đoàn  wrote:
> Hi friends,
>
> I developed an application in .NET, I needn't open SQL Server Management
> Studio and then add my .mdf file!
> I need create a string connection only and then execute. This is my
> connect() method I used for my project in VB.net:
>
> // I use express edition
>
> Public Shared Sub connect()
> strSqlConn = "Data
> Source=.\sqlexpress;AttachDbFileName=C:\MayAnh.mdf;Integrated Security=true;
> Connect Timeout=30;User Instance=True"
> conn = New SqlConnection
> conn.ConnectionString = strSqlConn
> conn.Open() 'mở kết nối
> End Sub
>
> In Java, I must open sql server configuration Manager and find the port,
> open ide then add database
> So, I want to ask, I have .mdf file and how to connect to database like the
> code above but in Java ?
> 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?hl=en

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


Re: [java ee programming] Cant Create Servlet

2010-08-30 Thread jitesh dundas
Need for details..

Are you having 2 JDKs ..

http://forums.sun.com/thread.jspa?threadID=5144147

check eclipse pat  for them,
restart eclipse ..

jd

On 8/31/10, Nelson Rodrigo - LHQ  wrote:
> Dear Friends
>
>
>
> When I create a new servlet it says
>
> “An error has occurred when Create servlet finished”
>
>
>
> Details error as follow
>
>
>
> What is the problem, in my application one servlet already added.
>
>
>
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(Unknown Source)
>
> at java.security.SecureClassLoader.defineClass(Unknown
> Source)
>
> at java.net.URLClassLoader.defineClass(Unknown Source)
>
> at java.net.URLClassLoader.access$100(Unknown Source)
>
> at java.net.URLClassLoader$1.run(Unknown Source)
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
> at java.net.URLClassLoader.findClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at
> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.loadClass(WTPJETEmitter.
> java:363)
>
> at
> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initialize(WTPJETEmitter
> .java:233)
>
> at
> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.(WTPJETEmitter.jav
> a:113)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperat
> ion.generateTemplateSource(NewJavaEEArtifactClassOperation.java:159)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.NewWebClassOperation.generateUs
> ingTemplates(NewWebClassOperation.java:129)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperat
> ion.doExecute(NewJavaEEArtifactClassOperation.java:93)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperat
> ion.execute(NewJavaEEArtifactClassOperation.java:63)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.c
> reateClass(AddJavaEEArtifactOperation.java:70)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.AddWebClassOperation.doExecute(
> AddWebClassOperation.java:63)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation$1
> .run(AddJavaEEArtifactOperation.java:47)
>
> at
> org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit.modify(WebArtifa
> ctEdit.java:667)
>
> at
> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.e
> xecute(AddJavaEEArtifactOperation.java:53)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl$1.run(DataModelPausibleOperationImpl.java:376)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.runOperation(DataModelPausibleOperationImpl.java:401)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.runOperation(DataModelPausibleOperationImpl.java:352)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.doExecute(DataModelPausibleOperationImpl.java:242)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperat
> ionImpl.execute(DataModelPausibleOperationImpl.java:202)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1$Ca
> tchThrowableRunnableWithProgress.run(DataModelWizard.java:219)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.jav
> a:458)
>
> at
> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
>
> at
> org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.runO
> perations(DataModelWizard.java:228)
>
> at
> org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.perf
> ormFinish(DataModelWizard.java:186)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(W

Re: [java ee programming] Cant Create Servlet

2010-08-31 Thread jitesh dundas
You need to check the server configurations  & the details of what
they will support.

Just installing something and running all will cause such basic errors.

Check the Configuration details for basic settings & yes, the
installation  guide too..

Please describe what environment are you using..

regards,
jd

On 8/31/10, Ramesh K  wrote:
> Hi Nelson Rodrigo
> compilation of that class is not with the version which is being used by
> your webserver
> so compile with correct version
>
> On Tue, Aug 31, 2010 at 10:05 AM, Nelson Rodrigo - LHQ <
> nelson.rodr...@loadstarlk.com> wrote:
>
>>  Dear Friends
>>
>>
>>
>> When I create a new servlet it says
>>
>> “An error has occurred when Create servlet finished”
>>
>>
>>
>> Details error as follow
>>
>>
>>
>> What is the problem, in my application one servlet already added.
>>
>>
>>
>> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>>
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>
>> at java.security.SecureClassLoader.defineClass(Unknown
>> Source)
>>
>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>
>> at java.net.URLClassLoader.access$100(Unknown Source)
>>
>> at java.net.URLClassLoader$1.run(Unknown Source)
>>
>> at java.security.AccessController.doPrivileged(Native
>> Method)
>>
>> at java.net.URLClassLoader.findClass(Unknown Source)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>
>> at
>> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.loadClass(WTPJETEmitter.java:363)
>>
>> at
>> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initialize(WTPJETEmitter.java:233)
>>
>> at
>> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.(WTPJETEmitter.java:113)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.generateTemplateSource(NewJavaEEArtifactClassOperation.java:159)
>>
>> at
>> org.eclipse.jst.j2ee.internal.web.operations.NewWebClassOperation.generateUsingTemplates(NewWebClassOperation.java:129)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.doExecute(NewJavaEEArtifactClassOperation.java:93)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.execute(NewJavaEEArtifactClassOperation.java:63)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.createClass(AddJavaEEArtifactOperation.java:70)
>>
>> at
>> org.eclipse.jst.j2ee.internal.web.operations.AddWebClassOperation.doExecute(AddWebClassOperation.java:63)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation$1.run(AddJavaEEArtifactOperation.java:47)
>>
>> at
>> org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit.modify(WebArtifactEdit.java:667)
>>
>> at
>> org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.execute(AddJavaEEArtifactOperation.java:53)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
>>
>> at
>> org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1$CatchThrowableRunnableWithProgress.run(DataModelWizard.java:219)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
>>

Re: [java ee programming] issue with export data to MS Office

2010-08-31 Thread jitesh dundas
Hi Friend,

Apache POI library is right for you. Let us know if you have
issues.Especially for 2007 MS formata..good library manual..

Thanks,
jd

On 9/1/10, Thanh Cong Bui  wrote:
> Hi my partner!
> I had problem with export Data to MS Word, Excel... Can anyone help me, are
> there any Java Lib to do this or can Java call VBA code
> Thank you for reading
>
>
> --
> 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

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


Re: [java ee programming] Parse data

2010-09-24 Thread jitesh dundas
Yes,

define a constructor or method that takes your input string..

Then loop through each line and serch for ';' .best would be toput
thay in array string..

jd

On 9/24/10, Santana  wrote:
> Hi all,
> i'am newbie in JAVA and i would liked your point of views/opinion for
> the following situation :
>
> i have a file with some lines that presents this format of
> information :
>
> 
> Anne Gomez ; "5th Avenue ;";"925 NY  " ; 1978/10/11
> ...
>
> the ";" is the separator of fields and i know the folling :
>
>
> 1ªfield = Anne Gomez
> 2ªfield = 5th Avenue ;";"925 NY
> 3ªfield = 1978/10/11
>
>
> The 2º field presents as value one or several semin-colon(";") and one
> or several single quote. Do you think there is possbile with class to
> extract the fields as i describe previous ?
>
> Regards,
> Paulito Santana
>
> --
> 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

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


Re: [java ee programming] Servlet Error

2010-12-09 Thread jitesh dundas
In that case, check your table name /Db details and the name that you
use in your java code for referring to those table columns.

JD

On Wed, Aug 25, 2010 at 9:34 AM, jitesh dundas  wrote:
> Hi,
>
> If might not move the counter to the first record..
> 'try rs.movefirst or rs.first (check the command as I don't remember that..
>
> then use rs.getString('column name');
>
> like ...
>
> while (rs.next() )
> {
>  rs.first()//check //the command here..
>
>  String st = rs.getString('column name');
>
> }
>
> and yes, check if the column type is string..
>
> lastly, try to use session instead of request object to store variable.
>
> Regards,
> jd
>
> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>> Hi Jd
>> Thanks for your reply.
>>
>>   Why I used > if (rs.next()) { is there are only one value came then no 
>> need
>> to use while statement.
>>
>> No errors came actually application working I want to use these servlet
>> values (db login values) in jsp for validation purpose.
>> In this case no values come with variables that is my main issue.
>>
>>
>> Thanks & Kind Regards,
>> Nelson Rodrigo
>> Executive – Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
>> 6556
>>  SAVE PAPER  - Please consider our environment before printing 
>>
>>
>> -Original Message-
>> From: jitesh dundas [mailto:jbdun...@gmail.com]
>> Sent: Wednesday, August 25, 2010 9:05 AM
>> To: nelson.rodr...@loadstarlk.com
>> Cc: java-ee-j2ee-programming-with-passion@googlegroups.com;
>> rameshcharyko...@gmail.com; mearajah...@gmail.com; harshani perera; Ramesh A
>> Subject: Re: [java ee programming] Servlet Error
>>
>> Please check if the values are present in the database I.e. table -tbllogin
>>
>> Next, please use a while loop,remove if stmt..
>>
>> PLEASE GIVE THE ERROR  STACK TRace that you get..
>> use exception handling with try catch block..
>>
>> regards
>> jd
>>
>> On 8/25/10, Nelson Rodrigo - LHQ  wrote:
>>> Hi Friends,
>>>
>>> Thanks for your valuable responses.
>>>
>>> But friends sad to say still I’m in same issue. My codes
>>> are
>>> here please look in to this, where I missed.
>>>
>>>
>>>
>>> In My Servlet .
>>>
>>>
>>>
>>> ResultSet rs = stmt.executeQuery("SELECT UsrName, PWord, FullName, SAPNo,
>>> eMail FROM tbllogin WHERE UsrName='" +lgNam+"'and PWord='"+lgPas+"'");
>>>
>>>
>>>
>>> if (rs.next()) {
>>>
>>> String stFullName =
>>> rs.getString("FullName");
>>>
>>> request.setAttribute("fullname",stFullName);
>>>
>>>
>>>
>>>
>>>
>>> In My JSP
>>>
>>>
>>>
>>> <%
>>>
>>> String sUserName = (String)request.getAttribute("fulllname");
>>>
>>> out.println("Name : " + sUserName  );
>>>
>>>
>>>
>>> %>
>>>
>>>
>>>
>>> But result is Name : null
>>>
>>>
>>>
>>>
>>>
>>> Thanks & Kind Regards,
>>>
>>> Nelson Rodrigo
>>> Executive – Software Development
>>> LOADSTAR (PRIVATE) LIMITED
>>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>>> 311
>>> 6556
>>>
>>> P SAVE PAPER  - Please consider our environment before printing ü
>>>
>>>
>>>
>>> From: java-ee-j2ee-programming-with-passion@googlegroups.com
>>> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf
>>> Of
>>> jitesh dundas
>>> Sent: Tuesday, August 24, 2010 12:18 PM
>>> To: nelson.rodr...@loadstarlk.com
>>> Cc: rameshcharyko...@gmail.com;
>>> java-ee-j2ee-programming-with-passion@googlegroups.com
>>> Subject: Re: [java ee programming] Servlet Error
>>>
>>>
>>>
>>> There is one issue in this suggestion my friend...
>>>
>>> On Tue, Aug 24, 2010 at 9:27 AM, Ramesh K 
>>> wrote:
>>>
>>> Hi Nelson Rodrigo,
>>> after retrieving the FullName from Database you have to store it in
>>> an