Re: s2 : assigning a variable to jsp

2008-03-21 Thread Nils-Helge Garli Hegvik
Ok, that's a bit different... I'm not sure that the S2 tags expose things as scripting variables (please correct me if I'm wrong)... I guess you could set the variable to the request scope (or expose it as a property on your action), and since the FilterDispatcher wraps the servlet request to look

Exception while uploading a .jpg file from ValidatorForm through struts action

2008-03-21 Thread Ashima Beri
Hi All, I am trying to upload a .jpg file through my struts action. Below is my set up In the jsp : In the form I have a FormFile property as : class MyForm extends ValidatorForm{ private FormFile filePath; // corresponding getter and setter } On submitting my

Re: s2 : assigning a variable to jsp

2008-03-21 Thread niels
Hi Nils, If looks at the docs, but can't find an example where I can set a jsp variable. I have this situation, I use oscache like: Where I want to set the jsp string 'cacheKey' with a property from the value stack.. like (what of course doesn't work): String cacheKey = "pre_"+; Than

Re: Exception in running application

2008-03-21 Thread aum strut
hi all, As far as concern with the .jar files both the jars are there in the lib folderas moreover there is only one application deployed in the container with which i m working. can u just clear me about the point regarding opensymphony URI in web.xml. --aum On 3/21/08, manjunathmn <[EMAIL PR

Setting default @ParentPackage value

2008-03-21 Thread Guillaume Bilodeau
Hi guys, I've spent some time migrating my Struts2 app configuration from struts.xml to annotations. So far so good, it's nice having configuration next to actual code. One thing that's bothering me is the fact that I need to put a @ParentPackage annotation on each action class for it to pick u

Execute method is not called

2008-03-21 Thread mojoRising
I apologize for the vague nature of this question. To clarify, I have a login page that works for the input method, but will not call the execute method. I have logging comments that show that when I call the action for my form, the prepare method fires, then the validate method completes(without

Re: Struts 2.06 to 2.10 Upgrade Problem

2008-03-21 Thread cree
Thanks for the response, my final thought was what you mentioned that there are two (or more) sets of jars competing causing an environment issue. I guess this was one of those "I hope there is an unresolved problem before I go through all the jars that need to be replaced" =). I will consider

Re: struts 2 jsf plugin problem

2008-03-21 Thread Nils-Helge Garli Hegvik
Sorry, no clue. As I said, I have no idea if this combination will work at all. Maybe someone with JSF experience can point out what's wrong. At least it looks like the portlet dispatcher has been able to execute the action, but it's failing with the JSF result. You might want to consider creating

Re: Struts 2.06 to 2.10 Upgrade Problem

2008-03-21 Thread Dave Newton
--- cree <[EMAIL PROTECTED]> wrote: > I have been running an earlier version of struts 2 and from my reading > to gain struts-dojo-tags support I need to run on struts 2.1. I have > downloaded the struts 2.1 zip file and have replaced all old struts 2.06 > with struts 2.1 jar files. > > This is

Struts 2.06 to 2.10 Upgrade Problem

2008-03-21 Thread cree
I have been working on this for a couple hours now and I just cannot resolve it. I have been running an earlier version of struts 2 and from my reading to gain struts-dojo-tags support I need to run on struts 2.1. I have downloaded the struts 2.1 zip file and have replaced all old struts 2.06 wi

Re: authentication question

2008-03-21 Thread mojoRising
I have moved all JSP's under WEB-INF directory (e.g. /WEB-INF/pages/login.jsp), and this solution seems to work perfectly on my local environment with exploded directory structure. However, Struts seems to not be working at all when we package and deploy an ear file (before I moved the jsp's it ha

Re: Exception in running application

2008-03-21 Thread manjunathmn
Hi, Please make sure that the you are placing the xwor2 jar in lib folder and not in Referenced Lib package(if u r using MyEclipse IDE) and specifiy the opensymphony URI in web.xml. Thanks. aum strut wrote: > > Hi All, > > i am running an application, everythingis working fineappli

Re: Exception in running application

2008-03-21 Thread Laurie Harper
I'm surprised the application is even serving requests with an exception starting the filter, and since the cause seems to be a missing OGNL jar, OGNL expressions presumably wouldn't be working anyhow. Check that the error really is coming from the application you're testing, not another one d

Re: struts 2 jsf plugin problem

2008-03-21 Thread Daniel
I've done what you have said, unfortunately without results. I still receive index.jsp:16:26: No property editor found for the bean " javax.el.ValueExpression". Any other ideas? On Thu, Mar 20, 2008 at 12:43 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > First of all, I'm not even su

Re: s2 : assigning a variable to jsp

2008-03-21 Thread Nils-Helge Garli Hegvik
Check out the set [1] and property [2] tags. It might also be useful to read about the tag syntax [3] [1] - http://struts.apache.org/2.x/docs/set.html [2] - http://struts.apache.org/2.x/docs/property.html [3] - http://struts.apache.org/2.x/docs/tag-syntax.html Nils-H On Fri, Mar 21, 2008 at 12:0

Re: s2 : assigning a variable to jsp

2008-03-21 Thread niels
Hm, want the otherway around. something like: <%= technologyName %> On Mar 21, 2008, at 12:11 PM, Deepak Kumar wrote: Hi, In Struts 2 you can use http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml Thanks -Original Message- From: niels [mailto:[EMAIL PROTECTE

RE: s2 : assigning a variable to jsp

2008-03-21 Thread Deepak Kumar
Hi, In Struts 2 you can use http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml Thanks -Original Message- From: niels [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 4:35 PM To: user@struts.apache.org Subject: s2 : assigning a variable to jsp Hello, I want

s2 : assigning a variable to jsp

2008-03-21 Thread niels
Hello, I want to assign a property to a value in jsp. in struts 1.3 i could do it like: Now I can access the variable via: <%=assign%> How can i accomplish this in struts2 for a property: thanks in advance. Niels

Exception in running application

2008-03-21 Thread aum strut
Hi All, i am running an application, everythingis working fineapplication is running fine... but in the console it is giving an exception...although the application is running fine.. below is the console output: SEVERE: Exception starting filter struts2 Unable to load bean: type:com.ope