hi guys
this peice of code works in my
jsp, but i was just curious if i can remove all scriplets and use jstl to make it work. any ideas will be appreciated.
=============welcome.jsp==========================
<%
final
String SERVERS = com.aoc.store.utils.PropertiesProxy.getInstance().getProperty("SERVERNAMES");
//this will check if SERVERS is specified in the properties file and will return true or false
boolean clientOrAdmin = com.aoc.utils.Utils.isExternalTam(request,SERVERS);
if(clientOrAdmin == true)
{
%>
<c:redirect url="client.jsp"/>
<%} %>
<%
if(clientOrAdmin == false)
{
%>
<c:redirect url="admin.jsp"/>
<%} %>
basically this above page is the first page i am getting from <welcome-file-list> (in web.xml)
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
so the problem is i cannot really go to an action class from <welcome-file-list> and thus have to use scriplet in jsp.
can i avoid the scriplets in above code and use jstl instead, is that possible?
any ideas will be appreciated
thanks
J
[ May 17, 2007: Message edited by: jay roy ]