RE: File upload fails first time, then works after page reload

2007-03-30 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > Does using the ActionContextCleanup filter help? Now that I sent that I think it might have had more to do with SiteMesh than uploading, but hey... who knows. d.

RE: File upload fails first time, then works after page reload

2007-03-30 Thread Dave Newton
--- Kelly Morrison <[EMAIL PROTECTED]> wrote: > [file upload issues] Does using the ActionContextCleanup filter help? I vaguely recall some upload problems being fixed with this, but that was a few versions ago. If it *does* fix it, let us know and someone will update the upload wiki docs. d.

Re: S2: access to the POST body

2007-03-30 Thread John . C . Cartwright
Sorry! I now see what looks like the answer in the FAQ: http://struts.apache.org/2.0.6/docs/how-can-we-access-the-httpservletrequest.html --john - Original Message - From: John Cartwright <[EMAIL PROTECTED]> Date: Friday, March 30, 2007 5:00 pm Subject: S2: access to the POST body > Hel

Re: unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-30 Thread Dave Newton
--- dermaus <[EMAIL PROTECTED]> wrote: > Unfortunately, to my embarrassment, in trying to > repeat the deployment to get a stack trace, the > darned thing started working. I fixed it! I fixed it! ;) I just spent like an hour or two trying to figure out why a page was redirecting to a non-exist

Re: unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-30 Thread dermaus
Sorry about that. No, I did not have the same stack trace (I did not notice the "nanda" stuff); just an "Error filterStart" when deploying the WAR file out of the box. Unfortunately, to my embarrassment, in trying to repeat the deployment to get a stack trace, the darned thing started working.

Re: unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-30 Thread Dave Newton
--- dermaus <[EMAIL PROTECTED]> wrote: > I am having the same problem. JDK is 1.5.0_11, > Tomcat is 5.5.17. Same stacktrace?! "nanda" and all? That's just creepy. thethoks wrote: > I am getting the following error while deploying > the struts2-blank-2.0.6.war provided in > struts-2.0.6-all.zip

Re: unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-30 Thread dermaus
Hello, I am having the same problem. JDK is 1.5.0_11, Tomcat is 5.5.17. I tried copying the unmodified WAR from the distribution to /webapps. I also tried following the instructions in "Simple Setup" and the "Hello World" tutorial at http://struts.apache.org/2.x/docs/hello-world.html, with the

S2: access to the POST body

2007-03-30 Thread John Cartwright
Hello, I have an application where the POST request body contains a blob of XML that I'd like to access. It is not part of a KVP. I read it by using a Reader on the HttpRequest object. Can this be handled in Struts2? Thanks! -- john ---

RE: File upload fails first time, then works after page reload

2007-03-30 Thread Kelly Morrison
Some more details: I've tracked this down to the request somehow not being a MultiPartRequestWrapper. The problem shows up in the FileUploadInterceptor class, specifically in the following code: public String intercept(ActionInvocation invocation) throws Exception { ActionContext ac =

Re: datetimepicker does not work

2007-03-30 Thread Laurie Harper
What does 'messes up my page' mean? You'll need to describe the problem a little more completely before anyone can offer much in the way of suggestions. L. David Harland wrote: Hi, Thanks that got it working but when I click on it it messes up my page can you help please. http://www.w3.o

RE: Struts 2 - Action writing to response output stream

2007-03-30 Thread Sarr, Nathan
Excellent, Thanks for the help musachy - much appreciated. -Nate -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 10:27 AM To: Struts Users Mailing List Subject: Re: Struts 2 - Action writing to response output stream You can just write

RE: Anybody can suggest how to learn struts.

2007-03-30 Thread RoseIndia.net Help
HI, Visit http://www.roseindia.net/struts/ Its one of best tutorial on struts. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted Husted Sent: Friday, March 30, 2007 6:58 PM To: Struts Users Mailing List Subject: Re: Anybody can suggest how to lear

Re: IDE for struts-enabled web application

2007-03-30 Thread Ed Griebel
I agree with Dave, MyEclipse is a decent/good IDE, and unbeatable for the price, if you're paid by the hour you'll make back the $50 quickly. You might also want to take a look at the Eclipse WTP, I have not used it personally but I believe it has tools for JSP editing. Also, you can probably get

Re: IDE for struts-enabled web application

