File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSP standard Action element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP standard Action element" Watch "JSP standard Action element" New topic

JSP standard Action element

tushar jayawant

Joined: Aug 20, 2003
Posts: 19
Hi to All

JSP define any JSP standard Action element and actions for
database access
P. Udaya Shankar

Joined: Nov 18, 2003
Posts: 21
u have to use JDBC in ur JSP, v don't have any std. actions in JSP to establish a database connection
Vishwanath Sinha

Joined: Dec 23, 2002
Posts: 5
Hi tusar,
As such JSP doesnt have action tag for database access.
But we can create our own custom tag for the database access using Tag libs.

Vishwanath<br /> <br />IBM Certified Solution Developer - WebSphere Portal V6.0<br />IBM Certified SOA Associate<br />SCJP 1.4
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

The JSTL provides standardized tags for performing SQL actions directly from JSP pages. However, this is considered a poor practice and violates the best-practice MVC pattern. Proceed at your own risk.

[Asking smart questions] [About Bear] [Books by Bear]
Jeff Horan
Ranch Hand

Joined: Apr 03, 2003
Posts: 37
I found the best sites to be the db companies that provide the jdbc driver. Ie., Goto documentation and look for the jdbc link. It gives java code to access database. Here's what i did to test it:
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
Connection con = DriverManager.getConnection
("jdbc racle:thin:@'link'", "username", "password");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from MY_TBL");
I agree. Here's the link:
subject: JSP standard Action element
It's not a secret anymore!