MS Access and JSP
I"ll really appreciate if someone could help me here. I'm new to JSP's and am having some trouble with database connection. I have one html page which asks the user to enter three fields and then submit it by clicking on the submite button(which calls add.jsp).
The add.jsp contains the following code:
Connection con=null;
Statement stmt = null;
ResultSet rs = null;
String queryText = "insert into networks2 values('";
queryText = queryText.concat(request.getParameter("SenderName"));
queryText = queryText.concat("','");
queryText = queryText.concat(request.getParameter("MessageTitle"));
queryText = queryText.concat("','");
queryText = queryText.concat(request.getParameter("MessageText"));
queryText = queryText.concat("')");
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:networks2");
stmt = con.createStatement();
rs = stmt.executeQuery(queryText);
} catch (Exception e) {}
%>
My problem is that the above data is not being inserted in the database. I have added networks2.mdb driver in system DSn. Could anyone please help me as to why i am not able to add information in my database.
Thanks.
Go over to the JDBC forum (which would have been a better place for your question, actually). The question "When I add a record to MS Access, it doesn't show up, why?" is asked frequently there. I think the answer is that it does show up if you continue by doing a select query, but I may be wrong.
Similar Messages
-
I have stored an Excel page in Microsoft Access and defined its attribute to be OLE object. My table is called practice and my database is called dissertation. I want to display the Excel file in a table in a JSP page.
Please help....Is there a reason that you can't store the excel file separately and just reference the link from your database? Access stores objects differently than other databases do. When you store something as an OLE in Access, additional information is stored in the header which makes retrieving and displaying objects very difficult. I recently tried to extract image BLOBs and wav files, I opted to store them on the server and just include a link. Perhaps an excel file is handled differently?
Besides, that keeps down your database size and increases stability, particularly if it's Access.
Good luck. -
JNDI tree access for code outside servlets and EJBs and JSPs
Can code outside EJBs, Servlets and JSPs have access to the JNDI tree?
For example, in a web application, web.xml has a env-entry declaration which I want to access from a POJO which is called by a JSP in the web app. Is this permissible?Can code outside EJBs, Servlets and JSPs have access
to the JNDI tree?
For example, in a web application, web.xml has a
env-entry declaration which I want to access from a
POJO which is called by a JSP in the web app. Is
this permissible?Yes. Read the JNDI tutorial. -
500 error while accessing a jsp using tiles tags
Hi all,
when im trying to access a jsp which makes use of tiles tags, im getting the following error.
status 500:
org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
what might be the problem?
Thanks in advance.asp,
1. this is a java forum, and that's a jsp/struts question... you'll do better on the jsp forum.... or maybe a struts forum.
2. it can't find http://struts.apache.org/tags-tiles ... but you knew that already didn't you... and where in the wide world might that uri be? maybe in struts generated xml? maybe in the schema declatation?
keith. -
Portal 3 Profile access through JSP on iws6
Hi,
I have portal 3 sp4 and iws6 installed on the same server. The portal basically has URL scrappers of the web server. I want to access the user profile from the JSP sitting on the iws6.
For this i have added the following lines in the JSP
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.iplanet.portalserver.naming.*"%>
<%@ page import="com.iplanet.portalserver.session.*"%>
<%@ page import="com.iplanet.portalserver.profile.*"%>
<%
try{
SessionID sid = null;
Session sess = null;
sid = new SessionID(request);
sess = Session.getSession(sid);
Profile profile = sess.getUserProfile();
catch(Exception e)
%>
Exception Occured
<%
out.println(" Error Message "+e);
When i try to access the JSP it is throwing the following exception.
com.iplanet.portalserver.session.SessionException: Invalid service host name .
What do i have to do to access the profile info of the user from the JSP.
Any suggestion is welcome.
Regards
Girirajyou need to allow cookies through to your web server; the client component on the web server
and try to determine your portal and its not
being passed thru. -
I have created a simple web application and using tomcat 5. when i try accessing my jsp page..it just gives an error message..HTTP Status 404...The requested resource (/carnhotel/date.jsp) is not available.
however, it works fine when i deploy in default applications (servlet-examples, jsp-examples,root)...plz help..How are you deploying this web application? Just in the webapps >directory?iewebapps/carnhotel/date.jsp?i have deployed in the webapps directory with the same directory structure...and also WEB-INF/web.xml
also, when i open tomcat admin console...click on host(localhost/context(/carnhotel))..displays an error ...
HTTP Status 500 - Error retrieving attribute debug
type Status report
message Error retrieving attribute debug
description The server encountered an internal error (Error retrieving attribute debug) that prevented it from fulfilling this request.
thnx...
. -
I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
"Can not perform this operation. This document has been checked out or may no longer exist."
Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?Hi Armando,
I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
Cheers.
Guillaume Rouyre - MBA, MCP, MCTS -
WL vs. WL-express and JSP vs. javascript/SQL
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
Use JDO or an OR-mapper or embed JDBC into your own data access classes.
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
Presentation=JSP
Logic=Servlet
Data access=JDO or similar
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
You should be able to tell up front if it a tx-intensive app that requires
WLS.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
They aren't exclusive. For dynamic pages, use Javascript on the front end,
JSP on the back.
* with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?
In the real world, and for most apps, while Java has the architectural edge,
they both have similar scalability and similar robustness. MS gives you no
choice though, and you rewrite every time they see a new buzzword. You can't
leave MS-land without abandoning almost everything. You can leave WLS in a
week if you have to.
It's an investment. Invest wisely.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"shane miller" <[email protected]> wrote in message
news:[email protected]...
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding? -
so for my senior design project i designed a web project using java servlets and JSP pages. For one part of the project to visualize some data i used FLEX to create GANTT Charts. Now that it's done i was looking into how to embed that flex code into JSP page and i found on ADOBE website links for taglibs, however right now it redirects me into a page of Adobe LiveCycle , which cost a lot of money.
Is there another way to embed flex into jsp? or some other way to get just the taglib for flex?
Thank YouIt depends on how Flex is getting the data, and how it's generated. If you refresh the page, then the Flex app will be reset, and won't have any knowledge of previous data. One thing you could do is store the data on the server and access it via some web-service calls (eg AMF or REST). The server could manage the user's session, store data, and generate or retrieve previous data.
-
Request dispatcher and jsp pages called from servlets
Given the following webapp directory structure:
root/
jsp/
..all jsp files
web-inf/
classes/
/servlets
..all servlet files
/com
..all other java class files
I have the jsp directory coded as: jspdir = "/jsp/" (and have tried variations
on this theme)
I try to open a new jsp page with the following code in a servlet in the above
servlet directory:
RequestDispatcher rd;
rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
rd.forward(req, res);
rd continues to return null.
The jsp pages are not registered in the web.xml file for this webapp, if that
makes any difference.
Does anyone have any suggestions?
[problem.txt]
I create a small sample and put these files into /jsp in my war context
it works fine, please send me the example code you are using and the
environment description of the deployed application
I attached my samples, that work
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"Bill Blackmon" <[email protected]> wrote in message
news:[email protected]...
>
> Yes, I am able to access the jsp pages with the url listed.
>
> "Filip Hanik" <[email protected]> wrote:
> >The weblogic servlet engine, is by default mapping anything that ends
with
> >*.jsp to be a JSP.
> >so there shouldn't be a problem. You didn't answer my first question,
> >are you able to access your JSP through the browser?
> >http://localhost:7001/root/jsp/myjsp.jsp
> >
> >Filip
> >
> >--
> >~
> >Namaste - I bow to the divine in you
> >~
> >Filip Hanik
> >Software Architect
> >[email protected]
> >www.filip.net
> >"Bill Blackmon" <[email protected]> wrote in message
> >news:[email protected]...
> >>
> >> The code you are reading in the message here was pasted in and
> >> looks bad, so maybe that's what you are referring to? The dispatcher
code
> >is called
> >> in the service() method of the servlet.
> >> I have a suspicion that the jsp directory needs to be defined someplace
> >-
> >weblogic.properties
> >> or web.xml?, though I don't see this in any of the examples that come
> >with
> >the product.
> >>
> >>
> >>
> >> "Simon Ng" <[email protected]> wrote:
> >> >
> >> >Hello Bill,
> >> > Did you put a <BR>
> >> >return;
> >> ><BR>
> >> >statement right after the dispatcher.forward() statement? Well, I am
> >assuming
> >> >your
> >> >code is in the doPost() or doGet() methods.
> >> >
> >> >Simon
> >> >
> >> >
> >> >"Filip Hanik" <[email protected]> wrote:
> >> >>if you do http://localhost:7001/root/jsp/myjsp.jsp
> >> >>
> >> >>do you get a result?
> >> >>
> >> >>make sure you have the right character case on the filename.
> >> >>
> >> >>Filip
> >> >>
> >> >>--
> >> >>~
> >> >>Namaste - I bow to the divine in you
> >> >>~
> >> >>Filip Hanik
> >> >>Software Architect
> >> >>[email protected]
> >> >>www.filip.net
> >> >>"Bill Blackmon" <[email protected]> wrote in message
> >> >>news:[email protected]...
> >> >>>
> >> >>> Given the following webapp directory structure:
> >> >>> root/
> >> >>> jsp/
> >> >>> ..all jsp files
> >> >>> web-inf/
> >> >>> classes/
> >> >>> /servlets
> >> >>> ..all servlet files
> >> >>> /com
> >> >>> ..all other java class files
> >> >>>
> >> >>>
> >> >>> I have the jsp directory coded as: jspdir = "/jsp/" (and have tried
> >> >>variations
> >> >>> on this theme)
> >> >>> I try to open a new jsp page with the following code in a servlet
> >in
> >> >the
> >> >>above
> >> >>> servlet directory:
> >> >>> RequestDispatcher rd;
> >> >>> rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
> >> >>> rd.forward(req, res);
> >> >>>
> >> >>> rd continues to return null.
> >> >>>
> >> >>> The jsp pages are not registered in the web.xml file for this
webapp,
> >> >>if
> >> >>that
> >> >>> makes any difference.
> >> >>>
> >> >>> Does anyone have any suggestions?
> >> >>>
> >> >>
> >> >>
> >> >
> >>
> >
> >
>
[filipInclude.jsp]
[filipForward.jsp]
[filip.jsp]
-
RequestDispatcher and .jsp "first run" problem
Hello all,
I'm testing our app on a development server (rh 8.0, tomcat 4.1.18-LE-jdk14, apache 2.0.44, mod_jk-2.0.43 ). Everything seems to work fine except...
I have several instances of servlets that call a .jsp, which calls a servlet, which calls another .jsp, etc. My problem is that the servlets have a problem referencing the .jsps the first time each one is called after a tomcat/apache restart. BTW, jsp to jsp calls work perfectly.
For example, the log-in page calls a servlet which retrieves session and user info from a db and forwards the user to their "home page" that is built in .jsp. The first time I try to log in, I get the following error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at com.act.cit.ui.CitGeneralServlet.gotoJSPErrorPage(CitGeneralServlet.java:119)
at com.act.cit.ui.CitGeneralServlet.cleanUpForException(CitGeneralServlet.java:136)
at com.act.cit.ui.CitLoginServlet.doPost(CitLoginServlet.java:201)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.servlets.InvokerServlet.serveRequest
So not only am I not accessing the .jsp, but I'm not finding my desginated error .jsp either...looks like the 'null' that is being referenced is the .jsp I'm trying to hit. I've confirmed that the database is being accessed correctly (non-null results) and that I'm getting to the point in my servlet that forwards me to my .jsp:
req.getRequestDispatcher("../jsp/citMain.jsp").forward(req, res);
I've also tried:
getServletContext().getRequestDispatcher("../jsp/citMain.jsp").forward(req, res);
"req" and "res" both have non-null addresses. The next time I try to log in, everything works perfectly, just as it does on our old production server.
All I can think of is that there's some sort of problem in the apache/tomcat config, but why would the server be able to process the .jsp successfully on subsequent tries?
Thanks a lot! This one's really been eating at me!What version of tomcat and jdk are you using?rh 8.0, tomcat 4.1.18-LE-jdk14, apache 2.0.44, mod_jk-2.0.43
I left my first getRequestDispatcher attempt as relative addressing and changed to absolute address on the second just to test:
rd = req.getRequestDispatcher("../jsp/citMain.jsp");
if (rd==null){
LogFileWriter.logThis(this, "rd was null"); //this is just a static logger I wrote
rd = req.getRequestDispatcher("/jsp/citMain.jsp");
if (rd==null)
LogFileWriter.logThis(this, "rd is still null");
else
LogFileWriter.logThis(this, "now rd is okay");
else{
LogFileWriter.logThis(this, "rd was okay");
} Here's my new logfile output after two login attempts:
CitGeneralServlet--
rd was null
CitGeneralServlet--
now rd is okay
end of the first attempt, now here's the results of the 2nd attempt:
CitGeneralServlet--
rd was okay
I still think it's odd that I can use relative addresses after the first execution, but I'm sure it's something to do with when the .jsp is compiled. Anyway, I don't have time to dig for the root cause right now. Absolute address seems to fix the problem, I'll stick with that. Thanks for all the suggestions. Hopefully this thread will help someone else who comes across the same problem. -
Daniel or anyone else, Help on why I can't access certain jsp pages
I have installed the Web Service Portlet Wizard to build my portlets. In particular,
I have created a URL porlet jsp which receives its content from a URL.
This URL that I retrive is an application that I have running on my Weblogic 6.1
Server. I can access the login page, and can logon and do a few things but for
some reason I Can't access certain pages. The pages I can't access are also jsp
pages on the wlserver6.1 server(exactly the same as other ones I can access and
interact with).
The error I receive on the Portal Front end is attached in a word doc. I have
also included in there, a snapshot of the access log for those pages, but I can't
really make out what it is telling me (if anything!).
For one of the pages, that I can't successfully access I get java.lang.ArrayIndexOutOfBoundsException
This only happens with 1 of the pages. But trying to access the same page withouth
going thru the portal I get NO errors what so ever.
Please if anyone can give me any information on why I can't access certain pages
via my portal It would be very helpful.
Finally I have included the code of my Portlet which accesses the URL. This is
also included in the word doc.
Thanks
Ramy
[Portal.doc]Ramy,
I don't know the Web Service Portlet Wizard too well, but I notice that
login.htm never seems to be found (404 in logs). I would think that the two
warnings below your JSP call (cookies, and portlet state) are your most
likely culprits. If the Web Service Portlet Wizard does not handle cookies
then the portal server will have to continiously reauthenticate. I will
forward your email however and see if I can dig up a better diagnosis. Also,
could you post the stack trace for the ArrayIndexOutOfBoundsException you
are seeing.
Sincerely,
Daniel Selman
"Ramy" <[email protected]> wrote in message
news:[email protected]..
>
I have installed the Web Service Portlet Wizard to build my portlets. Inparticular,
I have created a URL porlet jsp which receives its content from a URL.
This URL that I retrive is an application that I have running on myWeblogic 6.1
Server. I can access the login page, and can logon and do a few things butfor
some reason I Can't access certain pages. The pages I can't access arealso jsp
pages on the wlserver6.1 server(exactly the same as other ones I canaccess and
interact with).
The error I receive on the Portal Front end is attached in a word doc. Ihave
also included in there, a snapshot of the access log for those pages, butI can't
really make out what it is telling me (if anything!).
For one of the pages, that I can't successfully access I getjava.lang.ArrayIndexOutOfBoundsException
This only happens with 1 of the pages. But trying to access the same pagewithouth
going thru the portal I get NO errors what so ever.
Please if anyone can give me any information on why I can't access certainpages
via my portal It would be very helpful.
Finally I have included the code of my Portlet which accesses the URL.This is
also included in the word doc.
Thanks
Ramy -
Database access with JSP custom tags
i have created one file in which i am making the connection with mysql data base with con.mysql.jdbc.Driver.and usking J connector and that i'm doing with custom tag.this is the error which i'm getting in tomcat.
and the tag handler class and TLD file and jsp file is below
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: null
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:778)
org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
Try.Connect.<init>(Connect.java:26)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:116)
org.apache.jsp.DbTry_jsp._jspx_meth_db_connect_0(org.apache.jsp.DbTry_jsp:84)
org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
Apache Tomcat/5.5.4
Tag handler class
package Try;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
import java.sql.*;
public class Connect extends TagSupport {
private String driver = "com.mysql.jdbc.Driver";
private String dbtype = "mysql";
private String host = "localhost";
private String username = "root";
private String password = "203131";
private String database = "compose";
private String scope = "page";
private String id = "";
JspWriter out = pageContext.getOut();
public void setDriver(String str) {
driver = str;
public void setDbtype(String str) {
dbtype = str;
public void setHost(String str) {
host = str;
public void setUsername(String str) {
username = str;
public void setPassword(String str) {
password = str;
public void setDatabase(String str) {
database = str;
public void setScope(String str) {
scope = str;
public void setId(String str) {
id = str;
public int doStartTag() throws JspException {
try {
Class.forName("com.mysql.jdbc.Driver");
String url= "jdbc:" + dbtype + "://" + host + "/" + database;
Connection connection = DriverManager.getConnection(url,username,password);
out.println("right ;;one");
catch (SQLException e1) {
System.out.println("Error in HeadingTagv: " + e1);
catch (Exception e) {
System.out.println("Error in HeadingTag: " + e);
return SKIP_BODY;
TLD is lib.tld
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>db</short-name>
<display-name>Database Tags</display-name>
<description>
A set of tags for working with SQL database access
</description>
<tag>
<name>connect</name>
<tag-class>Try.Connect</tag-class>
<body-content>empty</body-content>
<description>
</description>
<attribute>
<name>driver</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
</description>
</attribute>
<attribute>
<name>dbtype</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
</description>
</attribute>
<attribute>
<name>host</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Can be given by a run-time expression.
Host name of the computer where database is located.
Default is "localhost".
</description>
</attribute>
<attribute>
<name>username</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Can be given by a run-time expression.
Username for logging onto the database.
Default is "root".
</description>
</attribute>
<attribute>
<name>password</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Can be given by a run-time expression.
Password for logging onto the database.
Default is the empty string.
</description>
</attribute>
<attribute>
<name>database</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Can be given by a run-time expression.
The name of the database that will be used for
the SQL commands. Default is no database specified.
</description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<description>
</description>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<description>
</description>
</attribute>
</tag>
</taglib>
JSP file is
<%@ taglib uri="/WEB-INF/lib.tld" prefix="db" %>
<html>
<body>
<db:connect username="root" password="203131" database="compose" />
</body>
</html>Answered in your other post:
http://forum.java.sun.com/thread.jspa?threadID=608780&tstart=0 -
Can not access login.jsp or test.jsp after Portal-To-Go install
After installing HTTP Server edition of Oracle Portal on Windows 2000, we were able to access and work with the Portal itself.
However, we still can't figure out what problem we have with Portal-To-Go. We ran and configured postinstall of Portal-To-Go with no errors according to the instructions. But after trying to access http://host_name.domain/papz/test.jsp or http://host_name.domain/papz/login.jsp we get "You don't have permission to access /papz/parm.jsp on this server." (we use dev6.unitas.com as our host_name.domain.
Any ideas? Please Help!
nullI like to confirm my understanding. You installed 9iAS HTTP Server option which includes Oracle Portal and Oracle Wireless (portal-to-go). These are two separate features in 9iAS. After installation, did you include wireless parameters in your apache/jserv configuration files per 9iAS Wireless installation guide? For example you need to alias in httpd.conf, ApJservMount in jserv.conf and wrapper.classpath in jserv.properties.
-
Accessing a JSP file via context URL
Hi experts ,
i have a requirement to access a jsp file via context url i.e. /irj/... abc.jsp , can any one please suggest how to access this , i have a jsp dynpage component in the pagelet folder i have a jsp page, that im not able to access via the context url , and the images that are there in the image folder are accessible via context path i.e /irj/.. abc.gif etc.
can any one please suggest a solution .
Regards
Govardan RajHi,
1) what is your "weblogic.httpd.documentRoot=????"
2) if it is "public_html" put your jsp there.
Joe
"Prasad" <[email protected]> wrote:
>
>hi all,
>
>i am working on weblogic5.1 under solaris platform.
>
>my folder hierarchy is as follows weblogic_home/classes/weblogic/sun1/sun2.
>
>i have an import statement as follows import sun1.sun2.* in my JSP file.
>
>when i access this jsp file from my browser i have an error.
>
>the error is import package sun1 not found.
>
>i have set my classpath correctly(i feel so)...
>
>can anybody help me with this problem.
>
>if there is some fault in my classpath please tell me where exactly i should set my classpath for jsp files.
>
>thanx in advance.
>Prasad.
Maybe you are looking for
-
How to Copy a Specific Time Machine Back-Up to Ext Hard Drive
I'm transitioning from a MBP early 09 to a MBA mid 11. I pruned the MBP pretty well to migrate items from it to the Air, but I want to preserve the last "full" Time Machine back-up of the MBP to an external hard-drive. Not the "latest" - as the las
-
Reports 6i conversion from rdf to rex
Hi All, I am using Reports 6i. I wanted to convert my reports from rdf to rex so that I can open the rex file in a notepad and change some bolierplates. I was suprised to see that there were no boilerplates in the rex file. Am I missing something in
-
ES bundles usage (with/without ESR)
Hello Experts, I am currently working in a landscape comprising of ECC 6.0 EHP4 and APO systems. We do not have SAP PI installation. I wanted to know the right way forward to get SOA enablement. I understand that Service enablement is two fold (Pleas
-
MacBook Pro is not starting up.
I can turn my macbook pro on but it doesn't start up. I did a hardware test and it said 4cdv/1/40000003:videocontroller. Apparently the hardware test failed with an error. Does anyone know what to do ? Thank you in advance.
-
Hi! I ran into the following problem when referencing the public parts of an external j2ee library project stored in the NWDI. Specifically I would like to reference an API part for having a correct build path during development. Unfortunately I can