Solved

How to write jstl tag in java code

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 38
Running Jira on Raspberry PI 2? 3 124
@SBGen Method 3 25
Where to store the queries for modification of table 4 26
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now