Dear All,
I want to keep all the numeric in my system with 2 decimal places only. What
is the best way to do it?
I try to get a DecimalFormat instance in the page (as a getter method of the
action class), but it looks like stupid. I think I should miss some places
in the document but I can't fin
On 6/8/07, David Durham, Jr. <[EMAIL PROTECTED]> wrote:
On 6/8/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote:
> Please someone send me the sample code for extending DynaValidatorForm and
> implementing the reset method. I have no idea on how to do it. Please help.
> I'm using struts 1.2.9.
> Than
There appears to me to be an annoying bug or what I believe to be a bug
in the FileUploadInterceptor. On line 311, if the file does not pass
the file validation the error message is retrieved as such:
String errMsg =
getTextMessage("struts.messages.error.file.too.large", new
Object[]{inpu
Hello!
Normally with struts2, I would iterate through a list like:
But now I need to be able to use the headline and summary values in
another tag. The following doesn't work, but I need to get to
something like it:
The problem is that I need to pass the headline and summary val
I will answer myself!!!
The problem was that I was using a wrong ognl expression to access the
iterator element.
The correct expression would be "#tel", not "tel".
Nicolás Pace
On 6/7/07, Nicolás Pace <[EMAIL PROTECTED]> wrote:
Hi everyone!
Description: The problem is that when i debug this we
I really like how I can access the field name and use it in forming the
error message for validations. Such as:
err.msg.requiredstring =$\{getText('label.' + fieldName)} is required.
Where the validation framework passes a variable called "fieldName".
I would like to use this same appraoch for
I had some problems with and the people of this list was very
kind to clear it out. Now I am struggling to make work the way
it should, but I am not having success.
This is the code:
autoridade.sexo is of type String.
Struts version is 2.0.6
I tried replacing %{autoridade.sexo} with F or
Yes.
Looking at the data I´ve found out that in the case of Cargo the highest
codObjeto is 100, while in the case of Orgao codObjeto goes beyond 1500.
I think I´m going to use your solution as well.
But is this the correct behaviour or is it a bug?
Thank you Marco.
Rafael Dittberner
Marco
You will have to take a look at Dojo's documentation. That form is submitted
using dojo.io.bind, and I don't think it supports multiparts
musachy
On 6/8/07, Nicolás Pace <[EMAIL PROTECTED]> wrote:
Hello
When I setup my form with encoding=multiaprt/form-data, the
autocompleter tag stops workin
I encountered a similar issue before as well. I ended up always using the
toString method. (Don't forget to check for null)
What I found was that when the Integers we small (5, 50, 100, ect...) the
select box would match it correctly. However when the id was a larger
Integer such as 1 the
They are both Integer.
Rafael Dittberner
Vincent Lin escreveu:
What is the data type of autoridade.orgao.codObjeto and
autoridade.cargo.codObjeto?
On 6/7/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
This is my code:
Someone please explain to me why in the first one i had to use
toSt
On 6/8/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote:
Please someone send me the sample code for extending DynaValidatorForm and
implementing the reset method. I have no idea on how to do it. Please help.
I'm using struts 1.2.9.
Thank you,
HTML has the concept of a reset button:
http://www.
Vincent Lin wrote:
Do you have this setting in your form?
enctype="multipart/form-data"
As mentioned, submissions via the form in the web page work fine. The issue
is that if someone bypasses the form and POSTs an (invalid) non-multipart
request that puts some random string in the parameter
Hello
When I setup my form with encoding=multiaprt/form-data, the
autocompleter tag stops working.
When i trace the problem, it seems that no parameters are sent.
Any suggestion?
Thanks
Nickoar
-
To unsubscribe, e-mail: [EMAIL
Do you have this setting in your form?
enctype="multipart/form-data"
On 6/8/07, Eric Jain <[EMAIL PROTECTED]> wrote:
I have a form with a FormFile field, which works great, except that when
someone submits a plain string for this field (e.g. a spammer crawling the
site and doing random submiss
I have a form with a FormFile field, which works great, except that when
someone submits a plain string for this field (e.g. a spammer crawling the
site and doing random submissions) I get an ugly stack trace logged... I
wonder is there a way to catch this?
2007-06-08 16:04 org.apache.commons
What type is the variable servlet?extend HttpServlet?
>Hashtable userList =
>(Hashtable)servlet.getServletContext().getAttribute("userList");
in this code,two possible can throw the java.lang.NullPointerException,
1,the variable servlet is null;
2,the returned type is null by method getSer
Hi,
I want object factory in my server startup process but
ObjectFactory.getObjectFactory() returns null. Actually I need this in one
of the my server startup thread.
Please advice.
--
View this message in context:
http://www.nabble.com/How-to-obtain-ObjectFactory-for-custom-requirement-tf3889
2007/6/8, Srinivasula Reddy A , Bangalore <[EMAIL PROTECTED]>:
Hashtable userList = (Hashtable)
servlet.getServletContext().getAttribute("userList");
Probably "servlet" is null...
Antonio
-
To unsubscribe, e-mail: [EMAIL PRO
Hi Community,
In my login action when ever a user logs in I am putting his
user id in hash table like this
Hashtable findUser = new Hashtable();
userList.put("username",username);
servlet.getServletContext().setAttribute("userList",userList);
now I want to r
That's right!!!
Thanks Aram
Aram Mkhitaryan wrote:
>
> Hi,
>
> Try
>
> Best,
> Aram
>
> Aram Mkhitaryan
>
> 52, 25 Lvovyan, Yerevan 375000, Armenia
>
> Mobile: +374 91 518456
> E-mail: [EMAIL PROTECTED]
>
>
--
View this message in context:
http://www.n
Please someone send me the sample code for extending DynaValidatorForm and
implementing the reset method. I have no idea on how to do it. Please help.
I'm using struts 1.2.9.
Thank you,
AM
-Original Message-
From: Ambaris Mohanty [mailto:[EMAIL PROTECTED]
Sent: Friday, June 08, 2007 2:25
The only real change you need is to use the v2.4 DTD in web.xml. There are
some structural changes from DTD for 2.3, so make those, and you're in
business. You might also consider if you are using JSTL 1.0 the upgrade to
1.1 (also a different taglib uri). You might upgrade Struts at the same
ti
Guru I asked my hr currently we are having recruitment in embedded
systems
-Original Message-
From: Srinivasula Reddy A , Bangalore [mailto:[EMAIL PROTECTED]
Sent: Friday, June 08, 2007 2:15 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: How Can I Upgrade My Dev Environment
Yaa
Can anyone send me sample code for extending DynaValidatorForm and
implementing reset() method that will clear the text fields on reset.
Thank you,
AM
Yaa I am able to deploy
-Original Message-
From: Raghupathy, Gurumoorthy
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 08, 2007 1:44 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: How Can I Upgrade My Dev Environment
You already have the environment to work on servlet 2.4 spec .
You already have the environment to work on servlet 2.4 spec .
have you tried to write the code and deploy it to jboss ? if you are not
able to to then send us more details
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: 08 June 2007 08:40
To: Struts Users
Hi,
Try
Best,
Aram
Aram Mkhitaryan
52, 25 Lvovyan, Yerevan 375000, Armenia
Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]
I'm trying to access a variable in stack context form jsp using the struts
tag .
The struts debug tag (in struts2) shows me that the key "request" has this
array/map of values:
{javax.servlet.include.servlet_path=/console/Menu.jsp,
struts.request_uri=/console/View.action, struts.view_uri=/console
OK, the solution with i18nResourceProvider in displaytag.properties works
PERFECT for Struts 1 - but in Struts 2 I have a trouble - it doesn't work.
Any suggestions?
--
View this message in context:
http://www.nabble.com/Displaytag-reading-column-titles-from-application-resources-file-tf431017.h
2007/6/8, Srinivasula Reddy A , Bangalore <[EMAIL PROTECTED]>:
Currently we are using struts 1.2, jdk1.4, JBoss 4, eclipse
3.1 as our development environment. Now we need some listeners for our
application.
How I can upgrade my development environment to support listeners (which
are i
Hi all... this is just a quick note to announce the first beta release
of a new Struts2 plugin, the DataVision plugin.
This plugin provides support for the popular open-source reporting
package DataVision. It can be downloaded from here:
http://code.google.com/p/struts2datavisionplugin
You'
32 matches
Mail list logo