Re: [S2] alternate tag layouts?

2007-05-10 Thread Laurie Harper
אלחנן מעין wrote: hi.. i saw that all you do in struts tag is place them inside a form tag, and it automatically renders them as a 2 columns table, but if i want a diffeent layout? what if i want to have several controls in one group ,and several controls in another group next to them (like

Need Help On Combo Box Population VERY URGENT REQUIREMENT

2007-05-10 Thread Srinivasula Reddy A , Bangalore
Hi Struts User Community, I need a rough IDEA / CODE on there are three combo boxes are there depending on the first combo box selection second combo box has to populate and depending on the second combo box selection third one has to populate. Like populating all the states of country

RE: Need Help On Combo Box Population VERY URGENT REQUIREMENT

2007-05-10 Thread Kapil Sharma
BTW it is not related to struts but javascript n client programming query ? For the sake I am giving u a hint. It is the way how you are going to set the pattern according to single entry change. Take all the required data into the page and set the pattern accordingly. i.e on change event you

RE: Good idea of installing a file on host machine

2007-05-10 Thread Raghupathy, Gurumoorthy
What does this has to do with struts ? -Original Message- From: Kapil Sharma [mailto:[EMAIL PROTECTED] Sent: 10 May 2007 04:15 To: Struts Users Mailing List Subject: RE: Good idea of installing a file on host machine Thanks, But i heard of a new trechnology called web start. I

RE: Good idea of installing a file on host machine

2007-05-10 Thread Al Sutton
Read up on Web Start, it's not all that new, and a web start application isn't going to be able to efficiently use struts for it's presentation. -Original Message- From: Kapil Sharma [mailto:[EMAIL PROTECTED] Sent: 10 May 2007 04:15 To: Struts Users Mailing List Subject: RE: Good idea of

Re: Decode Request Parameters

2007-05-10 Thread zuban
ok, I added URIEncoding=UTF-8 in server.xml tomcat-config-file Now it works fine. -- View this message in context: http://www.nabble.com/Decode-Request-Parameters-tf3718189.html#a10411761 Sent from the Struts - User mailing list archive at Nabble.com.

Re: How to forward to an unknown view in Struts 2?

2007-05-10 Thread Musachy Barroso
%{expr} won't work (yet). I modified EditPersonAction on showcase to this: @Result(name=list, value=${next}, type=ServletRedirectResult.class) public class EditPersonAction extends ActionSupport { ... public String getNext() { return listPeople.action; } public String execute() throws

Generate JSP by dojo

2007-05-10 Thread Michał Letyński
Hi. I want to invoke the action from dojo (the result of action is a jsp) and then innerHtml this generated page. Is it possible ? If yes, how to get this generated jsp ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Generate JSP by dojo

2007-05-10 Thread Musachy Barroso
If you can use the tags that Struts already provides, then it is very easy, check this for examples: http://struts.apache.org/2.x/docs/ajax-tags.html if not, you can use dojo.bind in a normal fashion, just passing the url of your action as the url to use, and set the innerHTML when the request

[S2] Creating my own tag

2007-05-10 Thread MLENEVEUT
Hi all, I don't find any documentation on that, so I post here. I would like to create my own tag (in Struts 1 I extend org.apache.struts.taglib.html.BaseFieldTag for example) to display a table. In fact I would like to put some HTML around displayTag. How could I do ? Where are the new

Re: [S2] Creating my own tag

2007-05-10 Thread Antonio Petrelli
2007/5/10, [EMAIL PROTECTED] [EMAIL PROTECTED]: In fact I would like to put some HTML around displayTag. DisplayTag IS NOT part of Struts: http://displaytag.sourceforge.net/ Antonio - To unsubscribe, e-mail: [EMAIL

Re: [S2] Creating my own tag/theme/template

2007-05-10 Thread MLENEVEUT
Kikoolol. Thanks for your help, but if you had read my question, you will have understood that we don't care what will be in my tag. In do know that displayTag is not Struts... By the way, I found my mistake. Tags does'nt more exist, it is themes and templates. So here is my JSP :

The design of bread crumb trail

2007-05-10 Thread Zhang, Larry \(L.\)
Say I have two Jsp pages, Page 1, Page 2. On page 1 I have some text fields such as Name, SSN for example, and the user types in Name and SSN and then submit the form and the navigation goes to page 2. On page 2 I have the bread crumb trail saying Page 1 Page 2. Notice that Page 1 is a clickable

[S2] Form handling life cycle with HTTP GET/POST

2007-05-10 Thread Gunnar Hillert
Hi, I worked with Spring-MVC in my past projects and I really liked the idea of my form actions/controllers to initialize my forms when I access them with an HTTP GET and then process the forms with an HTTP POST. The nice effect of this is that I have one single URL that does form

RE: The design of bread crumb trail

2007-05-10 Thread Edward Song
I would use the paging feature in ActionForms A single ActionForm can be used for the wizard style data collection. It also hooks in with the validator, allowing you to specify that for page 1, only page 1 fields will be validated, such as your name and your SSN. Since the ActionForm can

[S2] Using complex objects in JSP

2007-05-10 Thread Jordi Rubio Moreno
Hi, I'm newbie in Struts, and I have begin with Struts 2. I have an ActionSupport object that contains a complex object TResultSet (this object communicates with a remote server and this server sends a lot of information that is stored into the TResultSet client). class TResultSet {

Re: [S2] alternate tag layouts?

2007-05-10 Thread אלחנן מעין
isn't there another way? like maybe wrapping them in tables (table that has one row, once cell) and have the table boreder visible? otherwise if i understand this right, i'll have to create new Group tag, that will have nested regualr tags , sounds rather difficult to me, becouse then i

Re: The design of bread crumb trail

2007-05-10 Thread Ray Clough
Are you using S1 or S2? I once implemented a S1 bread-crumbs facility using a custom RequestProcessor to put a stack of page url's into the user's session. This worked well, and allowed a page to return to any of the last 3 pages. I used it to go from the catalog page, where the user made a

RE: The design of bread crumb trail

2007-05-10 Thread Zhang, Larry \(L.\)
Thanks for the answers, but I would like a direct answer to my questions (1)... (2)... . Any thoughts? -Original Message- From: Ray Clough [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 1:41 PM To: Struts Users Mailing List Subject: Re: The design of bread crumb trail Are you

General UI Tag limitation

2007-05-10 Thread stanlick
How do I make the request to have UI tag attributes modified to evaluate an OGNL expression? Without support for substitution on key attributes like key, we are forced to write if/else code and duplicate many statements in a JSP. I looked at the MailReader example last evening, and the logic

Are S2 actions POJOs?

2007-05-10 Thread Rick Schumeyer
It's quite possible I'm confused, but I thought that actions in S2 were now POJOs. In Webwork in Action, for example, we see: public class HelloWorld implements Action but in the blank application we see public class ExampleSupport extends ActionSupport Is this an example where Webwork in

Re: [S2] alternate tag layouts?

2007-05-10 Thread Laurie Harper
Well, there is another option which I should have mentioned: you can use the 'simple' theme to get plain versions of the form inputs and wrap whatever markup you want around them. The downside of that is that you have to render labels, error messages etc. manually, but it would give you the

Re: Are S2 actions POJOs?

2007-05-10 Thread Don Brown
You were correct - Actions in S2 can be POJO's. They don't need to implement or extend anything, and in fact, don't even need any annotations. Now, we still do have an Action interface with a single execute method that you can implement if you'd like, and we also have several support classes

Re: Are S2 actions POJOs?

2007-05-10 Thread Frank W. Zammetti
Your Actions *can* be POJOs... they also *can* implement certain interfaces, and they *can* extend certain base classes... implementing the interfaces or extending the base classes gives your Actions certain inherent abilities, or marks them as being usable by the framework in certain ways it

Re: [S2] Using complex objects in JSP

2007-05-10 Thread Don Brown
All you need to do is expose your TResultSet object via a getter on your Action, then access it like any other object using JSP-EL in your jsp. You can even use the JSTL for-each tag to handle iteration. For example, if you exposed this object using getResultSet(), in your jsp you could access

Re: [S2] Form handling life cycle with HTTP GET/POST

2007-05-10 Thread Don Brown
Yep, that should work almost exactly as you describe, although what I would do is use a single action definition. You can specify exactly what method to call either in the URL (via the action!method.action syntax) or in your action definition. Say you make the default case be input in your

Re: [S2] Creating my own tag/theme/template

2007-05-10 Thread Don Brown
Thanks for sharing that tip. You can also simply make a JSP 2.0 tag and bypass the whole Struts 2 tag system if you'd like. That is a simple way to create your own tags that encapsulate common HTML. The main thing the Struts 2 tags add is the ability to call them from JSP, Velocity, and

Re: [S2] alternate tag layouts?

2007-05-10 Thread אלחנן מעין
can i use the simple theme just for the form, and use the usuall ones of all other forms? when you say render manualy what do you mean exactl? the current beaviour is that error messages appear automtially which is nice, but they appear rather misplaced, so placeing them where i want sounds

Re: Are S2 actions POJOs?

2007-05-10 Thread אלחנן מעין
although i haven't done much of web frameworks development i recommend against turning you actions, into the actuall pojos, develop as much pojos as you can, with only pure java elements (or commons utils for allready been there done that fame of mine), test them as though they are alone in the

S2 and tiles2 status

2007-05-10 Thread Rick Schumeyer
I've been partially paying attention to this list for several months while I was mostly working with Ruby-on-Rails. I finally have some time to try and come up to speed on S2. I will obviously need some sort of view/template solution, and I'm leaning towards JSP + tiles2. (But I'm willing

Re: [S2] alternate tag layouts?

2007-05-10 Thread Laurie Harper
אלחנן מעין wrote: can i use the simple theme just for the form, and use the usuall ones of all other forms? Yes: you can specify the theme for the whole page in the s:head tag; for a particular form in the s:form tag; or just for selected form inputs, using any mix of themes you want within

RE: S2 and tiles2 status

2007-05-10 Thread David Chisholm
The version of Tiles 2 shipped with Struts 2.0.6 is an early snapshot. The Strut2 plugin for Tiles 2 only works with this version. It will not work with the latest Tiles 2 release, 2.0.3. I'm using the Struts 2.0.6 version of Tiles2 without any issues so far. Just be careful with your

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
I am trying to figure out the same thing but using Struts. I have the following jsp to display my questions. s:form action=Quiz s:iterator value=questions s:radio label=${text} name=${id} list=answers/ /s:iterator s:submit key=Save Me method=save / /s:form For

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread Dave Newton
--- elan [EMAIL PROTECTED] wrote: On submit how do I capture which radio buttons were selected since the radio name field is dynamic? Don't make the whole name dynamic; use a map (or something similar). d. __ Do You Yahoo!? Tired of spam?

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
well, the number of questions and set of answers for each are dynamic (determined at runtime). I could look at the response object but hopefully there is a cleaner way of implementating this. Dave Newton-4 wrote: --- elan [EMAIL PROTECTED] wrote: On submit how do I capture which radio

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
I left out of the original post that I am using Struts 2. -- View this message in context: http://www.nabble.com/dynamic-checkboxes-and-radio-buttons-in-one-group-tf1971631.html#a10423856 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Re: [S2] Form handling life cycle with HTTP GET/POST

2007-05-10 Thread Gunnar Hillert
Hi, Thanks for your quick response. I will take a look at this. But my question is: can I configure my actions in a way/somehow that they execute different methods when called through different HTTP methods e.g. GET, POST maybe even DELETE. Call the action’s input method if it is a GET,

Problems getting started with Tiles2/S2

2007-05-10 Thread Rick Schumeyer
I'm trying to follow the directions at http://struts.apache.org/2.x/docs/tiles-plugin.html but with no success. At the moment, I am only trying to get the app running with tiles configured...I'm not actually using tiles yet! I get this error: SEVERE: Exception sending context initialized

Re: Problems getting started with Tiles2/S2

2007-05-10 Thread Laurie Harper
Rick Schumeyer wrote: I'm trying to follow the directions at http://struts.apache.org/2.x/docs/tiles-plugin.html but with no success. At the moment, I am only trying to get the app running with tiles configured...I'm not actually using tiles yet! I get this error: SEVERE: Exception sending