MyEclipse: Working thru the webinar

hollisin - Jan 30, 2010 - 08:22 PM
Post subject: Working thru the webinar
My default web page layout comes up different than in the demo. The hanging tab which contains sign in, log out, welcome .., hangs from the "powered by sky,,," element. And below that there is a title "This is the content area." follow by an input box containing the defaul "sample input field" followed by a button element with the work "Button" on it.

All the pages look this way.
hollisin - Jan 30, 2010 - 08:43 PM
Post subject: RE: Working thru the webinar
When I added security, as in the webinar, it created the users and authorize tables in the DB but did not populate the Secured Url's box. I had to type in /secure/* myself.
hollisin - Jan 30, 2010 - 08:43 PM
Post subject: Re: RE: Working thru the webinar
hollisin wrote:
When I added security, as in the webinar, it created the users and authorize tables in the DB but did not populate the Secured Url's box. I had to type in /secure/* myself.


The DB is MySql
hollisin - Jan 30, 2010 - 08:49 PM
Post subject: RE: Re: RE: Working thru the webinar
I get this when I try to Logout using the hanging tab. May be related to the first post above.

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.RuntimeException: org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/sitemesh-decorators/main.jsp at line 39

36: <div id="footer">
37: <jsp:include page="/WEB-INF/sitemesh-common/footer.jsp" />
38: </div><!-- end footer -->
39: <jsp:include page="/WEB-INF/sitemesh-common/login.jsp" />
40: </body>
41: </html>
42:
hollisin - Jan 31, 2010 - 04:18 PM
Post subject:
This is what I'm talking about. The stuff following the footer.


<%@ page language="java" isELIgnored="false" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<head>
<title><decorator:title default="My Project" /></title>
<style type="text/css" media="screen">
@import url("${pageContext.request.contextPath}/resources/dojo/resources/dojo.css");
@import url("${pageContext.request.contextPath}/resources/dijit/themes/tundra/tundra.css");
</style>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/dojo/dojo.js" djconfig="parseOnLoad: true" ></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/spring/Spring.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/spring/Spring-Dojo.js"></script>
<script type="text/javascript">dojo.require("dojo.parser");</script>

<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico">
<decorator:head />
</head>
<body class="tundra spring">
<div id="mainWrapper">
<div id="loginSpacer"></div>
<div id="header">
<jsp:include page="/WEB-INF/sitemesh-common/header.jsp" />
</div>
<div id="contentWrapper">
<div id="nav">
<jsp:include page="/WEB-INF/sitemesh-common/sidebar.jsp" />
</div>
<div id="content">
<decorator:body />
</div><!-- end content -->
</div><!-- end contentWrapper -->
<div class="clearfooter"><!-- this area stays empty --></div>
</div><!-- end mainWrapper -->
<div id="footer">
<jsp:include page="/WEB-INF/sitemesh-common/footer.jsp" />
</div><!-- end footer -->
<jsp:include page="/WEB-INF/sitemesh-common/login.jsp" />
</body>
</html>
hollisin - Jan 31, 2010 - 04:20 PM
Post subject:
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="org.springframework.security.context.SecurityContextHolder" %>
<%@ page import="org.springframework.security.Authentication" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %>
<%@ page import="org.springframework.security.AuthenticationException" %>
<div id="loginPanel" class="hidden">
<div id="loginContent">This is the content area.<input type="text" value="sample input field"/>
<input name="Button" type="button" value="Button" class="button" /></div>
<div id="loginButton" align="center"><img src="${pageContext.request.contextPath}/images/loginTabLeft.gif" style="float:left;"/><div id="loginTabContent">
<%
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if (auth != null ) {%>
Welcome <sec:authentication property="principal.username"/> | <a class="contentLink" href="<c:url value="/j_spring_security_logout"/>">Log Out</a>
<%}
else {%>
<a class="contentLink" href="${pageContext.request.contextPath}/secure/welcome.jsp">Sign In</a>
<%}
%>
</div><img src="${pageContext.request.contextPath}/images/loginTabRight.gif" style="float:left;"/></div>
</div>
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits