Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 714

GetAttribute returns null JSP, JavaEE [closed]

$
0
0

when i execute this, as on my training, I get null, I have test the others anwsers in this forum and don't work for me, i don't understanbd, tanks !

Servlet :

@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {    String message = "oui allo bonjour";    request.setAttribute("variable", message);    System.out.println(message);    String message2 = "oui allo bonjour 2";    request.getSession().setAttribute("message2", message2);    String message3 = "oui allo bonjour 3";    request.getSession().setAttribute("message3", message3);    this.getServletContext().getRequestDispatcher("/Bonjour.jsp").forward(request, response);

The codeThe page


Viewing all articles
Browse latest Browse all 714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>