Re: Hibernate problem with OGNL

2013-03-27 Thread Steve Higham
On 27/03/2013 10:42, Markus Demetz wrote: Hi, I have situations, where the getId() method of my model class returns null when navigating through OGNL e.g. when calling . Have you tried or No luck :-( I also tried with JSTL now without success. It's very strange, since sometimes it works

RE: How to pretty print HTML from Struts

2012-09-30 Thread Steve Higham
h. IMO relying on textual representation of a DOM is fragile and broken, especially if you're unable to ignore whitespace-is there a reason you're doing it like this? Dave (pardon brevity, typos, and top-quoting; on cell) On Sep 30, 2012 12:22 PM, "Steve Higham" wrote: >

How to pretty print HTML from Struts

2012-09-30 Thread Steve Higham
onfig will try to pretty-print *.css, *.js, *.img etc. but completely ignores the outputs of my actions. Does anyone know a sensible way of pretty printing the Struts HTML output to the browser? Many Thanks, Steve Steve Higham

RE: Struts2 : XML based View

2012-07-09 Thread Steve Higham
Hi, I have projects that include JS (and jquery) in the HTML pages they output. It's then up to you to construct your jquery widgets when the document loads. Is this what you are looking for... Cheers, Steve -Original Message- From: Anupam Bakshi [mailto:baks...@yahoo.com] Sent: 09 Jul

RE: Does the StrutsTestCase test filters defined in web.xml?

2012-05-14 Thread Steve Higham
Hi Miguel, I haven't used the StrutsSpringTestCase however I have made use of the StrutsTestCase. This only tests the interceptor stack / Action / Result. There is no web server involved and no attempt to render the resulting page. Therefore I would be surprised if anything from web.xml is cal

RE: Struts 2 Rest Showcase Example : Issue in understanding code

2012-05-01 Thread Steve Higham
Hi Srineel, I would recommend purchasing a copy of Struts 2 In Action published by Manning. You're not going to pick Struts up by browsing through a couple of examples. Cheers, Steve -Original Message- From: Srineel Mazumdar [mailto:smaz19...@gmail.com] Sent: 01 May 2012 09:34 To: Stru

RE: StrutsTestCase, jUnit and file upload

2012-04-26 Thread Steve Higham
True (proxy.execute ().equals ("expected action result"); Note that the calls to the action are generated internally. You don't need any request.setParameter (...) calls. Cheers, Steve -Original Message- From: Steve Higham [mailto:st...@sjlt.co.uk] Sent: 25 April 2012 11:

StrutsTestCase, jUnit and file upload

2012-04-25 Thread Steve Higham
request object which will prepare the request with an uploaded file. Has anyone got this to work? Steve Higham

RE: event On struts

2012-04-22 Thread Steve Higham
Hi, Struts is very different to .NET. The underlying technologies are used in a very open fashion. The good thing is that this means you can do pretty much anything you like. The downside is that you need to understand the underlying technologies and do some legwork. As suggested you can use embe

RE: [Struts2] Upgrading a Struts2 Application that uses Tiles2.

2012-01-24 Thread Steve Higham
Hi HernĂ¡n, I'm running Tiles 2.2.2 on Struts 2.2.3 and it's working fine. I get a bunch of warnings when the app loads including WARN [TilesContainerFactory] DEPRECATION WARNING! You are using parameter-based initialization, that is no longer supported! Please see docs: http://tiles.apache.org/