struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loren Hall" <>
Subject logon servlet through html forms "resource not available"
Date Fri, 28 Dec 2001 23:07:18 GMT
New to this and can't access /logon action through a standard html form

I'm integrating some struts functionality with a pre-existing, html based
site.  At index.html I'd like a login form, but don't want to force a change
to index.jsp.  However, i've tried action="logon",
action="/summershow/logon" and it says The requested resource (/logon) is
not available. I figure it's a path issue vs. an access issue, but for all I
know an html form just won't work.

First, any thoughts why the following html form tag won't work, and second,
what is the standard solution for this situation, .jsp or .html?

<form action="/summershow/logon" method="post" name="logon">
<input name="username" type="text">
<input name="password" type="password">
<input name="submit" type="submit">

responds with

type: Status report
message: /logon
description: The requested resource (/logon) is not available.

The servlet is under catalina/webapps/summershow/WEB-INF/ . . .  The working
code looks like this.

<html:form action="/logon" focus="username">
      User Name:       <html:text property="username" size="16"
	Password:        <html:password property="password" size="16"
maxlength="16" redisplay="false"/>
      <html:submit property="submit" value="Submit"/>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message