> Notice that I used if/else instead of switch/case. That's because
> in java (as in C and other languages) switch/case only takes
> integers as values.
If you're using JRun then do it like this:
--------------------------------------
<%@ taglib uri="jruntags" prefix="jrun" %>
<%
String fa = request.getParameter("fa");
if (fa == null) fa = "yourDefaultFuseaction";
%>
<jrun:switch>
<jrun:case expr='<%= fa.equals("fuseaction1") %>'>
..include code here..
</jrun:case>
<jrun:case expr='<%= fa.equals("fuseaction2") %>'>
..include code here..
</jrun:case>
<jrun:case>
..this is the default case..
</jrun:case>
</jrun:switch>
--------------------------------------
> Also, this was the first jsp app that I wrote, so anything you
> see could probably be written better. =:)
heh, the lines above are my first lines of JSP :)
-erki
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists