Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.sitemap.action
Class BySubsectionSearchAction  view BySubsectionSearchAction download BySubsectionSearchAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.sitemap.action.BySubsectionSearchAction

public class BySubsectionSearchAction
extends org.apache.struts.action.Action

Implementation of Action that performs a BySubsection search.

This allows the user to select one subsection to search into, or all. It also allows to constrain searched to bboard topics, using the same form parameter.

Version:
$Id: BySubsectionSearchAction.java,v 1.5 2003/09/30 15:12:58 joe Exp $

Field Summary
static int MAX_NO_RESULTS
          Maximum number of results returned.
static java.lang.String SPACE
           
static java.lang.String TOPIC_CLASS_NAME
           
static java.lang.Class topicClass
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
BySubsectionSearchAction()
           
 
Method Summary
private  java.lang.String idArrayToString(java.lang.String[] array)
          Make a String of ids we search for.
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs a search, based on the values in the associated SearchForm.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_NO_RESULTS

public static int MAX_NO_RESULTS
Maximum number of results returned.


TOPIC_CLASS_NAME

public static final java.lang.String TOPIC_CLASS_NAME
See Also:
Constant Field Values

topicClass

public static java.lang.Class topicClass

SPACE

public static java.lang.String SPACE
Constructor Detail

BySubsectionSearchAction

public BySubsectionSearchAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Performs a search, based on the values in the associated SearchForm.


idArrayToString

private java.lang.String idArrayToString(java.lang.String[] array)
Make a String of ids we search for. The string is eg "i123di635d", i and d are used as separator not to confuse eg id=123 and id=23.