RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Jordi Rubio Moreno
Hi Charbel, If you are using , try to use instead of this the simple HTML tag , and tell me if this works (I don't know why this happens, but I found this solution). Cheers Jordi Rubio Moreno -Mensaje original- De: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Enviado el: viernes,

RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Al Sutton
Just a thought, have you checked the final output is valid HTML and there aren't any mismatched tags? Firefox has a pretty good plug-in which helps with this at https://addons.mozilla.org/en-US/firefox/addon/60 -Original Message- From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent

Re: Optiontransferselect button customization.

2007-05-24 Thread Jeromy Evans
Vijay, For the last time, the doubleId attribute of optiontransferselect works in struts 2.0.6. I provided you with code from a live system that uses it to set the style of the second select as an ALTERNATIVE to doubleCssClass and doubleCssStyle. The doubleCssClass and doubleCssStyle attribut

Re: [s2] Can't get to work

2007-05-24 Thread APenrose
Do you not need or am I missing the point... ;-) mraible wrote: > > I'm trying to get to work in AppFuse. I'm using Struts > 2.0.6. When I add the code below to a JSP, I get a 404 (via Firebug) for > the following files: > > http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us

Re: Optiontransferselect button customization.

2007-05-24 Thread Vijay Prajapati
Jeromy, This can not worked according to your suggestion. There are bug in Struts 2.0.6. This bug is solved in Struts 2.0.8 and still this version in development mode. So whenever it will relese then It would be solved. Just try it and if u have other solution then tell me. Vijay On 5/24/07,

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
Dave I have done it. Thank you. Vijay On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Vijay Prajapati <[EMAIL PROTECTED]> wrote: > You can solve this problem without . Oh, thanks; I thought I had to solve this with I sure am sorry it's taken me so long; I'm a little slow sometime

Re: [S2] needs refresh to work properly

2007-05-24 Thread Vijay Prajapati
Laurie, I have done it. Thank you very much. I would like to appreciate your efforts done for me. I would like to work with you to solve problems. If possible then we would meet u through net. Vijay On 5/25/07, Laurie Harper <[EMAIL PROTECTED]> wrote: Perhaps something like the following,

Language in URL

2007-05-24 Thread Gert Vanthienen
L.S., Is it possible to use the language as a part of the URL, without having to create a page per language (e.g. have nl/shop.jsp refer to shop.jsp, automatically adding a request_locale parameter or something)? How is it done in Struts 2? Regards, Gert ---

Re: problem sending array values to struts2 action

