struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Arora" <>
Subject [S2] Fetching request parameters in jsp
Date Mon, 18 Feb 2008 13:16:11 GMT
I'm in the process of learning struts and I have a very simple jsp
with a very simple Action behind it (doing no processing, simply
returning SUCCESS). I want to access a get parameter in the jsp and
print it out. This page :
says that I can simply do <saf: property value="#request.myId" /> in
the jsp but that doesn't seem to work.

My jsp is (a.jsp):
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
<%@taglib prefix="s" uri="/struts-tags" %>

<html xmlns="" xml:lang="en" lang="en">
	<title>Hello World</title>
	<s:head />
	Id is : <saf property value="" />

And i'm accessing it using a.jsp?id=xxxx. Am I missing something
really obvious here?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message