1. How can I enable a site for crawling better?

2. How to use jsp forward?

3. How can I pass parameters to a forward?

4. How can I retrieve parameters from a forward?

5. what is the odd behavior of a request when it is forwarded?

6. Can I forward between two contexts?

7. How to simulate a forward between contexts?

satya - Wednesday, April 09, 2008 10:53:43 AM

when to use response redirect and jsp forward

when to use response redirect and jsp forward

satya - Wednesday, April 09, 2008 10:54:33 AM

forward tag in jsp

Search for: forward tag in jsp

satya - Wednesday, April 09, 2008 10:56:14 AM

syntax for forward tag

syntax for forward tag

satya - Wednesday, April 09, 2008 11:03:16 AM

passing parameters to the forward tag


<html>
<head>
<title></title>
</head>
<body>
<jsp: forward page="ssParameters.jsp">
  <jsp: param name="myParam" value="Amar Patel"/>
  <jsp: param name="Age" value="15"/>
</jsp: forward>
</body>
</html>

satya - Wednesday, April 09, 2008 11:19:03 AM

another nice discussion

another nice discussion

satya - Wednesday, April 09, 2008 11:31:50 AM

The following will also work for dynamic params and a dynamic url


RequestDispatcher dispatcher = request.getRequestDispatcher(targeturl);
dispatcher.forward(request, response);

satya - Wednesday, April 09, 2008 11:33:57 AM

The following works as well


<jsp:forward page="<%=targeturl%>"/>

Where the "targeturl" is a variable that is dynamic and derived.

satya - Friday, April 11, 2008 4:41:34 PM

Capturing jsp output using capture tags: initial work

Capturing jsp output using capture tags: initial work

satya - Friday, April 11, 2008 4:42:09 PM

Problem with request.getParameters, forward and tomcat

Search for: Problem with request.getParameters, forward and tomcat

satya - Friday, April 11, 2008 4:43:08 PM

geparamters and geturlquery string seem to behave differently

geparamters and geturlquery string seem to behave differently

satya - Friday, April 11, 2008 4:44:28 PM

How can I form a host request from httprequest?


String scheme = request.getScheme();
String host = request.getLocalName();
String port = Integer.toString(request.getLocalPort());
String urlPrefix = null;
if (StringUtils.isValid(port))
{
	urlPrefix = scheme + "://" + host + ":" + port;
}
else
{
	urlPrefix = scheme + "://" + host;
}

satya - Friday, April 11, 2008 4:45:50 PM

jsp expire attribute or tag

Search for: jsp expire attribute or tag

satya - Friday, April 11, 2008 4:48:16 PM

do the following


<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>

satya - Friday, April 11, 2008 4:48:34 PM

the above taken from

the above taken from

satya - Sunday, April 13, 2008 9:59:23 AM

How to retrieve parameters from a servlet or jsp forward

Search for: How to retrieve parameters from a servlet or jsp forward

satya - Sunday, April 13, 2008 9:59:41 AM

How can I forward between two servlet contexts

Search for: How can I forward between two servlet contexts

satya - Sunday, April 13, 2008 10:01:00 AM

how can I enable a website for crawling, best practices

Search for: how can I enable a website for crawling, best practices

satya - Friday, April 25, 2008 10:42:41 AM

api for sevlet request

api for sevlet request