Processing value of decorator:getProperty in JSP-scriplet

Rick Gruber-Riemer <[email protected]>
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <19512003.1113555729176.JavaMail.os-j2ee@opensymphony01.contegix.com>
Hi

Having read the thread "Thread: Removing meta tags from source" I am a bit confused. Isn't it possible to use the value of at meta-tag submitted by the to be decorated page in a JSP-decorator for processing? If yes: how do I do this using JSP-technology?

E.g.
# I get an ASP page foo.asp (-> being an externalIy developed webpage, I cannot use the technique to programmatically set something in the request as suggested in another with setAttribute(..))
# In foo.asp there is a meta-tag: <meta name="rightbox" content="true" />
# In my jsp-decorator could retrieve the value of the meta-tag with: <decorator:getProperty property="meta.rightbox" default="false" />
# I want to assign the value of the metatag to a variable in a JSP-scriplet like this (i.e. using the value for processing, not directly for output):
<%
boolean foo;
foo = Boolean.parseBoolean(<decorator:getProperty property="meta.rightbox" default="false" />);
if (foo) {
	out.println("Hello");
}
%>

This fails (of course). But isn't there another way to do an assignment?

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1593&messageID=4890#4890


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.