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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie q's about tomcat/jstl/jsp

Status
Not open for further replies.

cyan01

Programmer
Mar 13, 2002
143
US
Hi,

I have a few newbie questions.

1) How to tell which version of tomcat installed on a unix server? I would think there must be some kind of command like "tomcat -v"?

2) How do I tell whether a server has jstl installed?

3) I am testing a piece of jsp code from a book. But it does not work. Please see below:

passFormVar.jsp
===============
Code:
<html>
<head>
<title>
Pass a form var
</title>
</head>

<body>
Please enter:<br>
<form action="processFormVar.jsp" method="post">
<input type="text" name="name" size="30"><p>
<input type="submit" value="go">
</body>
</html>

processFormVar.jsp
==================
Code:
<html>
<head>
<title>
Display form var
</title>
</head>

<body>
what you entered:<br>
${param.name}
</body>
</html>

However, all I get is a string ${param.name} instead of the value I entered in form on page passFormVar.jsp. Is it because the server does not have jstl installed?

Many thanks!
 
you can find the code in ROOT directory in webapps directory

<%= application.getServerInfo() %>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top