Solved

How to write jstl tag in java code

Posted on 2007-03-30
3
912 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

630 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