Saturday, May 31, 2008

Java wins by 1 vote

Dear All,

Thank you all who participated to the poll. According to the results Java has got the maximum no of votes.


Nishantha Sampath

Tuesday, May 27, 2008

Explicit session Id in JSP

Sampath,
 
I need to start a JSP session with a given Id, like "http://localhost/home.jsp?session=123456789", but not like "http://localhost/home.jsp;jsessionid=123456789?<query_string>".
 
If you know PHP, see below code:
<?php
session_id($_GET['session']);
session_start();
 
// rest of the code
?>
 
I want to do the same using JSP too. I need this because the client is not a browser. It just sends send HTTP requests and expects a reply. The client includes "?session=<session_id>" to it's request, where session_id is generated in the very first HTTP request. It's similar to a web browser with cookies disabled.
 
But the client cannot send a request like "http://localhost/home.jsp;jsessionid=123456789?<query_string>".
 
When I tried "session.setId(request.getParameter("session"));" I got an exception, "The method setId(String) is undefined for the type HttpSession"
 
Looking forward to a favorable reply.
 
Regards.
Amil.
 

Monday, May 26, 2008

Now You Can Email Your Posts

Hi All,

I have enabled the email post feature in this blog. Now you can send your post using the following email address pnpsampath1.java-srilanka@blogger.com

Sampath

Sunday, May 25, 2008

Nadisha passed Sun Certified Business Component Developer

Hi All,

Please join with me to congratulate Nadisha Bandara who is an author of this blog on his achievement of SCBCD.

In addition to this he holds SCJP and SCWCD certifications.

Sampath

Wednesday, May 7, 2008

Java Job and PHP Job

Hi All,

There are two vacancies for a Java Developer and a PHP Developer. Please send me your CVs ASAP.

Sampath