This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic action in <html:form> tag  RSS feed

 
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!