How to retrieve value from web.xml in Servlet?

前端 未结 3 535
情深已故
情深已故 2020-12-19 18:05

I need to retrieve init-param value from xml to Servlet i used following code


    LoginServlet
    &         


        
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 18:29

    um... it should work. Are you calling the code in LoginServlet? And the

    LoginServlet 
    

    is not in any package?

提交回复
热议问题