Question: Java | answer them all 1-Suppose that the name of a parameter is user, which is passed to a JSP. How to use an EL

Java | answer them all

1-Suppose that the name of a parameter is user, which is passed to a JSP. How to use an EL expression to access the value of this parameter in this JSP?

2-Suppose that we use the following two lines in a servlet to set values for the myval attribute, request.setAttribute("myvar", "value1"); session.setAttribute("myvar", "value2"); Then in the JSP forwarded by this servlet, how do we display the value of the at-tribute myvar in the session scope?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!