2007-05-24 Thread dhilip mandava
Thanks for your reply. Here Under Iam furnishing the Stack trace of the Exception. (interceptor.ParametersInterceptor 198 ) ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'bitRate[]' with value '[Ljava.lang.String;@156b7c1' (interceptor.ParametersI

Variable Form Elements, Dynamically Generated Forms

2007-05-24 Thread Henry F. Camacho Jr.
I am trying to work out the best way use dynamically generated forms in Struts. The application I am developing is going to allow the user to select from a database a list of fields that should be active on a form. This list will be modified within the database, and so I am thinking that Dyna

Re: CRUD Application - How can I receive url attributes

2007-05-24 Thread Henry F. Camacho Jr.
That was extremely helpful...looks like that page has gotten me over the hump Thank you... HFC Givler, Eric wrote: I'd recommend going to the Learntechnology site, and reading this: http://www.learntechnology.net/content/struts/struts_crud.jsp -Original Message- From: Henry F. Cama

Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Charbel Abdul-Massih
I had posted a question yesterday regarding the slowness of the rendering of some of my struts pages... Well, after trying many different options including turning off devMode and automatic reloading of property files, I decided to try the page in a different browser. IE seems to do a bette

Form Update issue - Could not find action / No result defined for

2007-05-24 Thread tom tom
Hi, I got a form with following syntax When I press the submit it gives the following exception, all the actions defined in the struts.xml file javax.portlet.PortletException: Could not find action testAction at org.jasig.portal.channels.portlet.CPortl

[s2] Can't get to work

2007-05-24 Thread mraible
I'm trying to get to work in AppFuse. I'm using Struts 2.0.6. When I add the code below to a JSP, I get a 404 (via Firebug) for the following files: http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en/gregorianExtr

RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Sourabh Chandan
Hi , What i got in your code is that you are closing Remove / from first line. You line should be Whatever your condition is applied. (Closed Here Also). Sourabh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 3:08 AM To: user@struts

Re: MVC1 -Frame Based JSP Application to Tiles

2007-05-24 Thread Craig McClanahan
On 5/24/07, Raghuveer <[EMAIL PROTECTED]> wrote: I Have a JSP web application using MVC1 framework. It uses Farmes(one left for navigational links and other right with tabs on top.) >From tiles documentation i understand i can use tiles with out struts ? So i was thinking the possibility and

Re: Best practice - Wizard flow

2007-05-24 Thread Jeromy Evans
In S2 your JSP is accessing the value stack. Lets say you only need one bean for all the information your wizard collects (I'll use person as an example) eg. It's your action's responsibility to ensure the same person instance is being updated if you're accessing different properties of perso

Re: problem sending array values to struts2 action

2007-05-24 Thread Don Brown
Where exactly did you get the NPE? Could you provide a stacktrace? Don On 5/25/07, dhilip mandava <[EMAIL PROTECTED]> wrote: i have input fileds like url[], bitrate[]like 5 fields. i used array syantax [] because , dynamically i am adding those fields using javascript with same name. i

Re: [S2] Blank war with IDEA 6

2007-05-24 Thread Don Brown
I'd recommend starting with an archetype [1]. Then, you can use Maven 2 to build your IDEA configuration automatically via "mvn idea:idea". Don [1] http://struts.apache.org/2.x/docs/struts-maven-archetypes.html On 5/24/07, Victor Neo <[EMAIL PROTECTED]> wrote: Does anyone here knows how to u

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Don Brown
Yes, you can tell Struts to not use any action extension at all. I'm doing that right now for a Restful application I developed. I haven't tried, but you might be able to use wildcards to match the extension in the action mapping and perhaps use a custom dispatcher result to determine which actua

Re: Struts2 JasperReport plugin - Parameters

2007-05-24 Thread Don Brown
Would you mind submitting this as a JIRA ticket, so we can get the improvement into the JasperReports plugin for other users? Don On 5/25/07, cristales <[EMAIL PROTECTED]> wrote: I solve my question, by this way; * add a property customParameters to JasperReportsResult with the respective set

Re: [ANN] "Starting with Struts2" Book

2007-05-24 Thread Don Brown
Congrats Ian! Don On 5/25/07, Ian Roughley <[EMAIL PROTECTED]> wrote: I am pleased to announce the release of the mini-book "Starting with Struts2" from InfoQ.com. "Starting with Struts2" is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts

Re: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Don Brown
I would create an object containing the row data, if you haven't already, then expose a list of that object on the action. Struts 2 can use any POJO, so if your application already stores the information in an Object, use that. Don On 5/25/07, Charbel Abdul-Massih <[EMAIL PROTECTED]> wrote: I

Re: S2: cannot access bean from dialog

2007-05-24 Thread Don Brown
Those objects will only be accessible if the JSP is "front-ended" by an action. By this, I mean that the request is for an action, which executes said Action, then forwards to a JSP. If you have the browser access the JSP directly, it won't be available. Don On 5/25/07, Scott Nesbitt <[EMAIL P

Re: Struts2 Portlet support

2007-05-24 Thread Don Brown
On 5/25/07, mjohnson <[EMAIL PROTECTED]> wrote: I also posted this in the WebWork forum. We have succesfully developed a large application that supports milllions of users with WebWork 2.2.4. It has worked great. This application is comprised of many independent "panels" that are invoked using

RE: CRUD Application - How can I receive url attributes

2007-05-24 Thread Givler, Eric
I'd recommend going to the Learntechnology site, and reading this: http://www.learntechnology.net/content/struts/struts_crud.jsp -Original Message- From: Henry F. Camacho Jr. [mailto:[EMAIL PROTECTED] Sent: Thu 5/24/2007 9:10 PM To: user@struts.apache.org

RE: Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Correct Struts 1 Wayne Baskin GE Commercial Finance T: +612 8913 2656 E: [EMAIL PROTECTED] -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, 25 May 2007 11:39 AM To: Struts Users Mailing List Subject: RE: Struts development with certain IDEs --- "Baskin, Wa

RE: Struts development with certain IDEs

2007-05-24 Thread Dave Newton
--- "Baskin, Wayne" wrote: > Non-rt. Care to explain? Hmm, let's back up a step. What version of Struts are you using? You're just talking about using <%= ... %> in a tag attribute, right? d. Expecting?

CRUD Application - How can I receive url attributes

2007-05-24 Thread Henry F. Camacho Jr.
I've been banging my head on this one reading everything I can. I new to struts, and I apologize if this is somehow redundant to this list. I've got a CRUD application I place various records from a database into a table with an edit button. This edit button has the following format: http:/

RE: Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Non-rt. Care to explain? Wayne Baskin GE Commercial Finance T: +612 8913 2656 E: [EMAIL PROTECTED] -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, 25 May 2007 10:59 AM To: Struts Users Mailing List Subject: Re: Struts development with certain IDEs --- "Bas

MVC1 -Frame Based JSP Application to Tiles

2007-05-24 Thread Raghuveer
I Have a JSP web application using MVC1 framework. It uses Farmes(one left for navigational links and other right with tabs on top.) >From tiles documentation i understand i can use tiles with out struts ? So i was thinking the possibility and feasibilty of using tiles for my current applicatio

Re: Struts development with certain IDEs

2007-05-24 Thread Dave Newton
--- "Baskin, Wayne <[EMAIL PROTECTED]> wrote: > I want to know is there any reason why with one IDE > (Bea WebLogic) I cannot nest scriptlet tags in a > struts tag, but with another Eclipse, I can? You mean the editor complains? Could just be a setting for whether or not you want it to allow you

Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Hi all, I want to know is there any reason why with one IDE (Bea WebLogic) I cannot nest scriptlet tags in a struts tag, but with another Eclipse, I can? Thanks Wayne DISCLAIMER: This e-mail and any attachment is intended only for the exclusive and confidential use of the addressee(s). If you

portletUrlType Constants

2007-05-24 Thread tom tom
Hi, What are the constants for the portletUrlType attribute in Struts 2 url tag. Thanks Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. h

Re: Is this a BUG in S2

2007-05-24 Thread tom tom
Hi, if the action string is being evaluated in the URL tag what does it output the expression as it is, If we have the same expression in value attribute it does evaluate, That is where we are doubtful. In portal mode the action attribute does convert the string to portal string where as value d

Struts2 Portlet support

2007-05-24 Thread mjohnson
I also posted this in the WebWork forum. We have succesfully developed a large application that supports milllions of users with WebWork 2.2.4. It has worked great. This application is comprised of many independent "panels" that are invoked using the "Page-Controller" pattern as defined in the Li

RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote: > Doh! My apologies for the wasted bandwidth .. Nah. We all do silly stuff, probably a lot :) d. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it

RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm
animesh.saxena wrote: > > Two times you are closing the tag, I guess > Doh! My apologies for the wasted bandwidth .. Trailing "/"-itis! Thank you, Dave. Thank you, Animesh. -- View this message in context: http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10793391 Sent

RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Christopher Loschen
The / at the end of the tag closes that tag, so the other closes it for a second time, making it unbalanced. Assuming you have some sort of content between the two tags, it should be Content... HTH, Chris -Original Message- From: probertm [mailto:[EMAIL PROTECTED] Sent: Thursday, M

RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread animesh.saxena
--- Begin Message --- Two times you are closing the tag, I guess (Closed Here) (Closed Here Also). Should be Ani -Original Message- From: probertm [mailto:[EMAIL PROTECTED] Sent: Fri 5/25/2007 3:01 AM To: user@struts.apache.org Subject: Re: Struts 1.x and Tomcat 5 problem Dav

Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm
Dave Newton-4 wrote: > > --- probertm <[EMAIL PROTECTED]> wrote: >> >> > > Looks unbalanced to me... > > Sorry for being thick, Dave. I don't get it. Could you spell it out? -- View this message in context: http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a107930

Re: [S2] needs refresh to work properly

2007-05-24 Thread Dale Newfield
Laurie Harper wrote: Perhaps something like the following, making use of the status info [1] exposed by s:iterator: With a tweak that prevents that if from firing if there are a multiple of 3 entries in yourList: test="#s.index % 3 == 0 && !#s.last" -Dale

Re: [S2] needs refresh to work properly

2007-05-24 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Perhaps something like the following, making use of > the status info [1] exposed by s:iterator: >:| d. Take the Internet to Go: Yahoo!Go puts the Interne

Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote: > > Looks unbalanced to me... d. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.ga

Re: [S2] needs refresh to work properly

2007-05-24 Thread Laurie Harper
Perhaps something like the following, making use of the status info [1] exposed by s:iterator: L. [1] http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html Vijay Prajapati wrote: Dave, Can you please send sampl

Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm
Hi, Dave .. > > Can you post the JSP in question, or is it too large? > See below .. > > Then what makes you think it's a taglib issue? > There seem to be a number of similar issues posted on the web about that have a common characteristic of "unbalanced" and "working under Tomcat 4 and not Tomca

S2: cannot access bean from dialog

2007-05-24 Thread Scott Nesbitt
This is working fine in my main JSP: However, when I call a dialog like this: window.open('overlay-headends.jsp'); This JSP cannot access the fields in the userDetailsBean in the main JSP. Any ideas? The userDetailsBean is a session attribute. Thanks, Scott _

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Thanks again Dave for your input. It's greatly > aprpeciated. Ha ha, don't thank me until something actually works. d. Be a better Heartthrob. Get bette

Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote: > [...] and all of the logic: statements -are- balanced. Can you post the JSP in question, or is it too large? > From a little research, it seems that this may be a > taglib issue, though I can find nothing to confirm > that Then what makes you think

{ANNONCE] Akrogen eclipse plugin & Struts1.x

2007-05-24 Thread Angelo zerr
Hello, I mail you to announce there is new distribution of Akrogen Eclipse plugin. *Akrogen* is code generation Eclipse *Plugin*(version *3.2.**) oriented *components*. With Akrogen you can describe your *Eclipse Wizards pages* with XML/XUL

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell
Dave Newton-4 wrote: Yep... in its simplest form, it's really pretty straight-forward. There's all sorts of cool ways to mess it up later ;) THAT'S the one part of this that I don't need any help with. I can mess things up with the best of them. Thanks again Dave for your input. It's greatl

RE: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Charbel Abdul-Massih
I have a page with a table of n rows (# of rows is dynamic)... Each row has 3 columns, with 3 text input fields... I'm not sure how to represent them in the Action and through the tags... I know I should use some sort of hashmap with each entry representing one row...But from the tags perspective

Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm
Hi .. I am starting to play with Struts (rev 1.2, I think) and have a little "problem". I am having to use an older version of Struts against a recent Tomcat (rev 5.5) and I am getting an /search.jsp(62,0) The end tag "

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Would you make that a separate data structure, or > part of the object already being passed? For me, that would depend on what the underlying data model was, I suppose. > Let's say it's separate, just add the Map/List to the > action, create sette

[ANN] "Starting with Struts2" Book

2007-05-24 Thread Ian Roughley
I am pleased to announce the release of the mini-book "Starting with Struts2" from InfoQ.com. "Starting with Struts2" is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running usin

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell
I have been struggling with the very same problem. So you say pre-populate the map/list. Would you make that a separate data structure, or part of the object already being passed? Let's say it's separate, just add the Map/List to the action, create setter and getters, and make sure and recr

Re: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Dave Newton
--- Charbel Abdul-Massih wrote: > What's the best way to use Mapped/Indexed Properties > in Struts 2.x??? In what way? Are you asking from a tag syntax standpoint, or...? d. Got a little couch potato?

Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Charbel Abdul-Massih
What's the best way to use Mapped/Indexed Properties in Struts 2.x???

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread Musachy Barroso
the "/struts" folder is inside the struts-core jar, and no, you shouldn't have to specify anything else. I'm clueless about this one, even more weird is that you said the datepicker was showing up, even with the error. musachy On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I upd

Re: Best practice - Wizard flow

2007-05-24 Thread Shahak Nagiel
There's obviously a number of ways to implement this, but here's a few: - DHTML/Javascript: See the DOMTab library at http://onlinetools.org/tools/domtabdata/. It's not as bad/messy as you might think, and it saves you from having to worry about a lot of state management issues on the back end

Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote: > You can solve this problem without . Oh, thanks; I thought I had to solve this with I sure am sorry it's taken me so long; I'm a little slow sometimes. > If you have any simple solution then let me know ASAP *sigh* Is this for your job? d.

Property Values (constants)- Struts2

2007-05-24 Thread newtostruts struts
Sorry for such a basic question. What is the right place in struts2 to set constant property values like, FILE_NAME = test.txt ROW_COUNT=10 etc.. and also from that prop file or xml file how do I read it anywhere in the app.. Thx.

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread MLENEVEUT
Hi, I updated the source code, done a "mvn clean" and recompile ("mvn")/redeploy the jars, and I have the same errors : XP/IE 6 : DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed in version: 0.5 DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in vers

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
In the struts 1 world, we used to have one form in the session...With each subsequent page in the flow, part of the form is populated...Whenever any page in the flow is requested, the state is kept and the form variables are retrieved or updated accordingly... Is there a similar way to do this in

Re: Best practice - Wizard flow

2007-05-24 Thread Michael Bowman
Actually, it appears there is already a struts2 plugin for it: http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html -Michael On 5/24/07, Michael Bowman <[EMAIL PROTECTED]> wrote: You may want to check out Spring Web Flow - http://www.springframework.org/webflow It apparently (I haven'

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
That'll work too...I thought about that... I was hoping there's an easier way without having to include all the hidden variables on every page...But that's fine :) -Original Message- From: Marco Carnevale [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 11:34 AM To: Struts Users

Re: Best practice - Wizard flow

2007-05-24 Thread Michael Bowman
You may want to check out Spring Web Flow - http://www.springframework.org/webflow It apparently (I haven't tried it yet) works with struts2 and you don't need to use anything else from spring to use it. I saw a demo of it at JavaOne this year and was really impressed. -Michael On 5/24/07, Cha

RE: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
As I see it the problem with that approach is if I'm at stage 3, I got back two screens to stage 1, change something, when I click next I've lost all the previously entered data in step 2. -Original Message- From: Marco Carnevale [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 16:34 To: Strut

Re: Best practice - Wizard flow

2007-05-24 Thread Marco Carnevale
How about this. Each subsequent page in the wizard contains all the new form elements plus html hidden form elements for the previous save. This way you are hitting the sever between requests and not using the session. Each wizard screen is basically the 'state' for itself plus all previous scr

Re: Struts2 JasperReport plugin - Parameters

2007-05-24 Thread cristales
I solve my question, by this way; * add a property customParameters to JasperReportsResult with the respective seter: public void setCustomParameters(String customParameters) { this.customParameters = customParameters; } * load the customParameters before to generate the report,

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
Dave You can solve this problem without . If you have any simple solution then let me know ASAP Thank you, Vijay Prajapati On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Vijay Prajapati <[EMAIL PROTECTED]> wrote: >> If there are n elements in collection then there >> would be ma

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
In that case, is implementing SessionAware the only step required to have the action stored in the session??? Charbel -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 11:27 AM To: Struts Users Mailing List Subject: RE: Best practice - Wizard flo

RE: Best practice - Wizard flow

2007-05-24 Thread Dave Newton
--- Charbel Abdul-Massih wrote: > I would have thought that something as simple as a > wizard would be easily doable...I would like to keep > away from the session as much as possible... The thing with "wizards" (at least as I've used and implemented them) is that previous steps in the wizard flo

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I would have thought that something as simple as a wizard would be easily doable...I would like to keep away from the session as much as possible... I am using one action for the whole flow, but many action mappings... Something like this so far... mailto:[EMAIL PROTECTED] Sent: Thursday, M

Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote: >> If there are n elements in collection then there >> would be many rows and in each rows 5 elements will >> be display. So... do you know of any way in Java to do something every five times through a loop? (I haven't used so I don't know if it's

Re: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
I know you said you didn't like sessions, but they're the only clean way of doing things stateful things between stateless pages. -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 16:10 To: 'Struts Users Mailing List' Subject: RE: Best practice - Wizard flow

RE: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
Store the values in the session and clear them down when the user either completes the wizard or restarts it? -Original Message- From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 16:04 To: Struts Users Mailing List Subject: RE: Best practice - Wizard flow I would li

Re: Serious memory leak

2007-05-24 Thread Roger Varley
On 22/05/07, Balazs Michnay <[EMAIL PROTECTED]> wrote: Hi, I have just downloaded NetBeans Profiler to see how my web-app performs and realized that it produces serious memory leaks... The interesting part is that I have nothing on my JSP but static struts tags (no dynamic content at all) and

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
If you don't have any other resources ending in .xml .html .etc inside your webapp you can modify the filter-mapping, if you do then you might have to consider the idea of a directory in which all objects are mapped to actions and a separate directory where they are not, e.g.; http://domain.com/st

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I would like to keep away from this method... Any other suggestions??? -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 10:49 AM To: Struts Users Mailing List Subject: Re: Best practice - Wizard flow Why not draw all 3 pages but hide 2 of them and j

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
update "#appStatus.index" instead of "#appStatus.incex" On 5/24/07, Vijay Prajapati <[EMAIL PROTECTED]> wrote: Dave, I am here giving my code on JSP. So please try to correct it. I have 7 elements in collection and i have to show 5 elements in one row and rest of the elements in second row. If

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
Dave, I am here giving my code on JSP. So please try to correct it. I have 7 elements in collection and i have to show 5 elements in one row and rest of the elements in second row. If there are n elements in collection then there would be many rows and in each rows 5 elements will be display.

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy
Hi Roger (and Al), Thanks for your replies. I had thought about doing something like what you specified Roger, by passing the return type as a parameter. However, in keeping with what seems to be fairly standard RESTful web service protocol, I was hoping to have the return type specified after th

Re: Best practice - Wizard flow

2007-05-24 Thread Lance
Why not draw all 3 pages but hide 2 of them and javascript the next page on and off. All pages inside the same form, last page submits. Charbel Abdul-Massih wrote: I am developing a wizard type flow with 3 pages in the wizard... We'll call them page 1, page 2, and page 3... I need use

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Just read the your post again, I see you're using the result as a two step process as oppose to needing a dispatch switch statement, cool idea, but I think it will still be a bit more complex than using the separate directories. -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED]

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Just a small observation Roger, whilst you're solution is perfectly workable, you would need to have a big switch statement (or something similar) which could get messy. imho, the use of the extra directory and namespace (i.e. /xml/, /html/, etc.) that I suggested earlier is slightly simpler becau

Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I am developing a wizard type flow with 3 pages in the wizard... We'll call them page 1, page 2, and page 3... I need users to be able to navigate between pages with a next/previous button, without losing any data that was entered in any of the pages. The last submit from page 3 will store

Re: difference between html:submit and

2007-05-24 Thread Alin Tomoiaga
>altKey, bundle, indexed, titleKey, and property are >all Struts-specific (I think)... largely message- and >ActionForm-related stuff. altKey, property, indexed are just different names for "functionality" already provided by the simple html tag. I was hoping for a more subtle difference (like

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Roger Varley
I'm still a newbie as well so take this with a pinch of salt. I would try doing it this way; http://www.domain.com/struts2/queryName?param1=foo,param2=xml http://www.domain.com/struts2/queryName?param1=foo,param2=json http://www.domain.com/struts2/queryName?param1=foo,param2=html http://www.domai

problem sending array values to struts2 action

2007-05-24 Thread dhilip mandava
i have input fileds like url[], bitrate[]like 5 fields. i used array syantax [] because , dynamically i am adding those fields using javascript with same name. i want to get all those values in some array in action class so,i wrote setter, getter for all those fileds as array type of strin

Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote: > If you have any solution then help me out. Seriously, I think I helped you already. Maybe if you explain where you're having issues coming up with the solution we can work our way through it. d. ___

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
Al, I am getting values through List from Struts Action and based on that i have to show values on JSPs. and i think Struts can do it. If you have any solution then help me out. On 5/24/07, Al Sutton <[EMAIL PROTECTED]> wrote: Vijay, You've been given a good hint about Struts can offer to

RE: Problem regarding tag

2007-05-24 Thread Al Sutton
Ever get the feeling someones homework is due in or a deadline is looming? -Original Message from Vijay Prajapati- . . . . > Please reply me ASAP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Kevin, >From my knowledge you can't achieve exactly what you're looking for in struts2 because struts2 uses the first part of the last section of the url resource identifier as the key for the action lookup (i.e. for all 4 of your examples the action would be mapped to he same action for queryName

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati
Dave, I have 10 element in list() and i want to retrieve and to show them through tag on JSP. But not in one row but in given below style. I am here giving sample output.. 1 2 3 --- in 1st row of HTML table 4 5 6 --- in 2nd row of same HTML table 7 8 9 ---

RE: Problem regarding tag

2007-05-24 Thread Al Sutton
Vijay, You've been given a good hint about Struts can offer to help. If you feel you need to improve the formatting maybe you should look for a JSP formatting tag library and ask the question on their list. Regards, Al. -Original Message- From: Vijay Prajapati [mailto:[EMAIL PROTECTED]

Re: retrieving value of attribute from tiles definition

2007-05-24 Thread Antonio Petrelli
2007/5/24, temp temp <[EMAIL PROTECTED]>: My page uses this definition. In my jsp I want to capture the value of title in a bean How to? Use : http://struts.apache.org/1.3.8/struts-tiles/tagreference.html#importAttribute Antonio -

retrieving value of attribute from tiles definition

2007-05-24 Thread temp temp
I have a tiles def My page uses this definition. In my jsp I want to capture the value of title in a bean How to? Thanks & Regards Miro - Got a little couch potato? Check out fun summer activities for kids.

[S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy
Hi everyone, I'm new to Struts 2 (and Struts in general, for that matter). I've got the Struts 2 framework up and running and I'm trying to figure out how to get it to support a use case for our new application. We'd like to have a set of web services that look like this: http://www.domain.com/st

Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote: > I want to print pattern which i have drawn in my > first mail through tag. > As per your link it will shows 1,2,3,4,5 in row > but i want to draw it in row and column wise. So how might you go about solving that? You have #stat.index. You have t

  1   2   >