Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't I do: <% String myHost = request.getRemoteHost() %>

Status
Not open for further replies.

csphard

Programmer
Apr 5, 2002
194
US
Why can't I do the following?

<% String myHost = request.getRemoteHost() %>
<div id="header"><h1><span>MyJAVA</span></h1>
<h2>Welcome it is now: <%= date %></h2>
<h2>Your are contacting us from server <%= myHost %></h2>

Howard
 
sorry I know why

<% String myHost = request.getRemoteHost(); %>

Corrected

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top