Subject: Re: <html:form> weirdness in Websphere 3.5.5 From: "Reginald Ister" <[EMAIL PROTECTED]> === Oh, let me clarify,
In the VisualAge WTE, <html:form action="login" ...> is correctly rendered as: <form name="loginForm" action="/app/do/login" ...> while in WebSphere 3.5.5, it is being rendered as: <form name="loginForm" action="/app/login" ...> I ended writing a servlet for WebSphere 3.5.5 that takes the /app/login call and forwards it to the correct /app/do/login path. Not a big deal, but I really wanted to try and figure out what was going on. What I really need to do is to see if this behavior exists in other WebSphere environments. Maybe 3.5.6 or 4.0.x. time permitting, I haven't seen anyone else complain in this forum, so it's probably not a reoccurring problem. Reg "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hmmmm.... > I'm not sure what to tell you. > Are you saying it works with the proxy servlet, or that's what's not > working? > > ~ Keith > http://www.buffalo.edu/~kkamholz > > > -----Original Message----- > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 6:25 PM > To: [EMAIL PROTECTED] > Subject: Re: <html:form> weirdness in Websphere 3.5.5 > > > Subject: Re: <html:form> weirdness in Websphere 3.5.5 > From: "Reginald Ister" <[EMAIL PROTECTED]> > === > Keith, thanks for your input. > > The funny thing is that it works fine within the VisualAge test environment. > I just ran into this problem during deployment. Haven't tried WebSphere 4.0 > yet. > As I work around, I just wrote a proxy servlet to forward calls like > /app/login to /app/do/login > > Reg > "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > > I think part of your problem is the way you specify your form in your JSP. > > You have action="login", but what you need is action="/do/login". The > 'do' > > extension must be in the jsp, it isn't created when the page is visited. > > Does that help you at all? > > > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > > > -----Original Message----- > > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 16, 2002 1:10 PM > > To: [EMAIL PROTECTED] > > Subject: <html:form> weirdness in Websphere 3.5.5 > > > > > > Subject: <html:form> weirdness in Websphere 3.5.5 > > From: "Reginald Ister" <[EMAIL PROTECTED]> > > === > > Hi, > > > > I have the following action define in struts-config.xml: > > > > <action path="/login" > > type="com.mycompany.actions.LoginAction" > > name="loginForm" > > scope="request" > > validate="true" > > input="/jsp/login.jsp" /> > > > > with the corresponding formbean: > > <form-bean name="loginForm" type="com.mycompany.actions.LoginForm" /> > > > > In my login jsp I have the form defined as > > <html:form action="login" method="post" focus="username" target="_top"> > > > > When this is rendered in Websphere, the form action is: > > > > <form name="loginForm" method="post" action="/app/login" target="_top"> > > > > While the correct rendering should be: > > <form name="loginForm" method="post" action="/app/do/login" target="_top"> > > > > Notice the missing "/do" pattern. Has anyone else seen this behavior? > > > > I am using Struts 1.0.2 with Tiles > > > > Reg > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED] rg> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>