File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
It's not a secret anymore!