Re: How to set global date format?

2008-09-20 Thread Struts2 Fan
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: > >

[S2] Type Validation Error Message

2007-08-15 Thread Struts2 Fan
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

Re: struts2 ajax jsps

2007-08-15 Thread Struts2 Fan
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

Re: struts2 ajax jsps

2007-08-15 Thread Struts2 Fan
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

Re: struts2 ajax jsps

2007-08-14 Thread Struts2 Fan
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

Re: struts2 ajax jsps

2007-08-13 Thread Struts2 Fan
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

Re: how to Display a chart created by jfreechart-plugin in a jsp?

2007-08-03 Thread Struts2 Fan
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

how to Display a chart created by jfreechart-plugin in a jsp?

2007-08-03 Thread Struts2 Fan
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

How to use JFreeChartPlugin in tag

2007-08-03 Thread Struts2 Fan
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

Re: Where does /struts look?

2007-08-02 Thread Struts2 Fan
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

Re: CSS / JavaScript menu libraries for Struts 2 Showcase application

2007-08-02 Thread Struts2 Fan
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

Re: Where does /struts look?

2007-08-01 Thread Struts2 Fan
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

Where does /struts look?

2007-08-01 Thread Struts2 Fan
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

[S2] How to download a file from a hyperlink

2007-07-11 Thread Struts2 Fan
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

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
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

When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
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

Re: s:checkbox and generate

2007-05-15 Thread Struts2 Fan
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.

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
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

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
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

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
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. ---

[S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
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

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Struts2 Fan
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

[S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Struts2 Fan
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

[S2.0.6]Double property sent from action to jsp is wrong in locale "tr"

2007-05-03 Thread Struts2 Fan
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

Re: [S2] How to change "Invalid field value for field" message in tr

2007-05-03 Thread Struts2 Fan
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

[S2] How to change "Invalid field value for field" message in tr

2007-05-03 Thread Struts2 Fan
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

[S2] Type Conversion Problem in documentation

2007-04-26 Thread Struts2 Fan
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

[S2] How to use a bundle message in a validation

2007-02-04 Thread Struts2 Fan
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

will validation include custom error tag in the next releases?

2007-02-03 Thread Struts2 Fan
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

Re: How to create a using the struts.properties file

2007-02-02 Thread Struts2 Fan
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

Re: How to create a using the struts.properties file

2007-02-02 Thread Struts2 Fan
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

How to create a using the struts.properties file

2007-02-02 Thread Struts2 Fan
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...

s:combobox example is not running properly, and puts a "amp;" after & character between params

2007-02-02 Thread Struts2 Fan
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

Validation Message including Image

2007-02-02 Thread Struts2 Fan
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,

Re: Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan
I want to get it in Struts 2 and How can I get the request?

Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan
Hi community, How can I get the client's ip address on the action's execute method? Thanks...

Is it possible to join Struts Team?

2007-01-30 Thread Struts2 Fan
Hi, I just want to know if it is possible to join Struts2 Team. If (possible) { how(); }else if( !possible){ willItBePossible(); }

Re: [S2] Inner Tag Syntax

2007-01-29 Thread Struts2 Fan
Wonderful Dave. Its working " I am glad that you remembered # character :) Thank you so much.

[S2] Inner Tag Syntax

2007-01-29 Thread Struts2 Fan
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