setting the frame in which a particular result page is displayed

2007-08-02 Thread Session A Mwamufiya
Hi, I have a number of result pages for my action, and I would like them to appear in different frames. Is there a way to define the target frame for each result page? Thanks, Session - To unsubscribe, e-mail: [EMAIL

Validating using indexedListProperty

2007-08-02 Thread Hiroyuki Suzuki
hello guys..its me again.. I have a problem regarding my validation of html:text which is inside the iteration and the validation will depends if the corresponding checkbox has been selected. this is my JSP bitratebox is for the multibox and bitrateTxt is for the text logic:iterate

RE: DownloadAction and a normal Forward

2007-08-02 Thread Gundersen, Richard
Hi Frank, Paul Thanks again for the tips. The thing is, having a NPE isn't actually a problem for me. I am quite (well, not entirely) happy for the code to throw it since by that time, my RequestDispatcher.forward method has already got my request to the browser by then, and the user is viewing

placing 2 buttons next to each other

2007-08-02 Thread Session A Mwamufiya
Hi, Is there a way to configure an s:form tag so that the 2 submit buttons appear side by side instead of one under the other? I use a css file with input.actionButtons {float: left;} to move both of them to the left, but they're not appearing next to each other. Thanks, Session

[S2] No more Tabbedpanel in v2.1.0 ?

2007-08-02 Thread MLENEVEUT
Hi, There is a Tabbedpanel in the UI Tag's doc (http://struts.apache.org/2.x/docs/tabbedpanel.html) but this seems to have disappeard in v2.1.0. Is there a new packaged way of handeling tabs in JSP ? Thanks.

[S1]minipulate output of bean:write

2007-08-02 Thread Alexander Jede
Hallo list, I have an ActionForm with an attribute (String) to print the value of this attribute I use bean:write name=myBean property=myAttr/. The problem is the String could have small and capital letters but I would like to print it always the same. For example always with capital letters.

Eclipse Editor and struts tags

2007-08-02 Thread appel
Hello, I'm using Eclipse 3.2.2, isn't it possible to get tag insight, syntax coloring, code completion etc. when editing JSP pages using struts-tags ? It's currently just raw black text. -- View this message in context:

RE: placing 2 buttons next to each other

2007-08-02 Thread Indu rekha Meduri, TLS-Chennai
Hi, I tried this way. Hope this may help u too. Css file: .button { margin-top: 0; font-size: 10pt; text-align: center; background-color: white; } .buttonbar { padding-top: 1em; text-align: right; } Form: table tr td

[S2] ClassCastException on getParameters

2007-08-02 Thread meissa . sakho
Hi all, I'm having big trouble while trying to acces to the parameters values. I'm simply trying to retrieve a parameter value from my interceptor class. The Action class that is intercepted implements the ParameterAware interface and has getter and setter method related to parameters attribute

Re: Eclipse Editor and struts tags

2007-08-02 Thread MK Tan
Do you have WTP installed in your Eclipse? On 8/2/07, appel [EMAIL PROTECTED] wrote: Hello, I'm using Eclipse 3.2.2, isn't it possible to get tag insight, syntax coloring, code completion etc. when editing JSP pages using struts-tags ? It's currently just raw black text. -- View this

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-08-02 Thread Rene Gielen
Nils, I love you for that :) It was on my wishlist for so long, but I never found the time to get into it. Cheers, Rene Nils-Helge Garli schrieb: I think I've managed to get all the steps written down: http://portletwork.blogspot.com/2007/07/mvnjetty-and-portlets.html Also, I took a struts

Re: [S1]minipulate output of bean:write

2007-08-02 Thread Niall Pemberton
On 8/2/07, Alexander Jede [EMAIL PROTECTED] wrote: Hallo list, I have an ActionForm with an attribute (String) to print the value of this attribute I use bean:write name=myBean property=myAttr/. The problem is the String could have small and capital letters but I would like to print it always

Re: CSS / JavaScript menu libraries for Struts 2 Showcase application

2007-08-02 Thread Rene Gielen
I pretty much like the webfx stuff: http://webfx.eae.net/ They recently changed their license from GPL to ASL2, so no licensing issues here. Note: one of my what-i-would-do-if-i-only-had-time-list point was encapsulating the webfx menu stuff into some s2 tags... Regards, Rene James Holmes

Re: CSS / JavaScript menu libraries for Struts 2 Showcase application

2007-08-02 Thread Antonio Petrelli
2007/7/31, Frank W. Zammetti [EMAIL PROTECTED]: is the GPL compatible with the ASL? Absolutely not! Neither for binary releases nor for sources. See: http://people.apache.org/~cliffs/3party.html Antonio - To unsubscribe,

RE: Eclipse Editor and struts tags

2007-08-02 Thread Sahil Gupta
Hi, Why don't you use MyEclipse. Download and install this. It will search for ur Eclipse and get installed in the appropriate location. Then open all JSP files and xml files using MyEclipse editor. Sahil -Original Message- From: appel [mailto:[EMAIL PROTECTED] Sent: Thursday, August

Re: Number Validator

2007-08-02 Thread Rene Gielen
Since entering a NAN value for a number property should result in conversion errors, you might want to checkout this: http://cwiki.apache.org/confluence/display/WW/conversion+validator Richard Sayre schrieb: Is there a way to use the XML validation to check to see if a field is a number? I

Re: [S2] Is there some BigDecimal validator and conversion routines?

2007-08-02 Thread Rene Gielen
You are right, there is no bundled BigDecimal related validator in place, but it should be quite easy to implement (eg. extend FieldValidatorSupport). For registering, see http://cwiki.apache.org/confluence/display/WW/Validation BTW, is it really validation you are searching for, or is it

[S2] Design Advice Needed

2007-08-02 Thread Hoying, Ken
I could use some advice from some folks with more experience and knowledge of Struts2 than I to assist me in determining the correct way (or lay out some viable options) to design a solution for the following senario: We need to generate a PDF report real time based on data in a database that is

Re: [S2] Design Advice Needed

2007-08-02 Thread Rene Gielen
You should definitely have a look into the struts2-jasperreports-plugin - both for checking out how to write own results and evaluating if you might want to use jasper over FOP, since full s2 result support is already available for jasper. The plugin is part of the struts2 source distribution.

Re: Accessing ActionForm from JSP

2007-08-02 Thread Yoge
pageContext.findAttribute(Your formname) will return the ActionForm instance . On 8/2/07, Oleg Konovalov [EMAIL PROTECTED] wrote: Hi, How can I access an ActionForm from my JSP in Struts 1.2-1.3 ? Thank you, Oleg. -- Yoge, AdventNet, Inc. 925-965-6528 [EMAIL PROTECTED] site24x7.com

Re: [S2] Design Advice Needed

2007-08-02 Thread Mike Baroukh
I suppose there is a lot of other way to generate pdf with struts2. Certainly a plugin. But I don't know how it works. However, to invoke a jsp and get the result in your action, you can use a requestDispatcher to obtain the resut of a jsp execution. Here is something I already done with

Re: Eclipse Editor and struts tags

2007-08-02 Thread appel
Hi, I cannot install WTP unless I have EMF, and I cannot install EMF unless I have Eclipse 3.3.0 (I have Eclipse 3.2.2). So therefor I cannot install WTP! :| Also, I don't want to install a new Eclipse editor, it's a total pain maintaining 2 or 3 Eclipse installs, with 3 different workspaces.

Re: [S1]minipulate output of bean:write

2007-08-02 Thread vamsi
I think we can't specify the string format using bean write may u can handle this thing using CSS - Original Message - From: Alexander Jede [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, August 02, 2007 2:22 PM Subject: [S1]minipulate output of bean:write Hallo list, I

RE: [S2] Design Advice Needed

2007-08-02 Thread Hoying, Ken
Thanks, Rene! I actually just found that after sending my question. Somehow I missed it earlier. We are definitely going to take a look at Jasper and the plugin as it appears a lot of the heavy lifting may already be done for us. Thank you! -Original Message- From: Rene Gielen

RE: [S2] Design Advice Needed

2007-08-02 Thread Wesley Wannemacher
Having used FOP briefly, I would add only one thing. It is generally considered a good practice to generate traditional XML first, then transform your data to XSLFO using a transform (pardon me if I am getting the terms wrong). Basically, create your XML data, then have an XSL file that transforms

Re: placing 2 buttons next to each other

2007-08-02 Thread yitzle
-Original Message- From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 1:39 PM To: user@struts.apache.org Subject: placing 2 buttons next to each other Hi, Is there a way to configure an s:form tag so that the 2 submit buttons appear side by side

Re: [S2] No more Tabbedpanel in v2.1.0 ?

2007-08-02 Thread Musachy Barroso
In 2.1 all ajax/javascript related tags where moved to the dojo plugin. musachy On 8/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, There is a Tabbedpanel in the UI Tag's doc (http://struts.apache.org/2.x/docs/tabbedpanel.html) but this seems to have disappeard in v2.1.0. Is there a

Re: Where does /struts look?

2007-08-02 Thread Musachy Barroso
I think you are missing your application context: http://localhost:8080/myapp/struts/dojo/dojo.js musachy On 8/2/07, Struts2 Fan [EMAIL PROTECTED] wrote: Ok so When I put a s:head theme=ajax/ it creates some js scripts such as the below. script type=text/javascript

Simple authentication

2007-08-02 Thread appel
Hello, I need some simple login page for my web. There is only one account, and I'll probably just hardcode the user/pass in the code. Can't figure out how to do it properly with the struts2 framework, been googling and reading the docs... do I need a interceptor for this or? Thank you! --

RE: [S2] How to apply formatting to s:property?

2007-08-02 Thread Neil Aggarwal
Dave: Did you give up on this? Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [S2] Design Advice Needed

2007-08-02 Thread Oguz Kologlu
When I used XSLFO (maybe 3-4 years ago) it was really a pain. I can't see how it could have gotten any better - without a visual designer anyway. Have a look at http://www.eclipse.org/birt (Birt) - It can generate PDF's, export data, has a good designer etc. (also if you are thinking

RE: [S1]minipulate output of bean:write

2007-08-02 Thread Rod Bollinger
Hi Alex, If I understand what you are trying to do, you can use JSTL to accomplish the task as such: c:out value=${fn:toUpperCase(myAttr)} / HTH, -Rod -Original Message- From: Alexander Jede [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 04:53 To: user@struts.apache.org

Re: CSS / JavaScript menu libraries for Struts 2 Showcase application

2007-08-02 Thread Struts2 Fan
Appfuse uses struts-menu http://struts-menu.sourceforge.net/ James Holmes-2 wrote: Anyone know what Matt is using for AppFuse.org? Is that the type of menu people would like to see? -- View this message in context:

RE: [S2] How to apply formatting to s:property?

2007-08-02 Thread Dave Newton
--- Neil Aggarwal [EMAIL PROTECTED] wrote: Did you give up on this? No, I'm just not actually physically attached to my computer and teh intarwebs 24/7 and the boss keeps blathering on and on about some sort of do stuff for me BS. I haven't done anything with setting the i18n.resources

[S2] Bug v2.1.0 double validation

2007-08-02 Thread MLENEVEUT
Hi, I try to validate a double, but it generates this in my JSP : // field name: familleProduit.chargeTravail // validator name: double if (form.elements['familleProduit.chargeTravail']) { field = form.elements['familleProduit.chargeTravail']; var

Re: Simple authentication

2007-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Appel, appel wrote: I need some simple login page for my web. There is only one account, and I'll probably just hardcode the user/pass in the code. Can't figure out how to do it properly with the struts2 framework, been googling and reading the

RE: DownloadAction and a normal Forward

2007-08-02 Thread Frank W. Zammetti
The thing is, I'm not entirely sure there's another viable option. I could certainly see extending DownloadAction in some way so that there is kind of a verify() method called first that detects the problem that your checking for (the if(problem) statement)... if a problem is detected, i.e., file

RE: [S2] How to apply formatting to s:property?

2007-08-02 Thread Neil Aggarwal
Dave: Thanks for getting back to me. I was not assuming you were available 24x7. I just wondered if you were frustrated by my inexperience. I put a package.properties file in my WEB-INF/classes/page directory since that is the package that contains the action class. It works perfectly!

RE [S2] Bug v2.1.0 for double and int validation

2007-08-02 Thread MLENEVEUT
Same with int validation. field name=familleProduit.chargeTravail field-validator type=int message key=errors.int/ /field-validator /field generates : // field name: familleProduit.chargeTravail // validator name: int if

Using Nested tag and JavaScript

2007-08-02 Thread semaj.najraham
Hey guys, I need some help using nested tag library and javascript. I have an actionForm named RegistrationForm that has two AddressForm; mailing and billing addresses. I need to implement a requirement if a user clicks a checkbox say 'same as mailing', I need to copy the textfield values from

RE: [S2] How to apply formatting to s:property?

2007-08-02 Thread Dave Newton
--- Neil Aggarwal [EMAIL PROTECTED] wrote: I tried moving the package.properties to WEB-INF/classes so it would be application wide but that seems to be ignored. Hmm, I guess I would have thought that would work, but I've never tried. I would still really like a way to make a global

problem with html:cancel

2007-08-02 Thread Charl Gerber
Hi, I've got this tag: html:cancel styleId=cancelButton styleClass=submitbutton / But the isCancelled() in the action then always return false, even if I hit the cancel button. If I replace the tag with a default html:cancel/html:cancel then it works. Looks like something with the generated

Re: problem with html:cancel

2007-08-02 Thread Paul Benedict
Paste in the generated HTML for both cases please. Thanks, Paul On 8/2/07, Charl Gerber [EMAIL PROTECTED] wrote: Hi, I've got this tag: html:cancel styleId=cancelButton styleClass=submitbutton / But the isCancelled() in the action then always return false, even if I hit the cancel

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; id=cancelButton class=submitbutton Paste in the generated HTML for both cases please. Thanks, Paul

RE: [S2] How to apply formatting to s:property?

2007-08-02 Thread Neil Aggarwal
Dave: Arrgh. I just figured it out. I need to set the constant to the name of the file *without* the .properties extension. So, in struts.xml, I put this: constant name=struts.custom.i18n.resources value=application/ and it loads application.properties just fine. Thank you for your help on

Link in checkbox label

2007-08-02 Thread Kevin Lawrence
Is there away to stop the label of a checkbox from being escaped? s:checkbox key=legal label=I have read the a href='/about/legal/'legal stuff/a/ results in: label for=_legal class=checkboxLabelI have read the lt;a href='/about/legal/'gt;legal stufflt;/agt;/label TIA Kevin

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
You mean check in my action class? Why should the name change? Its the same for both cancel buttons, one works, the other not just the id and class extras that breaks it. --- Paul Benedict [EMAIL PROTECTED] wrote: This is interesting. The name isn't changing so I don't know what is going

layout Struts 2

2007-08-02 Thread Manuel Correa
Some Knows how to build my own layout in Struts 2 ?? I want to use Ajax and the UI Tags and make my own layout. Thanks Manuel

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
OK, more info if I remove the styleId attribute, then it works. Maybe something to do with the actual style id (#submitButton) not being declared in the .css? --- Paul Benedict [EMAIL PROTECTED] wrote: This is interesting. The name isn't changing so I don't know what is going on. Can

FW: layout Struts 2

2007-08-02 Thread Manuel Correa
I want to have one div in the left and when some click in some link refresh the div in the right, with Ajax. Manuel -Original Message- From: Manuel Correa [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 1:51 PM To: user@struts.apache.org Subject: layout Struts 2 Some Knows

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
server --- Paul Benedict [EMAIL PROTECTED] wrote: Is the problem with server or client validation? On 8/2/07, Charl Gerber [EMAIL PROTECTED] wrote: OK, more info if I remove the styleId attribute, then it works. Maybe something to do with the actual style id (#submitButton)

performing multiple things with a single button

2007-08-02 Thread Session A Mwamufiya
Hi, I have two frames and would like to have the submit button from one frame be handled by that frame's action and do the following: 1. capture values from the frame and put them in the session object 2. load a different page in the current frame 3. force the other frame to reload Getting 1

Re: problem with html:cancel

2007-08-02 Thread Paul Benedict
Is the problem with server or client validation? On 8/2/07, Charl Gerber [EMAIL PROTECTED] wrote: OK, more info if I remove the styleId attribute, then it works. Maybe something to do with the actual style id (#submitButton) not being declared in the .css? --- Paul Benedict [EMAIL

Re: performing multiple things with a single button

2007-08-02 Thread Oleg Mikheev
Session A Mwamufiya wrote: 1. capture values from the frame and put them in the session object 2. load a different page in the current frame 3. force the other frame to reload Getting 1 and 2 are fine with the standard struts 2 flow of events (1 in the action, and 2 as the result page), but

display validation error to simple theme

2007-08-02 Thread Pedro Herrera
Hi, How I show the erros(validation) when using simple theme ? Herrera -- View this message in context: http://www.nabble.com/display-validation-error-to-simple-theme-tf4208443.html#a11971725 Sent from the Struts - User mailing list archive at Nabble.com.

Re: using css with struts 2

2007-08-02 Thread Leena Borle
Hi, Do you have your form's theme set to css_xhtml ? Leena On 7/31/07, Session A Mwamufiya [EMAIL PROTECTED] wrote: Hi, I have a page with various strut objects in a form (buttons, textfields, and listboxes), and would like to be able to control the layout. I tried using a css file to

Re: using css with struts 2

2007-08-02 Thread Chris Pratt
It also looks like you're referencing the actionButton style class td valign=top s:form target=SMIG_Editor s:submit value=Add Category action=CategoryEditor cssClass=actionButton / /s:form /td But you defined the style as the button class. input.button {

Re: [S2] dojo 0.9 and ***-conversion.properties

2007-08-02 Thread David Durham, Jr.
On 8/1/07, Oguz Kologlu [EMAIL PROTECTED] wrote: Unexpected Exception caught setting 'contacts%5B0%5D.firstName' on 'class easybed.web.struts2.ContactsAction: Error setting expression 'contacts%5B0%5D.firstName' with value '[Ljava.lang.String;@284bf3' Dojo 0.4.3 used to work ok (probably it

Re: using css with struts 2

2007-08-02 Thread Session A Mwamufiya
I got it cleared up, it was an issue with not using the absolute path in my link. Thanks, Session Hi, Do you have your form's theme set to css_xhtml ? Leena On 7/31/07, Session A Mwamufiya [EMAIL PROTECTED] wrote: Hi, I have a page with various strut objects in a form (buttons,

s:action stopping the result it is called form

2007-08-02 Thread Richard Sayre
The following jsp is a Result in an action called 'listTypes'. %@ include file=/includes/header.jsp% h1s:property value=pageTitle//h1 br/ s:action name=getTypeParamTree executeResult=true/ %@ include file=/includes/footer.jsp% getTypeParamTree result is xslt and is configured as follows:

Re: display validation error to simple theme

2007-08-02 Thread Richard Sayre
Use the s:fielderror/ tag On 8/2/07, Pedro Herrera [EMAIL PROTECTED] wrote: Hi, How I show the erros(validation) when using simple theme ? Herrera -- View this message in context: http://www.nabble.com/display-validation-error-to-simple-theme-tf4208443.html#a11971725 Sent from the

Locale - make available to JSP

2007-08-02 Thread Ray Clough
The first page of my app is a Login page. Every other page is correctly localized, because the app gets the user's preferred locale from a DB, and Struts handles it, but until they have logged in the DB is not available. I want it to be localized from cookies. I created a filter which

Difficulty with submitting variable amouts of form data

2007-08-02 Thread Ken Bowen
Hi, [I'm using struts 1.2.7 (with EL from contrib) on Tomcat 5.5.9]. I'm attempting to submit variable amounts of form data in a table following the model of James Turner: http://www.developer.com/java/ejb/article.php/10931_3321521_1. The goal is to retrieve items (user-configured alerts)

Re: [S2] Parameterized File Downloading

2007-08-02 Thread Grish
Ok, I finally see the error of my ways: I originally defined my parameter like this: s:param name=inputPath value=/images/bg_pattern.gif / when it should be like this: s:param name=inputPath value=%{'/images/bg_pattern.gif'} / now the proper string is passed. Thanks so much for the help!

Is it possible to pass a dynamic parameter to a redirectAction?

2007-08-02 Thread Piero Sartini
I have the following situation: a searchfield is on top of a table presenting results. if there is only one result, the user should be redirected without the need of clicking on the list.. now my problem is how to redirect to an action and passing a parameter from within my original action..

Re: Eclipse Editor and struts tags

2007-08-02 Thread MK Tan
Hi, WTP 1.5http://download.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.4-200705021353/with EMF 2.2 http://www.eclipse.org/modeling/emf/downloads/?project=emf will run fine in Eclipse 3.2.2. ;-) On 8/2/07, appel [EMAIL PROTECTED] wrote: Hi, I cannot install WTP unless I have EMF, and I

[S2] Issues with AJAX in IE

2007-08-02 Thread Grish
I'm not so sure if this is some bug, but I noticed an odd behaviour with my AJAX forms in IE. For Firefox, if I hit the submit button for my form, my output is displayed in my DIV area as exepcted. Same for IE. But in IE, when I hit enter button instead of clicking on my submit button the whole

Re: Is it possible to pass a dynamic parameter to a redirectAction?

2007-08-02 Thread Dale Newfield
Piero Sartini wrote: I have the following situation: a searchfield is on top of a table presenting results. if there is only one result, the user should be redirected without the need of clicking on the list.. If you just want them to see the list for X seconds, then the link to be

Re: Where does /struts look?

2007-08-02 Thread Struts2 Fan
No I am using Jetty and I have no application context. As I said before I can see all the js files except /struts/dojo/dojo.js Musachy Barroso wrote: I think you are missing your application context: http://localhost:8080/myapp/struts/dojo/dojo.js musachy -- View this message in

Problem deploying an application

2007-08-02 Thread John Mammen
Hi, I have 3 projects (web project, EJB and Java Client) which I have deployed using a single EAR. The EJB and the client reference the web project (will there be a problem with a reference in this direction?). After successful deployment, the Client and the EJB are unable to find the