Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with Struts  RSS feed

s penumudi
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • 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
<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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!