Isn't it too difficult to deal with dates and decimal numbers with Struts 2.
Maybe it is the lack of documentation, I don't know.
Chris Pratt wrote:
>
> Try using
> (*Chris*)
>
> On Sun, Sep 14, 2008 at 6:20 AM, Struts2 Fan <[EMAIL PROTECTED]> wrote:
>
>
When there is an integer type and the user writes non string value, an error
message is displayed automaticly. "Invalid field value for field "xxx.yyy"
I want to make this message localized. I posted a message before. But I
don't want to write bundles for all the integer, double and date fields in
ink there was a discussion from Matt about this (appfuse using html
> extensions) a while back, you might want to check the archives. On the
> s2 side, there are options, but I'm not sure there is an easy solution
> for using .html as an extension.
>
> /Ian
>
> Str
quot;.action"
> to ".html", so s2 is looking for an action called TabContainer.
>
> /Ian
> Struts2 Fan wrote:
>> I met the same error, too.
>>
>> I have just a simple jsp
>>
>> start of simple.jsp
>> <%@ include file="/com
me TabContainer.
>
> Seems to suggest that you may have changed the extension from ".action"
> to ".html", so s2 is looking for an action called TabContainer.
>
> /Ian
> Struts2 Fan wrote:
>> I met the same error, too.
>>
>> I have just a simp
I met the same error, too.
I have just a simple jsp
start of simple.jsp
<%@ include file="/common/taglibs.jsp" %>
http://www.nabble.com/file/p12139503/struts_error.jpg
This is the right pane
end of
Thanks for the reply but there must be an easier way. If thats the way the
plugin will not be easy to use.
Amit Sharma-10 wrote:
>
> HI
>
> You can store the image created by jfreechart at some temporary location,
> and then get the image from this location while displaying.
>
>
--
View th
Hi all,
http://struts.apache.org/2.x/docs/jfreechart-plugin.html
In this page it just gives an example to make the action return a chart. My
question is how can I display it on a part of a jsp?
Any help will be appreciated...
--
View this message in context:
http://www.nabble.com/how-to-Disp
Hi all,
I am trying to put a JFreeChart in a tag
---jsp file---
...
Initial Content
...
---eof---
/TestChart.html displays correctly but when I try to put it in a tag
it displays weird characters.
http://www.nabble.com/file/p11978932/message.jpg
Any thoughts?
--
View this message in
No I am using Jetty and I have no application context.
As I said before I can see all the js files except /struts/dojo/dojo.js
Musachy Barroso wrote:
>
> I think you are missing your application context:
>
> http://localhost:8080/myapp/struts/dojo/dojo.js
>
> musachy
>
>
--
View this mess
Appfuse uses struts-menu
http://struts-menu.sourceforge.net/
James Holmes-2 wrote:
>
> Anyone know what Matt is using for AppFuse.org?
>
> Is that the type of menu people would like to see?
>
>
--
View this message in context:
http://www.nabble.com/CSS---JavaScript-menu-libraries-for-Str
Ok so When I put a it creates some js scripts such as
the below.
when I write http://localhost:8080/struts/dojo/dojo.js on the address bar It
shows an empty page. But the other 3 js files can be seen properly.
I looked with firebug, too. It cannot display "/struts/dojo/dojo.js"
Any though
Hi all,
I am using struts2.0.9 and trying to use s:div tag. I am looking at the
showcase demo. It works well. But in my project it cannot find this file. I
put tag.
I just wonder where is the file in the file system?
http://localhost:8080/struts2-showcase/struts/dojo/dojo.js
Thanks...
--
Vi
Hi all,
I searched the archieves but couldn't find the answer for S2. I just want
the download a file from a hyperlink but the type is not important.
here is the part of the struts.xml
???
inputStream
???
409
I forgot to mention something. I implemented Preparable interface. And in
prepare method I can get the order.id from request. But I don't want to get
the value from getRequest().getParameter("order.id") to create the bean and
put it again on the value stack. I expect it to populate order bean agai
Hi all,
I have this problem since I started using struts 2 and I still cannot find
the solution. Please help me. :)
Note : I didn't write all the codes.
I have a form.
<%-- order is a property in orderItem bean--%>
Here orderItem.quanti
use theme="simple" it only puts the controls.
--
View this message in context:
http://www.nabble.com/s%3Acheckbox-and-generate-%3Ctd%3E%3Ctr%3E-tf3757613.html#a10620254
Sent from the Struts - User mailing list archive at Nabble.com.
in the prepare() method the value of the doesn't exist too. It
gets null value.
Dave I hope I explained it well this time.
Thanks anyway.
--
View this message in context:
http://www.nabble.com/-S2-Dynamic-List-dissappears-when-validation-fails-tf3726002.html#a10435496
Sent from the Struts
Ok :) I will try to be more specific.
I have a , , on the jsp. When submit is
clicked, it goes to the action and populates the list and every record in
the list puts a textbox on the jsp according to the selected .
When the list is populated the user enters the values in the jsp and presses
t
I just wonder it is only me needs this kind of dynamic stuff :)
--
View this message in context:
http://www.nabble.com/-S2-Dynamic-List-dissappears-when-validation-fails-tf3726002.html#a10433917
Sent from the Struts - User mailing list archive at Nabble.com.
---
Hi all,
I have a and in the jsp. When is clicked a
list is put below ( list) according to the value in the
. The values in the are all have to be not-null so
there is validation for this object.
Here is the problem, when the validation fails, as expected the action
cannot be reached so the
Ok I created the issue
https://issues.apache.org/struts/browse/WW-1915
Musachy Barroso wrote:
>
> If you create an issue here:
>
> https://issues.apache.org/struts/
>
> it probably will. Thanks for reporting it.
>
> musachy
>
> On 5/7/07, Struts2 Fan <[EMA
Hi all,
I checked out the struts2 source codes and run struts2-showcase app but
/struts2-showcase/filedownload/download.action is not working. It gives the
following error.
Can not find a java.io.InputStream with the name [inputStream] in the
invocation stack. Check the tag specified for this
a
Hi all,
I have a problem with double values. In Turkish the doubles are written as
3,5. (7 / 2 = 3,5)
When I insert a value 3,5 to a double textfield, It gets it right and sends
action the right double value. But when it goes back from action to jsp, it
turns it to 3.5 and writes 3.5 to the relat
Yes I checked them. I didn't write any validation for these fields. Struts 2
controls double, int, date fields and if they are not valid it writes the
message "Invalid field value for field "property.intValue" . I couldn't find
where the message is defined. So I couldn't write the message for Turk
Hi all,
When a form is submitted if there is an integer value and the user enters a
non-integer value, it gives the error "Invalid field value for field .."
I want to define it for locale tr
I just couldn't find where to create a new file or where to add the bundles
for them.
Thanks in advan
Hi all,
I have a problem with this type-conversion thing.
http://struts.apache.org/2.x/docs/type-conversion.html
I am trying to dynamically fill a table. I have a bean
Person and Person has "List".
What I did - step by step.
1 - I defined "List houseList" in the PersonAction class. (Also
G
Hi all,
I put the message on the right hand side of the tag with writing my own
theme. (Thanks for all)
But i cannot put the tag on the message.
struts.properties
errorage=
myAction-validation.xml
13
19
It writes "errorage" on the page n
Hi all,
I really don't like the position of the validation messages. And I
want to use theme="simple" tags always.
So I wonder if we can have the opportunity to have a validation
message such below.
I want to define a validation for Age field as it is an example on the site.
But if it is an
Sorry but I think I could not explain what I want
I want to create a using a key and a value List which will be get
from struts.properties file.
If you can give me a sample of struts.properties file (how to write the
values and keys on this file) and example, I would appreciate.
Thanks for you
ERROR [jsp]: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list': The requested list key '' could not be resolved
as a collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldE
Hi I want to use the using the struts.properties file
struts.properties file
country.values = Italy,Holland
country.keys = 1,2
---
but requires list attribute. How can I solve this problem?
Thanks...
This example in http://struts.apache.org/2.x/docs/combobox.html is not
running properly in struts2.0.1
---
nextProblem is the url below is like that --->
myAction.action?myId=10&myName=name&mySurname=surname
Hi all,
I wonder if we can put the validation message whereever we want for each
input field?
For Example --> I want to put a validation message including an image on
the right side of the input tag.
Thanks for attention,
I want to get it in Struts 2 and How can I get the request?
Hi community,
How can I get the client's ip address on the action's execute method?
Thanks...
Hi,
I just want to know if it is possible to join Struts2 Team.
If (possible) {
how();
}else if( !possible){
willItBePossible();
}
Wonderful Dave. Its working
"
I am glad that you remembered # character :)
Thank you so much.
Hi Struts2 Users,
I have a question.
"
title=""/>
Here I used iterator tag and for the s:param's value (it is currently 10
above) I want to put the id property of the bean. (The bean has the property
id.) How can I put it there? cannot be accepted
there.
Thanks
39 matches
Mail list logo