You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by developer researcher <ja...@gmail.com> on 2010/12/27 23:28:03 UTC
problem mapping values from the jsp to the action
Hello,
I have problems to map fields value when the fields are within elements
<div>. As example attached an JSP page, this jsp have three fields
(campo1,campo2 and campo3). When I trying of print the values of these
fields from the corresponding action, the following is displayed: "Campo1:
null - Campor2: null - Campo3: Value 3".
The only difference is that campo1 and campo2 are in a <div> within of
another <div> (see SimpleDialogTemplate.jsp). I also attached the example
Action.
How can I solved this problem?
Thanks in advance,
Re: problem mapping values from the jsp to the action
Posted by li wei <li...@gmail.com>.
can you show the generated html file?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: problem mapping values from the jsp to the action
Posted by developer researcher <ja...@gmail.com>.
Hello, thanks for all your answers, finally I can find a solution.
- there is nothing rare or special in the generated HTML, it is identical to
jsp
- when I change the method to get I can see that not all parameters are sent
- finally the problem es solved when include an dijit.form.Form element
within the dijit.Dialog Element.
Thanks and regards,
2010/12/28 Maurizio Cucchiara <ma...@gmail.com>
> It's definitely a dojo/dijit miss-configuration issue.
> We can't help you, there is not an html form. I've ever disliked the dojo
> way.
>
> My suggestion is: change the method from post to get and see what
> happens (see if get variables appear to the address bar)
>
> 2010/12/28 developer researcher <ja...@gmail.com>:
> > Hello Dave, Tito; thanks for answering
> >
> > Apparently there was a problem for the file extensions; I attach the
> > example code.
> >
> > I hope this information serve to you can help me identify the
> problem.
> >
> > Thanks in advance,
> >
> > 2010/12/27 tito <ti...@gmail.com>
> >>
> >> You forgot to attach the code.
> >>
> >> On 12/28/10, Dave Newton <da...@gmail.com> wrote:
> >> > No code, no help. Struts doesn't know about HTML, so a property's
> >> > location
> >> > in the DOM is unlikely to be the problem-but we have zero clue
> regarding
> >> > your implementation, so I'm not sure what kind of help you expect.
> >> >
> >> > Dave
> >> > On Dec 27, 2010 4:28 PM, "developer researcher" <
> >> > java.developer.researcher@gmail.com> wrote:
> >> >> Hello,
> >> >>
> >> >> I have problems to map fields value when the fields are within
> elements
> >> >> <div>. As example attached an JSP page, this jsp have three fields
> >> >> (campo1,campo2 and campo3). When I trying of print the values of
> these
> >> >> fields from the corresponding action, the following is displayed:
> >> >> "Campo1:
> >> >> null - Campor2: null - Campo3: Value 3".
> >> >>
> >> >> The only difference is that campo1 and campo2 are in a <div> within
> of
> >> >> another <div> (see SimpleDialogTemplate.jsp). I also attached the
> >> >> example
> >> >> Action.
> >> >>
> >> >> How can I solved this problem?
> >> >>
> >> >> Thanks in advance,
> >> >
> >>
> >> --
> >> Sent from my mobile device
> >>
> >> regards,
> >> Tito Cheriachan
> >> http://www.titocheriachan.com
> >>
> >>
> >> ___________________________________________
> >> Automate Twittering using AutoTweeter
> >> http://www.autotweeter.in
> >> <http://www.autotweeter.in>Follow twitter users automatically with
> >> AutoFollower
> >> http://www.twitterautofollower.com
> >>
> >>
> >>
> >> 10 litres of water is required to produce a sheet of paper.
> >> --
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
>
>
>
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: problem mapping values from the jsp to the action
Posted by Maurizio Cucchiara <ma...@gmail.com>.
It's definitely a dojo/dijit miss-configuration issue.
We can't help you, there is not an html form. I've ever disliked the dojo way.
My suggestion is: change the method from post to get and see what
happens (see if get variables appear to the address bar)
2010/12/28 developer researcher <ja...@gmail.com>:
> Hello Dave, Tito; thanks for answering
>
> Apparently there was a problem for the file extensions; I attach the
> example code.
>
> I hope this information serve to you can help me identify the problem.
>
> Thanks in advance,
>
> 2010/12/27 tito <ti...@gmail.com>
>>
>> You forgot to attach the code.
>>
>> On 12/28/10, Dave Newton <da...@gmail.com> wrote:
>> > No code, no help. Struts doesn't know about HTML, so a property's
>> > location
>> > in the DOM is unlikely to be the problem-but we have zero clue regarding
>> > your implementation, so I'm not sure what kind of help you expect.
>> >
>> > Dave
>> > On Dec 27, 2010 4:28 PM, "developer researcher" <
>> > java.developer.researcher@gmail.com> wrote:
>> >> Hello,
>> >>
>> >> I have problems to map fields value when the fields are within elements
>> >> <div>. As example attached an JSP page, this jsp have three fields
>> >> (campo1,campo2 and campo3). When I trying of print the values of these
>> >> fields from the corresponding action, the following is displayed:
>> >> "Campo1:
>> >> null - Campor2: null - Campo3: Value 3".
>> >>
>> >> The only difference is that campo1 and campo2 are in a <div> within of
>> >> another <div> (see SimpleDialogTemplate.jsp). I also attached the
>> >> example
>> >> Action.
>> >>
>> >> How can I solved this problem?
>> >>
>> >> Thanks in advance,
>> >
>>
>> --
>> Sent from my mobile device
>>
>> regards,
>> Tito Cheriachan
>> http://www.titocheriachan.com
>>
>>
>> ___________________________________________
>> Automate Twittering using AutoTweeter
>> http://www.autotweeter.in
>> <http://www.autotweeter.in>Follow twitter users automatically with
>> AutoFollower
>> http://www.twitterautofollower.com
>>
>>
>>
>> 10 litres of water is required to produce a sheet of paper.
>> --
>>
>> ---------------------------------------------------------------------
>> 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
>
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: problem mapping values from the jsp to the action
Posted by developer researcher <ja...@gmail.com>.
Hello Dave, Tito; thanks for answering
Apparently there was a problem for the file extensions; I attach
the example
code.
I hope this information serve to you can help me identify the problem.
Thanks in advance,
2010/12/27 tito <ti...@gmail.com>
> You forgot to attach the code.
>
> On 12/28/10, Dave Newton <da...@gmail.com> wrote:
> > No code, no help. Struts doesn't know about HTML, so a property's
> location
> > in the DOM is unlikely to be the problem-but we have zero clue regarding
> > your implementation, so I'm not sure what kind of help you expect.
> >
> > Dave
> > On Dec 27, 2010 4:28 PM, "developer researcher" <
> > java.developer.researcher@gmail.com> wrote:
> >> Hello,
> >>
> >> I have problems to map fields value when the fields are within elements
> >> <div>. As example attached an JSP page, this jsp have three fields
> >> (campo1,campo2 and campo3). When I trying of print the values of these
> >> fields from the corresponding action, the following is displayed:
> "Campo1:
> >> null - Campor2: null - Campo3: Value 3".
> >>
> >> The only difference is that campo1 and campo2 are in a <div> within of
> >> another <div> (see SimpleDialogTemplate.jsp). I also attached the
> example
> >> Action.
> >>
> >> How can I solved this problem?
> >>
> >> Thanks in advance,
> >
>
> --
> Sent from my mobile device
>
> regards,
> Tito Cheriachan
> http://www.titocheriachan.com
>
>
> ___________________________________________
> Automate Twittering using AutoTweeter
> http://www.autotweeter.in
> <http://www.autotweeter.in>Follow twitter users automatically with
> AutoFollower
> http://www.twitterautofollower.com
>
>
>
> 10 litres of water is required to produce a sheet of paper.
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: problem mapping values from the jsp to the action
Posted by tito <ti...@gmail.com>.
You forgot to attach the code.
On 12/28/10, Dave Newton <da...@gmail.com> wrote:
> No code, no help. Struts doesn't know about HTML, so a property's location
> in the DOM is unlikely to be the problem-but we have zero clue regarding
> your implementation, so I'm not sure what kind of help you expect.
>
> Dave
> On Dec 27, 2010 4:28 PM, "developer researcher" <
> java.developer.researcher@gmail.com> wrote:
>> Hello,
>>
>> I have problems to map fields value when the fields are within elements
>> <div>. As example attached an JSP page, this jsp have three fields
>> (campo1,campo2 and campo3). When I trying of print the values of these
>> fields from the corresponding action, the following is displayed: "Campo1:
>> null - Campor2: null - Campo3: Value 3".
>>
>> The only difference is that campo1 and campo2 are in a <div> within of
>> another <div> (see SimpleDialogTemplate.jsp). I also attached the example
>> Action.
>>
>> How can I solved this problem?
>>
>> Thanks in advance,
>
--
Sent from my mobile device
regards,
Tito Cheriachan
http://www.titocheriachan.com
___________________________________________
Automate Twittering using AutoTweeter
http://www.autotweeter.in
<http://www.autotweeter.in>Follow twitter users automatically with
AutoFollower
http://www.twitterautofollower.com
10 litres of water is required to produce a sheet of paper.
--
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: problem mapping values from the jsp to the action
Posted by Dave Newton <da...@gmail.com>.
No code, no help. Struts doesn't know about HTML, so a property's location
in the DOM is unlikely to be the problem-but we have zero clue regarding
your implementation, so I'm not sure what kind of help you expect.
Dave
On Dec 27, 2010 4:28 PM, "developer researcher" <
java.developer.researcher@gmail.com> wrote:
> Hello,
>
> I have problems to map fields value when the fields are within elements
> <div>. As example attached an JSP page, this jsp have three fields
> (campo1,campo2 and campo3). When I trying of print the values of these
> fields from the corresponding action, the following is displayed: "Campo1:
> null - Campor2: null - Campo3: Value 3".
>
> The only difference is that campo1 and campo2 are in a <div> within of
> another <div> (see SimpleDialogTemplate.jsp). I also attached the example
> Action.
>
> How can I solved this problem?
>
> Thanks in advance,