Win a copy of Head First Android this week in the Android forum!

Arun, Shanmugham

Ranch Hand
+ Follow
since Apr 05, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arun, Shanmugham

Thanks Jay. I had the same problem and it works perfectly well now.
Regards
Arun
19 years ago
HI All,
I am getting a FactoryConfigurationError when i create the DocumentBuilderFactory as
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
I have also imported all necessary Classes.
Thanks
Arun
Hi Mark,
I checked your code. I think that is because of the harcoded value "12345" in setCustomerID(). I think you are not setting the new value back in the session object by getting the new value with request.getParameter() function.
Please verify if this is correct in your respect,
Changed the code as
if (request.getParameter("customerID")==null)
user.setCustomerID("123456");
else
user.setCustomerID(request.getParameter("customerID"));

Regards
Arun
Sun Certified Programmer for Java2 Platform
20 years ago
Hi Franklin,
Thats Great!. All the best for your future career.
Arun
Hi All,
Thanx for ur explanation. Srinivas i got ur point.
Arun
Hi Mike,
I just went thru the String source code. Can u just tell me which part of the code implements your statement which heppens only in case of String class.
Thanx
Arun
Hi all,
We are storing values to the String object with an = operator. How is possible to assign the value directly to an object through equals operator. (String s="welcome" ???).
Can anybody tell what is happening internally to store the value like that.
Let me know if i have be more clear on the question if needed.
Regards
Arun
Hi Mahesh,
I think no body will give u free web space with DSN access. May be u can host static html pages in free sites like Tripod.com and angelfire.com.
Arun
20 years ago
Sorry, its not in JSP , its in Servlet.
Here is my code of Servlet
<CODE>
public class SiteFeedback extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
doPost(req,res);
}
public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
res.setContentType("text/html");
PrintWriter out=res.getWriter();
String Name=req.getParameter("Name");
String EMail=req.getParameter("EMail");
String Like=req.getParameter("Like");
String Friendly=req.getParameter("Friendly");
String Download=req.getParameter("Download");
String Comments=req.getParameter("Comments");
String Rating=req.getParameter("Rating");
if (Like.equals("Yes"))
Like="Like";
else
Like="Don't Like";
if(Friendly.equals("Yes"))
Friendly="User Friendly";
else
Friendly="Not User Friendly";
if(Download.equals("Fast"))
Download="Fast";
else
Download="Slow";
String MsgBody="Hi, I am " + Name + ", and I visited your site at www.seeconsulting.com." + " I would like to offer my comments about the site." + (char)13 + (char)13 + "The site is " + Friendly + " and the download is " + Download + ". " + (char)13 + "On the whole, I " + Like + " the site, with my overall rating being " + Rating + ". " +(char)13 + (char)13 + "Additionally my comments are " + Comments + ". " +(char)13 + (char)13 + "You can get back to me at this Id: " + EMail ;

Properties props=new Properties();
props.put("mail.smtp.host","mail.seeconsulting.com");
Session session=Session.getDefaultInstance(props,null);
try
{
..........
..........
</CODE>
20 years ago
Hi,
What u say is true. But i dont think that'l be the end of this field. 'cause u need to keep in touch when u want to perform well in this field. Going to other field and comming back to this will be a bit difficult to get updated.

Arun

20 years ago
We have done a flash screen which is used for data entry and the data is sent to JSP url. Here the JSP code is written in a way to handle POST method. But the output is "NullPointer Exception" when the method is set as POST. But the same is working if it is changed to GET.
Can anyone tell me y.
Arun
20 years ago
Hi,
Thanks Phil, I got ur Point. May be i'll use JRun in case needed.
Regards
Arun
20 years ago
Thanks Bosun
hope i will get some more detail on it.
Arun

20 years ago
I have created a Simple Bean class. The class is not in a package. When i tried using it . I got the error that
"Class not found". But the same is working after bring it in a package. Will the bean work without package.
Arun
20 years ago
HI,
You can use a while loop before the actual display of records to skip n number of records, where n is the number of records already displayed. The same jsp file should be called with the number of records displayed when the user clicks Next button.
Hope u got it.
Arun
SCJP
20 years ago