error with if condition

far4ever <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
hi,
 am using FreeMarker with spring 
in the login page i have a code spinet as follows..

<#if Parameters.login_error?? >
        Your login attempt was not successful, try again.<br/><br/>
            Reason:
         ${Parameters.login_error}
    </#if>
.. 
where i want the error message on login failure to be printed

but on the browser what i get is as follows
........
<#if Parameters.login_error?? > Your login attempt was not successful, try
again.

Reason: ${Parameters.login_error} 

......
 where the if condition is not being interpreted properly.
and i tried as :
<#if Parameters.login_error?exists>

in both the case the condition gets printed as it is there in the ftl page
but with out the closing tag of the if close.

other content in the page is being shown properly and also the functionality
(login function) is also working

can anyone help me 2 figure out what has gone wrong..

thanks in advance.
-- 
View this message in context: http://www.nabble.com/error-with-if-condition-tp24218684p24218684.html
Sent from the freemarker-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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.