How to find out the name of the http method using jsp el?



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

Post New Answer

More JSP Interview Questions

What do you know about jsp tags?

1 Answers  


Can constructor be used instead of init(), to initialize servlet?

1 Answers  


What is jspinit method?

1 Answers  


Which jsp implicit objects are thread safe?

1 Answers  


What is jsp and why is it needed?

1 Answers  


What are the differences between get and load methods?

1 Answers  


Why do we use jstl tags?

1 Answers  


Why is it not recommended to use script elements in jsp?

1 Answers  


What are different types of comments in jsp?

1 Answers  


Give an example of using your own tags.

1 Answers  


What is the use of jstl?

1 Answers  


Why do we need custom tags?

1 Answers  


Categories