Help on JSTL

For those who ventured too far - just hope they know their way back :)

Moderator: neilg

Help on JSTL

Postby sunilverma » Wed Nov 16, 2005 7:59 pm

Hi All

I am facing a problem while making changes to the webstore I am not able to figure out the folowing ...

Here is the code

<%@ page session="true" contentType="text/html; charset=UTF-8" errorPage="errorPage.jsp" %>
<%@ taglib uri="webStore.tld" prefix="cws" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<cws:priceList priceList_ID="0"/>
<html>
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Welcome</title>
</head>
<body>
</body>
<h1> I am using <c:out value='${ctx.name}'/> repository </h1>
</html>

I am not able to figure out from where its getting the value for
${ctx.name}

here ctx must be instance of a bean or a property name but I an not able to fugure out where its set .

You can have the complete code if you move to %installdir%\Compiere2\jboss\server\compiere\tmp\deploy\ and search for index.jsp

Thank you
sunilverma
 
Posts: 6
Joined: Mon Nov 14, 2005 6:33 pm
Location: Chandigarh

Postby trifon » Fri Nov 18, 2005 1:43 am

Hi,

This is a link with good desciption of scoped variables:
http://javaalmanac.com/egs/javax.servle ... /attr.html

I think that Compiere saves ctx in session and in this cases it gates it from session.

Regards,
Trifon
Trifon Trifonov
trifon
Senior
 
Posts: 324
Joined: Thu Dec 23, 2004 11:20 pm
Location: Bulgaria, Sofia


Return to Strictly Technical

Who is online

Users browsing this forum: No registered users and 1 guest

cron