struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yariel Ramos Moreno" <>
Subject Struts 1.1 and IExplorer
Date Wed, 08 Mar 2006 02:10:24 GMT

I'm developing a web application using Struts 1.1 and Tiles. I have a tile for searchs consisting
in a JSP with the following code:
<html:form action="/search">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <td colspan="3">Buscar Noticias</td>
            <td valign="top">
                <html:text property="searchText"/>
            <td valign="middle" width="40">
                <html:submit property="searchType">
                    <bean:message key="search.go"/>
            <td colspan="3">
                <html:submit property="searchType">
                    <bean:message key="search.adv"/>

I have an ActionForm asociated to it with the definition of searchText property and the get,
set and reset methods. Also, there is a LookupDispatchAction defining the mappings according
with the selected button. Here is the class:

public class SearchAction extends LookupDispatchAction {
 public ActionForward op_search(
           ActionMapping mapping,
           ActionForm form,
           HttpServletRequest request,
           HttpServletResponse response) {
           return mapping.findForward("showSearch");
 public ActionForward op_advSearch(
           ActionMapping mapping,
           ActionForm form,
           HttpServletRequest request,
           HttpServletResponse response) {
           return mapping.findForward("showAdvSearch");
 protected Map getKeyMethodMap() {
  Map<String, String> map = new HashMap <String, String> ();
        map.put("", "op_search");
        map.put("search.go", "op_search");
        map.put("search.adv", "op_advSearch");
        return (map);

The line map.put("", "op_search"); is for the case I press Enter in the input area instead
of pressing one of the defined buttons (I'm not sure if it work this way, maybe I don't need

When I execute my application in Mozila Firefox, pressing Enter in the input area, it works
fine and forwards to showSearch correctly. But when execute it in Internet Explorer, I get
the following exception:

SEVERE: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Request[/search] does not contain handler parameter named
at org.apache.struts.actions.LookupDispatchAction.execute(
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$

What's the problem here? It's mine or it's an Internet Explorer bug with Struts 1.1? Is there
another way of doing what I want (calling the correct forward when I press Enter in the input
area), something like a default value for my property or another method (searchText)?

I need some help as soon as you can, please.

Thanks in advance.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message