I've been asked to pick up after someone who has moved on in a project and he has done somethings a bit differently than I might have with Struts. On the JSP he is using a link to call a loadaction which is just fine however the value of the row selected in a list box isn't making it into the form and as a consequence we're getting a null pointer down the road a bit. When I use a button on the jsp that I've done the updating of the form for the page happens automatically for me. I'd sure appreciate some pointers on how to proceed. I don't have the luxury of changing the jsp to use a button. At least not without a huge fight with the client. Thanks Chris email@example.com
Originally posted by Chris Spierings: On the JSP he is using a link to call a loadaction ... Chris firstname.lastname@example.org
I'm not an expert at struts yet, but hopefully this might help you track things down... Was the previous developer using an ActionForm or just the action? Sounds like there might be a problem in how the ActionForm object is being used. Is the drop down box using the struts-html tag library? If so, make sure it references the ActionForm.
Joined: Mar 29, 2001
Technically, there isn't a great deal of difference between a form button and link. The Struts html:link tag does accept dynamic parameters, either a single property or in a map. I can't be more specific without knowing more about the page you're working on. HTH, Ted.
<a href="http://husted.com/struts/book.html" target="_blank" rel="nofollow">Struts in Action</a>
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com