Author Login
Post Reply
user Digest 21 May 2008 14:11:57 -0000 Issue 8041
Topics (messages 186642 through 186671):
Re: Struts[2] : Checkboxlist Problems
186642 by: Hoying, Ken
186655 by: ravi_eze
Struts 2.0 and RAD 7.0
186643 by: achandra
186644 by: Relph,Brian
186648 by: Jim Kiley
186651 by: Dave Newton
186652 by: Struts Two
Images not showing up when saved(Struts 2 Tomcat, Eclipse)
186645 by: Mark Lester
186647 by: Musachy Barroso
Re: Jsp struts
186646 by: Sapan
186657 by: Antonio Petrelli
Re: Struts 2: After validation fail, how to change the returning result name to other than INPUT?
186649 by: Laurie Harper
Re: Problems with forms field
186650 by: Laurie Harper
Why my emails are rejected as spam!!
186653 by: Struts Two
186658 by: Antonio Petrelli
186665 by: Struts Two
186666 by: Milan Milanovic
186667 by: Antonio Petrelli
s:autocompleter and s:datetimepicker
186654 by: vivek d
Writing valid OGNL
186656 by: ravi_eze
186663 by: Ralf Fischer
186664 by: Dave Newton
integration struts hibernate
186659 by: jamiladah
186660 by: Antonio Petrelli
use hibernate with struts
186661 by: jamiladah
186670 by: Jim Kiley
Re: [Struts 2] Datetimepicker tag Bug ?!
186662 by: Ralf Fischer
[S2] Advice on Handling CLOBs in Struts2
186668 by: Hoying, Ken
[Nb] Problem with fieldvalidator of type fieldexpression
186669 by: Peter Theissen
[Struts 2] Date conversion general bug!
186671 by: Milan Milanovic
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_186642.ezm (zipped)I did not have any errors. I am not sure exactly what I was doing that
caused this not to work, but I reorganized my code in the action class
and was able to make things work.
-----Original Message-----
From: Greg Lindholm [mailto:glindholm@(protected)]
Sent: Tuesday, May 20, 2008 2:37 PM
To: user@(protected)
Subject: Re: Struts[2] : Checkboxlist Problems
Are you getting any errors?
There is a bug in the CheckboxInterceptor where it does not properly
handling arrays of checkboxes when none are selected. It might be
related, but this issue did causes error messages.
I submitted a patch for this issue WW-2339.
https://issues.apache.org/struts/browse/WW-2339
Hoying, Ken-2 wrote:
>
> I have a list of search filters that I am displaying on the page where
> each is a checkboxlist. I am implementing this as such:
>
> <s:iterator value="searchCriteria.filters" status="filterStatus">
> <s:checkboxlist
>
> name="searchCriteria.filterMap['%{fieldName}'].selectedFilters"
> value="%{selectedFilters}"
>
> list="filterItems" listKey="value" listValue="label"/>
</s:iterator>
>
> Everything works great except for one small problem. I do not seem to
> be able to deselect all of the values for a filter. For example, if
> one of my filters is Status and the check box values are Active and
> Inactive
> then:
>
> - I can select both Active and Inactive.
> - I can leave both Active and Inactive deselected.
> - I can default to have Active selected and then deslect it and then
> select Inactive.
> - I CANNOT default to have Active selected and then deselect it.
>
> It appears that if a checkbox was originally set you can change the
> value as long as you change it to some other value. However if I do
> not set the field to any value at all, then it keeps the previous or
> default value.
>
> I am not sure what is occurring here. Does anyone have any ideas on
> how I can overcome this?
>
> Thank you!
> Ken
>
>
--
http://www.nabble.com/Struts-2--%3A--Checkboxlist-Problems-tp17339322p17
347543.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186655.ezm (zipped)
hi,
i solved this problem the following way:
1. created a custom reset interceptor to set the action class field of
checkbox.
2. placed the interceptor just after the scope interceptor (in ur
struts.xml)
when u deselect all the checkboxes then the HTML doesnt submit any values to
the action class and hence the class doesnt update the field value. So, here
we always reset the respective field so the field is updated only iff some
checkbox values are sent by the HTML.
hope this helps.
cheers,
ravi
Hoying, Ken-2 wrote:
>
> I did not have any errors. I am not sure exactly what I was doing that
> caused this not to work, but I reorganized my code in the action class
> and was able to make things work.
>
> -----Original Message-----
> From: Greg Lindholm [mailto:glindholm@(protected)]
> Sent: Tuesday, May 20, 2008 2:37 PM
> To: user@(protected)
> Subject: Re: Struts[2] : Checkboxlist Problems
>
>
> Are you getting any errors?
>
> There is a bug in the CheckboxInterceptor where it does not properly
> handling arrays of checkboxes when none are selected. It might be
> related, but this issue did causes error messages.
>
> I submitted a patch for this issue WW-2339.
> https://issues.apache.org/struts/browse/WW-2339
>
>
>
> Hoying, Ken-2 wrote:
>>
>> I have a list of search filters that I am displaying on the page where
>
>> each is a checkboxlist. I am implementing this as such:
>>
>> <s:iterator value="searchCriteria.filters" status="filterStatus">
>> <s:checkboxlist
>>
>> name="searchCriteria.filterMap['%{fieldName}'].selectedFilters"
>> value="%{selectedFilters}"
>>
>> list="filterItems" listKey="value" listValue="label"/>
> </s:iterator>
>>
>> Everything works great except for one small problem. I do not seem to
>
>> be able to deselect all of the values for a filter. For example, if
>> one of my filters is Status and the check box values are Active and
>> Inactive
>> then:
>>
>> - I can select both Active and Inactive.
>> - I can leave both Active and Inactive deselected.
>> - I can default to have Active selected and then deslect it and then
>> select Inactive.
>> - I CANNOT default to have Active selected and then deselect it.
>>
>> It appears that if a checkbox was originally set you can change the
>> value as long as you change it to some other value. However if I do
>> not set the field to any value at all, then it keeps the previous or
>> default value.
>>
>> I am not sure what is occurring here. Does anyone have any ideas on
>> how I can overcome this?
>>
>> Thank you!
>> Ken
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Struts-2--%3A--Checkboxlist-Problems-tp17339322p17
> 347543.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186643.ezm (zipped)
I have been trying to working on RAD and Struts 2.0. I have tried every
possible thing I could. The very first page works fine, but there after when
I click the submit button it brings the URL back with the .action extension
and throws an error that message couldn't be found. I am keeping it very
simple. Just a hello world example. But it is still not working. I don't
think Struts 2.0 should be that complex to adapt. It is very discouraging. I
am using online tutorials to use package name, keep the jsp files in the
folders etc. I am following guidelines from the tutorials, but it is simply
not working. Can somebody help me and let me know what am I doing wrong?? I
can show you the directory structure which I am using but seems like it is
not even going to the action class. Although when I try to type the action
class in struts.xml, it tells me if I am making a typo mistake in describing
the action class in struts.xml file but when I run it and try writing a
system.out or system.err in the action class or try to set a break point, it
doesn't find it.. It is very disappointing. I don't want to go back to
struts 1.3 but if it doesn't work then seems like I won't have any other
choice.
Thank you
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186644.ezm (zipped)
When you say you are using RAD 7.0, do you mean you are running a Struts2 app on a Websphere Application Server? If so, what version of Websphere are you running?
Can you also post the stack trace for your error messages, along with your struts.xml
Brian Relph
-----Original Message-----
From: achandra [mailto:alokcs@(protected)]
Sent: Tuesday, May 20, 2008 2:14 PM
To: user@(protected)
Subject: Struts 2.0 and RAD 7.0
I have been trying to working on RAD and Struts 2.0. I have tried every possible thing I could. The very first page works fine, but there after when I click the submit button it brings the URL back with the .action extension and throws an error that message couldn't be found. I am keeping it very simple. Just a hello world example. But it is still not working. I don't think Struts 2.0 should be that complex to adapt. It is very discouraging. I am using online tutorials to use package name, keep the jsp files in the folders etc. I am following guidelines from the tutorials, but it is simply not working. Can somebody help me and let me know what am I doing wrong?? I can show you the directory structure which I am using but seems like it is not even going to the action class. Although when I try to type the action class in struts.xml, it tells me if I am making a typo mistake in describing the action class in struts.xml file but when I run it and try writing a system.out or system.err in the action class or try to set a break point, it doesn't find it.. It is very disappointing. I don't want to go back to struts 1.3 but if it doesn't work then seems like I won't have any other choice.
Thank you
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment:
user_186648.ezm (zipped)When you say it "throws an error that message couldn't be found" it sounds
like you are talking about a problem with a <fmt:message> tag or the like.
Please share the code of the 'result' JSP -- does it use any message-type
tags? If so, do you have a messages.properties file in the right location?
jk
On Tue, May 20, 2008 at 3:14 PM, achandra <alokcs@(protected):
>
> I have been trying to working on RAD and Struts 2.0. I have tried every
> possible thing I could. The very first page works fine, but there after
> when
> I click the submit button it brings the URL back with the .action extension
> and throws an error that message couldn't be found. I am keeping it very
> simple. Just a hello world example. But it is still not working. I don't
> think Struts 2.0 should be that complex to adapt. It is very discouraging.
> I
> am using online tutorials to use package name, keep the jsp files in the
> folders etc. I am following guidelines from the tutorials, but it is simply
> not working. Can somebody help me and let me know what am I doing wrong?? I
> can show you the directory structure which I am using but seems like it is
> not even going to the action class. Although when I try to type the action
> class in struts.xml, it tells me if I am making a typo mistake in
> describing
> the action class in struts.xml file but when I run it and try writing a
> system.out or system.err in the action class or try to set a break point,
> it
> doesn't find it.. It is very disappointing. I don't want to go back to
> struts 1.3 but if it doesn't work then seems like I won't have any other
> choice.
> Thank you
> --
> View this message in context:
> http://www.nabble.com/Struts-2.0-and-RAD-7.0-tp17348435p17348435.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_186651.ezm (zipped)You'll have to provide more information; we're running S2.0 on RAD7/WS6
with no issues.
Dave
--- achandra <alokcs@(protected):
> I have been trying to working on RAD and Struts 2.0. I have tried
> every
> possible thing I could. The very first page works fine, but there
> after when
> I click the submit button it brings the URL back with the .action
> extension
> and throws an error that message couldn't be found. I am keeping it
> very
> simple. Just a hello world example. But it is still not working. I
> don't
> think Struts 2.0 should be that complex to adapt. It is very
> discouraging. I
> am using online tutorials to use package name, keep the jsp files in
> the
> folders etc. I am following guidelines from the tutorials, but it is
> simply
> not working. Can somebody help me and let me know what am I doing
> wrong?? I
> can show you the directory structure which I am using but seems like
> it is
> not even going to the action class. Although when I try to type the
> action
> class in struts.xml, it tells me if I am making a typo mistake in
> describing
> the action class in struts.xml file but when I run it and try writing
> a
> system.out or system.err in the action class or try to set a break
> point, it
> doesn't find it.. It is very disappointing. I don't want to go back
> to
> struts 1.3 but if it doesn't work then seems like I won't have any
> other
> choice.
> Thank you
> --
> View this message in context:
> http://www.nabble.com/Struts-2.0-and-RAD-7.0-tp17348435p17348435.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186652.ezm (zipped)I have deployed struts 2.0.11.1 on Websphere V6.1.0.13 using RAD 7.5 (show-case apps, blank.war) everything works fine. So I assume you should not have any problem deploying 2.0.11 on RAD 7 or RSA 7 as long as your server runtime environment has fixpack 7 or more. You also need to set the following custome property for your server through admin console, Go to :"Application servers >=server1 > Web container > Custom Properties" and then create the following custome property with its value set to true[com.ibm.ws.webcontainer.invokefilterscompatibility]. However; if you have all the above setup and you use struts 2.1.1 or 2.1.2 [with form based security enabled] then if you enter any url that ends with ".action" in a newly opened browser, it would fail and you get "page not found error" , I have already opened this as bug
__________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/

