How to pass index from iterator tag to JS

2005-07-13 Thread Vivek Chauhan
Hi, How can I pass the index of the iterator tag to a Javascript function. I had used JSP scriptlet but tht wz not working.. vivek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Alternate color in html:iterate

2005-07-13 Thread amitava . basak
1. Have 2 classes in CSS. 2. within iterate write: .. 3. In the corresponding form: public String getListRowClass() { if ( "oddRow".equals(listRowClass)) listRowClass = "evenRow"; else

Re: How to hide URL in Adress bar?

2005-07-13 Thread John Henry Xu
It is bad using only one URL. Search engines likely put that URL in very low rank because that site has only one URL. Jack H. Xu Technology columnist and editor http://www.usanalyst.com http://www.getusjobs.com (The largest free job portal in North America) - Original Message - From: "

Re: Validation framework

2005-07-13 Thread ichy
Hi, Rafael. you can find clue on the following documentation. http://struts.apache.org/userGuide/dev_validator.html check validwhen. ichy 2005/7/14, Rafael Taboada <[EMAIL PROTECTED]>: > > Hi folks I'm using validation framework in order to validate my fields in > a > form. > I have three f

Re: [OT] Java as a Daemon

2005-07-13 Thread Larry Meadors
I would probably go the route of the .sh file. At the risk of starting a big flame war, cron is solid as a rock, and all of the memory used by your app will be freed up when the JVM exits. Why make it more complex by adding quartz or tomcat to the mix if you do not have to. Simple is *almost* alw

Re: [OT] Java as a Daemon

2005-07-13 Thread Richard Reyes
Hi David, We are using Netsuit business suite, I am not sure If I can update any DAO. But I think I can run it on the same or separate webserver ( Tomcat ?? ). I think Quartz can be helpful, Ill check if its okay from the top. Thanks Richard On 7/14/05, David G. Friedman <[EMAIL PROTECTED]> wrot

Validation framework

2005-07-13 Thread Rafael Taboada
Hi folks I'm using validation framework in order to validate my fields in a form. I have three fields in a search form: strUsername strFromDate strToDate But we have the rule that the user can fill strUsername or use dates range. I mean he can search by username or he can search by dates range

RE: [OT] Java as a Daemon

2005-07-13 Thread David G. Friedman
Richard, Can you run it in your webapp container? You could then update an object in application scope with the id's of what records have changed. You could even change your DAO to perform that step for you. Then you could have the quartz scheduler running to periodically update things without

[OT] Java as a Daemon

2005-07-13 Thread Richard Reyes
Hello Guys, I need your suggestions. I have a task to create an application to sync records between 2 Oracle 10g database. Not the whole records of the database though, just the now and then transactional updates. Access to the db's would be both via web services. I think I have an option to do th

Re: sporadic no property found error

2005-07-13 Thread Martin Gainty
Hej Kaerstin From what I can pickup from the AndroMDA doc AndroMDA generates these 3 artifacts (a Persistence layer) based on UML input. Take a look at http://www.jroller.com/page/buggybean/20050710 Hopp for replik, Martin- - Original Message - From: "Johnson, Kaerstin" <[EMAIL PROTE

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > It's not Friday, but I'd like to now what you need the JSTL tags for? What > is it, what you can't do with standart (struts without EL) tags? What do you > need EL for? > > Regards > Leon :-) How about "I want to fork Struts into StrutsWork

AW: Iterate over list in in list in form bean.

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Rick Reumann [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 14. Juli 2005 00:25 > An: Struts Users Mailing List > Betreff: Re: Iterate over list in in list in form bean. > > Wendy Smoak wrote the following on 7/13/2005 6:14 PM: > > > Struts-EL giv

AW: Iterate over list in in list in form bean.

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Rick Reumann [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 14. Juli 2005 00:25 > An: Struts Users Mailing List > Betreff: Re: Iterate over list in in list in form bean. > > Wendy Smoak wrote the following on 7/13/2005 6:14 PM: > > > Struts-EL giv

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Wendy Smoak wrote the following on 7/13/2005 6:14 PM: > > > Struts-EL gives you the ability to use expressions in the Struts tags. I > > think it's more than a convenience... for example, how would you rewrite the > > code above if you could n

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Rick Reumann
Wendy Smoak wrote the following on 7/13/2005 6:14 PM: Struts-EL gives you the ability to use expressions in the Struts tags. I think it's more than a convenience... for example, how would you rewrite the code above if you could not use an expression in the 'value' attribute? Struts-EL tags ar

AW: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 14. Juli 2005 00:09 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > On 7/13/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > In fact I had this requ

AW: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 14. Juli 2005 00:09 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > On 7/13/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > In fact I had this requ

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > > > > > > is Struts-EL tag, is not it? I would prefer to use JSTL > only. I think I can do that. But it this case, what Struts-EL is for? > For convenience only? Struts-EL gives you the ability to use expressions in the Struts ta

Re: How to hide URL in Adress bar?

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > In fact I had this requirement multiple times, marketing departments of > large companies don't want to show the user cryptic urls he don't > understand. Last time I had it a large austrian company from the food > sector, they reasoned, they d

Re: Alternate color in html:iterate

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Rick Reumann [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 19:24 > An: Struts Users Mailing List > Betreff: Re: Alternate color in html:iterate > ... > You mentioned you were using logic:iterate, which in that > case replace ${status

Re: Alternate color in html:iterate

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Rick Reumann [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 19:24 > An: Struts Users Mailing List > Betreff: Re: Alternate color in html:iterate > ... > You mentioned you were using logic:iterate, which in that > case replace ${status

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 17:19 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > Why would you have to route every action through a single > servlet/ actio

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 17:19 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > Why would you have to route every action through a single > servlet/ actio

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Tamas Szabo [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 17:26 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote: > > Actually using POST is the W

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Tamas Szabo [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 17:26 > An: Struts Users Mailing List > Betreff: Re: How to hide URL in Adress bar? > > On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote: > > Actually using POST is the W

Re: [OT] olipmic rings metaphor

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Borislav Sabev [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 18:54 > An: Struts Users Mailing List > Betreff: [OT] olipmic rings metaphor > > How do you classify Security and Authorization issues in this > metaphor? > > In my current

Re: [OT] olipmic rings metaphor

2005-07-13 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Borislav Sabev [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Juli 2005 18:54 > An: Struts Users Mailing List > Betreff: [OT] olipmic rings metaphor > > How do you classify Security and Authorization issues in this > metaphor? > > In my current

RE: sporadic no property found error

2005-07-13 Thread Johnson, Kaerstin
Hey, I'm not sure which abstract base class and implementation class you would need to see? Also, I think the fields giving this error are not persisted, so there are no hibernate object mappings or table fields for them? Could this have something to do with it? Thanks, Kaeri -Origin

Re: sporadic no property found error

2005-07-13 Thread Martin Gainty
Goddag Kaerstin I would have to see -abstract base class and implementation class -any Hibernate mapping files -any DDL statements to create the tables Tack, Martin- - Original Message - From: "Johnson, Kaerstin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday,

Re: sporadic no property found error

2005-07-13 Thread Martin Gainty
- Original Message - From: "Johnson, Kaerstin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, July 13, 2005 3:32 PM Subject: sporadic no property found error I have an application that I get sporadic struts errors when I submit the jsp page forms. The applicati

sporadic no property found error

2005-07-13 Thread Johnson, Kaerstin
I have an application that I get sporadic struts errors when I submit the jsp page forms. The application is using struts tiles and also a couple jsp includes, and some of the pages have two different forms (each with different form beans) on one page. The intermittent error says no property pro

Re: Putting execute() in ActionForm

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Ted Husted <[EMAIL PROTECTED]> wrote: > Most importantly, I'd make very sure that all my "code-behind > ActionForms" were request scope, probably by changing the factory > default. In this case this form would not be stateful. At least for me, it is the whole point of sticking data and

Re: Putting execute() in ActionForm

2005-07-13 Thread Ted Husted
In 7/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > I wanted to post something like "Rick, Ted and other orthodox guys, > check out this guy's suggestion", but then I decided not to ;-) Wow! That may have been the first time anyone has ever accused me of being "orthodox" :) I've never used

Re: [OT] olipmic rings metaphor

2005-07-13 Thread Ted Husted
On 7/13/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > How do you classify Security and Authorization issues in this metaphor? > > In my current project I have troubles since code that is related somehow > to Authorization is spread over all "rings. Still it's difficult to me > to have a clear un

Re: html:text display

2005-07-13 Thread Rick Reumann
Rick Reumann wrote the following on 7/13/2005 3:03 PM: slignly logic Ha, sounds like a cool word "slignly" - no clue what I was trying to say there since I typed it so fast.. I must have meant "slight." -- Rick - To unsu

Re: [OT] olipmic rings metaphor

2005-07-13 Thread Martin Gainty
Boris- I see Security as implemented by RingBearer Frodo in Lord of the Rings The caretaker of the ring travels thru all domains and access to the other dimension (portal which contains final results) regardless of any domain he travels thru Begreife? Martin- - Original Message - From:

Re: html:text display

2005-07-13 Thread Rick Reumann
Archana . wrote the following on 7/13/2005 2:24 PM: I have a html:text field on my form whose corresponding bean property is an integer(text field represents year). The default value is 0. I want the text field to display blank when the value is 0, and display the value otherswise. Would anyone

html:text display

2005-07-13 Thread Archana .
Hi, I have a html:text field on my form whose corresponding bean property is an integer(text field represents year). The default value is 0. I want the text field to display blank when the value is 0, and display the value otherswise. Would anyone know how this can be done? Thanks, Archana --

Re: Alternate color in html:iterate

2005-07-13 Thread Rick Reumann
Senthilrajan VS wrote the following on 7/13/2005 10:53 AM: Hi All, I'm using html:iterate to display the set of records in the table. Is there any way to put the alternate color using CSS classes in tag libraries Since you will probably need this functionality in several places in your appli

Re: How to hide URL in Adress bar?

2005-07-13 Thread Stéphane Zuckerman
In my opinion showing the same URL for all pages is a very bad solution. Why is it needed? I don't know for the original poster, but what bothers me is the fact that one can see the parameters in the url displayed. Apart from that, Having different URLs seems a normal behaviour... -- Stéphane

Re: Putting execute() in ActionForm

2005-07-13 Thread Craig McClanahan
On 7/13/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote: > Hello! > > Craig McClanahan wrote: > > On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > > >>Craig McClanahan wrote: > >> > >>>I think of the state information represented by an ActionForm (in > >>>Struts 1.x) or potentially as

[OT] olipmic rings metaphor

2005-07-13 Thread Borislav Sabev
Ted Husted wrote: In my own work, I tend to think of an enterprise-grade application as a set of overlapping rings, like the Olympics logo. * http://www.olympic.org/ In the Blue ring live the view members, like custom tags or UI components, and the HTTP request and response objects. This is th

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > >> Showing side by side examples from > >>Struts "classic", > >>Struts-EL + JSTL 1.0, and > >>Struts + JSP 2.0 + JSTL 1.1 > >> is on my TODO list > > > Does the above mean that "Stru

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
Nice trick. So simple I didn't thought about this. Thanks very much ! On 13/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Instead of calling the return validateForm(this) function in the on submit, > you could wrapper the check based on a JavaScript variable. > > var validate =

Session Timeout Issue With Modules

2005-07-13 Thread Steven Simpson
Hi everyone, I just started implementing modules into a Struts app that has existed for a while without them. Now, I have some functionality within a module. The problem is that the session timeout now doesn't appear to work when the user is within the module. I have these settings in my web.

Re: Problem with action forward while using Frames

2005-07-13 Thread Laurie Harper
syed abrar wrote: Hello All, I have a problem.I have two frames with two different jsps.And after selecting the options(checkboxes) in the second frame the control goes to the Action class.After processing the request the control has to be passed to other jsp page(which have declare

Re: Alternate color in html:iterate

2005-07-13 Thread Borislav Sabev
Take a look at Strus-Layout, there are a lot of suefull tags inluding iteration tags with alternate colors, soring, paging etc http://struts.application-servers.com/ Regards Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Alternate color in html:iterate

2005-07-13 Thread Adrian_Rios
Here is the way I accomplished this: Also, take a look at this: http://forum.java.sun.com/thread.jspa?forumID=45&threadID=252997 Adrian __

Re: New to Struts

2005-07-13 Thread Access Denied
An excellent resource for beginners: http://tinyurl.com/eyxkp buddy On 7/13/05, Kumar deepak <[EMAIL PROTECTED]> wrote: > Hello, > > This is also a good tutorial http://www.roseindia.net/struts/ > > Deepak Kumar > > > "[Gmail] LunLun" <[EMAIL PROTECTED]> wrote: > Hello, > > > 1) can someon

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Laurie Harper
Michael Jouravlev wrote: On 7/12/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Michael Jouravlev wrote: Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) is not possible? I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would you want to? http://jak

Struts Content Manager

2005-07-13 Thread Svevo SAMPERI
Hello everyone! I've been asked to research an opensource webapp with features comparable to phpnuke (www.phpnuke.org) written in Java and that uses Struts as controller. Can anyone point me to something like that or to any other Java/Struts pensource content manager? Thank you a lot! S.

It worked fine until they changed the spec - url in a link with parameters

2005-07-13 Thread Braun, James F
The following code works fine (Thanks to previous help on this list). "> It displays the Privacy Policy title in the proper language and sets the proper link for the country using values in the application resource files. Now they want the country code passed as a parameter. e.g. www.mycom

Re: Alternate color in html:iterate

2005-07-13 Thread Ext . Ilitia2
another way: " > |-+> | | Marc Walter | | | <[EMAIL PROTECTED]| | | ch.com> | | || | | 13/07/2005 17:13 | | | Pleas

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Sorry -- missed the 'client-side' bit somehow. ;) On 7/13/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > Set validation off in struts-config and call the Validate method from > within your Action: > > if (yourForm.getAction().equals("action_to_validate")) { > ActionErrors errors = form.validate(/*

Re: Alternate color in html:iterate

2005-07-13 Thread Marc Walter
Hi! Try this: class="odd"<% } else { %>class="even"<% } %>> It works fine. Define the colours in your local css file for the classes "odd" and "even". Kind regards, Marc Walter - Hi All, I'm using html:iterate to display the set of records in the table. Is there any

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard
Instead of calling the return validateForm(this) function in the on submit, you could wrapper the check based on a _javascript_ variable. <_javascript_> var validate = true validate don't validate Marc Demlenne <[EMAIL PROTECTED]> Marc Demlenne <[EMAIL PROTECTED]> 07/13/200

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Set validation off in struts-config and call the Validate method from within your Action: if (yourForm.getAction().equals("action_to_validate")) { ActionErrors errors = form.validate(/*params*/); if (errors.isEmpty()) { // all is good } else { saveErrors(errors); return mapping.f

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: "Michael Jouravlev" <[EMAIL PROTECTED]> >> Showing side by side examples from >>Struts "classic", >>Struts-EL + JSTL 1.0, and >>Struts + JSP 2.0 + JSTL 1.1 >> is on my TODO list > Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) > is not possible? (Is this

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
I DO use struts validator framework ... What i want is to to have _only_ one of the submit button to check the client-side validation But I can only decide to call validator or not by form, not by button. As it is for client side that I have this problem, I can't call it from my modify method...

Re: How to hide URL in Adress bar?

2005-07-13 Thread Tamas Szabo
On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote: > Actually using POST is the WORST solution. In my opinion showing the same URL for all pages is a very bad solution. Why is it needed? Tamas - To unsubscribe, e-mail:

Re: File upload using maxFileSize

2005-07-13 Thread Jeff Beal
IIRC from previous threads, setting the maxFileSize cannot prevent clients from submitting files larger than the limit you set, they can only abort the processing thereof. (This is not a Struts-specific limitation.) I believe the behavior you are seeing is the appropriate behavior. I think the a

Re: How to hide URL in Adress bar?

2005-07-13 Thread Christopher Marsh-Bourdon
Why would you have to route every action through a single servlet/ action? The others are nice to have for a web application (who wants a web app cached on indexable?), but if you code web sites you might be right. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon O

Re: Redirecting JSP output

2005-07-13 Thread Frank W. Zammetti
I think I understand what your trying to do... one suggestion that comes to mind is to use a filter. Catch the output from the JSP, call the appropriate service from there (I presume that's when the message actually gets sent) and then construct the XML response that actually goes back to the clie

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Rafael Taboada
Hi, use Validator framework. In this framework u can put code in order to set a client-side validation for each feld. In ur modify method, call to ur validate method. I hope it can help u -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
sorry, i've hit the send button too quickly... why not using POST: your page will not be found (or indexed) by any search engine you have to recode all (ALL!) links in your page with javascript to submit forms you will completely switch of browser cashes (whether you want it or not) back button w

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard
If you are using Validator, you can create a DynaForm. then based on the action that you are calling, the validations can be different. This will work for either client side or server side supposedly. I have only used server side with it. Marc Demlenne <[EMAIL PROTECTED]> Marc Demlenne

Re: Alternate color in html:iterate

2005-07-13 Thread Wendy Smoak
From: "Senthilrajan VS" <[EMAIL PROTECTED]> > I'm using html:iterate to display the set of records in the table. Is there any way > to put the alternate color using CSS classes in tag libraries There is, but a FAR better idea is to use DisplayTag: http://displaytag.sourceforge.net/ I have on

Re: Alternate color in html:iterate

2005-07-13 Thread BHansard
This is how I have handled it in the past. ">xyz ">"Senthilrajan VS" <[EMAIL PROTECTED]> "Senthilrajan VS" <[EMAIL PROTECTED]> 07/13/2005 10:53 AM Please respond to "Struts Users Mailing List" To "Sturt

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
Actually using POST is the WORST solution. On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote: > Ok, > > Thanks for all of your QUICK answers! > I think that usinf Frameset is not a good solution has it is not recommended > from W3C > Using POST seems to be a good solution if it worksand it will

Re: How to hide URL in Adress bar?

2005-07-13 Thread Gaet
Ok, Thanks for all of your QUICK answers! I think that usinf Frameset is not a good solution has it is not recommended from W3C Using POST seems to be a good solution if it worksand it will only hide the parameters isn't it? Micheal, what is mod_rewrite? Thanks to all of you! - Origina

validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
Hello, Using struts validation framework, what's the best way to handle the following case : You have a simple form with 2 submit buttons. One for display, the other to modify changes. How to make the validation active only for modify button ? Server-side, you can simply have 2 actions name, on

Alternate color in html:iterate

2005-07-13 Thread Senthilrajan VS
Hi All, I'm using html:iterate to display the set of records in the table. Is there any way to put the alternate color using CSS classes in tag libraries Thanks & Regards, SenthilRajan VS

Re: Using struts forms as Value Objects: your opinion?

2005-07-13 Thread Rick Reumann
Laurie Harper wrote the following on 7/12/2005 8:25 PM: Rick Reumann wrote: (By the way I pass in an optional default format in my constructor as shown above, but my converters have a setFormatPattern(..) method that can change the format at any time) Don't you end up with thread safety iss

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Jörg Eichhorn
Hi Martin, i didn't think of the users who deleted previous posts. Here you can find it: http://www.mail-archive.com/user%40struts.apache.org/msg30141.html --On Mittwoch, 13. Juli 2005 09:59 -0400 Martin Gainty <[EMAIL PROTECTED]> wrote: Jörg Hard to answer a reference to a previous posti

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Christopher Marsh-Bourdon
Have you never developed using Dynamic Action Forms? With the vanilla Action Forms you may be right, but with Dynamic ones, I have found that Validator really cuts down the work. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com AIM: marshbourdon On 13 Jul 2005, at 14:54, Larry Meador

Redirecting JSP output

2005-07-13 Thread Jens Augustsson
Hi, I'm using Struts/JSP to to generate HTML, XHTML and WML interfaces of my application. My SMS interface is fairly advanced and I would like to use Struts/JSP to generate these (plain text ) responses too. My problem is that after generating the plain text response, I cannot simply return it to

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/12/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) > > is not possible? > > I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would > you want to? http://jakarta.apache.org/tag

Re: How to hide URL in Adress bar?

2005-07-13 Thread Michael Jouravlev
1) POST cannot be reloaded automatically. Using POST not for data input is bad design. 2) Displaying the same URL for logically different pages, which could otherwise be bookmarked is bad design. 3) Hiding URL completely is non-user-friendly design. 4) If you want to beautify your URLs, you may wan

Re: File upload using maxFileSize

2005-07-13 Thread Borislav Sabev
Marc Walter wrote: Hi! In want to use the controller element "maxFileSize" in the struts-config.xml in order to provide a global maximum file upload size in my application. So I entered the value "2M" (two megabytes) for test purpose. In my upload JSP I defined a submit button like this: When

File upload using maxFileSize

2005-07-13 Thread Marc Walter
Hi! In want to use the controller element "maxFileSize" in the struts-config.xml in order to provide a global maximum file upload size in my application. So I entered the value "2M" (two megabytes) for test purpose. In my upload JSP I defined a submit button like this: When I choose a file greate

Re: How to hide URL in Adress bar?

2005-07-13 Thread Stéphane Zuckerman
change all transmissions from method="GET" to method="POST" Is there another way ? I do use the POST method when I can. But some specific processes need to be done via GET (or at least I don't know how to do them with POST)... -- Stéphane Zuckerman --

Re: How to hide URL in Adress bar?

2005-07-13 Thread Jeff Beal
I don't think you even need to have two frames. Try just one frame: Your Site Title -- Jeff On 7/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > The easiest way is to use frames. Have a framset of two frames stacked > vertically, with the first frame having 0 width/

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Martin Gainty
Jörg Hard to answer a reference to a previous posting when the previous posting was erased It would help if you would include previous posts from thread when replying . More specifically if there is information from a previous post which you are referencing it is best practice to include in the

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
No offense (and not to sound like Mark Galbreath), but as a long time struts user, I have never found validator to save time or code...not even once. Larry On 7/13/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > The Struts-validator will certainly be able to handle date-validation for > you > the

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Martin Gainty
The Struts-validator will certainly be able to handle date-validation for you there is an excellent tutorial located at http://www.oracle.com/technology/products/jdev/howtos/10g/strutsvalidator/struts_validator_howto.html#setup 1)Add validator to your struts-config.xml 2)copy validator-rules.xml

SV: How to hide URL in Adress bar?

2005-07-13 Thread hermod . opstvedt
Hi The easiest way is to use frames. Have a framset of two frames stacked vertically, with the first frame having 0 width/heigth. That way you hide the stuff that you place in the second frame from the browser url Hermod -Opprinnelig melding- Fra: Gaet [mailto:[EMAIL PROTECTED] Sendt: 13

Re: How to hide URL in Adress bar?

2005-07-13 Thread Daniel Henrique Ferreira e Silva
Ooops, Sorry Gaet for mispelling your name! Daniel Silva. On 7/13/05, Daniel Henrique Ferreira e Silva <[EMAIL PROTECTED]> wrote: > Hi Baet, > > +1 for using POST. > > Cheers, > Daniel Silva. > > On 7/13/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > change all transmissions from method="GE

Re: How to hide URL in Adress bar?

2005-07-13 Thread Daniel Henrique Ferreira e Silva
Hi Baet, +1 for using POST. Cheers, Daniel Silva. On 7/13/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > change all transmissions from method="GET" to method="POST" > Bon Chance, > Martin- > - Original Message - > From: "Gaet" <[EMAIL PROTECTED]> > To: "Mailing List Struts" > Sent: Wedn

Re: How to hide URL in Adress bar?

2005-07-13 Thread Martin Gainty
change all transmissions from method="GET" to method="POST" Bon Chance, Martin- - Original Message - From: "Gaet" <[EMAIL PROTECTED]> To: "Mailing List Struts" Sent: Wednesday, July 13, 2005 8:48 AM Subject: How to hide URL in Adress bar? Hi evrybody, I would like to hide the struts

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
yes, put a frameset in your top page, with 1 px height frame (white) on top, and the actual application in your other frame. Then the link in the adress bar will never change. regards leon On Wed, 2005-07-13 at 14:48 +0200, Gaet wrote: > Hi evrybody, > > I would like to hide the struts URL in th

How to hide URL in Adress bar?

2005-07-13 Thread Gaet
Hi evrybody, I would like to hide the struts URL in the Adress bar of the client browser is there a way do always have www.mysite.com in the adress bar instead of www.mysite.com/myStrutsAction.do?param1=param...?? Thanks for your help!

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
The recommended pattern is to have only string properties on your ActionForm classes that are mapped to typed data in your model. You can write a component to do #2 and register it with bean-utils, but you for sure do not want to pass the action form into your model. Larry On 7/13/05, Lance Sem

Invalid dates / numbers etc on forms

2005-07-13 Thread Lance Semmens
Is there a standard way of handling invalid user input in date / number fields etc. I can forsee 2 possible solutions. 1. Declare date properties on your form as java.lang.Strings and validate / parse them explicitely. 2. Declare date properties as java.util.Dates, have struts parse dates, check fo

RE: How do you iterate within an iterate

2005-07-13 Thread Harland, David
Many thanks.. -Original Message- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: 12 July 2005 17:17 To: user@struts.apache.org Subject: Re: How do you iterate within an iterate I think it can be >>> [EMAIL PROTECTED] 7/12/2005 11:49:13 AM >>> How would I repl

validation - all locales

2005-07-13 Thread Marc Demlenne
Hello all, Using Struts, I need to validate input forms. My web service has to handle mutliple language, so I'm using i18n techniques. However, the validation I need are locale-independant. So I have written a validation.xml like this :

Problem with action forward while using Frames

2005-07-13 Thread syed abrar
Hello All, I have a problem.I have two frames with two different jsps.And after selecting the options(checkboxes) in the second frame the control goes to the Action class.After processing the request the control has to be passed to other jsp page(which have declared in struts-config.x

Re: Putting execute() in ActionForm

2005-07-13 Thread Yaroslav Novytskyy
Hello! Craig McClanahan wrote: On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Craig McClanahan wrote: I think of the state information represented by an ActionForm (in Struts 1.x) or potentially as properties of an "action" class (per the current discussion) to be part of the *view

Generic template

2005-07-13 Thread Vijay K Anand
Hi All Any blueprint how can we write genric code for manipulating data in a table , Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: anyone else pass their ActionForm off to another (layer) helper

2005-07-13 Thread Duncan Mills
Back to the (rephrased) question - The Oracle ADF framework uses a twist on the DynaForm idea. There is (generally) only one ActionForm in an Application which is configured at runtime based on an XML bindings file which describes exactly what data is required for this particular page. The bin

Re: New to Struts

2005-07-13 Thread Kumar deepak
Hello, This is also a good tutorial http://www.roseindia.net/struts/ Deepak Kumar "[Gmail] LunLun" <[EMAIL PROTECTED]> wrote: Hello, 1) can someone recommend me a good struts book and/or online tutorial to help me get started quickly. I found these two books interesting: Struts in Action

  1   2   >