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

Thursday, April 24, 2008

Java Jobs at a global company

Hi All,

There are opportunities for Java Software Engineers with experience 6 months-2 Years in a reputed global company with competitive salary. Please send me the CVs within next 2 hours.

Regards
Sampath

Tuesday, April 22, 2008

Aruna passed all the .NET 2.0 exams

Dear all,

Please join with me to congratulate Aruna Wickrama on his great achievement of passing all the microsoft certifications in .NET 2.0.

He is an author of this blog too.

Following is a list of exams he has completed.

Developer Track
=============

MCP
MCTS - Windows Applications
MCTS - Web Applications
MCTS - Distributed Applications

MCPD - Windows Applications
MCPD - Web Applications
MCPD - Enterprise Applications

Database Developer
===============

MCTS - SQL Server 2005
MCITP - Database Developer

Tuesday, April 1, 2008

Interview with Sanjiva Weerawarana-WSO2

Hi All,

http://www.infoq.com/interviews/sanjiva-open-source-soa