• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tag file doubt

 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
source : Marcus

Tag files cannot access parameters from the calling JSP page.
true/false?

Answer :false

how can tag file access parameters from calling JSP page?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using the variable directive in the tag file.
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I will try to do it...
thanks
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2420
95
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using the variable directive in the tag file.

Hi Christophe,

I thought that it was like this:

from jsp to tag-file: <%@ attribute %>
from tag-file to jsp: <%@ variable %>

Regards,
Frits
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So Frits ,
you mean for a tag file to access the parameters of a JSP page the parameters must be added as the attributes for the tag file?

and if there is some info in tag file then it can be sent to the jsp by using the variable directive?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frits Walraven wrote:
Hi Christophe,

I thought that it was like this:

from jsp to tag-file: <%@ attribute %>
from tag-file to jsp: <%@ variable %>

Regards,
Frits


Yes, you're right Frits. I got confused here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic