Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is a scripting allowed in the body of standard action tags?

 
Roman Mazur
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is a scripting allowed in the body of standard action tags?

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Roman Mazur
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tested the scripting inside the body of standard action tags.

This is the Test class...



This is the code inside the jsp page...



and this is the result (no errors):
Roman
Mazur

According to the result I assume that scripting is allowed in the body of standard action tags.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can search for such details in the JSP specification. The useBean tag is described at JSP.5.1. It says :
Typically, the body will contain either scriptlets or jsp:setProperty tags that will be used to modify the newly created object, but the contents of the body are not restricted.
 
Roman Mazur
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic