Greetings nkmb,
Setting up your web.xml file should be fairly simple in this instance as you only have a single servlet. Allowing that $CATALINA_HOME points to your Tomcat installation, put the web.xml file in the $CATALINA_HOME/YourProgram/WEB-INF directory.
The web.xml file should look...
After many arduous hours, I discovered that there was a typo in my web.xml file. The servlet-mapping tag had been improperly terminated and was throwing an error. After fixing the problem, all is working well.
Many thanks for your assistance.
I should make mention that it is only the controller servlets that are the problem. I have a jsp which accesses one of the \myProject\WEB-INF\classes\dao files and it works fine. So I have java and database connectivity, but I am unable to call the \myProject\WEB-INF\classes\controllers servlets.
Ok, I uninstalled/reinstalled Tomcat 5.5.17, dumped the contents of my %CATALINA_HOME%\webapps\myProject directory and started fresh.
I added the ..\webapps\myProject contents to the new installation and then started the server and tested it. Again, when I navigate to...
Yes, I had listed its location in my previous post (%CATALINA_HOME%\webapps\myProject\index.html).
Here is my web.xml that I have running in %CATALINA_HOME%\conf. Another interesting behavior is that whenever I add a web.xml file to %CATALINA_HOME%\webapps\myProject\WEB-INF, I can no longer...
I am using the default web.xml file from %CATALINA_HOME%\conf that I have copied into %CATALINA_HOME%\webapps\myProject\WEB-INF\ so that all of the <welcome-file-list> entries are the default ones. I also have an index.html file located in
%CATALINA_HOME%\webapps\myProject.
Moreover, whenever...
After making your suggested modifications, I ran into the other problem which I forgot to mention in my initial post. Whenever I add a servlet-mapping definition, I can no longer access "www.myhost:port/myProject". If I remove the servlet definition, then I can access...
I have had Tomcat 4.1 up and running on my linux box for some time and now I am giving Tomcat 5.5 a try on windows and I seem to be missing some nuance.
I have a standard servlet program for which I have created the following directory structure under...
rac2,
That was the problem indeed. The "'VALUE_OF_rs.getString()'" wasn't part of the actual error code, but rather that statement evaluated to a single string which was part of the error code. My apologies for the confusion.
Now all I have to do is find a way to enumerate all of the...
What I would like to do is populate the radio button selections with results from a database query. Here is what I have thus far:
<% //begin JSP, call database %>
<form>
<table>
<tr>
<td><input type="radio" value="VAL1" name="button"></td>
<td><input type="radio" value="VAL2"...
I would like to be able to use a single page that would be able to refresh a table based on the input into a text box and after clicking a button. Here is what I have thus far:
<form>
<input type="text" name="qstr">    
<input type="button" value="Search"...
Ah, ok. That has to be the most simplistic one I have seen yet. I have found various ways to do these validation checks, but that is the only one which has worked thus far. Thanks for your assistance.
I am having some problems with my validation code as well. Here we go:
<form method=get action=display.jsp onsubmit="return form_validate(this)"> Called the function
This one works.
<script>
function form_validate(thisform)
{
alert("you found me!");
return false;
};
</script>
This one...
And now I shall reveal my truly newb-self. I have a form which I want to validate its fields before I submit it to a database. I am having some problems with my javascript.
function form_validate(thisform)
{
with(thisform){
if(FIELD_VALUE.equals(null)){
alert("Enter a value!");
}
return...
Ah, that's right. It has been too long since I have done much Java programming. C++ all the way!
Thanks for your help, everyone. I shall certainly be coming back here for any further inquiries.
- Tim
I, as well, am having issues with some radio buttons. Here is my code:
-- first JSP --
<html>
<body bgcolor="#CCCC99">
<table>
<form method=get action=display.jsp>
<tr>
<td>Name: <input type="text" name="usrname" size="15"></td>
</tr>
<tr>
<td><input type="submit"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.