Volodymyr Shulyk

Greenhorn
+ Follow
since Aug 14, 2012
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 Volodymyr Shulyk

RatiKanta pal, I have the same structure as on picture. One question: in the Deitel book says - create *.class file in WEB-INF/classes, but I often see *.java file in this folder. It changes something? (Can I create *.class file or I need to create *.java and compile from command line? It seems like a stupid question, but I can't find the answer in book)

Mike, I tried to do it with *.html file, but it isn't open anyway. And about web.xml - I reply to RatiKanta pal, that's my fault, but it isn't solve the problem.

Bear Bibeault, I can't find there an answer.
11 years ago
I still can't invoke WelcomeServlet.html.
What it can be?
I wrote hello/servlets/WelcomeServlet.html and got - is not available.
downloaded SimpleGreet.war example works.
Maybe something with server settings? (But today morning html loads fine)

RatiKante pal, thanks it was mistake from tests before. I tried debugging, changing defferent parts. But it seems that mistake not in this place.
11 years ago
Hi! I'm having some issues with example app:

/webapps/hello/servlets/WelcomeServlet.html opened normally but now:

The requested resource (/hello/servlets/WelcomeServlet.html) is not available.

And if it even worked after clicking for invoking servlet if showing:

The requested resource (/hello/welcome1) is not available.

Folders:
webapps/hello/servlets/WelcomeServlet.html
webapps/hello/WEB-INF/classes/hello/WelcomeServlet.class
webapps/hello/WEB-INF/web.xml

My web.xml:

<web-app version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xsi:schemalocation="http:/java.sun.com/dtd/web-app_2_3.dtd">
<servlet>
<servlet-name>welcome1</servlet-name>
<servlet-class>test.WelcomeServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>welcome1</servlet-name>
<url-pattern>welcome1</url-pattern>
</servlet-mapping>
</web-app>

Anybody have ideas? Thanks.
11 years ago