Rinku Sharma

Greenhorn
+ Follow
since Mar 30, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Rinku Sharma

hi friends,
I have a problem in in getting the first date and the last date of a perticular week.
I have the following parameters with me:
date,month,year and the week no.(ie whether its 42 week etc.).
Can somebody please tell me that how do i find the startdate and the enddate for a perticular week considering that i have the above parameters.
eg:
date: 01
month: 01
year: 2001
week: 1st week
now using the above parameters how do i get the startdate and the enddate for the week.
bye,
amit
22 years ago
JSP
Hi amit,
I think its a great idea to start a seperate JAKARTA forum as u rightly said that the docs there r really sad and the products and softwares r phenominally good.
It would be a good idea if people can share their views on the jakarta technologies.
bye,
rinks
22 years ago
Hi friends,
I am not able to configure cocoon1.8 over Tomcat 3.2.1 I went through the documentation provided for installation but couldnt do it.
Somebody please tell me how to configure.
bye,
amit
22 years ago
hello friends,
How do i configure tomcat 4 on IIS. I have done the configutation for Tomcat 3 but i am not getting any info on tomact 4 configuration with IIS.
Can anybody help me out.
Amit
22 years ago
JSP
Hi friends,
I have a XML object which i am sending thru the url(which is calling the jsp page) and want to collect this object on the JSP page how do i go about doin it.
It doesnt happen thru request.getParameter();
Bye,
amit
22 years ago
Hi freinds,
i am making a calendar application and i am stuck with the weekly calendar module.Please tell me how do i get the first date and the last date for a perticular week.
bye,
amit
22 years ago
Hi amit,
i think its a great thing to start such a JUG in mumbai as even i was searching for such a tech group so that we can discuss some technical issues.
bye for now,
keep it up,
amit
22 years ago
Hi freinds,
I have a doubt on using the doStartTag() method in JSP taglib,s
Tag Handler file(.class file).
Can i return multiple values like we do in beans using the same doStartTag() method or not.
If i have to encapsulate two three different functionality in the same taglib which return different value then is it possible if yes how.
OR is it that for every functiionality i want i will have to write a different Tag Handler file and the corrosponding TLD file(XML format).
Please help me out.
Bye,
Amit
22 years ago
Hi friends,
When u compile a JSP page it gets translated into a servlet for the first request.This is done by the JSP engine. Now if we send another request to the same JSP page does the request go to JSP engine and then gets transfered to the servlet engine where request processing takes place or does it directly go to servlet engine and the request is processed.
Bye,
Amit
22 years ago
Hi kajol,
All u have to do is to write the JDBD code in ur service method of ur servlet.
The code follows:
private Connection con;Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc dbc:aadsn","scott","tiger");
Statement stmt=con.createStatement();
ResultSet rs= stmt.executeQuery("select * from tablename");
rs.close();
stmt.close();
con.close();
bye
amit
22 years ago
Hi friends,
What is the difference between Page and Request scope and when should each of these be used in a JSP page.How does request scope work between JSP pages.
Bye,
Amit
22 years ago
Hi friends,
What is the actual difference between response.sendRedirect() and <jsp:forward page="url" />. Does it affect the scope of using object i.e page or request scope.
Bye,
Amit
22 years ago
Hi friends,
I am trying to fire an "UPDATE" query based on certain condition and then i am firing "SELECT" query in the same page but i am getting an error of type:
javax.servlet.ServletException: java.sql.Timestamp
can anybody help me out.
Bye,
Amit

22 years ago
Hi friends,
I am facing problems in getting the Day, Month in words example(Monday or January).Is there a possibility to get day and month in words by craeting a date, calendar objects.
eg:
Calendar c=Calendar.getInstance();
c.set(2001,4,2)
now what should i write to get the month or day in words.
Amit
22 years ago
hi friends,
I am trying to develop a FormMailer application using Servlets or JSP. I tried the thing by using the code mentioned below, but i am getting an error " sun.net.smtp:Sun.ProtocolException 550 5.7.7. Unable to relay to amits_007@rediffmail.com" on the DOS prompt and my browser screen doesnt show anything.I am using TOMCAT as the server and JSP as the front end.
CODE follows:
<%@ page language="java" import="sun.net.smtp.SmtpClient, java.io.*" %>
<% String from="amits_007@hotmail.com";
String to="amits_007@rediffmail.com";
try{ SmtpClient client = new SmtpClient("mail.yahoo.com");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: Sending email from JSP!");
message.println("This was sent from a JSP page!");
message.println();
message.println("Cool beans! :-)");
message.println();
message.println("Govind Seshadri");
message.println("jGuru.com");
message.println();
client.closeServer();
out.println("amirr");
}
catch (IOException e){ System.out.println("ERROR SENDING EMAIL:"+e); }%>

Kindly help me out with this. Please suggest if there is any other way by which this applicatin can be made.
Bye,
Amit
22 years ago