Solved

How to write jstl tag in java code

Posted on 2007-03-30
3
879 Views
Last Modified: 2013-11-24
Hi guys

I have a JSP page where I include a jspf file
<%@ include file="../../include/JSTLEnvironmentSetup.jspf"%>

In the jspf file I set the storename tag like this
<c:set var="storeName" value="${sdb.storeEntityDescriptionDataBean.displayName}" scope="page" />

Now what I need to do is insert the storeName value in the following code from the jspf file which is inluded. I tried putting <c:out> tag but it doesn't work

reportingDb.setResourceBundle(storeNameValue+"SRSReporting");

Any help will be greatly appreciated

0
Comment
Question by:huzefaq
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
colr__ earned 200 total points
ID: 18824568
scope="page" means it will only work on the current page, which I dont think includes 'includes' Try scope="request" instead.
0
 
LVL 11

Assisted Solution

by:Manish
Manish earned 300 total points
ID: 18824918
I know that in scriptlet we can get value like
String storeNameValue=pageContext.getAttribute(storeName);
0
 
LVL 11

Assisted Solution

by:Manish
Manish earned 300 total points
ID: 18824920
PageContext
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question