Using jsp:include

Hey folks,

I’m trying to write a custom plugin (Which started life as the client-search plugin) which has a page on the admin interface. In order to simplify the complexity of the files I’m working with to build the web interface, it would be really great to use the nice dynamic import offered in jsp:include. The problem is that no matter which combinations of settings I try, this doens’t seem to do any good.

I’ve tried “AuthCheckFilter.addExclude(“myplugin”);”

And setting meta to disable decorators.

Both appear to have no effect.

So, I’ve built the current version of the page without using dynamic includes, and instead am using static includes of the form <%@include file=“client-search-form.jsp”%>

The thing that I’m having trouble understanding is that client-form.jsp is pure html. I don’t DO any JSP stuff there, and in face could very easily replace the extension with .html and load the page in its a browser (If I added the rest of the html skeleton, of course). So, I don’t get why using

> <jsp:include page="client-search-form.jsp"/>
> 
> ends up crashing the plugin.
> 
> I'm importing these taglibs
> 
> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
> 
> But to be honest, I think I only use fmt anyway.
> Does anyone have any ideas?
> 
> Heres the sorrounding code.
> 
> 
> 
>      <%
>             String criteria = ParamUtils.getParameter(request, "criteria");
>            
>             UserManager userManager = UserManager.getInstance();
>        
>             Set<User> users = new HashSet<User>();
>        
>             if (criteria != null) {
>                 for (String searchField : userManager.getSearchFields()) {
>                     Collection<User> foundUsers = userManager.findUsers(new HashSet<String>(Arrays.asList(searchField)), criteria);
>                     for (User user : foundUsers) {
>                         if (user != null) {
>                             users.add(user);
>                         }
>                     }
>                 }
>             }
>         %>
>         <%@include file="client-search-form.jsp"%>
>         <%
>        
>             String executing = ParamUtils.getParameter(request, "execute");
>             String[] selectedUIDs = ParamUtils.getParameters(request, "selectedUIDs");
>             if(executing != null)
>             {
>                 RPCServerPlugin.getRPCHandler().sendRPC(selectedUIDs, request);
>             }
>                
>         %>
> 
> 
> 
> 
> 
> However, for some reason I'm having trouble getting it to reproduce the specific error I was getting. Instead it just shows me a blank screen. Progress? Who knows.
> 
> 
> 
> Any thoughts?