• Post Reply Bookmark Topic Watch Topic
  • New Topic

single quotation mark for scripting expression  RSS feed

 
shan xiao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 471 of HFS, it says:
scripting expressions:
<mine: advice user='<%= request.getAttribute("username") %>' / >
while i found on page 357,
<jsp: setProperty name="person" property="name" value="<%= request.getParameter("username") %>" />
that it uses double quotation mark. why is that?
 
Jose Esteban
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To set attribute values you can use either single or double quotation marks.
 
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!