You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Hardy <ah...@cyberspaceroad.com> on 2008/10/21 15:12:07 UTC

xwork injecting parameters into requestScope

I have an Action and corresponding JSP form with the property "portfolio".

In my JSP, I have this JSTL tag test:

<c:if test="${not empty portfolio and portfolio.id gt 0}"> stuff </c:if>

which works fine for my purposes. But then when I submit the form and validation 
fails and myAction.portfolio is not initialized, Struts2 injects the portfolio 
request parameter into the requestAttributes.

Now my JSP blows up because:

${portfolio} = "0"

and

${not empty portfolio} = true

and then

${portfolio.id} ----> javax.servlet.jsp.JspException: 
javax.el.PropertyNotFoundException: Property 'id' not found on type 
java.lang.Character


What influence can I have over this injection behaviour?

Or perhaps, can I reformulate my test so that I can tell whether my 
"${portfolio}" is a string or a bean?

Thanks!
Adam



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


Re: [ANN] VTD-XML extended edition released

Posted by Mead Lai <la...@gmail.com>.
 T5440 Server is server, not pc.
The common PC we have, is less than 4G memory.

2008/10/22 Paweł Wielgus <po...@gmail.com>

> Hi Mead,
> yes there are,
> just looking at the sun offer, T5440 Server -> 512G.
>
> Best greetings,
> Paweł Wielgus.
>
> 2008/10/22 Mead Lai <la...@gmail.com>:
> > supports 256 GB max file sizes??
> > Any system memory requirement? Wanne PC memory larger than 256G?
> > There is no pc support so max memory now.
> >
> > On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <cr...@comcast.net>
> wrote:
> >
> >> The Java version of extended VTD-XmL is released and available for
> >> download.
> >> This version supports 256 GB max file sizes and memory mapped
> capabilities.
> >> The updated documentation is also available for download. In short, you
> can
> >> basically do full XPath query on documents that are bigger than memory
> >> space
> >> available on your machine.
> >>
> >> A special thanks to Duane May who provided value suggestions and inputs
> and
> >> helped refine the VTD specs to make this happen.
> >>
> >> To download the package and the documentation, go to
> >>
> >>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
> >>
> >>
> >>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > BestRegards,
> > Mead
> > http://yayisoft.com
> >
> > Rita Rudner  - "I wonder if other dogs think poodles are members of a
> weird
> > religious cult."
> >
>
> i
>



-- 
BestRegards,
Mead
http://yayisoft.com

Jimmy Buffett  - "Indecision may or may not be my problem."

Re: [ANN] VTD-XML extended edition released

Posted by Paweł Wielgus <po...@gmail.com>.
Hi Mead,
yes there are,
just looking at the sun offer, T5440 Server -> 512G.

Best greetings,
Paweł Wielgus.

2008/10/22 Mead Lai <la...@gmail.com>:
> supports 256 GB max file sizes??
> Any system memory requirement? Wanne PC memory larger than 256G?
> There is no pc support so max memory now.
>
> On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <cr...@comcast.net> wrote:
>
>> The Java version of extended VTD-XmL is released and available for
>> download.
>> This version supports 256 GB max file sizes and memory mapped capabilities.
>> The updated documentation is also available for download. In short, you can
>> basically do full XPath query on documents that are bigger than memory
>> space
>> available on your machine.
>>
>> A special thanks to Duane May who provided value suggestions and inputs and
>> helped refine the VTD specs to make this happen.
>>
>> To download the package and the documentation, go to
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
>>
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> BestRegards,
> Mead
> http://yayisoft.com
>
> Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
> religious cult."
>

i

Re: [ANN] VTD-XML extended edition released

Posted by jimmy Zhang <cr...@comcast.net>.
It uses mem-map so the file are not load in memory in case it is too big.
----- Original Message ----- 
From: "Mead Lai" <la...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, October 21, 2008 7:45 PM
Subject: Re: [ANN] VTD-XML extended edition released


> supports 256 GB max file sizes??
> Any system memory requirement? Wanne PC memory larger than 256G?
> There is no pc support so max memory now.
>
> On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <cr...@comcast.net> 
> wrote:
>
>> The Java version of extended VTD-XmL is released and available for
>> download.
>> This version supports 256 GB max file sizes and memory mapped 
>> capabilities.
>> The updated documentation is also available for download. In short, you 
>> can
>> basically do full XPath query on documents that are bigger than memory
>> space
>> available on your machine.
>>
>> A special thanks to Duane May who provided value suggestions and inputs 
>> and
>> helped refine the VTD specs to make this happen.
>>
>> To download the package and the documentation, go to
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
>>
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> -- 
> BestRegards,
> Mead
> http://yayisoft.com
>
> Rita Rudner  - "I wonder if other dogs think poodles are members of a 
> weird
> religious cult."
> 



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


