Ghazala Islam

Ranch Hand
+ Follow
since Nov 22, 2000
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 Ghazala Islam

No URL is static,but has to bring value from a list box on the form.
11 years ago
sorry for spelling mistake in topic
11 years ago
How can i send a dyanamic value with a url,as usually we append fixed value with url as below,

http://url/servlet/myservlet?companyid=xyz

but what if company id changes everytime?
11 years ago
The problem is pretty much solved as i had not override the doGet method in the servlet.
One more question,how can i associate a dyanamic value with a url,as usually we append fixed value with url as below,

http://url/servlet/myservlet?companyid=xyz
but what if company id changes everytime?
11 years ago
Servlet is overriding dopost method.
11 years ago
Servlet is overriding dopost method.
11 years ago
Hello,

I am trying to call a servlet on button click.Its not a submit button,but a graphical button (not a part of form).
When i click the button get the message:

HTTP STATUS 405:HTTP method GET is not supported by this URL.
The specified HTTP method is not allowed for the requested resource.

When i reference a jsp page it displays the page.Is there any way that I can call a SERVLET and send some information along the servlet name.If yes ,what should be the code?

Thanks.
11 years ago
Hi,

I am working on a web project using Eclipse,problem is :

- if i am making changes in java files in (src folder),class files are not being updated,its displaying old result.

- if i am adding new java files in src folder ,the class files are not being generated in (WEB_INF/classes) folder.

it was working fine in the begining e.g class files were being generated and updated but now no updation or creation of class files.What could be the reason?
Using MyEclipse IDE ,I am trying to insert a row in a MySql table in a web based project.The code is working fine in a Java project (row is being inserted) but when i 'am trying it in a web based project its not finding the JDBC driver and giving error :

" java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver"

I am adding the driver in project by adding external jar file in
WEB-inf/lib folder but its showing the driver in project's root directory,not in web-inf/lib directory.Whats the exact problem,driver is not copied in right directory or something else?
Is there any method that i can check in a servlet that request is coming from "which JSP" ?if yes,

- how can i set the value in JSP to be read in a servlet.
- how can i read the value(name of jsp) in the servlet.


Thanks.
12 years ago
How about transaction processing? SQLException is enough to take care of transaction in a multiuser environment?
Hello,

I want to authenticate a user's id and password.

1. The user enter the id and password in a Jsp.
2. jsp directed the request to a servlet
3. Servlet create an instance of session bean and
call one of its method "validate user"
4. Validate user method is creating an instance of "User Entity
bean" for verification and returns true or false.

My question is " is there any other alternative to Entity bean (other than
Hibernate) to verify user e.g Can I do it writing JDBC code?
if yes , where should i write the JDBC code, in another session bean
or in a simple DAO Java class?
so you mean the context path in uri is used only when there is a possibility of change of webapp name,otherwise the code could've been :

a href ="/servlet/FrontController?action=displayDate">Display Date</a>
12 years ago
JSP
I am little confused about the use of getContextPath method in the following code of a JSP :

<a href="<%=request.getContextPath()%>/servlet/FrontController?action=sayHello">Say Hello</a>

<a href="<%=request.getContextPath()%>/servlet/FrontController?action=sayGoodbye">Say Goodbye</a>

<a href="<%=request.getContextPath()%>/servlet/FrontController?action=displayDate">Display Date</a>

The API for getContextPath()says "it returns the context path of requested URI " ,so what does it mean by �context path� of requested URI.
12 years ago
JSP
Does Tomcat support EJB's ?
12 years ago