Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Question about JSP

  Asked By: Bryant    Date: Aug 25    Category: Java    Views: 656
  

I have one question about JSP. I would really appriciated if you
could please let me know.

I have a variable define in <%! %> tag and now i want to use those
varialbe in <%= %> tag. Is that possible. I would really
appriciate ifyou could provide me some examples as well. Thanks for
you time

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Julian Long     Answered On: Aug 25

u can use any thing u have declared or defined
(variables or method) in <%! %> by calling the name
in <%= %>

e.g:
<%! public String getName() { return name; } %>
<html>
<body>
<%= getName(); %>
</body>
</html>

 
Didn't find what you were looking for? Find more on Question about JSP Or get search suggestion and latest updates.




Tagged: