Click here to Skip to main content
15,889,857 members
Home / Discussions / Java
   

Java

 
QuestionSince i m a student can I get industrial level examples on java where inheritance is major part? Pin
SSHASHIDHAR5-Nov-15 1:10
SSHASHIDHAR5-Nov-15 1:10 
AnswerRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
OriginalGriff5-Nov-15 1:13
mveOriginalGriff5-Nov-15 1:13 
GeneralRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
SSHASHIDHAR5-Nov-15 1:22
SSHASHIDHAR5-Nov-15 1:22 
QuestionRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
SSHASHIDHAR5-Nov-15 1:45
SSHASHIDHAR5-Nov-15 1:45 
AnswerRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
Richard MacCutchan5-Nov-15 5:39
mveRichard MacCutchan5-Nov-15 5:39 
GeneralRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
SSHASHIDHAR5-Nov-15 9:29
SSHASHIDHAR5-Nov-15 9:29 
GeneralRe: Since i m a student can I get industrial level examples on java where inheritance is major part? Pin
Richard MacCutchan5-Nov-15 23:12
mveRichard MacCutchan5-Nov-15 23:12 
QuestionNewly added jap page requested resource is not available Pin
Stephen Holdorf3-Nov-15 7:38
Stephen Holdorf3-Nov-15 7:38 
I have an existing MVC application that uses the following Dispatcher:

XML
<servlet-mapping>
<servlet-name>SpringDispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

What I did was under the WEB-INF/views directory add a menu.jsp file to be the new startup jsp.

/SpringMvcJdbcTemplate/WEB-INF/views/menu.jsp

New menu.jsp:

HTML
<%@page contentType="text/html" pageEncoding="UTF-8"%>
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    	<div align="center">
	       <h1>Main Menu</h1>
	        <h3><a href="listContact">List Contacts</a></h3>
	    </div>
</body>
</html>


Now what I did is change the initial "/" RequestMapping controller method to look like the following:

@RequestMapping(value = "/", method = RequestMethod.GET)
public ModelAndView menu(ModelAndView model){
model.setViewName("menu");

return model;
}

Now I feel that everything should work but when I run the application I receive the following page errors:

HTTP Status 404 - /SpringMvcJdbcTemplate/WEB-INF/views/menu.jsp

type Status report

message /SpringMvcJdbcTemplate/WEB-INF/views/menu.jsp

description The requested resource is not available

I am not sure what I am doing wrong. Can anyone help?
AnswerRe: Newly added jap page requested resource is not available Pin
Stephen Holdorf3-Nov-15 7:58
Stephen Holdorf3-Nov-15 7:58 
QuestionCode Design alternative for a Turn based game Pin
sitnik3-Nov-15 0:16
sitnik3-Nov-15 0:16 
QuestionHow do I Manually adding Spring MVC import libraries in to a Controller file Pin
Stephen Holdorf30-Oct-15 10:24
Stephen Holdorf30-Oct-15 10:24 
AnswerRe: How do I Manually adding Spring MVC import libraries in to a Controller file Pin
Richard MacCutchan30-Oct-15 22:57
mveRichard MacCutchan30-Oct-15 22:57 
QuestionMessage Removed Pin
29-Oct-15 13:53
Stephen Holdorf29-Oct-15 13:53 
NewsA new java open source framework: BabyFish Pin
babyfish-ct29-Oct-15 7:32
babyfish-ct29-Oct-15 7:32 
Questionjsp Pin
mohanbc1827-Oct-15 23:29
mohanbc1827-Oct-15 23:29 
GeneralRe: jsp Pin
Richard MacCutchan27-Oct-15 23:36
mveRichard MacCutchan27-Oct-15 23:36 
AnswerRe: jsp Pin
mohanbc1827-Oct-15 23:42
mohanbc1827-Oct-15 23:42 
GeneralRe: jsp Pin
Richard MacCutchan28-Oct-15 0:31
mveRichard MacCutchan28-Oct-15 0:31 
GeneralJava or JavaScript AKA where to start Pin
Vaclav_27-Oct-15 5:03
Vaclav_27-Oct-15 5:03 
GeneralRe: Java or JavaScript AKA where to start Pin
Richard MacCutchan27-Oct-15 5:26
mveRichard MacCutchan27-Oct-15 5:26 
GeneralRe: Java or JavaScript AKA where to start Pin
Vaclav_27-Oct-15 16:11
Vaclav_27-Oct-15 16:11 
QuestionJava RMI - chat app Pin
dzstef24-Oct-15 8:14
dzstef24-Oct-15 8:14 
Questionsolution for project Pin
Member 1208332323-Oct-15 22:57
Member 1208332323-Oct-15 22:57 
AnswerRe: solution for project Pin
Richard MacCutchan24-Oct-15 0:36
mveRichard MacCutchan24-Oct-15 0:36 
QuestionHomework help Pin
Member 1207437620-Oct-15 12:04
Member 1207437620-Oct-15 12:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.