My Struts Views are made up of JSP and Tiles and the resulting HTML is
untidy to say the least. This causes problems when I try to compare it with
HTML mock-ups. To solve this I'm trying to use the JTidy library to pretty
print the HTML output to the browser.
I'm using the JTidyFilter configure
Ugh. 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:
> My Struts Views are m
Yes - I've got some complex tags and the resultant HTML has loads of
redundant whitespace in all the wrong places. Trying to compare with
original mock-ups takes for ever.
I like doing this with a filter because it's easy to remove if I'm having
problems later. I've just got it working and it's do
This is a two step process: You can define a String property to hold
the "name" of the required instance to inject, and then inject the
appropiate instance with the given name.
For example you can define a constant:
@Inject(value="my.constant")
public void setConstant(String value) {
Thanks Gabriel for the help, but i am a bit confused about it.
Can you please help me to understand why we are using those two entries
like
one is a constant and other is a bean class?
while my understanding was that all i need to define a constant and based
on that i can get the actual class (ex
2012/9/30 Steve Higham :
>> Does anyone know a sensible way of pretty printing the Struts HTML
>> output to the browser?
Which version of S2 ? Sometime ago all the tags' templates were
updated with FreeMarker trimming functionality, but if you have
problem with that please report an issue with JIR
6 matches
Mail list logo