RE: Velocity Inclusion in JSP

2011-04-15 Thread Biesbrock, Kevin
From: Dave Newton [mailto:davelnew...@gmail.com] > Do the templates use the same models as the web layer? Actually, it would have been good to note that the contact information is hard-coded. So there is no need for a model. I literally just need to include a block of html-/css-formatted text.

Re: Velocity Inclusion in JSP

2011-04-15 Thread Dave Newton
On Fri, Apr 15, 2011 at 1:03 PM, Biesbrock, Kevin wrote: > So I have a block of contact information that we would like to appear > similarly whenever it's displayed.  So on our home page, on a printable > confirmation page, or in a generated email -- it should always appear the > same.  Yesterda

Re: Velocity Inclusion in JSP

2011-04-15 Thread Dave Newton
Seems like a JSP-based custom tag would be the easiest, but I don't actually know what your template requirements are, so it's tough to say. What's the use-case? Dave On Fri, Apr 15, 2011 at 11:13 AM, Biesbrock, Kevin wrote: > There seem to be plenty of documents outlining how to include a jsp

Velocity Inclusion in JSP

2011-04-15 Thread Biesbrock, Kevin
There seem to be plenty of documents outlining how to include a jsp in a velocity template, but not the other way around. I am having a difficult time finding information on how to include a Velocity template in a JSP. I recognized the s:component tag could work, but my templates are not currentl

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
>> Yeah > > Actually, you added a spelling mistake (+e on Privileg).  However, the > previous example would work fine.  So a hybrid of the two: Actually I had the spelling typo before, but now saw that in english it is with +e > Yeah You are right, this works. After all I am not sure why I hav

RE: Creating menu bar based on session information

2011-04-15 Thread Biesbrock, Kevin
> Yeah Actually, you added a spelling mistake (+e on Privileg). However, the previous example would work fine. So a hybrid of the two: Yeah is sufficient. Beez - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> Login The correct syntax is: Yeah I really would enjoy some more debugging help in this area Cheers - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: s:push problem

2011-04-15 Thread CRANFORD, CHRIS
In the JSP, I added a line to see what bean it was finding by the name and it accurately printed out the bean which I was expecting it to be finding by the name. To be safe, I did go ahead and renamed the bean to something a bit more descriptive (ie: calibrationRequest) and retested by pushi

Re: s:push problem

2011-04-15 Thread Dave Newton
(I'm always nervous when business logic names something the same as something servlet-ish.) My first assumption would be that the pushed object is masking underlying properties. Don't know why it would start now--did you check the changelog for the release you're currently using? Don't know what

s:push problem

2011-04-15 Thread CRANFORD, CHRIS
I am noticing a strange behavior on my development machine where a POJO when pushed onto the top of the stack using s:push is causing tags such as s:include not to work. In the action being executed, there is a property in the action called request which represents a POJO of type CalibrationReques

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> you could do something like this: > ... where (bool) > hasPrivilege(List,...) is a function in your action. sounds good. I actually have now that signature in an AbstractAction from which all the other extend: public boolean hasPrivileg(String role) { ... } In my JSP: Login I did not unders

Re: Creating menu bar based on session information

2011-04-15 Thread Markus Demetz
you could do something like this: ... where (bool) hasPrivilege(List,...) is a function in your action. Markus Am 15.04.2011 13:57, schrieb Christian Grobmeier: Hi all, this is probably a trivial question, but I am unsure how to solve it best. I have an object User user. It has the properti

Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
Hi all, this is probably a trivial question, but I am unsure how to solve it best. I have an object User user. It has the properties name, password and List roles. Now I would like to create a navigation bar in my struts 2.2.1 jsp pages. I wanted to avoid huge chunks of logic in my code. Theref