Sagar Birari

Greenhorn
+ Follow
since Sep 05, 2008
Merit badge: grant badges
For More
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 Sagar Birari

Elaborate your question..
For Post method change your form tag as following
Use method="POST" then execute code

<form name="form1" method="POST" action="/Ideas/submit.do">

Regards
15 years ago
Use Following prepared statement
ps=con.prepareStatement("update emp_leave_application set status='"+approved+"' where approver='"+username+"' and m_emp_no='"+r.getInt("m_emp_no")+"'");

Regards
The answer is in the servlet spec:

quote:
SRV.11.2 Specification of Mappings

In theWeb application deployment descriptor, the following syntax is used to define mappings:

* A string beginning with a / character and ending with a /* suffix is used for path mapping.
* A string beginning with a *. prefix is used as an extension mapping.
* A string containing only the / character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null.
* All other strings are used for exact matches only.



The pattern /* will force everything through your servlet.
The pattern / will make your servlet the default servlet for the app, meaning it will pick up every pattern that doesn't have another exact match.

Regards
15 years ago
Connect to database using JDBC then fetch record with condition
then used jsp expression tag for display value in text field
like this
<INPUT type="text" id="firstname" value="<%=rs.getString("fname")%>">

search on google for examples

Regards
15 years ago
JSP
You can compile servlet as normal java file..
explain your exact problem

Regards
15 years ago
hello

add jar file in classpath ,that will definately solve your problem

Regards
15 years ago
JSP
Hello
1st read books about JSP,try googling for how to connect t Ms-access database

Regards
15 years ago
JSP
hello

your are accessing Login bean through jsp:usebean direcive
and your trying to call validate() function of login bean which is not exist.
Add validate function toyour login class or try to call existed function.

Regards
15 years ago
JSP
To know how to install tomcat on linux (like UBUNTU) visit following link

how-to-install-tomcat-on-linux

Regards
Sagar
[ September 06, 2008: Message edited by: Sagar Birari ]
15 years ago