adspace


How to access java variable in jsp?

Answer Posted / Dibya Prakash Tiwari

To access a Java variable in JSP, you can use various scopes: request, session, application, and page. For example, to access a request attribute named `myAttribute`, use `${requestScope.myAttribute}`. To access a Java variable declared within the same JSP file using scriptlet syntax, enclose it between `<% %>` delimiters like this: `<% String myVariable = "Hello World"; %>`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need the source code for opening a word document in java

2307