lakshmideepak katari

Greenhorn
+ Follow
since Sep 05, 2013
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 lakshmideepak katari

Hi friends,
i am new to struts2 while working with lable tags it showing "collegeName" two times, any one can help me how to avoid this problem.

<tr>
<td><s:label key="clg.name"/></td>
<td><s:textfield name="collegeName" size="50"/></td>
</tr>
9 years ago
Hi every one,

iam using struts 1.3 tiles i have some problem with bellow code, i have login.jsp which is validated in LoginForm.java if any action errors obtain the longin.jsp showing in separate window with some errors but not in struts tiles in the same page. so what i want to change in my code.

<action-mappings>
<action path="/login" name="loginform" type="com.action.LoginAction" validate="true" input="/login.jdp">
<forward name="success" path="tiles.login.success" redirect="false"/>
<forward name="failed" path="tiles.login.failed" redirect="false"/>
</action>
</action-mappings>
10 years ago
hi, all
i am developing a social networking site, for that i am using jdbc,servlet,jsp and mysql. so please anybody help me how to use reusable connections in my project with connection pooling technique.
give me an example or reference link.
10 years ago
post your code then after we can....!
10 years ago
hi friends in the bellow code, i created a single Connection object by using Util() method and same will be given to my all servlets and jsp.
here my doubt is this connection object is single turn object for all my programs which means this connection object opens a one connection in a database and it sharable to all programs, so on database connection burden is reduced, then why i need to go connection pooling concept in jdbc. please anybody can clear my confusion

Jdbc.java

import java.sql.Connection;
import java.sql.DriverManager;

public class Jdbc
{
private static Connection con;
public static Connection util()throws Exception
{
if(con==null)
{
Class.forName("oracle.jdbc.OracleDriver");
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "root");
}
return con;
}
}