session.getAttribute() in JSP is giving null value

前端 未结 1 926
遇见更好的自我
遇见更好的自我 2021-01-03 08:52

Here is my HTML code in JSP


            
            
            
        
        


Testing passed parameters

Passed "course" parameter = ${param.course}


Note the usage of EL: ${param.course}, where "param" is the name of one of the implicit objects, and "course" is the name of the select element, whose value was passed by submitting the HTML form.

Also check out the following answer for the additional information: Passing variables from JSP to servlet.


P.S.

You may find it useful to read some tutorials covering servlets and JSP. Here is a popular tutorial with nice explanations and easy to understand examples:

Beginning & Intermediate Servlet & JSP Tutorials

0 讨论(0)
提交回复
热议问题