Re: Struts2 portlet bug found

2009-07-21 Thread Nils-Helge Garli Hegvik
Ah, sorry, I think I misunderstood As they say in the uPortal forum, this is probably due to the older version of uPortal returning all session attributes regardless of scope. When this was fixed, you need to specify the correct scope to retrieve application scoped attributes, but they are sti

Re: Struts2 portlet bug found

2009-07-21 Thread Nils-Helge Garli Hegvik
Does it work if you access the session "raw" (get the session and do session.getAttribute("studentId", PortletSession.APPLICATION_SCOPE)? Have you tried deploying to a different portlet container such as jboss portal or just plain pluto? I assume that the resources you're sharing session between ar

help: struts2 validators doesn't work in java 1.6

2009-07-21 Thread gwen harold autencio
Hi Any workaround on validation of struts2 to work using java1.6 ? Seems to work using java 1.5.. version : struts2-core-2.0.11.2 Getting Error 500 in page java.lang.ExceptionInInitializerError     at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorF

help getting struts2 validation to work using java 1.6

2009-07-21 Thread gwen harold autencio
Hi Any workaround on validation of struts2 to work using java1.6 ? Seems to work using java 1.5.. version : struts2-core-2.0.11.2 Getting Error 500 in page java.lang.ExceptionInInitializerError     at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser

Redirecting to servlet

2009-07-21 Thread Kavita Mehta
Hi, I have an application in struts2.0 . I want a servlet in it to cater to a specific HTTP request. How can I make sure that the request to servlet does not go through struts.xml as it searches for the action class with the same name. thanks, Kavita **

Re: source code for examples

2009-07-21 Thread Sam Wun
I thought the "project owner" read this mailing list? On Wed, Jul 22, 2009 at 1:20 PM, Dave Newton wrote: > Sam Wun wrote: >> >> For example, where is the source code for collections.do? >> Here is the link for the example demo, but there is no source code. >> >> http://struts.improve-technologies

Re: source code for examples

2009-07-21 Thread Dave Newton
Sam Wun wrote: For example, where is the source code for collections.do? Here is the link for the example demo, but there is no source code. http://struts.improve-technologies.com/struts-layout/examples/collections.do?reqCode=view Have you tried contacting the project owner? Dave

Re: Fileupload

2009-07-21 Thread Wes Wannemacher
On Tuesday 21 July 2009 03:40:55 am taltun wrote: > Hi, > > When uploading an image using file upload calling this code: > > InputStream stream = new BufferedInputStream(new FileInputStream(file)); > > It seems like the webapplication try to access the filesystem temporary to > create the file usin

Re: source code for examples

2009-07-21 Thread Sam Wun
For example, where is the source code for collections.do? Here is the link for the example demo, but there is no source code. http://struts.improve-technologies.com/struts-layout/examples/collections.do?reqCode=view Thanks Sam On Wed, Jul 22, 2009 at 12:18 PM, Sam Wun wrote: > Just downloaded the

Re: source code for examples

2009-07-21 Thread Sam Wun
Just downloaded the source. but there are only *.jsp files there: # pwd /usr/struts-layout/struts-layout-1.3/doc/example # cd example/ ./ images/ logon3.html registration3.html subscription2.html ../ logon.html registrati

Re: S2-portlet and spring integration

2009-07-21 Thread Edwin Quita
hi Norris, i have here a portlet archetype that has spring integration: http://edwin.quita.googlepages.com/portlet-archetype.zip http://edwin.quita.googlepages.com/service-archetype.zip http://edwin.quita.googlepages.com/Maven2HowTo.doc you can use the project pom files as reference. HTH, /kits

Struts2 portlet bug found

2009-07-21 Thread Tracy12
Hi, We got a struts 2.0.6 portlet application with uPortal 2.5.3 ( inside Pluto 1.0.x) with no issues and running fine. Now we deployed the same struts 2.0.6 application in uPortal 3.1.1 (inside pluto 1.1.7) and found following issue. in our action classes we had the following, where session

Re: Struts w/Ajax with Struts again

2009-07-21 Thread Dave Newton
Martin Gainty wrote: post the complete contents of struts-config.xml event timing is crucial specifically you'll need your Ajax control to detect ON_COMPLETE a fairly comprehensive example of handling ON_COMPLETE at http://struts.apache.org/2.0.14/docs/ajax-validation.html any objections to

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Dimitrios Christodoulakis
> > In your code below, where you say // and then execute proxy again, are you > missing some stepls where you need to supply some parameters to the > action? > Yes, that wasn't actual code, just the steps I was considering. -In any case it's good to know the limitations of the example. You are ri

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Haroon Rafique
On Today at 2:02pm, DC=>Dimitrios Christodoulakis wrote: DC> [..snip..] DC> DC> The CONFIG_LOCATIONS is used to initialize the servletContext which in DC> turn is used to initialize the applicationContext, right? So, I am not DC> sure where is the correct place to add the web.xml file, or how

RE: Struts w/Ajax with Struts again

2009-07-21 Thread Martin Gainty
post the complete contents of struts-config.xml event timing is crucial specifically you'll need your Ajax control to detect ON_COMPLETE a fairly comprehensive example of handling ON_COMPLETE at http://struts.apache.org/2.0.14/docs/ajax-validation.html any objections to using new version strut

Re: Who moved OgnlValueStack?

2009-07-21 Thread stanlick
Thanks Dale -- Now that might be the better question! It appears we have not been consistent in a few corporate plug-ins between using the VS or OVS, and those places referencing OVS stopped working in 2.1.7 when xwork relocated the OVS. Peace, Scott DNewfield wrote: > > stanlick wrote: >>

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-21 Thread Dimitrios Christodoulakis
I have used this testing code to a certain extend, and seems to work fine. So I am interested in making it work against a complete test case scenario. So, when trying to load a child entity after the parent is retrieved, I get a LazyInitializationException Error. Sure enough, when the system tries

checkbox in an iterator!

2009-07-21 Thread BlackKnight
Hi guys, I have a checkbox in an iterator. However after the validation fail. The value of the varible "test" in the valuestack became "true, ", then after servral fail submit the value of the the varible "test" in the valuestack became "true, true,true,true,true,true..". Any Sugges

Re: Who moved OgnlValueStack?

2009-07-21 Thread Dale Newfield
stanlick wrote: I am experimenting with struts 2.1.7 and apparently xwork 2.1.4 has moved OgnlValueStack from package com.opensymphony.xwork2.util to com.opensymphony.xwork2.ognl! Was this some cruel joke? Why do you need to reference OgnlValueStack? The more generic ValueStack is in com.ope

Re: Who moved OgnlValueStack?

2009-07-21 Thread Musachy Barroso
hm..I think it was there all the time. musachy On Tue, Jul 21, 2009 at 10:03 AM, stanlick wrote: > > I am experimenting with struts 2.1.7 and apparently xwork 2.1.4 has moved > OgnlValueStack from package com.opensymphony.xwork2.util to > com.opensymphony.xwork2.ognl!  Was this some cruel joke? >

RE: Struts w/Ajax with Struts again

2009-07-21 Thread cpanon
Hi Martin Yes, I did in the line defining both the initial action to bring up the form and the action tasked with processing the Ajax call.  Also I put in the Ajax processing action specific setSeeMe("fromAjaxAction") and set that in both the request and the session objects.  Still nothing but w

Who moved OgnlValueStack?

2009-07-21 Thread stanlick
I am experimenting with struts 2.1.7 and apparently xwork 2.1.4 has moved OgnlValueStack from package com.opensymphony.xwork2.util to com.opensymphony.xwork2.ognl! Was this some cruel joke? Peace, Scott -- View this message in context: http://www.nabble.com/Who-moved-OgnlValueStack--tp24591681

S2-portlet and spring integration

2009-07-21 Thread Norris Shelton
I have a Struts2-portlet application that works. The correct action is executed, but I get a NPE when I try to access my spring-injected beans. The logs do show that the spring beans were constructed correctly. I do have the struts2-spring-plugin included. Norris Shelton Software Engineer

Struts2.16 Source Code study:Help! What happened in request.getParameterMap()?

2009-07-21 Thread BlackKnight
Hi, guys I am studying struts2 source code. I am wondering how struts2 get those parameters from a submitted webform. So I traced the program from filterdispatch.class into DefaultActionMapper.class(). I found a method public void handleSpecialParameters(HttpServletRequest request, ActionMapping

Re: Design Practice question. Should I use same Action class for different functions?

2009-07-21 Thread tsongwei
Hi Dave, Thanks for your reply. It makes perfect sense. I should revisit my action classes and do some refactoring Thanks, ST newton.dave wrote: > > > Personally I tend to use multiple actions, mostly to avoid having > unnecessary action properties. For me it's easier to deal with ma

how to clear the "html:file " element value?

2009-07-21 Thread abhishek reddy
hi every one, how to clear the "html:file " element value? form is not submitting, until the "html:file" tag has a valid value.. Iam doing serverside validations, and "html:file" is the last element in the form. how to tackle this problem? Is there any way i can create the html:file

Re: source code for examples

2009-07-21 Thread Dave Newton
Sam Wun wrote: Can anyone show me a link where I can download the example source codes from the following link: http://struts.improve-technologies.com/faqs/lists.html http://struts.improve-technologies.com/download.html? - To

source code for examples

2009-07-21 Thread Sam Wun
Hi, Can anyone show me a link where I can download the example source codes from the following link: http://struts.improve-technologies.com/faqs/lists.html Very appreciate for any answers. Thanks Sam - To unsubscribe, e-mail: u

Re: action-method-validation

2009-07-21 Thread mailtolouis2020-struts
Hi, I mean in xml validation, the document I read is Action-validation.xml Action--validation.xml What I wonder is S2 support Action--validation.xml? For e.g I've input1() and input2() method in my action, when I call input1() I like to have something Action-input1-validation.xml to be use and

Re: Pb displaying image

2009-07-21 Thread Tugdual Huertas
Ok, thanks Nils, i'll try first solution. On Tue, Jul 21, 2009 at 9:53 AM, Nils-Helge Garli Hegvik wrote: > 1. You put it in a directory that your webserver serve... > or > 2. Create a servlet that reads the data from the filesystem and sends > back the data in the response. > > I'd certainly pre

Re: Pb displaying image

2009-07-21 Thread Nils-Helge Garli Hegvik
1. You put it in a directory that your webserver serve... or 2. Create a servlet that reads the data from the filesystem and sends back the data in the response. I'd certainly prefer option 1 if possible. Nils-H On Tue, Jul 21, 2009 at 9:31 AM, tutu wrote: > > Thanks for response. > Just one que

Re: Pb displaying image

2009-07-21 Thread Tugdual Huertas
Yes, that's what i thought. Is there a way to display images that are on the file system but not in the web application? If not, how can you configure an external folder for images if you can't see them in a web application? 2009/7/21 Paweł Wielgus > Hi tutu, > You can't. > > Best greetings, > P

Fileupload

2009-07-21 Thread taltun
Hi, When uploading an image using file upload calling this code: InputStream stream = new BufferedInputStream(new FileInputStream(file)); It seems like the webapplication try to access the filesystem temporary to create the file using FileInputStream. On Windows it works, but it seems like on

Re: Pb displaying image

2009-07-21 Thread Paweł Wielgus
Hi tutu, You can't. Best greetings, Paweł Wielgus. 2009/7/21 tutu : > > Thanks for response. > Just one question, how do you make the image visible on the webserver > without putting it in the web application? > > > Jim Kiley wrote: >> >> Make sure the image is visible to your webserver, and the

Re: Pb displaying image

2009-07-21 Thread tutu
Thanks for response. Just one question, how do you make the image visible on the webserver without putting it in the web application? Jim Kiley wrote: > > Make sure the image is visible to your webserver, and then use an > http://url to access it, rather than a file:// url. > jk > > On Mon, J