ognl « Struts « JSP-Servlet Q&A





1. Compare Long values Struts2    stackoverflow.com

Hi everyone I'm trying to compare two values using struts2 s:if tag but its not working. If I hardcode the values it works but I want it to be dynamic. The variable ...

2. simple OGNL projection required in struts2    stackoverflow.com

I would like to create a really simple tag parameterized with a collections' ids something like the following:

<s:url action="theaction" namespace="/" includeParams="all" id="histURL">
 <s:param name="sources" value="sources.{id}"></s:param>
</s:url>
${histURL}
If I have say three ...

3. comparing two valuestack string values in JSP - struts2    stackoverflow.com

Thanks in advance for your time. I need to preselect a radio button if it has a saved value. I basically need to compare 2 strings in the valuestack to determine ...

4. struts2: avoiding hardcode in struts tags, jsp    stackoverflow.com

When using struts2 I can access my session attributes inside struts2 tags using OGNL expression like this:

#session['object_key']
The problem is that I use this expression on different pages, every time hardcoding that ...

5. OGNL and JSP 2.1 - are there plans to fix?    struts.1045723.n5.nabble.com

Are there any plans to fix OGNL's # (or provide a workaround) for JSP 2.1? From the bottom of http://cwiki.apache.org/WW/ognl.html:Under JSP 2.1 the # character is now used by the JSP EL. This may cause problems with some applications that use the OGNL # operator. One quick-fix is to disable the JSP EL in a JSP 2.1 container (like GlassFish) by ...

6. OGNL in JSP    struts.1045723.n5.nabble.com

7. Question about OGNL in JSP    struts.1045723.n5.nabble.com

Hi to all, this is my first question here. I have a doubt about the use of OGNL expressions on JSP to access to an object that i declared in a scriptlet in the same JSP. I have the following code: <% AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME); %> ...

8. Re: OGNL and JSP 2.1 - are there plans to fix?    struts.1045723.n5.nabble.com

I think we should fix this. The best way to get it on the priority list is to put a ticket in JIRA for it. James On Wed Jul 18 10:49 , mraible <[hidden email]> sent: > >Are there any plans to fix OGNL's # (or provide a workaround) for JSP 2.1? > >From the bottom of http://cwiki.apache.org/WW/ognl.html:> >Under JSP 2.1 ...

9. Thoughts on JSPs and OGNL    struts.1045723.n5.nabble.com

Just to preface this email, I've never been a big OGNL fan... Okay, I'm updating everything to 2.1.1 and the new convention plugin and realized a major change from 2.0.9 to 2.1.1 is that the struts tags no longer accept JSP expressions, which has caused some major headaches. I could change the tld, but that's non-standard with Struts. My last email ...