You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Roberto C. Lima Jr." <ro...@enovar.com.br> on 2006/09/21 22:15:00 UTC

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?

 

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: RES: html:form problem

Posted by Paul Benedict <pb...@apache.org>.
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:adam.gordon@readytalk.com] 
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RES: html:form problem

Posted by "Roberto C. Lima Jr." <ro...@enovar.com.br>.
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:adam.gordon@readytalk.com] 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:form problem

Posted by Adam Gordon <ad...@readytalk.com>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RES: html:form problem

Posted by "Roberto C. Lima Jr." <ro...@enovar.com.br>.
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:thechrispratt@gmail.com] 
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. <ro...@enovar.com.br> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:form problem

Posted by Chris Pratt <th...@gmail.com>.
Have you tried:  <html:form action="/example" ...>
  (*Chris*)

On 9/21/06, Roberto C. Lima Jr. <ro...@enovar.com.br> 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
>
>
>
>
>