logic tags for "" and null check

2006-07-17 Thread Raghuveer
How to check below code for "" and not null checking using logic tags below code doesn't work if there is no value in database column.   String strTemp =null; strTemp =""; if(strTemp!=null && !"".equalsIgnoreCase(strTemp )){ -- }

Re: struts 1.3.x

2006-07-17 Thread David Evans
Another avenue for exploration at this point is webwork: http://opensymphony.com/webwork/ this is the basis for for struts 2.0, and its a great framework. the basic concept remains the same (a url maps to a class method, which returns a pointer to a resource, usually a view), but there is a lot mo

Re: How to get the action name (in addition to the context path name)?

2006-07-17 Thread rukka
Eider Iturbe wrote: Hi! I'm looking for a method in org.apache.struts.action.ActionMapping that returns the name of the action or jsp that has invoked my action (this action is the owner of the ActionMapping). Which is this method ? thanks in advance, You can find all forward names and p

Re: struts 1.3.x

2006-07-17 Thread Adam Hardy
Ted Husted on 18/07/06 00:31, wrote: On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: However there isn't even a link to the javadoc for it on the website that I could find. At this point, the Javadoc on Struts 1 website, along with everything else, covers 1.3.5. * http://struts.apache.org/1

Re: struts ajax / portlet components

2006-07-17 Thread Adam Hardy
Michael Jouravlev on 17/07/06 23:27, wrote: I would appreciate if you looked at "Developing Components with Struts" page [4] and shared your opinion on whether such a feature would be useful. Caution, this is not a feature of 1.3.5 and it is not even accepted in future versions yet, this is just

Re: struts 1.3.x

2006-07-17 Thread Ted Husted
On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: However there isn't even a link to the javadoc for it on the website that I could find. At this point, the Javadoc on Struts 1 website, along with everything else, covers 1.3.5. * http://struts.apache.org/1.x/struts-core/apidocs/index.html We

Re: struts 1.3.x

2006-07-17 Thread Hubert Rabago
On 7/17/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: > "In fact, in Struts 1.3, some of the same "convention of configuration" practices are applied in the configuration files: you can define mapping conventions in struts-config.xml without

Re: struts 1.3.x

2006-07-17 Thread Michael Jouravlev
On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: Is 1.3.5 beta or alpha? Neither. The grade will be assigned after voting in about a week. See dev list for details. 1.3.5 is the fifth build since 1.3.0 and is being expected to make a GA grade. At least that is the intention of those who are pu

struts 1.3.x

2006-07-17 Thread Adam Hardy
I was just checking out the struts website as I try to make my mind up about which version of struts to go with on my current project. Due to interesting work on my latest project with Spring Webflow, I now have some catching up to do with struts. My pragmatism is telling me to take 1.2.9, but

SSLEXT on a per-session basis

2006-07-17 Thread George.Dinwiddie
We have a situation where certain appservers are behind a webserver proxy, but also available to internal users directly. This means that the SSLEXT plugin must sometime rewrite the URLs based on ports 80 and 443, and sometimes between 7001 and 7002. This will remain constant throughout a particu

displaytag , how display from a vector of beans ?

2006-07-17 Thread A. Lotfi
Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is

html:select disable problem

2006-07-17 Thread Vinicius Carvalho
Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly (disabled). Well, that's almost ok, because I need that data on the action called by the form, and those values are not passed to the action

Re: taglib nested-el

2006-07-17 Thread Laurent Duparchy
Many thanks David for your response. Do you mean that using properly the JSTL, there is a way to avoid the following "hack" ? <% // hack to evaluate the docattributeCMPData.docattrid - no nested-el taglib ! %> Karr, David wrote: When I implemented Struts-EL (4 years ago, I think),

errorStyleClass not working

2006-07-17 Thread fea jabi
struts-config dynamic="true"> . JSP: requestURI="PrepareAction.do" > ...

Re: what is the best practice?

2006-07-17 Thread hicham abassi
Check the book "POJOS in action" , there are some good chapters about Ibatis On 5/25/06, Rafael <[EMAIL PROTECTED]> wrote: Hi, I've been enjoying these conversations about 'Architecture'/'Best Practices' etc.. Does anyone knows if there is a specific list somewhere to get more information abo

RE: Problem with validation rule

2006-07-17 Thread Adam Gordon
Heh, it happens to the best of us. Happy coding. -Adam -Original Message- From: Sebastian Stein [mailto:[EMAIL PROTECTED] Sent: Sunday, 16 July 2006 10:20 To: Struts Users Mailing List Subject: Re: Problem with validation rule Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]: > Adam

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T
Hi, I want to take this as offline as it is not related to struts. Thanks a lot for your effort for making me understand. Does it mean that we need to do the sort for all the objects or is it a bulk sorting available from java package? I believe the sort takes only two objects and tells which is s

Re: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread vijay venkataraman
You can handle sorting yourself or work with display tags. See http://displaytag.sourceforge.net/11/ Thanks, Vijay Venkataraman Lance wrote: For arrays, use java.util.Arrays.sort(Object[], java.util.Comparator) -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 17 July 2