Re: [ANN] VTD-XML extended edition released

Posted by Mead Lai <la...@gmail.com>.
supports 256 GB max file sizes??
Any system memory requirement? Wanne PC memory larger than 256G?
There is no pc support so max memory now.

On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <cr...@comcast.net> wrote:

> The Java version of extended VTD-XmL is released and available for
> download.
> This version supports 256 GB max file sizes and memory mapped capabilities.
> The updated documentation is also available for download. In short, you can
> basically do full XPath query on documents that are bigger than memory
> space
> available on your machine.
>
> A special thanks to Duane May who provided value suggestions and inputs and
> helped refine the VTD specs to make this happen.
>
> To download the package and the documentation, go to
>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
>
>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
BestRegards,
Mead
http://yayisoft.com

Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
religious cult."

[ANN] VTD-XML extended edition released

Posted by jimmy Zhang <cr...@comcast.net>.
The Java version of extended VTD-XmL is released and available for download.
This version supports 256 GB max file sizes and memory mapped capabilities.
The updated documentation is also available for download. In short, you can
basically do full XPath query on documents that are bigger than memory space
available on your machine.

A special thanks to Duane May who provided value suggestions and inputs and
helped refine the VTD specs to make this happen.

To download the package and the documentation, go to
https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261

https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507 



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


Re: xwork injecting parameters into requestScope

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Adam Hardy on 21/10/08 14:12, wrote:
> I have an Action and corresponding JSP form with the property "portfolio".
> 
> In my JSP, I have this JSTL tag test:
> 
> <c:if test="${not empty portfolio and portfolio.id gt 0}"> stuff </c:if>
> 
> which works fine for my purposes. But then when I submit the form and 
> validation fails and myAction.portfolio is not initialized, Struts2 
> injects the portfolio request parameter into the requestAttributes.
> 
> Now my JSP blows up because:
> 
> ${portfolio} = "0"
> 
> and
> 
> ${not empty portfolio} = true
> 
> and then
> 
> ${portfolio.id} ----> javax.servlet.jsp.JspException: 
> javax.el.PropertyNotFoundException: Property 'id' not found on type 
> java.lang.Character
> 
> 
> What influence can I have over this injection behaviour?
> 
> Or perhaps, can I reformulate my test so that I can tell whether my 
> "${portfolio}" is a string or a bean?

Solved the issue by writing a JSTL function to do the checks.

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


Re: xwork injecting parameters into requestScope

Posted by dusty <du...@yahoo.com>.
Can you describe what you are doing in the Action and on the page a little
bit more?

It seems like you are trying to resolve if the portfolio is new or not. 
Where in your action do you load up the portfolio object?  Are you familar
with the Preparable interface for your actions?

What does your form look like?  Are you editing the portfolio or an object
that is related to the portfolio?


Adam Hardy (debian) wrote:
> 
> I have an Action and corresponding JSP form with the property "portfolio".
> 
> In my JSP, I have this JSTL tag test:
> 
> <c:if test="${not empty portfolio and portfolio.id gt 0}"> stuff </c:if>
> 
> which works fine for my purposes. But then when I submit the form and
> validation 
> fails and myAction.portfolio is not initialized, Struts2 injects the
> portfolio 
> request parameter into the requestAttributes.
> 
> Now my JSP blows up because:
> 
> ${portfolio} = "0"
> 
> and
> 
> ${not empty portfolio} = true
> 
> and then
> 
> ${portfolio.id} ----> javax.servlet.jsp.JspException: 
> javax.el.PropertyNotFoundException: Property 'id' not found on type 
> java.lang.Character
> 
> 
> What influence can I have over this injection behaviour?
> 
> Or perhaps, can I reformulate my test so that I can tell whether my 
> "${portfolio}" is a string or a bean?
> 
> Thanks!
> Adam
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/xwork-injecting-parameters-into-requestScope-tp20090024p20102956.html
Sent from the Struts - User mailing list archive at Nabble.com.


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