• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to access message resources through <bean:message> in included jsp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am facing the problem with <bean:message> tag.

I have main.jsp in which i have included header.jsp.
<bean:message> works fine in main.jsp but gives no output in header.jsp.

Following is the snapshot of the code:

---- main.jsp --------

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Overview</title>
</head>
<body>
..
.
.

<jsp:include page="/header.jsp" flush="true"></jsp:include>



------- header.jsp ---------

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>


  • <bean:message key="label.firstname"/>

  • <bean:message key="label.lastname"/>




By no means i am able to figure out why i am not able to access message resources in included jsp.
Please help.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this "include" code working?, I mean, are you sure this page gets included and the problem with only the bean tags ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic