MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hollisin
Post subject: Working thru the webinar  PostPosted: Jan 30, 2010 - 08:22 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hollisin
Post subject: RE: Working thru the webinar  PostPosted: Jan 30, 2010 - 08:43 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hollisin
Post subject: Re: RE: Working thru the webinar  PostPosted: Jan 30, 2010 - 08:43 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hollisin
Post subject: RE: Re: RE: Working thru the webinar  PostPosted: Jan 30, 2010 - 08:49 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

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:
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hollisin
Post subject:   PostPosted: Jan 31, 2010 - 04:18 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

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>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hollisin
Post subject:   PostPosted: Jan 31, 2010 - 04:20 PM
Registered Member
Registered Member


Joined: Apr 18, 2005
Posts: 39

<%@ 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>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits