Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread Chris_W
I had found this pages before. My problem is, that our software-provider tells me, that neither Struts 1.2 nor Struts 2.x runs on JDK 1.6 and Weblogic 10.3 I was not able to convince them that the statement in the below mentioned documentation is a minimum requirement. I hoped, that someone can

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Nils-Helge Garli Hegvik
OGNL tries all elements on the stack until it finds a match, so it would probably try the result as well. Could you show the code of your source and destination actions? Nils-H On Thu, Dec 18, 2008 at 12:15 AM, Amin Mohammed-Coleman wrote: > Hi > > The both actions have the relevant getters and

How to set the DateTimePicker background color?

2008-12-17 Thread Burton Rhodes
I am positive this is an easy answer, but I can't seem to set the textfield portion of the tag. I have tried background & background-color css attributes, but those don't do the trick. Does anyone know how this is done? My actual tag looks like this: Many thanks! ---

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Amin Mohammed-Coleman
Hi The both actions have the relevant getters and setters. It seems as though the actionName is being ignored and the action that the result thinks should go to is ServletActionRedirectResult. Cheers On 17 Dec 2008, at 22:35, Nils-Helge Garli Hegvik wrote: Does the action you're redire

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Nils-Helge Garli Hegvik
Does the action you're redirecting from (not to) have the relevant getters? Nils-H On Wed, Dec 17, 2008 at 11:26 PM, Amin Mohammed-Coleman wrote: > Hi > > The ServletActionRedirectResult doesn;t have a contactId setter as this is > Struts class. The ViewContact action has the relevant setters.

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Amin Mohammed-Coleman
Hi The ServletActionRedirectResult doesn;t have a contactId setter as this is Struts class. The ViewContact action has the relevant setters. Cheers On 17 Dec 2008, at 22:16, Oscar Alvarez wrote: 2008/12/17 Amin Mohammed-Coleman Hi Sorry for sending this again, but I was wondering if

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Oscar Alvarez
2008/12/17 Amin Mohammed-Coleman > Hi > > Sorry for sending this again, but I was wondering if someone might be able > to help? > > > Thanks > > Begin forwarded message: > > From: Amin Mohammed-Coleman >> Date: 24 November 2008 16:50:50 GMT >> To: user-h...@struts-apache.org >> Subject: Excepti

RE: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2008-12-17 Thread Tobias M.
Hi Fabiano, first of all thank you for your valuable hint. I established an interceptor CommitAwareInterceptor at the top of the interceptor stack. This interceptor is tagging the JPA transaction for RollbackOnly in case of a.) the action is not implementing CommitAware b.) the action is

Fwd: Exception when using ServletActionRedirectResult with @Result

2008-12-17 Thread Amin Mohammed-Coleman
Hi Sorry for sending this again, but I was wondering if someone might be able to help? Thanks Begin forwarded message: From: Amin Mohammed-Coleman Date: 24 November 2008 16:50:50 GMT To: user-h...@struts-apache.org Subject: Exception when using ServletActionRedirectResult with @Result H

Re: How can I "parameterize" include files?

2008-12-17 Thread Oscar Alvarez
are you try tag, to set the value you need and then test it? i understand, tag only join both pages, but not get the result in ajax like fashion. http://struts.apache.org/2.0.9/docs/set.html 2008/12/17 James Carr > I have.. .it doesnt evaluate correctly in the statement. Adding > the param

Re: How can I "parameterize" include files?

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, James Carr wrote: > I have.. .it doesnt evaluate correctly in the > statement. Adding the param isn't my problem in this case though, > it's making work.. I've tried every > possible combination... "param.foo", "$param.foo", "${param.foo}" > etc. The variable IS there, the

RE: How can I "parameterize" include files?

2008-12-17 Thread Biesbrock, Kevin
Try %{param.foo} or %{#attr[param.foo]} ?? Beez ( 4961 -Original Message- From: James Carr [mailto:james.r.c...@gmail.com] Sent: Wednesday, December 17, 2008 4:28 PM To: Struts Users Mailing List Subject: Re: How can I "parameterize" include files? I have.. .it doesnt evaluate correct

Re: How can I "parameterize" include files?

2008-12-17 Thread James Carr
I have.. .it doesnt evaluate correctly in the statement. Adding the param isn't my problem in this case though, it's making work.. I've tried every possible combination... "param.foo", "$param.foo", "${param.foo}" etc. The variable IS there, the if statement just chooses not to allow it to just w

Re: [S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
2008/12/17 Kawczynski, David > Setting the form's attribute before forwarding usually works. Thanks for reply. I was thinking hibernate automaticaly fill ID property in object passed, but it does not true, then modify the source code like this, and works quite well... et = evaluacionTecnicaMa

Re: A complete listing of velocity struts 2 tags?

2008-12-17 Thread James Carr
Nice try... I found that too. There's no example of what I need to do to use the #stext tag and be able to pass a parameter, like I can with the jsp tags: bar it does make the note about there beign a direct mapping between jsp tags and velocity tags, but these don't match up exactly in realit

RE: [S1] How to set a form property from Action classes.

2008-12-17 Thread Kawczynski, David
Setting the form's attribute before forwarding usually works. Your action will have to be declared with a scope appropriate for the config's forward type. (Example: forward type="redirect" and action scope="request" don't play well together.) What scope is the action declared as, and what type

RE: get file path from FormFile

2008-12-17 Thread Givler, Eric
I wasn't making a change. I just introduced a class in that package so that I could access the CommonsFormFile class inside of CommonsMultipartRequestHandler. I called it: CommonsFileHelper. The reason I was using it was that the file was already uploaded, AND in the O/S, so I figured, why c

Re: How can I "parameterize" include files?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/include.html why don't you try to assess it as a request param?. :) Thanks, Nuwan James Carr wrote: Hi all, I have a common navigation bar I have at the top of a bunch of pages, but I'd like for certain buttons to not be present on some pages. I tried using

Re: A complete listing of velocity struts 2 tags?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/velocity-tags.html James Carr wrote: No one knows? Any ideas where I could find their definitions? The source I downloaded only seems to contain velocity macros for form tags, not i18n. Thanks, James On Tue, Dec 16, 2008 at 3:44 PM, James Carr wrote: Is t

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Nils-Helge Garli Hegvik
I've never used that base test class, but usually when I write a unit test for a Struts action, I isolate everything around and just verify the result string of the method executed ("success", "error", "input" etc). The test never executes the result. Nils-H On Wed, Dec 17, 2008 at 6:07 PM, Milan

Re: [S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
2008/12/17 Oscar Alvarez > Hi All. > > I need to put a value in an ActionForm object, because of the edition use > case of an mantainer (CRUD). > Im using hibernate to save an object and hibernate assigns the id when > save, and i need to put that value back in the ActionForm to "remember it" > w

[S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
Hi All. I need to put a value in an ActionForm object, because of the edition use case of an mantainer (CRUD). Im using hibernate to save an object and hibernate assigns the id when save, and i need to put that value back in the ActionForm to "remember it" when save again. I am doing this, but no

Re: [S2] JSON plugin - excluding properties

2008-12-17 Thread John Cartwright
Thanks for your reply Andras. I've been able to get it to exclude other simple properties when configured in the result, e.g. class="gov.noaa.ngdc.mgg.scufn.action.ListNamesAction"> user,featureDAO true As an aside,

Re: How can I "parameterize" include files?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/include.html why don't you try to assess it as a request param?. :) Thanks, Nuwan James Carr wrote: Hi all, I have a common navigation bar I have at the top of a bunch of pages, but I'd like for certain butto

RE: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Biesbrock, Kevin
Sorry, I missed the "After " portion... Beez ( 4961 -Original Message- From: Robert Graf-Waczenski [mailto:r...@lsoft.com] Sent: Wednesday, December 17, 2008 11:33 AM To: Struts Users Mailing List Subject: Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexp

Re: [S2] JSON plugin - excluding properties

2008-12-17 Thread Andras Balogh
Hi, I have used the json-plugin also and as I understood it will read the excludeProperties from the interceptor-ref and not from the result: Example: true .*Collection I don't know if this is the case only when enableSMD is set to "true". BR, Andras. John Cartwright wrote: Hello All

RE: get file path from FormFile

2008-12-17 Thread Dave Newton
It hardly seems necessary to make a framework change when you can just write the file. --- On Wed, 12/17/08, Givler, Eric wrote: > From: Givler, Eric > Subject: RE: get file path from FormFile > To: "'Struts Users Mailing List'" > Date: Wednesday, December 17, 2008, 10:34 AM > Would there be

Re: IRC channel

2008-12-17 Thread Al Sutton
It's called trying to get you focused on the job ;). Al. Dave Newton wrote: --- On Wed, 12/17/08, Musachy Barroso wrote: a few of us hang in freenode #struts Today I discovered that my current gig (done Friday) blocks IRC. They block a lot of things. I don't like that. Dave -

[S2] JSON plugin - excluding properties

2008-12-17 Thread John Cartwright
Hello All, I'm using the (very nice!) jsonplugin version 0.31 and have a question re: excluding properties. If my action exposes a List of class instances and each of these instances contains a "name" property, what is the proper syntax for excluding that name property? I expected something

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Milan Milanovic
I'm not sure too, just because of that I'm asking you this :-). Paweł Wielgus wrote: > > Then You definitively should read the servlet specs, > i'm not sure if servletContext is present or real under junit - is it? > > Best greetings, > Paweł Wielgus. > > 2008/12/17 Milan Milanovic : >> >> No

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Paweł Wielgus
Then You definitively should read the servlet specs, i'm not sure if servletContext is present or real under junit - is it? Best greetings, Paweł Wielgus. 2008/12/17 Milan Milanovic : > > No, I'm runing test from my Eclipse 3.3 environment (right click to class -> > Run As -> JUnit 4 test). > > >

type mysmatch

2008-12-17 Thread elyes sallem
hello, i have a property whith date type and i have a text field in jsp , in witch a put the date value when i submit, i get an error, type mysmatch have you an idea about this pb? thanks Elyes.

Using OGNL to set validator parameters

2008-12-17 Thread stanlick
Is there a way to avoid hard coding limits into a validator? Take for instance the IntRangeFieldValidator. It has a min and max property that are populated from the XML as per: 0 140 Age must be be

How can I "parameterize" include files?

2008-12-17 Thread James Carr
Hi all, I have a common navigation bar I have at the top of a bunch of pages, but I'd like for certain buttons to not be present on some pages. I tried using and , but to no avail. For example: and in the included file have this: However this doesn't see

Re: A complete listing of velocity struts 2 tags?

2008-12-17 Thread James Carr
No one knows? Any ideas where I could find their definitions? The source I downloaded only seems to contain velocity macros for form tags, not i18n. Thanks, James On Tue, Dec 16, 2008 at 3:44 PM, James Carr wrote: > Is there a complete listing of the struts 2 tags in velocity? > Specifically, I

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
Yes, thanks, this works. I was hoping that the IteratorStatus is still available also after , but apparently this is not so. Robert Paweł Wielgus wrote: Hi Robert, -- write iterator row details -- message that iterator did not deliver rows goes here Best greetings, Paweł Wielgus. 2008

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Milan Milanovic
No, I'm runing test from my Eclipse 3.3 environment (right click to class -> Run As -> JUnit 4 test). Paweł Wielgus wrote: > > Hi Milan, > are You running your app from war file? > If yes, servletContext.getRealPath(...) might not work, > if i remember it correct, it is in servlet specification

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Paweł Wielgus
Hi Robert, -- write iterator row details -- message that iterator did not deliver rows goes here Best greetings, Paweł Wielgus. 2008/12/17 Robert Graf-Waczenski : > This does not sound like what i'm after. I need something like this: > > > -- write iterator row details > > > your case) i

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
This does not sound like what i'm after. I need something like this: -- write iterator row details In your iterator, the status attribute defined (e.g., status="stat" in your case) is an object of type "IteratorStatus". It has methods defined: getCount, getIndex, isEven, isFirst, isLast, isOd

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Paweł Wielgus
Hi Milan, are You running your app from war file? If yes, servletContext.getRealPath(...) might not work, if i remember it correct, it is in servlet specification. Best greetings, Paweł Wielgus. 2008/12/17 Milan Milanovic : > > I tried to set location programatically, and from my test I tried to

RE: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Biesbrock, Kevin
In your iterator, the status attribute defined (e.g., status="stat" in your case) is an object of type "IteratorStatus". It has methods defined: getCount, getIndex, isEven, isFirst, isLast, isOdd, and modulus. You could check isLast to find the last row (e.g., stat.isLast == true). Beez ( 4961

Re: [S2] Problem with testing S2 Action when JasperResult type is used

2008-12-17 Thread Milan Milanovic
I tried to set location programatically, and from my test I tried to set different paths, e.g.: "WebContent/reports/" and "\\WebContet\\reports\\", but every time I get FileNotFoundException from servletContext.getRealPath(...) method. Milan Milanovic wrote: > > Hi, > > I have defined a follow

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
Thanks Dave, that was a very enlightening suggestion, i'm using right now. One thing remains: After , i need to know if the iterator that was processed previously delivered rows or not. How would i accomplish this? Robert Dave Newton wrote: --- On Wed, 12/17/08, Robert Graf-Waczenski wrote:

RE: get file path from FormFile

2008-12-17 Thread Givler, Eric
Would there be an issue with modifying the controller settings and setting the memFileSize artifically low so the file is always written to disk, then gaining access to the filename via reflection? // create in package org.apache.struts.upload public static String getFilePath( FormFile file ) {

RE: Graphical Configuration Utility

2008-12-17 Thread mpeccorini
Fogleson, Allen wrote: > > You probably ought to just compile for jdk6. Since javax.swing.GroupLayout > is not available in jdk5, at least the user of jdk5 would get a message > that is a bit better than the ClassNotFoundException you get in jdk5. > > Thanks for the important tip Allen, I'l

Re: Graphical Configuration Utility

2008-12-17 Thread mpeccorini
Milan Milanovic wrote: > > Great thing to do! Is it possible to visualise S2 appliaction from > struts.xml ? I'm asking this because I didn't manage to run existing > plug-in for that. > > > mpeccorini wrote: >> >> Hi everyone, >> >> I looked for a struts 2 graphical configuration utilit

Re: Graphical Configuration Utility

2008-12-17 Thread mpeccorini
ManiKanta G-2 wrote: > > Finally I was able to run ur jar.. > I'm glad you got the program working. ManiKanta G-2 wrote: > > I've created new one, by > > File > New > on struts, Add Package > on New Package, New Action. > > But then how do I type/map/configure actions there... I m cluele

Re: [OT] EL expressions

2008-12-17 Thread Ron Day
Sounds like web.xml is specifying servlet version 2.3 or below. It must be 2.4 or above. Otherwise you will have to have a <%@ page IsELIgnored="false"%> tag on every JSP page that wants to us EL. Ron -Original Message- From: "Lorenzo Carnevale" To: "Struts" Date: We

Re: [OT] EL expressions

2008-12-17 Thread Lorenzo Carnevale
What servlet version is specified in web.xml? Gotcha! You won my gratitude. The problem was that I started a new web application from scratch on my IDE, the J2EE version I chose was 1.5, a version that - I discovered it later - Tomcat 5.5 doesn't support. I changed everything back to version

Re: IRC channel

2008-12-17 Thread Musachy Barroso
http://www.mibbit.com/ (that's what I use) musachy On Wed, Dec 17, 2008 at 9:17 AM, Dave Newton wrote: > --- On Wed, 12/17/08, Musachy Barroso wrote: >> a few of us hang in freenode #struts > > Today I discovered that my current gig (done Friday) blocks IRC. > > They block a lot of things. I don

Re: IRC channel

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, Musachy Barroso wrote: > a few of us hang in freenode #struts Today I discovered that my current gig (done Friday) blocks IRC. They block a lot of things. I don't like that. Dave - To unsubscribe, e-mail:

RE: [OT] EL expressions

2008-12-17 Thread Biesbrock, Kevin
Have you tried the OGNL version; using %{param} ? Assuming your param is defined on the value stack, this seems worthy of an attempt. Beez ( 4961 -Original Message- From: Lorenzo Carnevale [mailto:lorenzo.carnev...@innovery.it] Sent: Wednesday, December 17, 2008 8:59 AM To: Struts Subj

Re: [OT] EL expressions

2008-12-17 Thread Antonio
2008/12/17 Lorenzo Carnevale : > I don't understand why my EL expressions aren't being evaluated. > They are printed just like they in the source code ("${param}"). What servlet version is specified in web.xml? Antonio - To unsu

Re: IRC channel

2008-12-17 Thread Musachy Barroso
a few of us hang in freenode #struts musachy On Wed, Dec 17, 2008 at 7:24 AM, Evert Lammerts wrote: > The channel irc.darkmyst.org #struts_users seems to be pretty empty, is it > still used at all? > -- "Hey you! Would you help me to carry the stone?" Pink Floyd ---

Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread Nils-Helge Garli Hegvik
http://struts.apache.org/1.3.10/userGuide/installation.html (See Prerequisite Software) http://struts.apache.org/2.0.14/ (See platform requirements) I know Struts 2 has a profile on the Bamboo server which is compiling with Java 6. Nils-H On Wed, Dec 17, 2008 at 2:46 PM, Chris_W wrote: > > Hey,

Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread elyes sallem
http://struts.apache.org/1.2.x/userGuide/installation.html 2008/12/17 Chris_W > > Hey, > > I failed to find the JDK requirements for struts 1.2 and 2.x. > > Is JDK 1.6 supported for both Struts versions? > > Thanks for your help!!! > Christian > -- > View this message in context: > http://www.na

[OT] EL expressions

2008-12-17 Thread Lorenzo Carnevale
I don't understand why my EL expressions aren't being evaluated. They are printed just like they in the source code ("${param}"). I did put this in my JSP code Working with server: <%= application.getServerInfo() %> Servlet Specification: <%= application.getMajorVersion() %>.<%= application.getM

Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread elyes sallem
here for struts 2.x http://struts.apache.org/2.x/index.html,you have juste to look for in google, and you find the answer 2008/12/17 elyes sallem > http://struts.apache.org/1.2.x/userGuide/installation.html > > 2008/12/17 Chris_W > > >> Hey, >> >> I failed to find the JDK requirements for strut

JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread Chris_W
Hey, I failed to find the JDK requirements for struts 1.2 and 2.x. Is JDK 1.6 supported for both Struts versions? Thanks for your help!!! Christian -- View this message in context: http://www.nabble.com/JDK-Requirements-for-Struts-1.2-and-2.x-tp21053363p21053363.html Sent from the Struts - Us

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote: > As a workaround, i must use the page context, like so here: It's not a work-around, that's just how JSP works--you're making more work than necessary by mixing paradigms: either use all scriptlets and do things the old way, or use the currentl

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
Here's something that does (almost) work: The problem is that access to JSP locals simply does not work. As a workaround, i must use the page context, like so here: Further up in the JSP: <% pageContext.setAttribute("list", list); %> And inside the for loop: <% pageContext.setAttrib

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote: > <% int row = 0; %> > [...] > > [...] I'm not sure that declaring a scriptlet variable (ew, btw) is the same as putting it into PageContext, which is where #attr is looking. I never really do anything like this anymore, so to be honest I'v

Re: [S1] HTML taglib WindowState.MAXIMIZED

2008-12-17 Thread Nils-Helge Garli Hegvik
AhI see. I guess you'll have to create your own tag then, or just mimic the generated html using plain html tags. Again, I'm not sure how the particular framework you're using works, but if your form is processed in the action phase of the portlet, and you have access to the portlet objects, yo

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
Hm. Tried this, didn't work. Let me be more verbose now: The class MyList wraps data in a backend and offers it to the view in list form, for this, the class has methods like so here: public int getRowCount(); public String getEntry(int row, int col); Here's the JSP (which has been redirecte

IRC channel

2008-12-17 Thread Evert Lammerts
The channel irc.darkmyst.org #struts_users seems to be pretty empty, is it still used at all?

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dimitar Vlasev
Robert, you might find some clues here http://struts.apache.org/2.x/docs/ognl.html (as well as links to the full OGNL documentation) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: use

[S1] HTML taglib WindowState.MAXIMIZED

2008-12-17 Thread Evert Lammerts
Hi, Strangely enough I still cannot create a form that submits with a parameter WindowState.MAXIMIZED. This is easy enough by creating an actionURL and putting that in the action attribute of a normal HTML form tag, but I'm using an ActionForm to populate and validate my form. In order to do so

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote: > [...] how would i access the value of a JSP-local variable > in an ognl expression? #attr.foo http://struts.apache.org/2.x/docs/ognl.html Dave - To unsubscribe, e-mail: us

RE: Graphical Configuration Utility

2008-12-17 Thread Fogleson, Allen
You probably ought to just compile for jdk6. Since javax.swing.GroupLayout is not available in jdk5, at least the user of jdk5 would get a message that is a bit better than the ClassNotFoundException you get in jdk5. Al -Original Message- > > If anyone wants to take a look at it

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
Dave Newton wrote: How would one create a url with multiple url parameters? That bit was clear to me. The unclear part is where you put "..." above :-) I need a method to supply somthing dynamically for the "vaue=" attribute of the tag. OGNL has been suggested as the soluti

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
In my example i only needed one parameter, so i was able to simply append my dynamic value to the url, knowing that the single parameter causes the url to end with "?param=", so my appended value is at the correct location. I know that multiple occurrences are possible and cause appropriate ?p

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote: > What is the reasoning behind restricting the value= > attribute to non-runtime values only? Security issues: since JSP EL/rtexprs are evaluated first, if they evaluate to a valid OGNL expression it's possible to end up with evil values that mig

[OT] Re: Fwd: export file data using formFile

2008-12-17 Thread Dave Newton
--- On Wed, 12/17/08, elyes sallem wrote: > String mimetype = context.getMimeType(filePath.replaceAll("/", "//")); You shouldn't need to do that. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: Graphical Configuration Utility

2008-12-17 Thread Milan Milanovic
Great thing to do! Is it possible to visualise S2 appliaction from struts.xml ? I'm asking this because I didn't manage to run existing plug-in for that. mpeccorini wrote: > > Hi everyone, > > I looked for a struts 2 graphical configuration utility and couldn't > find one, you guys probabl

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Nils-Helge Garli Hegvik
I'm not quite sure if I understand your example, but there should be no problem having multiple inside the url tag. I think rtexprvalue was disabled due to some security issues with the combination of ognl and rtexprval. However, you should be able to use ognl expressions instead. Nils-H On Wed,

Re: how many forms do i need??

2008-12-17 Thread m.harig
once again thanks for giving me answer Mr.Robert . am newbie to struts . if i get an idea to how to use those forms it'll be helpful to proceed my application . thanks in advance -- View this message in context: http://www.nabble.com/how-many-forms-do-i-need---tp21050504p21051365.html Sent

[S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
Hi, i'm using inside an tag to dynamically generate the appropriate url params. In my current example i only need one parameter, so in order to add the parameter value dynamically to the url, i can do so here: <%=whateverObject.getBlurb()%> So i have a situation were i can do what i curre

Re: how many forms do i need??

2008-12-17 Thread Robert Graf-Waczenski
Using many form classes is ok with Struts. Design your form classes as you like them and implement custom validation in every class as you need it. In our application we have countless form classes with various flavors of validation depending on the form's purpose. No, i will not help you des

Re: how many forms do i need??

2008-12-17 Thread m.harig
Thanks Robert then how can i handle it?? this is my situation in my login form username,password createuser username,password,role,city,coutry edituser username,password,role delet

Re: how many forms do i need??

2008-12-17 Thread Robert Graf-Waczenski
Hi! AFAIK, Struts does not impose an upper limit on how many forms you use. So if using many form classes fits with your own design principles (which IMO are outside of the scope of struts), then you should use this approach. Or are you instead asking if having the same fields and methods d

Global exception handling prevents logging

2008-12-17 Thread Marsman
Hi! As mentioned in my Struts 2 guide, I've coded a general error page for unexpected errors and included it over the global-message-mapping configuration. When an exception occurs, the error page will be displayed to the user. But exceptions are not logged in my logfile anymore. No stack trace e

how many forms do i need??

2008-12-17 Thread m.harig
hi all i've started doing my project in struts . am using DispatchAction class . i've a doubt . that is can i use separate forms for every page . for example for login-page i've LoginForm. and for edit-use

Re: Fwd: export file data using formFile

2008-12-17 Thread elyes sallem
be coool ..., in fact i didn't that before download or upload it is new dev , that is why ...(all we begin by this step, it was the case for you i suppose...), furtheremore, i resolved it => (so don't think that i'm waiting response ...) those who are interested , here is the code i added at the b

Re: S2: using a button how can I get a value of a field in the interceptor?

2008-12-17 Thread Lukasz Lenart
ActionInvocation -> getInvocationContext() -> getParameters() http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/Interceptor.html http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionInvocation.html http://struts.apache.org/2.x/struts2-

Re: S2 V2.0.14: with HTML in property key value

2008-12-17 Thread Robert Graf-Waczenski
Yes, that's what i can do for a button, so by using cssStyle="padding-left:1em; padding-right:1em" i'm achieving the layout that i want to see, thanks. Robert Dave Newton wrote: --- On Tue, 12/16/08, Robert Graf-Waczenski wrote: I would like to avoid the HTML encoding, so that the button

Re: Fwd: export file data using formFile

2008-12-17 Thread Robert Graf-Waczenski
elyes sallem wrote: it forwarded me to page with "unreadable data" comapred to the first example, you omit the resp.setHeader("Content-Disposition", ... Sorry if this sounds a bit harsh, but the people on this list are not here to solve any single Java or Servlet-API related mystery for you