2007-03-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I don't want to use MyEclipse too as my company > won't be paying for it. Spend the $50; good grief. AFAIK nothing really supports S2 yet, although I don't know what the state of WW support was in any of the IDEs. d. ___

IDE for struts-enabled web application

2007-03-30 Thread Manickam-Periaswamy . Vignesh
Hi all I am new to J2EE development and I am developing a web application using the following configuration. Web server - IIS Servlet engine - ServletExec 5.0 MVC framework - Struts 2.0.6 Java - 1.4.2_13 I am not using Tomcat because ServletExec is already available in my company and I am su

Re: Common header and footer html

2007-03-30 Thread Patrick J Kobly
G'day, This is probably the suck, but: template.jsp: <[EMAIL PROTECTED] prefix="s" uri="/struts-tags" %> <[EMAIL PROTECTED] import='com.opensymphony.xwork2.ActionContext' %> Some header stuf <%! String actionname=(String)ActionContext.getContext().get(ActionConte

token-session example from showcase does not work in weblogic 9.1

2007-03-30 Thread Gajbhe, Laxman \(Contractor\)
Hi Folks, Token example 3 from showcase application works as expected in Tomcat but when I deploy same application in weblogic 9.1 environment it does not function properly. For one, when I submit the form (Transfer money) and use back button and re-submit again it breaks with following excep

Re: Struts 2 - Action writing to response output stream

2007-03-30 Thread Musachy Barroso
You can just write to the outputstream, and return null from execute, and you won't need a NoOp result. I also wrote my own NoOp result when i started using S2 ;). Maybe this should be on the FAQs. musachy On 3/30/07, Sarr, Nathan <[EMAIL PROTECTED]> wrote: Hello, We are using some act

RE: Common header and footer html

2007-03-30 Thread Dave Newton
--- meeboo <[EMAIL PROTECTED]> wrote: > Is there a good way of achieving this in Struts 2 > without using Tiles? > I'm new to Struts and coming from a Tapestry > background my first hunch was to create classes for a > header and a footer element, but is this even a > viable option in an action

RE: Common header and footer html

2007-03-30 Thread Juan Espinosa
To solve the problem of headers, footer, layouts accross a web site i use sitemesh. I have several layouts, one two and three columns layouts...I applied this layouts to my pages... I think its a good solution to your problem... Here is the url http://www.opensymphony.com/sitemesh/ Regards Jua

Re: S2: What do you forward to after a response writer?

2007-03-30 Thread Scott Nesbitt
Thank you. I have it working now using separate action and result classes. BTW, this page http://struts.apache.org/2.x/docs/romeresult.html really helped, perhaps it is what you referred to below. Thanks again, Scott --- joey <[EMAIL PROTECTED]> wrote: > You should define your custom result

RE: Common header and footer html

2007-03-30 Thread meeboo
Is there a good way of achieving this in Struts 2 without using Tiles? I'm new to Struts and coming from a Tapestry background my first hunch was to create classes for a header and a footer element, but is this even a viable option in an action based framework? If not, what's the best practice whe

Struts 2 - Action writing to response output stream

