Solved

How to write jstl tag in java code

Posted on 2007-03-30
3
865 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Checkbox and ListView in Android Layout 4 65
Custom Java Application connects to database: Which one of the 20? 4 28
runtime exception 2 28
CSV file parsing thru Java 13 31
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

772 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