How to find out the name of the http method using jsp el?
Answer / Himanshu Chauhan
To find out the name of the HTTP method using JSP EL (Expression Language), you can use the following syntax: ${headerName['REQUEST_METHOD']}. This assumes that you have an implicit variable 'headerMap' available, which maps request header names to values. If not, you may need to create a variable for it.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you know about jsp tags?
Can constructor be used instead of init(), to initialize servlet?
What is jspinit method?
Which jsp implicit objects are thread safe?
What is jsp and why is it needed?
What are the differences between get and load methods?
Why do we use jstl tags?
Why is it not recommended to use script elements in jsp?
What are different types of comments in jsp?
Give an example of using your own tags.
What is the use of jstl?
Why do we need custom tags?