Hi, I am facing a problem here. Would be great if you´d help me:

In my tiles-defs.xml I defined an attribute "selectedCountry" with value "EN":

    <definition name=".createUser" extends=".base">
        <put name="formContent" value=".createUserForm"/>
        <put name="selectedCountry" value="EN"/>
    </definition>

I want to use the value of "selectedCountry" ("EN") in a JSP and tried

When I want to use it as a JAVA variable:

--- snip
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

<tiles:useAttribute id="selectedCountry" classname="java.lang.String" 
name="selectedCountry"/>

<%
        String country = selectedCountry + "something";
%>
        
--- snip

I get an error like "selectedCountry" cannot be resolved:
What am I doing wrong?

TIA,
Andi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to