Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic action in <html:form> tag

 
Carl Sampson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to have the action attribute of the <html:form> be dynamic? My issue is this. I'm using tiles for a page that has 4 common parts and 1 specific part. I want to reuse this page 7 times and swap out the specific part each time. My problem is that it contains a form which starts within the first common part. So, I would like to figure out a way to make the action attribute contain a dynamic target based on which page I'm on. Is that possible?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not make the common parts into jsp includes?
 
Carl Sampson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried putting the html:form tag in a tile, but it didn't like it when the starting tag and closing tag were in different tiles.

JSP includes and tiles are conceptually the same, right? What would be different about putting it in an include vs. a tile?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic