vijay joseph

Greenhorn
+ Follow
since Feb 26, 2007
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 vijay joseph

hi friends,
i am new to struts,can anybody tell how to call or use the .properties file in the application , i have placed in web-inf folder , is there any method to call the properties file?
hi,
actually iam new to mysql and have an project which is developed in seperate machine using tomcat and mysql database, now i want to run in my machine,
so idone the following steps
1.copy the project folder into the webapps in tomcat directory
2.create the database database name;
3: Now Type the command
use database name;
4: Now type the command
\. healthman.sql(it is already in the project sql file)


when i enter the username password
it is showing the error
error was:

HTTP Status 404 - /healthman/ValidateUser
type Status report

message /healthman/ValidateUser

description The requested resource (/healthman/ValidateUser) is not available.
Apache Tomcat/5.5.23

please let me know
how to connect my data base with existing project database
[ September 27, 2007: Message edited by: vijay joseph ]
hi,
i have an project done using mysql database and i want to run in my machine how to configure that data base to run in my machine, my project done using tomcat. i copy the project to webapps folder and now have to configure the database how to do that please help thnks in advance
hi iam new to custom tag ,
Iam facing problem when i am deploying my files on j2ee 1.5 server it give following erroer::
my .tld file and jsp are given below
any body can help me;

mytaglib.tld file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//
DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/
web-jsptaglibrary_1_1.dtd">

<!-- a tag library descriptor -->

<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>first</shortname>
<uri></uri>
<info>A simple tab library for the
examples</info>

<tag>
<name>hello</name>
<tagclass>tags.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Say Hi</info>
</tag>
</taglib>


MY JSP file :::

<%@ taglib uri="/WEB-INF/mytaglib.tld"
prefix="first" %>
<HTML>
<HEAD>
<TITLE>Hello Tag</TITLE>
</HEAD>

<BODY bgcolor="#ffffcc">

<B>My first tag prints</B>:

<first:hello/>

</BODY>
</HTML>

Error :::

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/mytaglib.tld
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:218)
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:188)
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:515)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:526)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1617)
org.apache.jasper.compiler.Parser.parse(Parser.java:174)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:244)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:146)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:132)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:245)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:462)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
please help
thanks in advance

java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
16 years ago
JSP
my old problem was cleared the mistake i didnt mention correct uri, but i have new exception as:
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/tags/mytaglib.tld: (line 14, col 1)

mytaglib.tld:


<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>HelloTag</short-name>
<tag>
<name>good</name>
<tag-class>tags.HelloTag</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>

please any one help
thanks in advance
16 years ago
JSP
sorry bear, i couldnt get you can you tell me clearly
16 years ago
JSP
hi,
iam new to custom tag and i was trying for my custom tag example,my jsp file showing me the error tld file was not found.please help me to solve this,

my tld file was:

?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>first</shortname>
<uri/>
<info>A simple tab library for the
examples</info>
<tag>
<name>hello</name>
<tagclass>tags.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Say Hi</info>
</tag>
</taglib>
<tag>
<name>HelloTag</name>
<tag-class>HelloTag</tag-class>
<body-content>scriptless</body-content>
</tag>
</taglib>

i placed it inside /WEB-INF/tlds directory

and this is my jsp:the error is org.apache.jasper.JasperException: File "/WEB-INF/tlds/mytaglib.tld" not found



1:<%@page contentType="text/html"%>
2:<%@page pageEncoding="UTF-8"%>
3:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4: "http://www.w3.org/TR/html4/loose.dtd">
5:<%@taglib prefix="first" uri="/WEB-INF/tlds/mytaglib.tld"%>
6:<HTML>
7:<HEAD>
8:<TITLE>Hello Tag</TITLE>
9:</HEAD>
10:<BODY bgcolor="#ffffcc">
11:<B>My first tag prints</B>:
12:<first:hello/>
</BODY>
</HTML>
[ September 04, 2007: Message edited by: vijay joseph ]
16 years ago
JSP
can any one tell me ,when java is platform independent?how thread is os dependent?
thanks in advance
is it possible to create static constructor?
how i can make the textfield to get the current date ,month,year in ddMMyyyy format when user doesnt mention anything ,and if user specifies the date alone text field should take the month and year by opening list let the user to choose the year and month?
16 years ago
how i can make the textfield to get the current time when user doesnt mention the name and if user specifies the date alone text field should take the month and year by opening list to choose the year and month?
16 years ago
sorry friends mistake in my ? .i mean to say difference between HTTPServlet and GenericServlet?thanks in advance
17 years ago
hi friends, can anyone tell me what is the function of following lines in servlet?what is the difference between prepareStatement,PreparedStatement?
Connection con;
PreparedStatement pstmt=null;
query="select emp_fname, emp_lname, address, dept, age, desig from Employee_master where emp_id=?";

pstmt=con.prepareStatement(query);
pstmt.setInt(1,Integer.parseInt(req.getParameter("emp_id")));
[ March 02, 2007: Message edited by: vijay joseph ]
hi,what is difference between GenericServlet and HTTPServlet class?

[ March 02, 2007: Message edited by: vijay joseph ]
[ March 02, 2007: Message edited by: vijay joseph ]
17 years ago