You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jamesey <Ja...@hotmail.com> on 2003/03/12 10:38:36 UTC
OK Here's the HTML - (Re: URL display problem)
Here's the HTML
Excuse me if its not very good.. I'm not a front end developer by
tradition.. I usually do Middleware development.. just broadening my skills.
anyhoo..see if you can see whats wrong
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en"></html>
<HEAD>
<TITLE> TITLE </TITLE>
<LINK href="general_defs.css" type="text/css" rel="stylesheet" />
<META http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META content="Microsoft FrontPage 5.0" name="GENERATOR" />
</HEAD>
<BODY bgcolor="#FFFFFF">
<form name="findForm" method="post"
action="/find.do;jsessionid=8C9DDED3A84AC0295B79CDE3F24CFC1A">
<CENTER>
<TABLE class="component" cellSpacing="0" cellPadding="3" width="90%"
align="center">
<TBODY>
<TR class="componentHeader">
<TD>
<TABLE cellSpacing="0" cellPadding="3" width="100%">
<TBODY>
<TR>
<TD class="componentHeaderText">
HEADER TEXT
</TD>
<TD class="ComponentHeaderTinyText" align="right">
Help</A>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR class="componentBody">
<TD>
<TABLE cellSpacing="0" cellPadding="3" width="100%">
<TBODY>
<TR>
<TD class="componentBodyText">
TEXT
</BR>
</TD>
</TR>
<TR>
<TABLE cellSpacing="0" cellPadding="3" width="481" >
<TR>
<TD class="componentBodyText" width="183">
TEXT
</TD>
<TD class="componentBodyText" width="108">
<input type="text" name="idNo" size="20" value="">
</TD>
<TD class="componentBodyText" width="172" rowspan="2"
align="center">
<input type="submit" value="Proceed">
</TD>
</TR>
<TR>
<TD class="componentBodyText" width="183">
TEXT
</TD>
<TD class="componentBodyText" width="108">
<input type="text" name="name" size="20" value="">
</TD>
</TR>
</TABLE>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</BR>
</CENTER>
</form>
</BODY>
</html:html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: OK Here's the HTML - (Re: URL display problem)
Posted by Gemes Tibor <ti...@i-trade.hu>.
Jamesey wrote:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><html lang="en"></html>
>
>
...
></html:html>
>
>
I dont't know if this makes any difference, but
you wrote <html:html locale="true" />
instead of <html:html locale="true" >
ie. you closed the tag w/o body.
Hth,
Tib
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by Nicolas De Loof <ni...@cgey.com>.
For info I used IE6 SP1 / Win2k / Tomcat 4.1.18
Nico.
> ok nico... thanks for trying...
>
> i'll see what happens when i migrate to live..
>
> "Nicolas De Loof" <ni...@cgey.com> wrote in message
> news:006201c2e880$33632a30$2fbf430a@tmn.capgemini.fr...
> > Sory, I tried it on my struts-app (adding a /find path and a
dynabean)
> > and not have the problem you expose.
> >
> > I don't understand what happens to your app...
> >
> > Nico.
> >
> > ----- Original Message -----
> > From: "Jamesey" <Ja...@hotmail.com>
> > To: <st...@jakarta.apache.org>
> > Sent: Wednesday, March 12, 2003 10:55 AM
> > Subject: Errors in html corrected..
> >
> >
> > > but no difference to the url being shown after submit..
> > >
> > > here is the JSP
> > >
> > > -----------------------
> > >
> > > <%@ page language="java" %>
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > >
> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > >
> > >
> > >
> > >
> > >
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > >
> > > <html:html locale="true">
> > >
> > > <HEAD>
> > >
> > > <TITLE>
> > >
> > > <bean:message key="find.title"/>
> > >
> > > </TITLE>
> > >
> > > <LINK href="general_defs.css" type="text/css" rel="stylesheet"
/>
> > >
> > > <META http-equiv="Content-Type" content="text/html;
charset=UTF-8"
> > />
> > >
> > > <META content="Microsoft FrontPage 5.0" name="GENERATOR" />
> > >
> > > </HEAD>
> > >
> > >
> > >
> > > <BODY bgcolor="#FFFFFF">
> > >
> > > <html:form action="/find" >
> > >
> > > <CENTER>
> > >
> > > <TABLE class="component" cellSpacing="0" cellPadding="3"
width="90%"
> > > align="center">
> > >
> > > <TBODY>
> > >
> > > <TR class="componentHeader">
> > >
> > > <TD>
> > >
> > > <TABLE cellSpacing="0" cellPadding="3" width="100%">
> > >
> > > <TBODY>
> > >
> > > <TR>
> > >
> > > <TD class="componentHeaderText">
> > >
> > > <bean:message key="find.componentHeaderTextValue"/>
> > >
> > > </TD>
> > >
> > > <TD class="ComponentHeaderTinyText" align="right">
> > >
> > > <bean:message key="find.helpLink"/></A>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > </TBODY>
> > >
> > > </TABLE>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > <TR class="componentBody">
> > >
> > > <TD>
> > >
> > > <TABLE cellSpacing="0" cellPadding="3" width="100%">
> > >
> > > <TBODY>
> > >
> > > <TR>
> > >
> > > <TD class="componentBodyText">
> > >
> > > <bean:message key="find.enter"/>
> > >
> > >
> > > </BR>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > <TR>
> > >
> > >
> > > <TABLE cellSpacing="0" cellPadding="3" width="481" >
> > >
> > > <TR>
> > >
> > > <TD class="componentBodyText" width="183">
> > >
> > > <bean:message key="find.idNo"/>
> > >
> > > </TD>
> > >
> > > <TD class="componentBodyText" width="108">
> > >
> > > <html:text property="idNo" size="20"/>
> > >
> > > </TD>
> > >
> > > <TD class="componentBodyText" width="172" rowspan="2"
> > align="center">
> > >
> > > <html:submit>
> > >
> > > <bean:message key="find.proceed"/>
> > >
> > > </html:submit>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > <TR>
> > >
> > > <TD class="componentBodyText" width="183">
> > >
> > > <bean:message key="find.name"/>
> > >
> > > </TD>
> > >
> > > <TD class="componentBodyText" width="108">
> > >
> > > <html:text property="name" size="20"/>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > </TABLE>
> > >
> > >
> > > </TR>
> > >
> > > </TBODY>
> > >
> > > </TABLE>
> > >
> > > </TD>
> > >
> > > </TR>
> > >
> > > </TBODY>
> > >
> > > </TABLE>
> > >
> > > </BR>
> > >
> > > </CENTER>
> > >
> > >
> > > </html:form>
> > >
> > > </BODY>
> > >
> > > </html:html>
> > >
> > >
> > >
> > >
> >
> --------------------------------------------------------------------
> > -
> > > To unsubscribe, e-mail:
struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
struts-user-help@jakarta.apache.org
>
>
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by Jamesey <Ja...@hotmail.com>.
ok nico... thanks for trying...
i'll see what happens when i migrate to live..
"Nicolas De Loof" <ni...@cgey.com> wrote in message
news:006201c2e880$33632a30$2fbf430a@tmn.capgemini.fr...
> Sory, I tried it on my struts-app (adding a /find path and a dynabean)
> and not have the problem you expose.
>
> I don't understand what happens to your app...
>
> Nico.
>
> ----- Original Message -----
> From: "Jamesey" <Ja...@hotmail.com>
> To: <st...@jakarta.apache.org>
> Sent: Wednesday, March 12, 2003 10:55 AM
> Subject: Errors in html corrected..
>
>
> > but no difference to the url being shown after submit..
> >
> > here is the JSP
> >
> > -----------------------
> >
> > <%@ page language="java" %>
> >
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> >
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> >
> >
> >
> >
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> >
> > <html:html locale="true">
> >
> > <HEAD>
> >
> > <TITLE>
> >
> > <bean:message key="find.title"/>
> >
> > </TITLE>
> >
> > <LINK href="general_defs.css" type="text/css" rel="stylesheet" />
> >
> > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"
> />
> >
> > <META content="Microsoft FrontPage 5.0" name="GENERATOR" />
> >
> > </HEAD>
> >
> >
> >
> > <BODY bgcolor="#FFFFFF">
> >
> > <html:form action="/find" >
> >
> > <CENTER>
> >
> > <TABLE class="component" cellSpacing="0" cellPadding="3" width="90%"
> > align="center">
> >
> > <TBODY>
> >
> > <TR class="componentHeader">
> >
> > <TD>
> >
> > <TABLE cellSpacing="0" cellPadding="3" width="100%">
> >
> > <TBODY>
> >
> > <TR>
> >
> > <TD class="componentHeaderText">
> >
> > <bean:message key="find.componentHeaderTextValue"/>
> >
> > </TD>
> >
> > <TD class="ComponentHeaderTinyText" align="right">
> >
> > <bean:message key="find.helpLink"/></A>
> >
> > </TD>
> >
> > </TR>
> >
> > </TBODY>
> >
> > </TABLE>
> >
> > </TD>
> >
> > </TR>
> >
> > <TR class="componentBody">
> >
> > <TD>
> >
> > <TABLE cellSpacing="0" cellPadding="3" width="100%">
> >
> > <TBODY>
> >
> > <TR>
> >
> > <TD class="componentBodyText">
> >
> > <bean:message key="find.enter"/>
> >
> >
> > </BR>
> >
> > </TD>
> >
> > </TR>
> >
> > <TR>
> >
> >
> > <TABLE cellSpacing="0" cellPadding="3" width="481" >
> >
> > <TR>
> >
> > <TD class="componentBodyText" width="183">
> >
> > <bean:message key="find.idNo"/>
> >
> > </TD>
> >
> > <TD class="componentBodyText" width="108">
> >
> > <html:text property="idNo" size="20"/>
> >
> > </TD>
> >
> > <TD class="componentBodyText" width="172" rowspan="2"
> align="center">
> >
> > <html:submit>
> >
> > <bean:message key="find.proceed"/>
> >
> > </html:submit>
> >
> > </TD>
> >
> > </TR>
> >
> > <TR>
> >
> > <TD class="componentBodyText" width="183">
> >
> > <bean:message key="find.name"/>
> >
> > </TD>
> >
> > <TD class="componentBodyText" width="108">
> >
> > <html:text property="name" size="20"/>
> >
> > </TD>
> >
> > </TR>
> >
> > </TABLE>
> >
> >
> > </TR>
> >
> > </TBODY>
> >
> > </TABLE>
> >
> > </TD>
> >
> > </TR>
> >
> > </TBODY>
> >
> > </TABLE>
> >
> > </BR>
> >
> > </CENTER>
> >
> >
> > </html:form>
> >
> > </BODY>
> >
> > </html:html>
> >
> >
> >
> >
> > --------------------------------------------------------------------
> -
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by Nicolas De Loof <ni...@cgey.com>.
Sory, I tried it on my struts-app (adding a /find path and a dynabean)
and not have the problem you expose.
I don't understand what happens to your app...
Nico.
----- Original Message -----
From: "Jamesey" <Ja...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, March 12, 2003 10:55 AM
Subject: Errors in html corrected..
> but no difference to the url being shown after submit..
>
> here is the JSP
>
> -----------------------
>
> <%@ page language="java" %>
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>
>
>
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html:html locale="true">
>
> <HEAD>
>
> <TITLE>
>
> <bean:message key="find.title"/>
>
> </TITLE>
>
> <LINK href="general_defs.css" type="text/css" rel="stylesheet" />
>
> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
>
> <META content="Microsoft FrontPage 5.0" name="GENERATOR" />
>
> </HEAD>
>
>
>
> <BODY bgcolor="#FFFFFF">
>
> <html:form action="/find" >
>
> <CENTER>
>
> <TABLE class="component" cellSpacing="0" cellPadding="3" width="90%"
> align="center">
>
> <TBODY>
>
> <TR class="componentHeader">
>
> <TD>
>
> <TABLE cellSpacing="0" cellPadding="3" width="100%">
>
> <TBODY>
>
> <TR>
>
> <TD class="componentHeaderText">
>
> <bean:message key="find.componentHeaderTextValue"/>
>
> </TD>
>
> <TD class="ComponentHeaderTinyText" align="right">
>
> <bean:message key="find.helpLink"/></A>
>
> </TD>
>
> </TR>
>
> </TBODY>
>
> </TABLE>
>
> </TD>
>
> </TR>
>
> <TR class="componentBody">
>
> <TD>
>
> <TABLE cellSpacing="0" cellPadding="3" width="100%">
>
> <TBODY>
>
> <TR>
>
> <TD class="componentBodyText">
>
> <bean:message key="find.enter"/>
>
>
> </BR>
>
> </TD>
>
> </TR>
>
> <TR>
>
>
> <TABLE cellSpacing="0" cellPadding="3" width="481" >
>
> <TR>
>
> <TD class="componentBodyText" width="183">
>
> <bean:message key="find.idNo"/>
>
> </TD>
>
> <TD class="componentBodyText" width="108">
>
> <html:text property="idNo" size="20"/>
>
> </TD>
>
> <TD class="componentBodyText" width="172" rowspan="2"
align="center">
>
> <html:submit>
>
> <bean:message key="find.proceed"/>
>
> </html:submit>
>
> </TD>
>
> </TR>
>
> <TR>
>
> <TD class="componentBodyText" width="183">
>
> <bean:message key="find.name"/>
>
> </TD>
>
> <TD class="componentBodyText" width="108">
>
> <html:text property="name" size="20"/>
>
> </TD>
>
> </TR>
>
> </TABLE>
>
>
> </TR>
>
> </TBODY>
>
> </TABLE>
>
> </TD>
>
> </TR>
>
> </TBODY>
>
> </TABLE>
>
> </BR>
>
> </CENTER>
>
>
> </html:form>
>
> </BODY>
>
> </html:html>
>
>
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by mo...@dit.unitn.it.
you're code appear rigth..try to use explicit parameter:
<html:form action="yourpath.do" method="POST" >
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by Jamesey <Ja...@hotmail.com>.
the browser addres bar displays the request params after i submit the page..
even though i'm using POST..
<mo...@dit.unitn.it> wrote in message
news:1047464223.3e6f091fa21b0@www.unitn.it...
> I'm read only your preavious mail..Which error do you obtain?
> i don't understand your problem..explain its
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by mo...@dit.unitn.it.
I'm read only your preavious mail..Which error do you obtain?
i don't understand your problem..explain its
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by Jamesey <Ja...@hotmail.com>.
the html produced say... action="find.do?jsessionid......."
<mo...@dit.unitn.it> wrote in message
news:1047463713.3e6f0721020a5@www.unitn.it...
> I think that the attribute action in tag form should be /find.do if in
struts
> config you use path="/find"..try it
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Errors in html corrected..
Posted by mo...@dit.unitn.it.
I think that the attribute action in tag form should be /find.do if in struts
config you use path="/find"..try it
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Errors in html corrected..
Posted by Jamesey <Ja...@hotmail.com>.
but no difference to the url being shown after submit..
here is the JSP
-----------------------
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html:html locale="true">
<HEAD>
<TITLE>
<bean:message key="find.title"/>
</TITLE>
<LINK href="general_defs.css" type="text/css" rel="stylesheet" />
<META http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META content="Microsoft FrontPage 5.0" name="GENERATOR" />
</HEAD>
<BODY bgcolor="#FFFFFF">
<html:form action="/find" >
<CENTER>
<TABLE class="component" cellSpacing="0" cellPadding="3" width="90%"
align="center">
<TBODY>
<TR class="componentHeader">
<TD>
<TABLE cellSpacing="0" cellPadding="3" width="100%">
<TBODY>
<TR>
<TD class="componentHeaderText">
<bean:message key="find.componentHeaderTextValue"/>
</TD>
<TD class="ComponentHeaderTinyText" align="right">
<bean:message key="find.helpLink"/></A>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR class="componentBody">
<TD>
<TABLE cellSpacing="0" cellPadding="3" width="100%">
<TBODY>
<TR>
<TD class="componentBodyText">
<bean:message key="find.enter"/>
</BR>
</TD>
</TR>
<TR>
<TABLE cellSpacing="0" cellPadding="3" width="481" >
<TR>
<TD class="componentBodyText" width="183">
<bean:message key="find.idNo"/>
</TD>
<TD class="componentBodyText" width="108">
<html:text property="idNo" size="20"/>
</TD>
<TD class="componentBodyText" width="172" rowspan="2" align="center">
<html:submit>
<bean:message key="find.proceed"/>
</html:submit>
</TD>
</TR>
<TR>
<TD class="componentBodyText" width="183">
<bean:message key="find.name"/>
</TD>
<TD class="componentBodyText" width="108">
<html:text property="name" size="20"/>
</TD>
</TR>
</TABLE>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</BR>
</CENTER>
</html:form>
</BODY>
</html:html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: OK Here's the HTML - (Re: URL display problem)
Posted by Dejan Krsmanovic <de...@nbj.sv.gov.yu>.
----- Original Message -----
From: "Jamesey" <Ja...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, March 12, 2003 10:38 AM
Subject: OK Here's the HTML - (Re: URL display problem)
> Here's the HTML
>
> Excuse me if its not very good.. I'm not a front end developer by
> tradition.. I usually do Middleware development.. just broadening my
skills.
>
> anyhoo..see if you can see whats wrong
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html lang="en"></html>
You have closing tag right aftrer opening tag for html. I am not sure if
this is the source of the problem but I believe this won't work in browsers
like Netsape and others that require well formed html
> </form>
>
> </BODY>
> </html:html>
This </html:html> tag is also something that should not be in resulting
html. Try to correct these errors, or send jsp file too.
Dejan
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org