Re: helping hand required
Using HTML (which is I presume what your web app spits out), use the meta tag to redirect a user. An example:
Tryit Editor v1.4
Re: helping hand required
that was really helpful! but the problem is that i'm using struts-tiles to create pages. every time i want to display a page i just create that page and then insert layout page into that and provides the necessary details which are needed to name sections to be displayed!
here is the layout.jsp
Code JSP:
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles" %>
<html>
<head>
<title>Rainbow Entertainment<tiles:getAsString name="subtitle"/></title>
</head>
<body bgcolor="white">
<center><table border="0" cellspacing="0" cellpadding="0" width="860">
<tr height="71">
<td align="center" valign="center" width="160" height="71">
<img src="<c:url value="/images/rainbow_Entertainment.jpg"/>"
alt="Rainbow Entertainment logo">
</td>
<td bgcolor="#CCCCFF" align="center" valign="center" width="700" height="71">
<c:set var="subtitle"><tiles:getAsString name="subtitle"/></c:set>
<jsp:include page="/WEB-INF/layout/banner.jsp">
<jsp:param name="subtitle" value="${subtitle}"/>
</jsp:include>
</td>
</tr>
<tr valign="top">
<td bgcolor="#CCCCFF" width="160" align="left">
<jsp:include page="/WEB-INF/layout/navigation.jsp"/>
</td>
<td width="700" align="left">
<div style="margin-top: 0.1in;margin-left: 0.1in;margin-bottom: 0.1in;margin-right: 0.1in">
<tiles:insert attribute="body" />
</div>
</td>
</tr>
<tr>
<td width="160"></td>
<td align="right" width="700">
Copyright © 2011 Rainbow Entertainment
</td>
</tr>
</table></center>
</body>
</html>
do tell me what changes i should do to fulfill the requirement as described in Ist post??
Re: helping hand required
now i created a new layout page where the head has that meta tag there. i insert this layout when i need refresh the page !!!
do tell me if there is any other way to achive this instead of this!
Re: helping hand required
i just don't understand that
in my app if i click a link once it works fine but if it is clicked twice then an error page is displayed stating that resource not found, the most intresting thing is that the path to resource in error message was never provided in the link!!
E.g link is set to "views/admin/home.jsp" then it works for the first time but if it is clicked twice then then error genrated will show "views/admin/views/admin/home.jsp" not found!!
if really confused why this is happening!!
please hep!!
regards