aspose file tools*
The moose likes Struts and the fly likes Struts 2 div could not be viewed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 div could not be viewed" Watch "Struts 2 div could not be viewed" New topic
Author

Struts 2 div could not be viewed

Ramesh kangamuthu
Ranch Hand

Joined: Mar 13, 2007
Posts: 79
Hi everyone,

I have involved myself in a struts 2 project. In my application I got struggling when I work with s iv tags. They are not visible in one of my jap page. I have given the code below. please help me.

My jsp code

bankinghome.jsp - returned from an action


<%--
Document : index
Created on : Jul 2, 2008, 8:50:45 PM
Author : ramesh.k
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@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">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Online Banking Services Home</title>
<s:head/>
</head>
<body>
<s:form name="bankinghomeForm">
<div>
<span
style="position:absolute;left:150px;top:25px;right:250px;bottom:475px">
<img src="${pageContext.request.contextPath}/images/onlinebanking1.gif"/>

</span>

<span
style="position:absolute;left:640px;top:25px;right:100px;bottom:475px">
<img src="${pageContext.request.contextPath}/images/logo_angler.gif"/>
</span>

<s:if test='%{#session.home=="true"}'>
<div>
<span
style="position:absolute;left:150px;top:100px;right:650px;bottom:350px">
<s:url id="accountInfo" action="accountInfoMain"/>
<s:a href="%{accountInfo}" theme="ajax" errorText="Url was not
formed correctly" value="Account Information"/>
</span>
<s:url id="transactions" action="accountInfo"/>
<span
style="position:absolute;left:275px;top:100px;right:450px;bottom:350px">
<s:a href="%{transactions}" errorText="Url was not formed correctly"
value="Transactions"/>
</span>
<s:url id="reports" action="reportsMain"/>
<span
style="position:absolute;left:400px;top:100px;right:250px;bottom:350px">
<s:a href="%{reports}" errorText="Url was not formed correctly"
value="Reports"/>
</span>
<s:url id="logout" action="logout"/>
<span
style="position:absolute;left:525px;top:100px;right:50px;bottom:350px">
<s:a href="%{logout}" errorText="Url was not formed correctly"
value="Log out"/>
</span>
</div>
</s:if>
</div>
</s:form>
</body>
</html>

regards,

Ramesh Kangamuthu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 div could not be viewed