Whats the annotation do you want? Result, Results?
include convention plugin in pom.xml
Vinícius Ferraz Campos Florentino
https://sites.google.com/site/viniciusferraz/
Stefanini IT Solutions - Desenvolvedor Java
CAIXA - Analista Júnior.
(061) 8147-6464
On Sun, Sep 5, 2010 at 2:13 PM, Daniel
*)
at org.apache.struts2.impl.StrutsActionProxy.execute(*
StrutsActionProxy.java:52*)
at
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.serviceAction(*
Jsr168Dispatcher.java:451*)
... 57 more
Vinícius Ferraz Campos Florentino
On Sun, Aug 22, 2010 at 6:45 PM, Vinicius Ferraz
vinicius.fer
the stack trace.
Vinícius Ferraz Campos Florentino
On Sun, Aug 22, 2010 at 12:44 AM, Dave Newton davelnew...@gmail.com wrote:
Do you have a complete stack trace? Is this new behavior under S2.2.1?
Thanks,
Dave
On Sat, Aug 21, 2010 at 5:51 PM, Vinicius Ferraz
vinicius.fer...@gmail.comwrote
Hi, Im using struts2 and eXo.
My JSP contains one form that submit to my action as follow:
%@ taglib prefix=*s* uri=*/struts-tags* %
link rel=*stylesheet* type=*text/css* href=s:url value=*
/styles/styles.css*/
H2Input your name/H2
s:form action=*form-example* method=*POST* portletMode=*view*
in advance for any help/hints.
Regards
--
*Vinicius Cubas Brand
DATAPROM®*
Software para Clientes
Tel.: +55 41 3014-1333
Fax.: +55 41 3014-1201
[EMAIL PROTECTED]
www.dataprom.com
of merge between the
new object with the form data and the object from the database;
What do you do in these situations? What do you recommend? thanks.
Vinicius Cubas Brand
DATAPROM®
Software para Clientes
www.dataprom.com
Hi Marco
I use:
value=%{getText( #Variable+'.string.constant.label.'+OtherVariable)}
try:
s:url id=image
value=%{getText('common.themes.'+#attr+'.THEME.reference.edit.24')}/
regards,
Vinicius
Marco Machmer wrote:
hi folks,
can i use #attr inside the getText()-methode?
here my problem:
s:url
Thanks very much, this is the way!
But I think that the property of submit button should be posted.
Thanks,
Vinicius
Jeromy Evans wrote:
I've read somewhere, but can't find the reference, that you're correct
that dojo doesn't post the value of the submit button with XHR.
Instead, I always
/
s:submit
name=valueButton
theme=ajax
targets=%{target}
value=other/
/s:form
If I click in some or other, I want to get the value by
getValueButton().
But it not works. Any way to do this?
regards,
Vinicius
I had problems with this combination using jdk 1.6, solved when I
changed the tomcat's jdk to 1.5.
Vinicius
Tom Holmes Jr. wrote:
Yes ... this is one of the very first links that came up with my
Google search and I looked at this example in detail.
Unfortunately, I'm not really using JPA
Hi Kushi,
Try to change the server port to 8085 or another number.
Select Runtime Servers right button and select properties.
On tab Connection Change the Server Port and restart the Bundled
Tomcat or try to start.
Vinicius
kushi wrote:
Hello!
I have a problem when i want to start my
Hello there! I'm struggling with this for the last couple of hours,
I'm pretty sure is a dumb thing I forgot.
I'm setting the locale for my JSPs (not using struts yet, this is for
a presentation) and fmt:setLocale refuses to override the default
locale.
I'm using jakarta standards 1.1.2 apache
Hello there! I have a simple question on Tiles usage, hope I get some
advice here.
I know this is not the best usage for it, but we have a kinda of
emergency here...
I have a list that is going to be iterated, and the bean inside it
will be checked, depending on a certain flag a tiles definition
bean:write name=someBean property=title/
Regards
On 11/8/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
Vinicius Carvalho ha scritto:
I have a list that is going to be iterated, and the bean inside it
will be checked, depending on a certain flag a tiles definition will
be used to display the content
Doh, missed a bean:define toScope ...
regards
On 11/8/06, Greg Reddin [EMAIL PROTECTED] wrote:
On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote:
Vinicius Carvalho ha scritto:
I have a list that is going to be iterated, and the bean inside it
will be checked, depending on a certain flag
I know how to save a bean in the session context, doinh this:
request.getSession().setAttribute(beanName,Object);
But i don't find how I save a bean in the Aplicattion or page context!!
Could someone help me??
Thanks
--
At.:
Vinicius Dittgen
Analista Programador - T.I.
www.fcdl
Hello there folks!
I was wondering, is it possible to force struts to not check
request.isUserInRole() when we provide a roles parameter in our
action-mapping declaration?
I need to get it's value, but I get redirect to an unauthorized page
before my execute() happens.
Regards
Hello there! I have a multibox on my jsp, that maps to a String[] id;
property on my formbean. The problem is, when the user submits it, I
get my Array filled, but the first position of the array is filled
with a strange [EMAIL PROTECTED] string. Seems that some weird
object had it toString()
Thanks all, we solved this using hidden fields :)
Thanks
On 7/18/06, Laurie Harper [EMAIL PROTECTED] wrote:
Vinicius Carvalho wrote:
Hello there! I believe this is an HTML/HTTP issue, but...
I have a userForm that some of the fields (selects) when the user is
editing must come as readonly
Hello there! This is more an HTML/JavaScript issue, but I hope someone
has the answer :)
I've been using HTML for a long time, but today I've just found out
something stupid that I've never cared about, reset on a form does not
clean it, but restores to the original state ...
Ok, you can laugh
Hello there! I believe this is an HTML/HTTP issue, but...
I have a userForm that some of the fields (selects) when the user is
editing must come as readonly (disabled). Well, that's almost ok,
because I need that data on the action called by the form, and those
values are not passed to the
of the URI, ValidatorForm uses the key of the
form name.
Did you recently upgrade Struts or the Validator?
Vinicius Carvalho [EMAIL PROTECTED] wrote: I did a deeper look on my project,
enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my
Well, I've just quit the validation on strtuts (based on
commons-validator). So I've decided to use dumb manual validation.
Well problem is, I still can't get one of my forms to validate!
Here´ my struts-config:
form-beans
form-bean name=cadastrarVotanteForm
me this? Both form extend ActionForm and both actions
extend a common action.
Vinicius, I think you need to refer to my previous email: ActionForm does not
validate. You need to extend from ValidatorActionForm or ValidatorForm. The
first valdiates based on URI, the second on the form name
but ActionForm). Remember, the method
signature must match YOUR version of struts.
Are there any errors in your log files that might shed some light on this?
Regards,
David
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 12:34 PM
To: Struts
Hello there! I'm trying to use form validation (It was working, but
somehow, I messed something and it quit working). Here are my files:
struts-config.xml
form-beans
form-bean name=userForm type=com.acme.UserForm/form-bean
/form-beans
action path=/register scope=request
I did a deeper look on my project, enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my validate method on my class (gave up on validation using
xml) does not even get called...
Any ideas?
Regards
On 7/3/06, Vinicius Carvalho [EMAIL
forward name=failure
path=/invoicelist.do/forward
/action
And on my action:
String roles[] = mapping.getRoleNames();
Problem is that roles has a zero size array.
What have I done wrong here?
Best Regards
On 6/28/06, Paul Benedict [EMAIL PROTECTED] wrote:
Vinicius
Hello there! I know this kind of question has been very very
discussed. But I've been away from struts for a while.
I need to create two types of actions, one that anyone can access and
a secure one, based solely on user's roles.
Here's what I've come in mind:
public abstract class BaseAction
Hello there! I'm having a strange problem with my struts app (1.2.9),
it's been a long time since the last time I've used struts (being in
the Swing world for a while now).
The application launches an error on startup:
[java] SEVERE: Parsing error processing resource path
DOO!! Thanks man, I'd never find this :)
On 6/26/06, David Friedman [EMAIL PROTECTED] wrote:
Vinicius,
Your struts-config.xml file is incorrect. In your Actionmapping is
incorrect. You have:
action path=/votar scope=request validate=true
Em Qui 09 Mar 2006 06:41, Antonio Petrelli escreveu:
vinicius ha scritto:
2) Is your tiles-defs.xml file in the right place?
Yes, in agreement with struts-config.xml:
et-property property=definitions-config
value=/conf/tiles-defs.xml /
This is a pretty strange
Antonio, but an ActionForward like iam doing, i don't have much
control but it would have to work! ??
and if use an Action, what type of class I have to use if I just want to do a
forward??
--
At.:
Vinicius Dittgen
Analista Programador - T.I.
www.fcdl-rs.com.br
---
--
At.:
Vinicius Dittgen
Analista Programador - T.I.
www.fcdl-rs.com.br
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Em Qua 08 Mar 2006 14:15, Greg Reddin escreveu:
On Mar 8, 2006, at 10:49 AM, Joe Germuska wrote:
At 10:36 AM -0600 3/8/06, Greg Reddin wrote:
On Mar 8, 2006, at 7:14 AM, vinicius wrote:
My forward and action:
forward
name=institucional
path=/Institucional.do
java.io.FileNotFoundException: /home/vinicius/Projetos/novo
Portal/workspace/teste/work/org/apache/jsp/index_jsp.java (No such file or
directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.init(FileOutputStream.java:179)
java.io.FileOutputStream.init
)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
root cause
java.io.FileNotFoundException: /home/vinicius/Projetos/novo
Portal/workspace/portal/work/org/apache/jsp/index_jsp.java
Sorry for the OT. But since they're kinda related ...
Does velocity provides a way to fill gaps on my variables? Translating...
I have a pojo car, which has ID and Name Id must have size 6 with zero
left padd, and Name 15 with with white spaces padding. Now let's suppose
I have:
Car beetle = new
displayed twice ...
I've got on a dead end. How can I combine ValidatorForm errors + my
custom errors messages?
This issue is causing a really big problem.
Best regards
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Hello there! Which one is the name of the property that validator form
saves its errors? I tried everthing. I can't use html:errors/ cause
diferent parts of screen show diferent errrors types.
Here's what I've tried:
logic:messagesPresent message=false
property=org.apache.struts.action.ERROR
I was wondering... I have this configuration on my web.xml:
security-constraint
web-resource-collection
web-resource-nameActions/web-resource-name
descriptionActions/description
url-pattern*.do/url-pattern
http-methodPOST/http-method
Hello there! I've always used the html:options with the collection
attribute, so I had a separate bean with the collection. But now I'd
like to have that collection on my form bean cuz it'll be stored on the
session, and I have a utility filter that always remove my formbeans
stored on the
Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao The limitePreAutorizacao to set.
wo_shi_ni_ba_ba wrote:
Is there a way to chain two Actions together?
a lot of times I found that I need to have Action B
that needs to do something then do Action C. What is
the best practice here?
thanks
__
Do you Yahoo!?
Yahoo! Small Business - Try our new
Well, I know it's not the right list, but since it's very close related
and struts list is much more active.
Does anyone has a good tutorial on that? I was told to use Converters to
assemble my Pojos from my formbeans but most of the time the types
doesn't match so BeanUtils.copyProperties()
Vinicius Caldeira Carvalho wrote:
Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao
starts up? If
not configure logging for debug and see if you can see it trying to call
the validator.
Niall
- Original Message -
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 6:28 PM
Vinicius Caldeira Carvalho wrote:
Hello there! I'm using
with that?
Thanks
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello there! I have a form with a nested object and I'm using struts
nested tags to display it.
One of the properties of the nested pojo is a checkbox. Now, handling
checkboxes with struts is already a pain, and I figured that nested
checkboxes are even worse.
Here's the deal. If the user
Hubert Rabago wrote:
In order to detect boxes that are unchecked, your form should set the
corresponding property's value to false in its reset() method. See
http://struts.apache.org/userGuide/struts-html.html#checkbox .
hth,
Hubert
On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho
disabled=%myBean.isEnable%/
no errors thrown but It does nothing, it doesn't even outputs the
disabled on checkbox html tag.
Another desperate try:
nested:checkbox property=status value=S disabled=isEnable/
Same thing as above.
Can't struts handle checkbox propertly???
Vinicius Carvalho
Squadra
Hi there. I have a nested object where one of its properties is a string
representing on|off. When converting it to a form I'm using a
nested:checkbox as shown:
nested:checkbox property=state/
Problem is, it should be checked when it's on, and unchecked when off,
and it's not working. How can
Well, this is kinda off topic, but I thought that maybe some of you may
ran into this problem.
I have a nested text field. It's name is : destiny[0].airShip.name
I need to use a javascript function to get this value. But
document.forms[0].destiny[0].airShip.name will not work, which seems
Hi there. I can't get validator to work (although I've done this before)
I know I'm missing something.
Here's my configuration files:
struts-config:
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,
How can I nest a collection inside another?
Like I have a collection of products each product has a collection of
modules, when trying to use
nested:iterate property=products
//iterate through request modules collection containing name and
idvalue of each module
logic:iterate name=modules
Hi there I checked the tld for nested-el and it shows that the property
onChange has the rtexprvalue is set to true.
But I try to put some expression language value in there and it's not
working:
nested:iterate . indexId=idx
nested-el:select onchange=changeProduct($idx)
it's printing
Hi there!
I have a collection of beans, and this collection is set to the request.
I'd like to retreive only the first object of the collection (later on
I'll iterate over it completely) How can I do this? My Collection is a List.
I tried c:set var=bean value=${collection.get(0)}
and also c:set
Hi there! I have a dispatch action that receives a forward parameter and
I need to find the approprieate path for it. Since this action is used
by a lot of scenarios, It's not desirable to be setting new forwards for
each new scenario that uses it (would be to confusing the struts-config)
and
Hi there. Correct if I'm wrong, validator returns to the input jsp after
a validation fails right?
Now if my jsp was called by an action that receives parameters throught
the request, how can I handle this?
Imagine this flow:
Search Action (receives parameters on the request) - forwards to jsp
Hi there I'm using struts-el to solve some of my indexed problems.
Inb my action I have a collection of beans, assume this beans have a
property of parentBean which has a name:
bean.getParent().getName() would retreive what I want.
on my jsp I have:
html-el:form
html-el:select property=idBean
Hi there!
I have a html:options collection where the beans have a deep hierarchy.
I'd like to set the labelproperty of my html:options to one of the
bean's property like
mybean.getCustomer().getParent().getName();
how can I do this with html:options. Does it suport expression language?
Thanks
Hi there! I often find myself writing scriptlet due to struts tags or my
misunderstanding about it.
Let's suppose I have an action that retreives information in a user bean.
My jsp has an account form-bean
and one of the properties is the userID (a hidden value)
I always end up doing this:
Bill Siggelkow wrote:
If you specify the form in the action you don't need to use the
scriptlet -- Struts will retrieve and display the value for you.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I often find myself writing scriptlet due to struts tags or
my misunderstanding
Wendy Smoak wrote:
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
Not possible.
Not likely. ;)
The form hold values that do not come from a database, I'm
not talking about an update where we assemble the form from a dto class.
This is an insert form, so no values filled, only
the user's input if
the form fails validation. (The user could have modified the value that was
originally displayed, and that change will be lost.)
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
I have the caller action having the name=myform
inside it I have this code:
myform.setUserId
Wendy Smoak wrote:
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
code
Proponente proponente = delegate.findProponente(id);
CadastrarReservaProspeccaoForm reservaForm =
(CadastrarReservaProspeccaoForm)form;
reservaForm.setIdProponente(proponente.getId());
/code
As you can see I'm using
Wendy Smoak wrote:
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
I have two actions cuz:
The first one is triggered after the user clicks in a link from a page
that displays a list of prospects.
so it find the prospect attributes and then sets it for the form in the
next page. got
Hi there! I'm trying to make my validator projetct work on oc4j (oracle
10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the
application runs it complains about some attributes being used but not
declared: XML-0149: (Error) Element 'arg0' used
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator
that caused this problem.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my
an external IDE? / Manually
Regards
Duncan Mills
Vinicius Caldeira Carvalho wrote:
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator
that caused this problem.
-Bill
select.
My big question is: On my step bean, I have the property
idUnidadeDuracaoFaseProj, how do I make it get selected on the options???
Thanks
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Thompson Marzagão wrote:
Caro Vinicius,
Your java code is fine. But you got confused on the struts tags.
If you want to display ALL the messages you have, (that's probably
what you need) one under the other, separated by br's, you would use:
html:messages id=message message=true
bean:write name
, but how to propagate it to the delete action
and then to the jsp again?
request.setAttribute(request.getAttribute(criteria),criteria); seems
pretty odd to me.
Thanks all
Viniucius
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Hi there!
I have the following problem:
My form offers the ability to a user select from some categories, let's
say first grade, second grade
on the next step user selects subjects for each one:
first grade:
MathEnglishScience
second grade:
MathEnglish History
As you can see, a
, or creating arrays of those properties would be a better
solution? Also, does BeanUtils transverse the object graph to copy it to
a DTO?
Thanks all
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Freddy Villalba A. wrote:
Well guys, although on the same direction you are pointing to, I do believe
though that the more framework-independent the solution is, the better. So,
my thought:
Why not have a XML descriptor where you can explicitly define your wizards?
In that way:
(1) No matter where
Erik Weber wrote:
Vinicius Carvalho wrote:
Freddy Villalba A. wrote:
Well guys, although on the same direction you are pointing to, I do
believe
though that the more framework-independent the solution is, the
better. So,
my thought:
Why not have a XML descriptor where you can explicitly define
David G. Friedman wrote:
I haven't used the validator in a while but I have a 3 questions for you:
1. If, as you say, the Javascript tag isn't being enclosed in
script../script tags, then you need to verify that your validation file
is loaded AND that you have the correct form name in your
irc channel ever: #funkycodemonkey at irc.darkmyst.org.
Cheers,
Daniel Silva.
--- Gabriel França Campolina [EMAIL PROTECTED] wrote:
Olá Vinicius,
Poste o seu mapeamento de suas action no struts-config, e o mapeamento
dos seus form, para que eu possa analizar? Verifique o log gerado pelo
seu
footer.
Where did I miss?
Thanks
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
The Struts supports different resource bundle in the validation.xml?
The dtd http://jakarta.apache.org/commons/dtds/validator_1_1.dtd allows
the bundle attribute to the msg and arg tags, but the validator ignore this
attribute.
Marcus
Hello ,
I´m brazilian guy and I don´t speak english very well, then,
sorry for language mistakes. I saw the message of David Graham about
bundle attribute in struts validator at
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06445.htm
l
http://www.mail-archive.com/[EMAIL
82 matches
Mail list logo