2007-03-30 Thread Sarr, Nathan
Hello, We are using some actions to write directly to the stream for some ajax based functionality. To do this I wrote a NoOp result type that does nothing. [code] public class NoOp extends StrutsResultSupport { public NoOp() { super(); } protect

Switching protocols to HTTPS in Struts2

2007-03-30 Thread Laszlo Szabo
I'm having trouble with specifying that particular forms in my app should use HTTPS instead of HTTP. In our existing struts1 app we created a tag called secureForm and in the JSPs we would reference this whenever we needed the form to post via HTTPS eg ; Is there a standard tag or tag property w

[S1] Validating spoofed fields

2007-03-30 Thread Lance
I want to validate user input to check for spoofed fields eg. a spoofing a value that was not in a select menu or a radio group etc. I'm thinking of doing this by: Extending to create a FormOptions object that represents the input names and options. It will also put a hidden formId field on t

Re: Anybody can suggest how to learn struts.

2007-03-30 Thread Ted Husted
The Struts framework "stands on the shoulders of giants". To use Struts well, it's important to have a good grasp of the fundamentals. Start with the Key Technologies primer * http://struts.apache.org/primer.html and then branch to either the Struts 1 or Struts 2 documentation * http://struts.a

[S2 Tip] Place each namespace into its own Struts configuration file

2007-03-30 Thread Ted Husted
The framework configuration supports an include element. When using packages and namespaces to organize an application, each namespace can be placed into its own configuration file, and then included by the default struts.xml configuration file. Common configuration setting

RE: datetimepicker does not work

2007-03-30 Thread David Harland
I dont think so now. I dont have that code with me right now I will tell you later. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:54 To: Struts Users Mailing List Subject: Re: datetimepicker does not work Is Dojo logging any error? Is there an

Re: Jasper result tag

2007-03-30 Thread Guillaume Carré
2007/3/28, Manoel Pimentel <[EMAIL PROTECTED]>: Hi Please, Can somebody explain to me how configure the file strust.xml for to use the jasper result tag? and if possible, send to me any little sample, ok? you need to add the "jasper" result type in your struts.xml and the following re

Re: Common header and footer html

2007-03-30 Thread Dave Newton
--- Ståle Undheim <[EMAIL PROTECTED]> wrote: > I have been looking at the tiles plugin, but I > couldn't make out enough from the documentation to > see how I could use it. A combination of the plugin docs and older Tiles docs should be enough to get you going. http://struts.apache.org/2.x/docs/

RE: Common header and footer html

2007-03-30 Thread Raghupathy, Gurumoorthy
http://struts.apache.org/1.x/struts-tiles/ is your answer Regards Guru -Original Message- From: Ståle Undheim [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:55 To: user@struts.apache.org Subject: Common header and footer html Currently, all my jsp pages are structured like this

Common header and footer html

2007-03-30 Thread Ståle Undheim
Currently, all my jsp pages are structured like this: * identical html header and tag ... * page specific content * identical trail of and Instead of copying this for every file, I would like to have 1 common outer wrapper file, that includes a jsp based on the action or something. I have bee

Re: datetimepicker does not work

2007-03-30 Thread Musachy Barroso
Is Dojo logging any error? Is there any javascript error on the page? musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: firefox -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:47 To: Struts Users Mailing List Subject: Re: datetimepi

RE: datetimepicker does not work

2007-03-30 Thread David Harland
firefox -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:47 To: Struts Users Mailing List Subject: Re: datetimepicker does not work What browser are you using? musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: > > When the datepicker

Re: datetimepicker does not work

2007-03-30 Thread Musachy Barroso
What browser are you using? musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: When the datepicker selection appears the image in the header appears below the datepicker. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:39 To: Strut

RE: datetimepicker does not work

2007-03-30 Thread David Harland
When the datepicker selection appears the image in the header appears below the datepicker. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:39 To: Struts Users Mailing List Subject: Re: datetimepicker does not work Can you give more details on

Re: datetimepicker does not work

2007-03-30 Thread Musachy Barroso
Can you give more details on how "it messes up your page"? Is there any error on the javascript console? Set debug="true" on the head tag to see if Dojo is logging any errors. regards musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: Hi, Thanks that got it working but when I click

Re: integrating Tiles in Struts2

2007-03-30 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > If yes, please give me the steps to integrate tiles > in struts2. Use the Tiles plugin. The S2 distro includes Tiles 2. http://struts.apache.org/2.x/docs/tiles-plugin.html I have had no significant issues with S2/T2 (so far) and hopefully the TLD is

Re: [S2] Error loading actions in appfuse

2007-03-30 Thread Dave Newton
--- appfused <[EMAIL PROTECTED]> wrote: > I haven't defined a namespace. I'm just using the > default. The extension is .html, i assumed this was > the default. You didn't post any S2 configuration details, and I, at least, haven't used AppFuse for a couple of years now, so I have no clue how App

integrating Tiles in Struts2

2007-03-30 Thread Syed Ibrahim
Hi, I have used tiles in Struts 1.3 But I am not able to integrate Tiles in Struts2. I found on Apache website that tiles is an experimental feature. So is it advisable to use tiles in Struts2? If yes, please give me the steps to integrate tiles in struts2. Thanks in advance. Ibrahim. -

Re: [S2] Error loading actions in appfuse

2007-03-30 Thread appfused
I haven't defined a namespace. I'm just using the default. The extension is .html, i assumed this was the default. regards appfused Dave Newton-4 wrote: > > --- appfused <[EMAIL PROTECTED]> wrote: >> AJust a hint would be suffiicient. Any help >> appreciated > > You'll probably get an answer

RE: Using ActionForm in struts2

2007-03-30 Thread Felipe Rodrigues
You could want take a look at struts1-plugin for struts2, if you need more behavior of struts1 in your app. Felipe __Billa__ wrote: > > > Thanks a Lot! > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2007 2:36 PM > To: Struts Users Mail

Localizing Output

2007-03-30 Thread David Harland
How do you write this so that it uses the label instead of the fieldName? errors.required=${getText(fieldName)} is required. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, S

Re: Jasper result tag

2007-03-30 Thread Manoel Pimentel
Hi Felipe, Thanks for your reply. But, That type i need put into dataSource tag (EL, Method Name, Attribute Name, JNDI)? Please, give me a sample? Regards, Manoel Pimentel http://manoelpimentel.blogspot.com/ Felipe Rodrigues wrote: > > >your/location/file.jasper

Re: [S2] JAAS & redirection

2007-03-30 Thread James Mitchell
Be creative. Take a look at what the mailreader does. (index.html) -- James Mitchell http://jamesmitchell.us On Mar 30, 2007, at 6:27 AM, Pascal Lalonde wrote: What about internationalization ? James Mitchell wrote: This seems to be a bug in the Struts tags. For now, just use a jsp pag

Re: [S2] JAAS & redirection

2007-03-30 Thread Pascal Lalonde
What about internationalization ? James Mitchell wrote: This seems to be a bug in the Struts tags. For now, just use a jsp page that doesn't have any Struts tags in it. Not sure what else to tell you. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 10:43 AM, Pascal Lalonde w

Réf. : Search on file contents using struts

2007-03-30 Thread Jerome Delamare
Hi Saranya, Use a specific API like lucene http://lucene.apache.org/ jerome.

Annotations validation for separate methods

2007-03-30 Thread Alexandros Giouzenis
Hi. I'm trying to use annotations to have different validation for different methods. The subject was also brought up last month, but they resolved to use xml for configuration instead. My action has two methods like this: @Validations ( [EMAIL PROTECTED](type=ValidatorType.FIELD, fieldN

RE: Using ActionForm in struts2

2007-03-30 Thread Syed Ibrahim
Thanks a Lot! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 2:36 PM To: Struts Users Mailing List Subject: Re: Using ActionForm in struts2 --- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Instead of writing the getter and setters in Action > I

How to specify protocol switch to HTTPS in Struts 2 using OGNL

2007-03-30 Thread Laszlo Szabo
I'm having trouble with specifying that particular forms in my app should use HTTPS instead of HTTP. In Struts 1 you could use something like the tag; what is its equivalent in OGNL? Also is there any info/reference docs on this you can suggest I take a look at - unfortunately googling didn't tur

RE: Anybody can suggest how to learn struts.

2007-03-30 Thread muralidharan.c
HI I started to learn the Struts before 6 months . First see the sturts.xml file if it is 2.x If Earlier version 1.2.3 see struts-config.xml file Then you will get the clear idea about the what are the components in sturst and two files Validator.xml file and rules of validator xml Action

[OT] Re: Search on file contents using struts

2007-03-30 Thread Dave Newton
--- Saranya Balasubramanian wrote: > Please let me know if there's a better way to > implement this function. http://lucene.apache.org/java/docs/ would be one solution. d. Never miss an email again! Yahoo! T

Re: Anybody can suggest how to learn struts.

2007-03-30 Thread Dave Newton
--- "Mr. nitin" <[EMAIL PROTECTED]> wrote: > Can anybody suggest me from where I should start http://cwiki.apache.org/WW/bootstrap.html d. Bored stiff? Loosen up... Download and play hundreds of games for

Anybody can suggest how to learn struts.

2007-03-30 Thread Mr. nitin
I am new to Struts. Can anybody suggest me from where I should start and which is the perfect material for struts. Thankx and Regards, Nitin - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.

Search on file contents using struts

2007-03-30 Thread Saranya Balasubramanian
Hi all, I want to implement search on file contents for keywords using struts. Presently, I am reading the file contents line by line and checking for the occurrence of the keywords. Below is the code I use for searching a file. br = new BufferedReader(new FileReader(file));

Re: Using ActionForm in struts2

2007-03-30 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Instead of writing the getter and setters in Action > I would prefer then to be written separately as the > same bean can be used elsewhere in models or > DAO transfer objects. > > How to achieve that in Struts 2 ? Write your POJO, expose it in you