[
https://issues.apache.org/jira/browse/VELOCITY-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Schmiedehausen closed VELOCITY-175.
-------------------------------------------
> #macro name is displayed in the browser.
> ----------------------------------------
>
> Key: VELOCITY-175
> URL: https://issues.apache.org/jira/browse/VELOCITY-175
> Project: Velocity
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.3.1
> Environment: Operating System: All
> Platform: PC
> Reporter: Plamen Koychev
> Assigned To: Velocity-Dev List
>
> Hi,
> I was wandering if someone has reported this problem.
> This error occurs when stress-testing applications developed with Velocity.
> When I test with around 25 browser instances (or more) often I get:
> #menuitem#menuitem (menuitem is the name of the macro) being displayed in
> the
> rendered page instead of the macro being executed.
> The macro is:
> =============================================================
> #macro (menuItem $action $url $description)
> #if($action==-1)
> #set($actionOK=true)
> #else
> #if($debtorAccount)
> #set($actionOK=$accessControl.canPerformAction($action, $user,
> $clientAccount, $debtorAccount))
> #else
> #if($clientAccount)
> #set($actionOK=$accessControl.canPerformAction($action, $user,
> $clientAccount))
> #else
> #set($actionOK=$accessControl.canPerformAction($action, $user ))
> #end
> #end
> #end
> =============================================================
> I call this macro to build a menu page. The macro would call a method on an
> object (stored on a session level using AbstractContext). The macro is
> called
> like this:
> #menuItem(-1 "./signOff" $lClientMenu_LogOffLit)
> Could you please suggest any fixes or workaround?
> Thank you in advance,
> Plamen Koychev
> Software Developer
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]