I have simple java class . I am passing some data (eb.xyzabc) from this simple java class to servlet. Servlet gets this value. Now I want to pass the same data ie.xyzabc to JSP.
Technically I want to see the data (eg. xyz ) passed from simple java class to JSP immediately. Is it possible, if possible what I have to , how can I do this. Please help me. Thank you. I am using GlassFish Server. Thank you in advance.
In your servlet:
request.setAttribute("data", javaBean);
In your jsp
${data.property}
I have simple java class . I am passing some data (eb.xyzabc) from this simple java class to servlet. Servlet gets this value. Now I want to pass the same data ie.xyzabc to JSP.
Technically I want to see the data (eg. xyz ) passed from simple java class to JSP immediately. Is it possible, if possible what I have to , how can I do this. Please help me. Thank you. I am using GlassFish Server. Thank you in advance.
In your servlet:
request.setAttribute("data", javaBean);
In your jsp
${data.property}
0 commentaires:
Enregistrer un commentaire