Attachment:
user_186645.ezm (zipped)Hello sorry in advance if this is not a struts issue but I guessing
that it is.
Anyways I have some code in an action method that queries a site for
base64 image, takes that image decodes and save it in a file, and then
sends a relative link to that image as part of the results of that
action. The problem is that the image doesn't show as created unless I
refresh the eclipse navigator otherwise it shows a 404 when I try and
access the file. The code is running in tomcat 6.0.13
Regards,
Mark

Attachment:
user_186647.ezm (zipped)The problem is not related to struts, but eclipse. Eclipse won't
"know" about the new file unless your refresh the project. What I do
in these cases, to avoid refreshing the project, is save the resources
on some folder, then create a soft link from inside the eclipse tomcat
deployment folder, to the resources folder.
musachy
On Tue, May 20, 2008 at 3:31 PM, Mark Lester <MarkL@(protected):
> Hello sorry in advance if this is not a struts issue but I guessing
> that it is.
>
> Anyways I have some code in an action method that queries a site for
> base64 image, takes that image decodes and save it in a file, and then
> sends a relative link to that image as part of the results of that
> action. The problem is that the image doesn't show as created unless I
> refresh the eclipse navigator otherwise it shows a 404 when I try and
> access the file. The code is running in tomcat 6.0.13
>
> Regards,
>
> Mark
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_186646.ezm (zipped)Hi,
This is wha I done in my code .
I have messageproperty also.
Code is as follow
my code is as follows
struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- =========================== DynaActionForms
========================== -->
<form-beans>
<form-bean name="kForm"
type="
org.apache.struts.validator.DynaValidatorForm" >
<form-property name="ID" type="
java.lang.Integer"/>
<form-property name="kDescription"
type="
java.lang.String"/>
<form-property name="title"
type="
java.lang.String"/>
</form-bean>
</form-beans>
<action-mappings type="
org.apache.struts.action.ActionMapping">
<action name="kForm"
path="/kAdd"
type="com.riskMngmnt.presentation.k.KDispatchAction"
scope="request"
validate="true"
input="k.add">
<forward name="add" path="k.add"/>
<forward name="view" path="k.view"/>
</action>
<message-resources parameter="/WEB-INF/MessageResourcesK.properties"
null="false"/>
<!-- Validator plugin -->
<plug-in className="
org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-k-rules.xml,/WEB-INF/validation-k.xml"/>
</plug-in>
</struts-config>
My messageresource.properties
# Error messages for Validator framework validations
#-- validation errors
errors.invalid={0} is invalid.
errors.maxlength={0} can not be greater than {1} characters.
errors.minlength={0} can not be less than {1} characters.
errors.range={0} is not in the range {1} through {2}.
errors.required={0} is required.
errors.byte={0} must be an byte.
errors.date={0} is not a date.
errors.double={0} must be an double.
errors.float={0} must be an float.
errors.integer={0} must be an integer.
errors.long={0} must be an long.
errors.short={0} must be an short.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.
#--diplay names
prompt.title = Title
prompt.kDescription = KDescription
validation-k.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation
PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="kForm">
<field property="title"
depends="required">
<arg0 key="prompt.title" />
</field>
<field property="kDescription"
depends="required">
<arg0 key="prompt.kDescription" ></arg0>
</field>
</form>
</formset>
</form-validation>
my KForm.java
import
javax.servlet.http.HttpServletRequest;
import
org.apache.struts.action.ActionErrors;
import
org.apache.struts.action.ActionMapping;
import
org.apache.struts.action.ActionMessage;
import
org.apache.struts.validator.ValidatorForm;
public class KForm extends ValidatorForm {
private String title;
private String kDescription;
public void setTitle(String title)
{
this.title=title;
}
public String getTitle()
{
return title;
}
....
.
.
..
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.title=null;
this.kDescription=null;
}
/**
* Reset all properties to their default values.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
* @return errors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request )
{
System.out.println("validate in in kForm.java");
ActionErrors errors = new ActionErrors();
System.out.println("k form validate method");
if( getTitle() == null || getTitle().length() < 1 )
{
errors.add("title",new ActionMessage("errors.required"));
}
if( getKDescription() == null || getKDescription().length() < 1
)
{
errors.add("kDescription",new
ActionMessage("errors.required"));
}
return errors;
}
}
in main jsp
<html:html locale="true">
<body>
<form action="<%=path %>/k.do?method=save" method="post" name="kForm" >
----
<p>
<html:errors/>
</p>
<input type="button" value="Submit As Draft" onclick="return
validateKForm(this);"/><br></td>
<td valign="top">
Regards
Swapna
:confused::confused:
Antonio Petrelli-3 wrote:
>
> 2008/5/19 Sapan <swapna.khedkar@(protected)>:
>> ???en_US.errors.required??????en_US.errors.required???
>
> Sorry, I think I got it.
> It seems that you have not defined the "errors.required" property in
> your "messageresources.properties", so the <html:errors> tag gets
> confused and prints that stuff.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186657.ezm (zipped)2008/5/20 Sapan <swapna.khedkar@(protected)>:
> This is wha I done in my code .
Yeah, sorry, I found it too.
I think it could be a bug of Struts 1.1 with the <html:html
locale="true"> tag. Can you upgrade it? There's Struts 1.3.8 out
there.
Antonio

Attachment:
user_186649.ezm (zipped)Phan, Hienthuc T wrote:
> Hi,
>
> I have a CustomerAction class. In CustomerAction, I have two methods:
> add and update. I have a CustomerAction-validation.xml to check for
> required fields, etc. My struts.xml looks something like this:
>
> <package name="customer">
> <action name="customer_*"
> class="com.action.CustomerAction" method="{1}">
> <result
> name="create">/customer_create.jsp</result>
> <result
> name="update">/customer_update.jsp</result>
> </action>
> </package>
>
> When the validation fail, I would like it to return to the previous page
> (either cusomer_create.jsp or customer_update.jsp). However, Struts
> returns result = "input" automatically when the validation fail. How do
> I change the result from "input" to either "add" or "update"?
>
> A clunky way to solve this problem is to create two actions. That would
> generate too many classes. Is there a good solution for this problem of
> mine? Thanks.
How do you know which one to return to? There are a few possibilities,
but if the result name is the same as the method name you could do
something like
<action name="customer_*" method="{1}" ...>
<result name="input">/customer_{1}.jsp"/>
<result name="{1}">/customer_{1}.jsp"/>
</action>
(note that I also collapsed your other two results using the same
technique).
L.

Attachment:
user_186650.ezm (zipped)Do you mean adding the getter fixed the problem? The reason I believe
you need it is that for Struts to set, for example, dadosPessoais.nome
it needs to call getDadosPessoais().setNome(value). If you omit the
getter for dadosPessoais, Struts is not able to determine a value for
that property and assumes it needs to create a new object. I suspect, in
this case, that is just creating a new instance of DadosPessoais for
each property it tries to set.
L.
Felipe Lorenz wrote:
> hummm this is not necessary.. i just want do send, not retrieve... but i fix
> the problem... i dont know whats happen, i did create a new project in
> NetBeans... maybe it lost something... i dont know...
>
> But thanks folks...
>
> On Tue, May 20, 2008 at 2:59 AM, Laurie Harper <laurie@(protected):
>
>> Looks like you're missing a getter for dadosPessoais in your action
>> class...
>>
>> L.
>>
>>
>> Felipe Lorenz wrote:
>>
>>> Ok.. i did it... its all right.. but i dont know...
>>>
>>> i will print my code:
>>>
>>> JSP:
>>> <%@(protected)"%>
>>> <%@(protected)" %>
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>> "http://www.w3.org/TR/html4/loose.dtd">
>>> <html>
>>> <head>
>>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>>> <title>JSP Page</title>
>>> </head>
>>> <body>
>>> <s:form action="save_dadosPessoais" method="POST" theme="xhtml">
>>> <s:textfield name="dadosPessoais.nome" theme="xhtml"/>
>>> <s:textfield name="dadosPessoais.cpf" theme="xhtml"/>
>>> <s:textfield name="dadosPessoais.origem" theme="xhtml"/>
>>> <s:submit value="Enviar" theme="xhtml" />
>>> </s:form>
>>> </body>
>>> </html>
>>>
>>> MY STRUTS.XML:
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!DOCTYPE struts PUBLIC
>>> "-//Apache Software Fundation//DTD Struts Configuration 2.0//EN"
>>> "./struts-2.0.dtd">
>>> <struts>
>>> <include file="struts-default.xml" />
>>> <package name="default" extends="struts-default">
>>> <action name="save_dadosPessoais" method="create"
>>> class="br.com.mercur.th.action.DadosPessoaisAction">
>>> <result>/TH_DadosPessoais.jsp</result>
>>> </action>
>>> </package>
>>> </struts>
>>>
>>> ACTION CLASS
>>> public class DadosPessoaisAction
>>> {
>>> private DadosPessoais dadosPessoais;
>>> public String create()
>>> {
>>> System.out.println("DADOS PESSOAIS");
>>> System.out.println(dadosPessoais.getNome());
>>> System.out.println(dadosPessoais.getOrigem());
>>> System.out.println(dadosPessoais.getCpf());
>>>
>>> return ActionSupport.SUCCESS;
>>> }
>>>
>>> public void setDadosPessoais(DadosPessoais dadosPessoais) {
>>> this.dadosPessoais = dadosPessoais;
>>> }
>>> }
>>>
>>> DadosPessoais Class:
>>> public class DadosPessoais
>>> {
>>> private String nome;
>>> private String origem;
>>> private String cpf;
>>> public void setNome(String nome) {
>>> this.nome = nome;
>>> }
>>> public String getNome() {
>>> return nome;
>>> }
>>> public void setOrigem(String origem) {
>>> this.origem = origem;
>>> }
>>> public String getOrigem() {
>>> return origem;
>>> }
>>> public String getCpf() {
>>> return cpf;
>>> }
>>> public void setCpf(String cpf) {
>>> this.cpf = cpf;
>>> }
>>>
>>>
>>> }
>>>
>>>
>>> On Mon, May 19, 2008 at 3:30 PM, Milan Milanovic <
>>> milanmilanovich@(protected)>
>>> wrote:
>>>
>>> Check the names of the fields, they must mach with attributes names in
>>>> action class, and also check that you have correct get/set methods for
>>>> them
>>>> in your action class.
>>>>
>>>> --
>>>> Milan
>>>>
>>>> Jim Kiley <jhkiley@(protected),
>>>>
>>>> It would be much easier for others to help you if you would include
>>>> relevant
>>>> parts of your code, as well as let us know what version of Struts you are
>>>> using.
>>>>
>>>> jk
>>>>
>>>> On Mon, May 19, 2008 at 2:15 PM, Felipe Lorenz
>>>> wrote:
>>>>
>>>> Hi,
>>>>> i did work with struts, and im work with it. But, i dont how, the value
>>>>>
>>>> of
>>>>
>>>>> field are not send to Action class.. for example:
>>>>>
>>>>> My forms have 3 fields.. text.. normal.. simple..
>>>>>
>>>>> so, when i submit this the form only the last filed are set.
>>>>>
>>>>> I put a System.out in my action class, and i see only the last field
>>>>> seted..
>>>>> the other stay NULL...
>>>>>
>>>>> Why?
>>>>>
>>>>>
>>>> --
>>>> Jim Kiley
>>>> Technical Consultant | Summa
>>>> [p] 412.258.3346 [m] 412.445.1729
>>>> http://www.summa-tech.com
>>>>
>>>>
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_186653.ezm (zipped)For any email that sent and is approximately 10 lines, my email is rejected as spam. I can see people posing messages much much longer that the ones I send. I get a line in the failure notice Remote host said: 552 spam score (5.0) exceeded threshold [BODY]
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca

Attachment:
user_186658.ezm (zipped)2008/5/20 Struts Two <strutstwo@(protected)>:
> For any email that sent and is approximately 10 lines, my email is rejected as spam. I can see people posing messages much much longer that the ones I send. I get a line in the failure notice Remote host said: 552 spam score (5.0) exceeded threshold [BODY]
Even GMail treats you as spam :-D
I could be wrong, but maybe your "name" seems like a spam name.
Antonio

Attachment:
user_186665.ezm (zipped)Then what name can be better than "StrutsTwo" for a forum that is used for Struts 2 !!
----- Original Message ----
From: Antonio Petrelli <antonio.petrelli@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 21, 2008 4:17:01 AM
Subject: Re: Why my emails are rejected as spam!!
2008/5/20 Struts Two <strutstwo@(protected)>:
> For any email that sent and is approximately 10 lines, my email is rejected as spam. I can see people posing messages much much longer that the ones I send. I get a line in the failure notice Remote host said: 552 spam score (5.0) exceeded threshold [BODY]
Even GMail treats you as spam :-D
I could be wrong, but maybe your "name" seems like a spam name.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/

Attachment:
user_186666.ezm (zipped)It happened to me to yesterday every time in one thread.
Struts Two <strutstwo@(protected) !!
----- Original Message ----
From: Antonio Petrelli
To: Struts Users Mailing List
Sent: Wednesday, May 21, 2008 4:17:01 AM
Subject: Re: Why my emails are rejected as spam!!
2008/5/20 Struts Two :
> For any email that sent and is approximately 10 lines, my email is rejected as spam. I can see people posing messages much much longer that the ones I send. I get a line in the failure notice Remote host said: 552 spam score (5.0) exceeded threshold [BODY]
Even GMail treats you as spam :-D
I could be wrong, but maybe your "name" seems like a spam name.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/

Attachment:
user_186667.ezm (zipped)2008/5/21 Struts Two <strutstwo@(protected)>:
> Then what name can be better than "StrutsTwo" for a forum that is used for Struts 2 !!
I think that your name will fit best :-D
Antonio

Attachment:
user_186654.ezm (zipped)
I am facing an issue with the s:autocompleter. When I use the theme="ajax",
the autocompleter doesnt work. The reason for me to use this theme is to
make the showDownArrow="false".
This is what i am using - <s:autocompleter theme="ajax" autoComplete="true"
list="clgList" showDownArrow="false" name="customerGroup"
dropdownWidth="700"cssClass="autoInputFieldWidth" /> .
One more thing, is there any chance I could disable ONLY the textfield of
the <s:datetimepicker>. When I try to get the id of the datetimepicker in my
javascript and try to disable it, I get "This object doesn't support the
property".
Thanks in advance.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186656.ezm (zipped)
hi,
is there some standalone application/ some way by which i can validate the
ognl i write? instead of writing them in validation file, compiling
deploying and then discovering there some problem (we only see some non
descriptive error)
cheers,
ravi
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186663.ezm (zipped)Hi ravi,
none that I'm aware of. But it really would be nice to have such a thingy!
As it's all about the stack when it comes to OGNL usage in Struts, I
was thinking about wiring some Unit Tests together which build up a
stack and then run the OGNL Expressions on it. Anyway it's no good, as
there is a lot of manual work involved to duplicate the Expressions
from the JSP to the Tests, and I know no direct way to do this.
Cheers,
-Ralf
On Wed, May 21, 2008 at 6:44 AM, ravi_eze <ravichandrac@(protected):
>
> hi,
>
> is there some standalone application/ some way by which i can validate the
> ognl i write? instead of writing them in validation file, compiling
> deploying and then discovering there some problem (we only see some non
> descriptive error)
>
> cheers,
> ravi
> --
> View this message in context: http://www.nabble.com/Writing-valid-OGNL-tp17355855p17355855.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186664.ezm (zipped)--- ravi_eze <ravichandrac@(protected):
> is there some standalone application/some way by which i can
> validate the ognl i write? instead of writing them in validation
> file, compiling deploying and then discovering there some problem
> (we only see some non descriptive error)
The debug console might get you started.
http://struts.apache.org/2.0.11.1/docs/debugging.html
That said, it's not that hard to create a context and evaluate OGNL
against it, especially if you're just seeking OGNL syntax validation.
Dave

Attachment:
user_186659.ezm (zipped)
salut,
j'ai besoin de votre aide.
j'ai un projet web (c'est pas .war) avec struts .je vais utiliser encore
hibarnate pour acceder a mes donnees.
j'ai cherche sur le net, j'ai trouve un exemple avec un .war que n'est pas
mon ças.j'ai trouve un autre article mais pas complet.
quelqu'un peut m'aider et me dire qu'est ce que je dois configurer(quels
sont les fichiers a modifier)?comment faire? je suis perdu
merci d'avance.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186660.ezm (zipped)Oh dear, please write in English.
Anyway I think I got it (I am Italian, so I can get French easily,
even without knowing it :-D ).
There is a wiki page that can help you:
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
Ciao
Antonio
2008/5/21 jamiladah <dahechjamila@(protected)>:
>
> salut,
> j'ai besoin de votre aide.
> j'ai un projet web (c'est pas .war) avec struts .je vais utiliser encore
> hibarnate pour acceder a mes donnees.
> j'ai cherche sur le net, j'ai trouve un exemple avec un .war que n'est pas
> mon ças.j'ai trouve un autre article mais pas complet.
>
> quelqu'un peut m'aider et me dire qu'est ce que je dois configurer(quels
> sont les fichiers a modifier)?comment faire? je suis perdu
>
> merci d'avance.
> --
> View this message in context: http://www.nabble.com/integration-struts-hibernate-tp17358815p17358815.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186661.ezm (zipped)
hello,
i am building my first application with struts,to connect to my database i
used a jdbc driver.
now i like to use an ORM (hibernate) for the connection to my database.
i don t know how to procede ?what are they the necessary configuration file
to modify?
can someone help me. please
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186670.ezm (zipped)You may find this tutorial to be enlightening:
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
jk
On Wed, May 21, 2008 at 5:14 AM, jamiladah <dahechjamila@(protected):
>
> hello,
>
> i am building my first application with struts,to connect to my database i
> used a jdbc driver.
> now i like to use an ORM (hibernate) for the connection to my database.
>
> i don t know how to procede ?what are they the necessary configuration file
> to modify?
> can someone help me. please
> --
> View this message in context:
> http://www.nabble.com/use-hibernate-with-struts-tp17359204p17359204.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_186662.ezm (zipped)Hi,
as far as I understand the documentation [1], the <datetimepicker />
has no format attribute, so I wonder how your JSP gets compiled. Are
you looking for the displayFormat attribute?
The error from your first mail suggests an error either in the type
conversion or in general with the OGNL expression. Type conversion
concerning dates gets tricky, as the XWorkBasicConverter[2] expects
your date to be formatted in either the short, medium or long format
of the locale set for the request (either the browsers' locale or
hard-wired in struts.properties), or in rfc3339 [3] format. If your
date is not in one of these formats, the conversion obviously fails.
Cheers,
-Ralf
[1] http://struts.apache.org/2.x/docs/datetimepicker.html
[2] http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/util/XWorkBasicConverter.html
[3] http://www.ietf.org/rfc/rfc3339.txt
On Tue, May 20, 2008 at 5:23 PM, Milan Milanovic
<milanmilanovich@(protected):
> I'm not sure if this is a problem. I switched my browser only to US
> locale language and also in regional options and it is the same! I think
> that is some conversion problem from jsp page to Date in version
> 2.0.11.1.
>
> Regards, Milan
>
> Ian Meikle <imeikle@(protected).
> I assume you are not using an US locale in your client browser.
> We use Norwegian and German and it does not work.
>
> Regards
> Ian
>
> CSC Solutions Norge AS
> Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway
> Registered in Norway No: 958 958 455
>
>

Attachment:
user_186668.ezm (zipped)Generally when working with Struts2, we have been loading a domaon
object from the database in our action and then sending then referencing
the properties as needed from the JSP to generate our output.
However, we now what could potentially be a large amount of data stored
in a CLOB. Using the method that we have been using to date, we would
have to place the entire CLOB in a string in the action and then access
it from the JSP. Obviously, we would like to avoid doing that.
I was wondering if anyone else had come across this and how they had
managed to solve it. How do we stream the content of the CLOB?
Thank you!
Ken

Attachment:
user_186669.ezm (zipped)Hello,
I have a certain problem with the fieldvalidator of type
fieldexpression: It is not running at all!
Even if I try the simplest possible case it doesnt work
(I assume that 'false' is a valid OGNL expr):
<field name="registration.city">
<field-validator type="fieldexpression">
<param name="expression"><![CDATA[ false ]]></param>
<message>This is only a test.</message>
</field-validator>
</field>
What can be the reason for it? Im now googling and searching
for quite a long time and I do not have the slightest idea
what the cause might be! Is there any docs how to use the
OGNL Console, which is invoked by ?debug=console ?
Wasnt able to use it in the right way.
All other validators wotk perfectly, such as:
<field name="registration.city">
<field-validator type="requiredstring">
<message>You must enter your city.</message>
</field-validator>
</field>
etc.
Any help appreciated
Best regards
Peter

Attachment:
user_186671.ezm (zipped)Regarding this theme: http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html
I must reply in this way, because when I give reply to the message above struts mailing list returns that my e-mail is SPAM?!
No, the thing is very simple. I have <datetimepicker> in my jsp that is
connected to Date object in my action class, as it is shown in Struts
documentation, but I still got that error. No, I have set displayFormat
attribute like this: displayFormat="dd.MM.yyyy", and it read good from
my Date object in action class, but when I sumbit the form it
generates that ParametersException ERROR. It seems that Struts 2 doesn't know
how to convert String value from <datetimepicker> to Date field. I tried
everything! Even 3 different browsers, multiple locale settings, etc.
I now tried to do the same thing but with <s:textfield>, in this way, I defined in package.properties:
format.date = {0,date,dd.MM.yyyy}
and then I my .jsp page:
<s:text name="format.date" id="model.date">
<s:param name="value" value="date" />
</s:text>
<s:textfield value="%{model.date}" name="date" label="Date" />
And it reads good my date (of type
java.util.Date from action class) field, but when I submit the form I got the same error:
ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'date' on 'class com.myProject.test.MyAction: Error setting expression 'date' with value '[Ljava.lang.String;@(protected)'
I have get/set methods for date, and everything else works fine. What is the problem with Date conversion in this Struts 2.0.1.11 ?
--
Please help!