• 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

In 'html:rewrite' attribute 'action' invalid bcos of old struts,jar

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


We have devoloped our application using struts.jar(1.1) , in one jsp i used <html:rewrite> and for that tag ,attribute 'action' is not available. I have imported new jar struts.jar(1.2.4) which has action attribute. But in some jsps in <html:form> we have used 'name' attribute which is not there in new jar file.
Can anyone suggest me a solution.

Thanks,
Revathi.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The name ant type attributes were deprecated from the <html:form> tag because they are unnecessary. All you need to do is supply the action path, and Struts can find the rest from the struts-config.xml file. Just remove the name attribute from the tag, and it should still work fine. The name of the form is always what was specified in the name attribute of the action mapping in the struts-config.xml file.

By the way, I hope you didn't just import a new struts.jar file into your application without doing anything else. Make sure that you replace all jar files, TLD files, and XML files with the new versions. If you search this forum, you will find many sad tales of people encountering problems when using artifacts from different versions of struts that don't play well together.
[ May 03, 2007: Message edited by: Merrill Higginson ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic