Re: datetimepicker tag

2007-10-15 Thread MLENEVEUT
In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin. So you need to include <%@ taglib uri="/struts-dojo-tags" prefix="sx"%> and and call : Michaël dipti RealSoftInc <[EMAIL PROTECTED]> 16/10/2007 08:09 Veuillez répondre à "Struts Users Mailing List" A user@struts.

Re: datetimepicker tag

2007-10-15 Thread dipti RealSoftInc
I m using Struts2 and the tag which m using is: and regarding the taglib declaration it is not declared in it hence it is giving the exception: No tag "datetimepicker" defined in tag library imported with prefix "s".. Struts2 does not support datetimepicker?? or some other reason.. please reply b

RE: File Upload using Struts2

2007-10-15 Thread Rajagopal_Yendluri
How can I get the actual file name which I browsed? -Original Message- From: Raghuveer Rawat [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 10:31 AM To: Struts Users Mailing List Subject: Re: File Upload using Struts2 Thanks Dave for reply.. I have no clue what is happening...

RE: File Upload using Struts2

2007-10-15 Thread Rajagopal_Yendluri
Hi Raghu, There should be no problem with the configuration, you have to set the "enctype" Here is my code: JSP Action File f = new File("C:\\Tomcat 6.0\\abcd.jpeg"); FileUtils.copyFile(getMyFile(), f); Find out where is the

Re: File Upload using Struts2

2007-10-15 Thread Raghuveer Rawat
Thanks Dave for reply.. I have no clue what is happening...I can see below statement in log.. Content-Type not allowed: myPhoto "upload_460c03b6_115a6ef087d__8000_.tmp" image/jpeg I have configured filters like below in web.xml.. I don't have context clean-up filter. Where should I place

[S2] Action-specific validate method?

2007-10-15 Thread ironic
I have a class that services many actions. For each action that needs validation I have a corresponding Class-action-validation.xml, which takes care of the simple validation. However, I have a case where two actions need more complex validation (handled in Struts 1 by validwhen and indexedpropert

S:property converts string to rounded int

2007-10-15 Thread Sekhar, Raja
Hi Group I am having a small issue with . say if mtm = "215667.20" then from the JSP I get a value of 215667.2, similarly if mtm = "0.00" I get a value of 0 from the rendered jsp. How do I

Re: Where to code getting user principal in struts based project

2007-10-15 Thread Tuyen Dinh Van
Hi, I just guess your problem. If you have used struts 2.x, you can easily get credential information via Action POJO. In your case, creating a new Action named LoginAction with 2 properties username, password, then create a new User class. In the LoginAction, get username and password passed in U

Conversion error messing up validation messages

2007-10-15 Thread stanlick
The ActionContext class contains a Map of field/value pairs for invalid conversions. The messages are mucking up the HTML validation messages and when I clear them to solve that problem it blows away the entered value "as invalid as it might be" so it's not restored when the web page is represente

Re: File Upload using Struts2

2007-10-15 Thread Dave Newton
In general it's a good idea to include things like what is actually happening: what symptoms (besides "the file isn't uploading" :) are there? Is there anything in the logs? Are you including the context cleanup filter in your web.xml? d. --- Raghuveer Rawat <[EMAIL PROTECTED]> wrote: > Hi, I a

Fwd: File Upload using Struts2

2007-10-15 Thread Raghuveer Rawat
Hi, I am new to sturts2. I am trying to upload a jpg image using Struts2 but no luck till now. It will be great if someone could help me in moving further. I am using Struts 2.0.8 and i have commons-fileupload-1.2.jar and commons-io-1.3.2.jar in classpath I put debug statement in setter methods.

File Upload using Struts2

2007-10-15 Thread Raghuveer Rawat
Hi, I am trying to upload a jpg image using Struts2 but no luck till now. It will be great if someone could help me in moving further. I am using Struts 2.0.8 and i have commons-fileupload-1.2.jar and commons-io-1.3.2.jar in classpath My code looks like below. MyPhoto.jsp Action class: MyP

Re: Why does update action fire on load

2007-10-15 Thread Laurie Harper
zul;jami wrote: I am using struts2+spring+jpa+ajax+sitemesh WHile onload only execute method should be called, but update is also called.Why this is my struts.xml login.jsp login.jsp /pages/dashboard_main.jsp /pages/dashboard.jsp This is just a g

Re: Bookmarking functionality in struts

2007-10-15 Thread Laurie Harper
You could also consider using container managed security, which handles this use case transparently, or one of a number of existing authentication frameworks (e.g. Spring Security) which can also take care of it. Basically, the exact solution depends on your requirements, particularly with re

Re: datetimepicker tag

2007-10-15 Thread Laurie Harper
dipti RealSoftInc wrote: hello, I am using struts 2.0.1 and want to use datetimepicker tag... but it is giving an exception that it is not defined in the tld file i.e struts-tag.tld please help me out... What version of Struts are you using? What does your taglib declaration look like? An

Re: Dynamic Layout Checkbox - how to check automatically

2007-10-15 Thread Laurie Harper
Is layout:checkboxes from the Struts Layout project, or something else? I would suggest chceking the documentation for the originating taglib, but my first guess would be that you need property="locationList" instead of property="location" based on what you describe below. L. jeniclement wrot

Where to code getting user principal in struts based project

2007-10-15 Thread Zhang, Larry (L.)
In my Struts based J2EE application, I need to get user's login information (user principal), and based on the login id, I will create the user object and then put it into the session. I am wondering where is the best place to put this code in. I read some info and it sounds like I should put this

Re: [s2] select tag not setting parameter

2007-10-15 Thread Kevin Wade
You, Marcos, (and Laurie) were right: there was not a full list of values aside from the county names in the list. Each entry in the list looked something like this: ORANGE So the option value was always empty. The trick for me was to set the listKey parameter to "name", which contained t

Re: Bookmarking functionality in struts

2007-10-15 Thread Jim Cushing
It's been a while since I've used Struts 1.x, but back in the day, I did implement this type of functionality. Basically, the app would redirect to the login action, with the destination what the user tried to access) as an encoded parameter in the URL. Something like "/ login.do?destination

Bookmarking functionality in struts

2007-10-15 Thread Viplav Kallepu
Hi all, I am using struts 1.3.8. I was trying bookmarking functionality out of curiosity.(User will bookmark a page then if he clicks that link he should be informed to login which is the entry point into application and then he should be forwarded to the page he bookmarked) . I wish to do it even

Re: question on redirect actions ...

2007-10-15 Thread Giovanni Azua
Opps just found it ... This answers my question: http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html regards, Giovanni Giovanni Azua wrote: hi all, I have the following use-case that seem not to be covered by the redirect action? - User uploads a CSV file containin

question on redirect actions ...

2007-10-15 Thread Giovanni Azua
hi all, I have the following use-case that seem not to be covered by the redirect action? - User uploads a CSV file containing several parameters, this is handled by Action A. - Action A reads all parameters, and needs to redirect to action B passing those CSV parameters as part of B's reque

Re: GridView - save multiple items at the same time

2007-10-15 Thread Tom Schneider
Figuring out if there were type conversion errors was something we ran into. The bigger issue for us was validation. There is no easy way to do field level validation with an editable grid. (Or I haven't seen a good example of one) Josh Vickery-2 wrote: > > You can do this with Struts 2, but

Re: GridView - save multiple items at the same time

2007-10-15 Thread Josh Vickery
You can do this with Struts 2, but I've found that it can be a bit hairy when it comes to type conversion. The general idea is to use an action property which is a Map of objects that you want to save keyed by a unique identifier for each one. The two problems that I run into when doing this are:

datetimepicker tag

2007-10-15 Thread dipti RealSoftInc
hello, I am using struts 2.0.1 and want to use datetimepicker tag... but it is giving an exception that it is not defined in the tld file i.e struts-tag.tld please help me out... -- View this message in context: http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13212419

[S2] Shopping Cart functionality

2007-10-15 Thread Skip Hollowell
Before I go about building some basic shopping cart features in my S2 app, I wanted to make sure that I wasn't reinventing the wheel, if something of this sort already exists. I have thousands of old transactions that a user can search for, a list comes up (using DisplayTag), 50 per page, and

[OT] Re: help ajax

2007-10-15 Thread Dave Newton
--- Lalchandra Rampersaud wrote: > I want to learn how to apply AJAX technology to jsp > page. First of all I don't know how to do AJAX > programming (I am also new to J2EE). > > Could someone send me a manual or tutorial > pertaining to AJAX and J2EE. (I am also programming > using Eclipse 3

help ajax

2007-10-15 Thread Lalchandra Rampersaud
Hi I want to learn how to apply AJAX technology to jsp page. First of all I don't know how to do AJAX programming (I am also new to J2EE). Could someone send me a manual or tutorial pertaining to AJAX and J2EE. (I am also programming using Eclipse 3.2). Thanks in advance

Re: The breadcrumbs have been served!

2007-10-15 Thread stanlick
Great ideas Mark! Does this mean I now owe you ca$h? I didn't consider the permutation where you would discuss improvements without actually requesting them! You are a thinking man aren't you? I'll work the RESTful style of request METHOD into the configuration after studying that plugin first.

Re: The breadcrumbs have been served!

2007-10-15 Thread stanlick
You are a kind man Wes. I have enjoyed Tiles because of its support for JIT data fetches and panel inheritance. However, with Tiles 2 not "playing well" with Struts 2/Spring integration, it is looking less glamorous. I wrote a DelegatingTilesController that will get a configured Spring Bean acco

GridView - save multiple items at the same time

2007-10-15 Thread wild_oscar
Imagine a table with a List of items (say, a List of people, each with an ID, Name and age). I am thinking about developing a way to make all rows editable and able to be saved simultaneously with a single submit button. Specifically, each item (Person, in the example) is an object mapped with h

RE: Trouble with using struts tags in freemarker files

2007-10-15 Thread anine.louise.medhus-dale
When I try without the reference to struts-tags I get this error-message: [ WARN] 15:12:36 Can't generate HTML subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression s is undefined on line 1, column 12 in mail-html.ftl. [] at com.opensymphony.xwork2.interce

Dynamic form parameters and validation/workflow interceptor?

2007-10-15 Thread Igor Vlasov
Hello In my form i have common parameters like and some "dynamic" parameters - inputs added throw Javascript Code. For common parameters i have ParametersInterceptor. It puts values in "searchData" object properties. Then i want to add array of "dynamic" properties to my "searchData" object.