Struts2 table with paging ability provided by the pager tag library
I couldn't find any really good examples of using the Struts2 table tag plugin and so decided to provide one. I also didn't really like the implementation of the pager tag that comes with it and so decided to incorporate the pager tag library from JSPTags instead. While this does tie your action to the HttpServletRequest object I found the tag to be easier to understand and use than the one provided by the Struts2 table tag. I also think it is probably possible to not tie yourself to the HttpServletRequest object but I dodn't have that requirement.17.04.2009 12:50 - Posted by doahh - Comments: 1 - Java
Struggling with the <s:action .. /> tag
This was partly my fault but it took me several hours to work out how to use this tag. I found the information on the Struts2 wiki misleading and although it worked a better method is available on the Nabble forums. It was only after I wrote this post that I found out the best way to use this tag. I have updated this post to reflect the improved method.11.03.2009 03:16 - Posted by doahh - Comments: 3 - Java
Struggling with struts iterator tag and Object[] array
It took me a good 4 hours to work out how to iterate over an Object[] using the Struts2 <s:iterate ... />. I am hoping that either you would have had the same problem or it was because I am drunk and tired! Anyway, this is how to do it.09.03.2009 09:13 - Posted by doahh - Comments: 0 - Java
Struts2 Spring plugin can be called multiple times at startup
This gave me some trouble as the multiple calls were overriding my calls to set the org.apache.struts2.spring.StrutsSpringObjectFactory setApplicationContext() method. It just happened that my call came in the middle of the two initialisation calls. I should probably dig deeper and find out where the second call comes from but I came up with this solution along the way and have stuck with it for now.07.03.2009 11:37 - Posted by doahh - Comments: 0 - Java
Adding support for the canonical value of the rel attribute of the link tag in Apache Roller blogging software
I wanted to add the newly supported <link rel="canonical" href="www.example.com/handle/post_title"/> value to my blogs in order to prevent issues with canonicalisation. I had to dig a little to find out how the URL is generated using Apache Roller but this is the code you need.
06.03.2009 07:46 - Posted by doahh - Comments: 0 - Java
Struts 2.0.11 datetimepicker while using a hyphen as the date separator
I had a problem submitting the Struts 2.0.11 <s:datetimepicker ... /> tag to my action when I used hyphens as the display format separator. Luckily the answer is simply to use / instead.04.03.2009 11:25 - Posted by doahh - Comments: 0 - Java
Adding an SSL certificate to your java keystore in Linux
I found it difficult to get specific information on how to do this so I have detailed what worked for me. I was doing this in order to get Jasigs Central Authentication Server integrated with Tomcat. The error I was trying to solve was:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
03.03.2009 10:13 - Posted by doahh - Comments: 0 - Java
Loading a Spring configuration file programitically
I was using the Java Plugin Framework that helped provide plugin functionality for my web application. The plugins needed to be Spring enabled so they could leverage the web applications code base but as they were only loaded at runtime the applicationContext.xml of the plugin had to be loaded programitically.02.03.2009 11:44 - Posted by doahh - Comments: 3 - Java
Using the Java Plugin Framework in a web application
The Java Plugin Framework (JPF) is an excellent framework for developing plugin for either a desktop application or web application using Java. The problem is that there is no support and the plugin no longer seems to be in development. The only other alternative is OSGI which for many projects will just be too complicated.27.02.2009 07:23 - Posted by doahh - Comments: 0 - Java
Getting the stack trace from an exception in Java
Getting the StackTrace from an Java Exception wasn't as easy as I had hoped. It needed a couple of extra steps that I hadn't anticipated.26.02.2009 10:02 - Posted by doahh - Comments: 0 - Java
Struts 2 and SSL switching (part 2)
Setting up the Struts2 SSL switching plugin (part 2) for automatic SSL re-direction.25.02.2009 12:00 - Posted by doahh - Comments: 0 - Java
Struts 2 and SSL switching (part 1)
Adding SSL switching support to Struts2 using the SSL Switching plugin.24.02.2009 02:26 - Posted by doahh - Comments: 1 - Java
Permgen errors in Tomcat when using Hibernate.
If you are getting permgen errors every time you redeploy your application to Tomcat then you can at least get it good enough to work with by switching it to use the JRockit implementation.23.02.2009 03:42 - Posted by doahh - Comments: 0 - Java
Simple Struts 2 and hibernate integration
A simple example of setting up hibernate to work alongside Struts2.22.02.2009 01:11 - Posted by doahh - Comments: 0 - Java
Struts 2 form with validation and XHTML CSS layout (part 3)
This is the third and final part of how to create an XHTML layout with CSS styling using Struts2 as the framework.| « September 2010 | ||||||
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | |||
| Today | ||||||
Search:
Categories:
Feeds:
Rate this blog