Re: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Antonio Petrelli
Anil Kumar T ha scritto: I have a requirement like I need to display a list containing Name, Date, Department, Last update etc., after displaying the list the user can select any field to sort the list display, but it should not query again, only with the first time result we should be able to pr

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Lance
For arrays, use java.util.Arrays.sort(Object[], java.util.Comparator) -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 13:57 To: 'Struts Users Mailing List' Subject: RE: Dynamic Sort depending on the field requested by user. Ok... chances are your form has a ja

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Lance
Ok... chances are your form has a java.util.List that you want sorted. You can use java.util.Collections.sort(java.util.List, java.util.Comparator) I think commons-collections or commons-lang has a BeanComparator that you can use to sort beans by their properties. You can write your own custom java

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T
But I need the dynamic sort logic ? Anil. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 6:11 PM To: 'Struts Users Mailing List' Subject: RE: Dynamic Sort depending on the field requested by user. I don't store the sort column, I pass it in a parame

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Lance
I don't store the sort column, I pass it in a parameter. Eg your table heading may have a link similar to -Original Message- From: Anil Kumar T [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 13:35 To: Struts Users Mailing List Subject: RE: Dynamic Sort depending on the field requested by

Re: How to disable the submit button after first click

2006-07-17 Thread Jared Blitzstein
If you simply want to prevent "double clicking", you can add an onclick even like onclick="this.disabled='true'" so the user can't click the button again. But if that's not the solution you're looking for, here's a quick article on some struts best practices, but it has some info about tok

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T
Hi Lance, Thanks for the response. I'm looking at some thing like this. But I'm not getting how to store the values? When the user clicks on any column how do we do the sorting..? can you send me sample piece of coding. Regards, Anil. -Original Message- From: Lance [mailto:[EMAIL PROTEC

Re: How to disable the submit button after first click

2006-07-17 Thread Li
you can use saveToken(), and isTokenValid() to check twice submission. Check Struts Web for details. On 7/17/06, Pillay, Kiren KN <[EMAIL PROTECTED]> wrote: Hi I saw a saveToken method somewhere in Action that can be used to circumvent this problem. Regards Kiren -Original Message- F

Re: How to create custom tag

2006-07-17 Thread Li
Sorry, the last part should be: On 7/17/06, Li <[EMAIL PROTECTED]> wrote: Hi, CSS sure can do, and how you let your system know whether is error or info, or whatever is up to how you code inside your system. Let'me give you a simple example in sample.css .error { color:red; font

Re: How to create custom tag

2006-07-17 Thread Li
Hi, CSS sure can do, and how you let your system know whether is error or info, or whatever is up to how you code inside your system. Let'me give you a simple example in sample.css .error { color:red; font: 10px; } .success { color:blue; font:10px; } -- Your have

Re: How to create custom tag

2006-07-17 Thread vijay venkataraman
Font Tag is deprecated see http://www.w3.org/TR/html401/present/graphics.html#edef-FONT If you are on JSP 2.0 it is very easy to write a Tag yourself. Just override doTag() method of SimpleTagSupport class. See: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.ht

RE: How to disable the submit button after first click

2006-07-17 Thread Pillay, Kiren KN
Hi I saw a saveToken method somewhere in Action that can be used to circumvent this problem. Regards Kiren -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: 14 July 2006 08:21 PM To: Struts Users Mailing List Subject: Re: How to disable the submit button after

Grouping common actions

2006-07-17 Thread chamal desilva
Hi, I need to group actions to a common action class. We dont have EventActionDispatcher since we have struts version 1.1. DispatchAction class needs button names to have the save name as method names. And is there a way that we can add common functionality to all methods in DIspatchAction class

Re: How to create custom tag

2006-07-17 Thread Bart Busschots
Anything you can do with a font tag you can do with CSS. In this day and age no one should be using font tags anymore! Bart. Pankaj Gupta wrote: I dont think CSS can work in this case as the CSS would be static. I want to display color of the font based on the value of severity of message i.e

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Lance
I do this with 2 actions which use the same form which has a scope of "session". The first (retrieve) action hits the db and populates a form. The second (sort) action just sorts the form (retrieved from the session). On your html table, the column headings link to your "sort" action. -Origina

Re: How to create custom tag

2006-07-17 Thread David Delbecq
Use expression language available in jsp 2.0: class="${theBean.messageLevel="Error"?"ErrorClass":theBean.messageLevel="Warning"?"WarningClass":"InfoClass"}"> . Pankaj Gupta wrote: I dont think CSS can work in this case as the CSS would be static. I want to display color of the font based o

Re: How to create custom tag

2006-07-17 Thread Pankaj Gupta
I dont think CSS can work in this case as the CSS would be static. I want to display color of the font based on the value of severity of message i.e. if the message is critical it should be displayed in red, info in blue, etc. i.e. It would depend on the value of a form bean property. Li wrot

Re: How to create custom tag

2006-07-17 Thread Li
why not use CSS? On 7/17/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi All, I want to create a custom tag which wraps the plain html font tag in such a way that it fetches the color of the font to be displayed on a pre-configured severity level. Can anyone pl suggest how can I do that. regar

How to create custom tag

2006-07-17 Thread Pankaj Gupta
Hi All, I want to create a custom tag which wraps the plain html font tag in such a way that it fetches the color of the font to be displayed on a pre-configured severity level. Can anyone pl suggest how can I do that. regards, Pankaj -

Re: How to get the action name (in addition to the context path name)?

2006-07-17 Thread Eider Iturbe
Hi! I'm looking for a method in org.apache.struts.action.ActionMapping that returns the name of the action or jsp that has invoked my action (this action is the owner of the ActionMapping). Which is this method ? thanks in advance, -- Eider On 7/11/06, Samere, Adam J <[EMAIL PROTECTED]> wrote

Re: Regarding DynaBean

2006-07-17 Thread Medicherla Lakshmi
Thank you very much. Niall Pemberton <[EMAIL PROTECTED]> wrote: On 7/14/06, Medicherla Lakshmi wrote: > Hi All, > > Can anyone please tell me something regarding BasicDynaBean class and > DynaProperties. Any examples or links where i can find examples will be of > great help. http://struts.ap