Question
Using Coldfusion in .JSPs
I am relying on a short Coldfusion script to do some behind
the scenes work that results in setting a few variables for use in
the html code of a .jsp file. But I cannot seem to find the right
JSP tags to do so.
I did come across some suggestions on calling coldfusion scripts in JSPs:
<jsp:include page="coldFusionFile.cfm">
but coding suggestions on how to use the coldfusion variables seem not to do the job ():
<%@page import="java.util.*" %> /// with the following
<%= mainVar.getAttribute("myVar")%> /// should pull data from mainVar.myVar
/// or this
<%= ((Map)(mainVar.getAttribute("myApp"))).get("myVar")%> /// should pull data from mainVar.myVar
The above suggestions were culled from a few pages, so, perhaps they are not going to do what they were reported to do (given the changed circumstances)...?..Any further suggestions for a beginner?
I did come across some suggestions on calling coldfusion scripts in JSPs:
<jsp:include page="coldFusionFile.cfm">
but coding suggestions on how to use the coldfusion variables seem not to do the job ():
<%@page import="java.util.*" %> /// with the following
<%= mainVar.getAttribute("myVar")%> /// should pull data from mainVar.myVar
/// or this
<%= ((Map)(mainVar.getAttribute("myApp"))).get("myVar")%> /// should pull data from mainVar.myVar
The above suggestions were culled from a few pages, so, perhaps they are not going to do what they were reported to do (given the changed circumstances)...?..Any further suggestions for a beginner?