How to access java variable in jsp?
Answer / 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 |
how to maintain sessions in jsp?can you tellme the methods.
16 Answers IBM, Scope International, TCS,
What are the different scopes an object can have in a jsp page?
What are the standard actions available in jsp?
What are directives in jsp?
How to include a jsp file in another jsp file?
What do you know about writing custom jsp tags?
what is the enitre process of using smart forms to create forms?
what type of question will be asked in the interview in this software field?????///
Why jsp is better over static html also explain lifecycle of a jsp?
How can the output of JSP or servlet page be prevented from being cached by the browser?
How can I implement a thread-safe jsp page?
What is session getattribute in jsp?