padmanabh

Greenhorn
+ Follow
since Jul 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 padmanabh


hi
according to me what is happening in ur case, ur login page checks for some condition and redirects it to the show page, now when u r on the show page and u click on back button it will go to the login page and since u r already logged in (ur condition is true) it again takes u to the show page.
bye,
Padmanabh

22 years ago

hi
i am using an html to accept some data, then a jsp which puts that data in the session and calls a servlet which displays that data. now unless u clear the "offline contents" from IE, the servlet will not run, and it will show the page from the browser history the code which i have used is as follows.

tmp1.html----------------------
<html>
<body>
<form action="http://localhost:7001/Cyberdrawer/jsp/tmp2.jsp" method="post">
<input type="text" name="data" size="15">
<br>
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>

tmp2.jsp-----------------------
<%@ page language="java"%>
<html>
<body>
<%
String d = request.getParameter("data");
session.putValue("data",d);
%>
<A HREF="#" onClick="window.open('http://localhost:7001/tmp3');" >click here</A>

</body>
</html>
tmp3.java (servlet)----------------------
public class tmp3 extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
{
System.out.println("tmp3 started");
PrintWriter out = response.getWriter();
HttpSession session = request.getSession(false);
String d = (String) session.getValue("data");
out.println("The value received is : " + d);
System.out.println("tmp3 over");

}
}

i have to use window.open in tmp2.jsp as i want the servlet to start in a new window and i dont want to use set Headers like cache-control etc. in the servlet.
is there any other solution?

Thanx,
Padmanabh

22 years ago

Hi
I am using TableDataSet and QueryDataSet classes provided by weblogic, for accessing the database. i have taken care in my code to close any open TableDataSet and QueryDataSet still i get this error "maximum open cursors exceeded" after i run the application for some time. what could be the problem? has it got anything to do with database connections(Connection class)? does it happen because i am opening the connection in init method of my servlet and closing it only in the destroy method. or is there any other reason ? i am using weblogic 5.1 and oracle 8i
Plz help
Thanx
Padmanabh

hi
this is my problem.
i have a link on my webpage which points to a particular servlet, now if i click on the link i call a javascript function which closes the current window and opens the servlet in a new window. the problem is it gets me the required page from the browser history instead of running the servlet. i want to make sure that everytime that link is clicked the page is fetched from the server instead of the browser history. for some reason i dont want to set the headers cache-control,expires etc.. so is there any other way i can achieve it. plz it is urgent.
Thanx
Padmanabh
22 years ago

hi
i have say 50 records to be displayed as 10 per page. now since i am displaying only 10 on one page i would like to fetch only the first 10, then 2nd 10 and so on... right now i am fetching all 50 and showing 10 per page which slows up the speed considerably. so is there any way i can solve this problem.
Thanx
padmanabh

hi
while writing a servlet when i say "import javax.servlet.*"
it gives me an error message "javax.servlet.* not found in import" while compiling. i am using jdk1.2.1 and jswdk1.0.1 on win98 machine.
plz help
thanx
Padmanabh
22 years ago