• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with Struts

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. It is documented that add(String,ActionError) is deprecated. when I use ActionMessage in place of ActionError, I get ClascastException for <html:errors> tag. How to go about this?

2. Can't I use jsp tags in the javascript function that I call onClick event
Example
<html:submit value="Unlock Selected Lock(s)" property="unLock" onclik="setMethodToCall('<%=Constants.UNLOCK%>');"/>

When I Look at view source I see <%=Constants.UNLOCK%> is not being replaced with constant value. How can I make this possible?
your help would be greatly appreciated

3. I am getting some information from DB and wanted to show that in the listing with checkbox before each list item. To show this listing I am holding list in request scope and using logic:iterate. I have button called delete where user can select some of the list items and click on delete. I am setting checkbox value as the unique id that identifies list items. Now, I have to validate that form so as to enforce user to select atleast one checkbox. now When my validation fails, It is going back to my listing page, but I guess it is not able to get the information in request scope any more. How same request not passed to the jsp back on error?

Please help me. This is kind of urgent. I have to meet few deadlines.

thank you
[ December 08, 2004: Message edited by: s penumudi ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic