my dog learned polymorphism*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 div could not be viewed" Watch "Struts 2 div could not be viewed" New topic

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"

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Online Banking Services Home</title>
<s:form name="bankinghomeForm">
<img src="${pageContext.request.contextPath}/images/onlinebanking1.gif"/>


<img src="${pageContext.request.contextPath}/images/logo_angler.gif"/>

<s:if test='%{#session.home=="true"}'>
<s:url id="accountInfo" action="accountInfoMain"/>
<s:a href="%{accountInfo}" theme="ajax" errorText="Url was not
formed correctly" value="Account Information"/>
<s:url id="transactions" action="accountInfo"/>
<s:a href="%{transactions}" errorText="Url was not formed correctly"
<s:url id="reports" action="reportsMain"/>
<s:a href="%{reports}" errorText="Url was not formed correctly"
<s:url id="logout" action="logout"/>
<s:a href="%{logout}" errorText="Url was not formed correctly"
value="Log out"/>


Ramesh Kangamuthu
I agree. Here's the link:
subject: Struts 2 div could not be viewed
Similar Threads
getting null parameters from servlet
How to make colored variable length bars in FF?
Images on Images using CSS
problem with onmouseout in NN7
Problem positioning Data using CSS and <s:iterate ( information is placed on top of each other).