html:form problem
Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the .do thing html:form action=example ... becomes form action=/sis/example.do So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? Im using struts 1.2 Thanks -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526
Re: html:form problem
Have you tried: html:form action=/example ... (*Chris*) On 9/21/06, Roberto C. Lima Jr. [EMAIL PROTECTED] wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the .do thing html:form action=example ... becomes form action=/sis/example.do … So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? I'm using struts 1.2 Thank's -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526
Re: html:form problem
It looks like you might be using modules...are you? -adam Roberto C. Lima Jr. wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the “.do” thing html:form action=”example” ... becomes form action=”/sis/example.do” … So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? I’m using struts 1.2 Thank’s -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: html:form problem
Yes. It didn't work. :( -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 -Mensagem original- De: Chris Pratt [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 21 de setembro de 2006 17:31 Para: Struts Users Mailing List Assunto: Re: html:form problem Have you tried: html:form action=/example ... (*Chris*) On 9/21/06, Roberto C. Lima Jr. [EMAIL PROTECTED] wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the .do thing html:form action=example ... becomes form action=/sis/example.do So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? I'm using struts 1.2 Thank's -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: html:form problem
No. I'm not using modules. -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 -Mensagem original- De: Adam Gordon [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 21 de setembro de 2006 17:35 Para: Struts Users Mailing List Assunto: Re: html:form problem It looks like you might be using modules...are you? -adam Roberto C. Lima Jr. wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the .do thing html:form action=example ... becomes form action=/sis/example.do So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? Im using struts 1.2 Thanks -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: html:form problem
Forms submit to the web application, so it requires a web context proceeding your domain. You can't submit to the root of the domain; the root domain is not a web application. Struts is rendering the form action correctly. Roberto C. Lima Jr. wrote: No. I'm not using modules. -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 -Mensagem original- De: Adam Gordon [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 21 de setembro de 2006 17:35 Para: Struts Users Mailing List Assunto: Re: html:form problem It looks like you might be using modules...are you? -adam Roberto C. Lima Jr. wrote: Hi, everyone. I have an app that will be published at internet with apache + JBoss Server. So, it will be published on the address above: http://sis.enovar.com.br/ http://sis.enovar.com.br/ But the problem is that html:form writes more than just the “.do” thing html:form action=”example” ... becomes form action=”/sis/example.do” … So, when i submit the page, it is trying to go to http://sis.enovar.com.br/sis/example.do and actually I was wondering it goes to http://sis.enovar.com.br/example.do Does anyone have any tip to solve my problem? I’m using struts 1.2 Thank’s -- Roberto Costa Lima Jr. e-novar Soluções Tecnológicas http://www.enovar.com.br/ www.enovar.com.br +55(85) 4009-5860 +55(85) 9104-6526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles and html:form problem
I have designed a basic layout file that looks something like this: html head/head body div class=headertiles:insert attribute=header //div div class=mainBodytiles:insert attribute=mainBody //div /body /html My problem is that I have a html:form element that needs to span both the header and mainBody attributes. But it doesn't really work as the tags become unbalanced: tiles:insert definition=mainLayout tiles:put name=header html:form .. html:select ... / /tiles:put tiles:put name=mainBody html:text .. / html:text .. / /html:form /tiles:put /tiles:insert Has anyone else solved this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and html:form problem
I think your only way to make it work is using a plain FORM tag or using only one tile. Or maybe you should design better your application (hey I'm joking!!!) Ciao Antonio Petrelli Matt Hughes wrote: I have designed a basic layout file that looks something like this: html head/head body div class=headertiles:insert attribute=header //div div class=mainBodytiles:insert attribute=mainBody //div /body /html My problem is that I have a html:form element that needs to span both the header and mainBody attributes. But it doesn't really work as the tags become unbalanced: tiles:insert definition=mainLayout tiles:put name=header html:form .. html:select ... / /tiles:put tiles:put name=mainBody html:text .. / html:text .. / /html:form /tiles:put /tiles:insert Has anyone else solved this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles and html:form problem
I've done something like this: tiles:insert definition=mainLayout html:form .. tiles:put name=header / tiles:put name=mainBody /tiles:put /html:form /tiles:insert In header and mainbody, I have the html:text and other component tags. I just specify the bean name explicitly using the name=... attribute of html:text, html:password, html:textarea, etc. This also allows you to mix and match source beans if you have that need. I think I have a full example somewhere in the archives within the last 90 days. If you can't find it, let me know and I'll check my Sent folder for it but I don't relish looking (or searching on tiles) through that folder. :) Regards, David -Original Message- From: Matt Hughes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 10:21 AM To: Struts Users Mailing List Subject: Tiles and html:form problem I have designed a basic layout file that looks something like this: html head/head body div class=headertiles:insert attribute=header //div div class=mainBodytiles:insert attribute=mainBody //div /body /html My problem is that I have a html:form element that needs to span both the header and mainBody attributes. But it doesn't really work as the tags become unbalanced: tiles:insert definition=mainLayout tiles:put name=header html:form .. html:select ... / /tiles:put tiles:put name=mainBody html:text .. / html:text .. / /html:form /tiles:put /tiles:insert Has anyone else solved this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]