• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error:The requested resources are not available  RSS feed

 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I had created application where once you log in into index.jsp page, the next validateuser check for validation. but when i fill the form of username and password the error shows like:
The requisted resources are not available
Here my context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/student" docBase="student"
debug="5" reloadable="true" crossContext="true">
Resource name="jdbc/mynewdatabase" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="root123" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/mynewdatabase?autoReconnect=true"/>
</Context>
and here is web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
I am using netbeans6.0 IDE with tomcat6.0. I had googled for it but wouldnt get any solution for jsp page. all they related to servlet.
can anybody guide me on above issue?
Regards
Haresh
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to call a servlet for the validation?
If yes I dont see any servlet element configured in the web.xml.
When you create a new servlet in Netbeans, it asks for the mapping and URL pattern.


Hope this helps .
 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am calling validateuser.jsp page for validation from my index.jsp page.
Any more clarification?
Thanks and Regards
Haresh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Harshal Gurav
I am calling validateuser.jsp page for validation from my index.jsp page.


It means your index.jsp has a form and the action for that form is validateuser.jsp, right?
If yes then check the path you are providing to the form's action property.
Its relative to the context.
I think you are missing something there.



Hope this helps .
[ July 08, 2008: Message edited by: Amit Ghorpade ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!