I have an HTML page that allows me to use JSP code. I was able to print some output using some basic Java. But how to get an HttpServletRequest object so that I can print some of its properties on an HTML page?
Just use the request variable (an instance of HttpServletRequest ). This is one of the implicit objects in the JSP. Check the properties here: http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html
request
HttpServletRequest
<% request.getHeader(); %>
Source: https://habr.com/ru/post/1447061/More articles:Transferring actions from one uiview to another in iOS - iosCountdown android example - javaEvaluating a None object in boost python - pythonRunning Linux error in Fix8 C ++ library? - c ++installing a coffee script on ubuntu installs all the files correctly, but the command line doesn't work - node.jsLink to TypeScript file includes the entire output file - javascriptC # OpenFileDialog only shows XP style in Win7 - windows-7SyntaxError in octopress image_tag plugin when creating a blog - ruby | fooobar.com4 Copies of my dlls instead of 1? - c #Updating the magento extension using direct download of a package file - file already exists - updatesAll Articles