How to check if an iterator is empty inside a s:subset?

2009-11-19 Thread Cristian Peraferrer
Hi, I'm trying to show a There are no items in the list message in my application. I'm using a subset the following way: s:subset source=myList decider=myDecider var=myListIterator s:if test=#myListIterator.hasNext() s:iterator status=status tr class=s:if

Setting Session setMaxInactiveInterval

2009-11-19 Thread CRANFORD, CHRIS
What is the proper way in Struts2 to dynamically set a particular application's session timeout value (HttpSession setMaxInactiveInterval) during the login process so that the session properly expires? Is this only possible by creating an HttpSessionListener and putting it in web.xml? public

Question about struts templates

2009-11-19 Thread Oscar
Hi to all, i have a problem with struts 2 templates. The problem is that when i put a s:submit in my jsp for example, it automatically creates a div containing the submit and a new column in the table, and i don't want that, i only want only the button. Is there a way to tell struts that i

Re: Question about struts templates

2009-11-19 Thread Burton Rhodes
Use the 'simple' theme. It just prints the HTML tag. On 11/19/09, Oscar oscar.kalde...@gmail.com wrote: Hi to all, i have a problem with struts 2 templates. The problem is that when i put a s:submit in my jsp for example, it automatically creates a div containing the submit and a new column in

Re: Question about struts templates

2009-11-19 Thread Oscar
Thanks for your answer Burton. I didn't know how to do that but for others that could have that problem to the way to do this is the next: Declare a constant in struts.xml like this: constant name=struts.ui.theme value=simple / Burton Rhodes escribió: Use the 'simple' theme. It just prints

Strange behavior after upgrade

2009-11-19 Thread Thomas Sattler
Hello all. I have upgraded a Struts 2.0.11 project to 2.1.8, and I have some strange behavior. The Struts stuff seems to work fine, and the Ajax stuff works fine as well. The Hibernate stuff works as far as reading data is concerned. But when I try to write a record, nothing happens on the