A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Dir Structure messed up?
Mimi Tam
Ranch Hand
Joined: Mar 05, 2010
Posts: 121
posted
Mar 14, 2010 14:40:12
0
I could not get my home.html to show up.
<%@include file="include.jsp"%> <% Redirected because we can't set the welcome page to a virtual URL. %> <c:redirect url="/hello.htm"/>
<%@ page session="false"%> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
Here's my project dir structure (1st picture) and what shows up at startup (Run in Server).
Any idea will be greatly appreciated.
curDir.png
firstPage.png
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
2
I like...
posted
Mar 15, 2010 01:05:25
0
You have a hello.
jsp
in your application and you are trying to redirect to hello.
htm
??
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Mimi Tam
Ranch Hand
Joined: Mar 05, 2010
Posts: 121
posted
Mar 15, 2010 08:08:35
0
Oh no, sorry....I've got to walk away from this for a stretch...and it was way too late last night when I posted this....
I have an index.jsp and it was trying to redirect to hello.jsp. It was careless typo.
Thanks for spotting that.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Dir Structure messed up?
Similar Threads
Regarding:No tag "form" defined in tag library imported with prefix "form"
JSTL format tag: Unable to set a runtime expression for attribute key
Taglibs not found problem
Need help with JSTL: setting end attribute dynamically of "substring" tag
Accessing Property(array object) in a Bean using EL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter