Uncategorized

Install Subclipse in Eclipse 3.x install plugins in eclipse

Here you will find a screenshot tour of the Subclipse installation process in Eclipse 3.x. These particular screens were captured in Eclipse 3.0.2 running on Windows XP. in other verion of eclipse u will select help->install software  add url and folow Install Subclipse in Eclipse 3.x Step 1: Begin the installation from the Eclipse Help… Continue reading Install Subclipse in Eclipse 3.x install plugins in eclipse

java

Typical Uses of Cookies in java

– Identifying a user during an e-commerce session tracking of user information. – Avoiding username and password – Customizing a siit – Focusing advertising Don’t put sensitive info in cookies Create a Cookie object.                 ==>Cookie c = new Cookie(“userID”, “a1234”); Set the maximum age.                   ==>c.setMaxAge(60*60*24*7); // One week Place the Cookie into the HTTP  ==>… Continue reading Typical Uses of Cookies in java

java

Handling Input in Multiple Languages

Use server’s default character set String firstName =request.getParameter(“firstName”); Convert  from English (Latin 1) to Japanese ——————————————— String firstNameWrongEncoding =request.getParameter( firstName ); request getParameter(“firstName”); String firstName =new String(firstNameWrongEncoding.getBytes(),”Shift_JIS”); ——————————————— Accept either English or Japanese request.setCharacterEncoding( JISAutoDetect ); String firstName =request.getParameter(“firstName”);