Re: Mixing Use of Struts Tags and JSTL Tags

2006-06-23 Thread Wendy Smoak
On 6/23/06, Caroline Jen <[EMAIL PROTECTED]> wrote: Are there JSTL equivalents to 1. or 2. or 3. or http://mail.google.com/mail/ I am able to display a table using all JSTL tags. Now, I have add additional features to the table. I am unaware of the JSTL equivalents of the aforementioned S

Mixing Use of Struts Tags and JSTL Tags

2006-06-23 Thread Caroline Jen
Are there JSTL equivalents to 1. or 2. or 3. or I am able to display a table using all JSTL tags. Now, I have add additional features to the table. I am unaware of the JSTL equivalents of the aforementioned Struts tags. Thanks for your help. _

Re: Communicate between two struts apps

2006-06-23 Thread Wen-Jung Chen
Our architecture team suggested one solution for us. One web app writes key information into table in our database and generate one key id. Put this key id as request parameter and call our action method using url redirection. We just have about 4 parameters to pass because most of data have alrea

Re: Communicate between two struts apps

2006-06-23 Thread Leon Rosenberg
I just said that it would be reasonable to separate the war files if there are two teams with different goals and different release processes. Make things easier. regards leon On 6/23/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: Could you please elaborate on the same. If there are several rel

Re: Communicate between two struts apps

2006-06-23 Thread Madhav Bhargava
Could you please elaborate on the same. If there are several release processes, will you still go ahead with the same approach. On 6/24/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: On 6/23/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > From your original mail the entire concept of having 2

Re: Communicate between two struts apps

2006-06-23 Thread Leon Rosenberg
On 6/23/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: From your original mail the entire concept of having 2 war files bundled in one EAR file is a bit strange. You can totally avoid this by using different struts-config files and SwitchActions in struts. The two different teams can have their

Re: Communicate between two struts apps

2006-06-23 Thread Madhav Bhargava
From your original mail the entire concept of having 2 war files bundled in one EAR file is a bit strange. You can totally avoid this by using different struts-config files and SwitchActions in struts. The two different teams can have their own set of actions, form beans, action mapping and whol

Re: [JAVA]Converting a string to date

2006-06-23 Thread Madhav Bhargava
For all these small things the best way is to google and find out. I am sure you will get enough hits to suffice what you need. On 6/24/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: There are many ways you can do it: One way is using Apache BeanUtils with Converters registered to it. This way

Re: [JAVA]Converting a string to date

2006-06-23 Thread Madhav Bhargava
There are many ways you can do it: One way is using Apache BeanUtils with Converters registered to it. This way automatic conversions can happen Again it depends on what date you want to convert- current date, arbitrary date. You can just go ahead and use SimpleDateFormat's format/parse methods.

Re: To get the session size

2006-06-23 Thread Frank W. Zammetti
If you just want the size of a given session, take a look at Java Web Parts: http://javawebparts.sourceforge.net Specifically, the SessionSize class: http://javawebparts.sourceforge.net/javadocs/javawebparts/session/SessionSize.html If your looking for the footprint of your entire application,

Re: java.lang.OutOfMemoryError when building in Netbeans

2006-06-23 Thread Monkeyden
I suspect you can find an example for setting startup and runtime memory allocation for NetBeans. It would look something like this, and you would add it to the shortcut or shell script that starts NetBeans: -Xms128M -Xmx512M On 6/23/06, A. Lotfi <[EMAIL PROTECTED]> wrote: Hi, I am trying to

Re: java.lang.OutOfMemoryError when building in Netbeans

2006-06-23 Thread Leon Rosenberg
a) How this question is struts-related? b) Give it more memory (-xmx -xms switches) leon On 6/23/06, A. Lotfi <[EMAIL PROTECTED]> wrote: Hi, I am trying to build a big project using Netbeans5, but I can't it always giving me : java.lang.OutOfMemoryError Could you please help. Thank you. -

Re: How to call a method from struts tag

2006-06-23 Thread Pankaj Gupta
that would be difficult to do with the kind of design that we have. I need it in JSP only. If you can suggest a way of making a custom tag for it, it would be great. Lance Semmens wrote: Can you do this in you action then have an isEnabled() method on your component? Pankaj Gupta wrote: Hi

java.lang.OutOfMemoryError when building in Netbeans

2006-06-23 Thread A. Lotfi
Hi, I am trying to build a big project using Netbeans5, but I can't it always giving me : java.lang.OutOfMemoryError Could you please help. Thank you. - Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voi

Re: To get the session size

2006-06-23 Thread Monkeyden
Correction... ...the operands for the measurement are at RUNTIME scope... On 6/23/06, Monkeyden <[EMAIL PROTECTED]> wrote: This is particularly difficult in Java, since there is no reliable and invariable way to measure the size of an object. Interestingly, while trying to avoid work the ot

Re: To get the session size

2006-06-23 Thread Monkeyden
This is particularly difficult in Java, since there is no reliable and invariable way to measure the size of an object. Interestingly, while trying to avoid work the other day, I stumbled onto this write up on the topic. Martin Roth asserts that the only way to do it in Java is to get the curren

Using bean:write

2006-06-23 Thread temp temp
I have a map with a string as key .The string contains some dots like “p.s.amemdment.type.sow”. In jsp I want display the value for key “p.s.amemdment.type.sow”. For this I should use but the bean tag assumes the key as nested property and I get error .Is there a

Re: [JAVA]Converting a string to date

2006-06-23 Thread Daoud Abdelmonem Faleh
I use this utility class: package com.itCom.util; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author Dao */ public class SQLDateConvertor { /** Creates a new instance of SQLDateConvertor */ public SQLDateConvertor() { } public sta

Re: handle to form w/i jsp?

2006-06-23 Thread Ed Griebel
If you know the formbean it's a simple as If you don't konw the formbean name or want to make it generic you can get the current action's form bean name and then populate it something like below. Modify requestScope/sessionScope as appropriate. HTH, -ed On 6/23/06, Brian Long <[EMAIL PROTEC

handle to form w/i jsp?

2006-06-23 Thread Brian Long
Hi folks - I've got session data that I'd like to jam into a DynaValidatorForm before it displays, so that all of the html tags that do auto-population from the form work. How do I get a handle to the form within the jsp? Thanks in advance, -b -- Brian M. Long Middleware Services, Virginia T

Re: [JAVA]Converting a string to date

2006-06-23 Thread Niall Pemberton
Commons Validator 1.3.0 has a whole set of easy to use validation/conversion routines: http://tinyurl.com/g526k DateValidator validator = DateValidator.getInstance(); java.util.Date utilDate= validator.validate("06-apr-07", "dd-MMM-yy"); java.sql.Date sqlDate = new java.sql.Date(utilDate.get

RE: Mistake of syntax in html:button

2006-06-23 Thread Karr, David
The problem is your use of a scriptlet. The scriptlet has to be the entire attribute value, not just a portion of it. You'll have to do something like this: onclick='<%= "Enviar(" + property + ")" %>' > -Original Message- > From: José María Tristán [mailto:[EMAIL PROTECTED] > Sent:

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Niall Pemberton
A word of caution - Commons BeanUtils[1] handles Maps and JavaBeans/DynaBeans differently and doing this may change how the ActionForm is populated - for simple properties it would probably be fine, but I'm not sure that indexed properties would work the same way. This related bug may be of inter

Re: [JAVA]Converting a string to date

2006-06-23 Thread [EMAIL PROTECTED]
Here is a good place to see Java by example. http://www.kickjava.com/ Bryan LaPlante -- Original Message --- From: temp temp <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thu, 22 Jun 2006 10:24:53 -0700 (PDT) Subject: [JAVA]Converting a string to date > I have a string whi

RE: newbie question on indexed properties and validation

2006-06-23 Thread Givler, Eric
Thanks, this is very much appreciated. Is this something that is going to make it into a Struts Base release? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 11:15 AM To: Struts Users Mailing List Subject: Re: newbie question on indexed p

Re: How to call a method from struts tag

2006-06-23 Thread The Jasper
hi, depending on what you are checking, wouldn't some form of logic tag suffice? mvg, Jasper On 6/23/06, Lance Semmens <[EMAIL PROTECTED]> wrote: Can you do this in you action then have an isEnabled() method on your component? Pankaj Gupta wrote: > Hi All, > > I want to call a method of an ob

Re: How to call a method from struts tag

2006-06-23 Thread Lance Semmens
Can you do this in you action then have an isEnabled() method on your component? Pankaj Gupta wrote: Hi All, I want to call a method of an object in session scope that would check whether the component I wish to display on my JSP should be enabled or disabled. Can you please suggest how I ca

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
Here's a better solution: Extend LazyValidatorForm to implement java.util.Map (perhaps BeanValidatorForm, which LazyValidatorForm extends from, should do this?) Then you could access ${myForm.myProperty} in the JSTL. Lance Semmens wrote: Use LazyDynaForm.getMap() eg ${myForm.map.myProperty}

Re: [tiles] Re: Tiles & action classes

2006-06-23 Thread sim085
Thanks :) no it is not is sounds strange, just I did not think that two actions could be called on the same page unless I did something out of the ordinary!! :) Okej I will do it that way and see how it goes :) thanks and regards, sim085 -- View this message in context: http://www.nabble.com/Ti

Re: [tiles] Re: Tiles & action classes

2006-06-23 Thread Antonio Petrelli
sim085 ha scritto: Thanks, you already helped me much with that last peace of code. No my menu does not change from page to page. It is always the same menu? That means I can avoid changing my tiles-config? and if so, what do I change then. I just define a new action in my struts-config, an

RE: [OT] Re: Log4j -how not to log everything?

2006-06-23 Thread nageshkumar.siddu
Hi, Thanks All. I am closing the issue with the following solution: log4j.rootLogger=error, debuggingAppender log4j.logger.my.package=debug, debuggingAppender log4j.additivity.my.package=false Regards, Nagesh -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Fr

Re: [tiles] Re: Tiles & action classes

2006-06-23 Thread sim085
Thanks, you already helped me much with that last peace of code. No my menu does not change from page to page. It is always the same menu? That means I can avoid changing my tiles-config? and if so, what do I change then. I just define a new action in my struts-config, and define the form to

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
Use LazyDynaForm.getMap() eg ${myForm.map.myProperty} Scott Van Wart wrote: I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a complaint about accessing myProperty of bean myForm (since there's no getMyProperty(

Re: [tiles] Re: Tiles & action classes

2006-06-23 Thread Antonio Petrelli
sim085 ha scritto: Now, each view is using an Action class to manage the view and so on. I would like to have another action class for the menu section as well, with a form bean to transfer the data from the menu to the action class and back again. If the JSP of the menu does not change, yo

How to call a method from struts tag

2006-06-23 Thread Pankaj Gupta
Hi All, I want to call a method of an object in session scope that would check whether the component I wish to display on my JSP should be enabled or disabled. Can you please suggest how I can do that without using java scriptlets in my JSP. regards, Pankaj -

RE: Grid Control

2006-06-23 Thread Stasica, Grzegorz
Try this one http://displaytag.sourceforge.net/11/ -Original Message- From: Ahmed Hashim [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:29 PM To: Struts Users Mailing List Subject: Grid Control Dear All, Is there any Grid Struts Tag Lib to display data in table and handle pag

Re:To get the session size

2006-06-23 Thread starki78
Well I can remember having used session-size tags that worked fine, but after a while I came to the conclusion that this is not so important. http://www.servletsuite.com/servlets/ssizetag.htm Nice greetings Starky -- Initial Header --- >From : "Carl Smith" [EMAIL PROTECTED]

Re: Grid Control

2006-06-23 Thread Vantuir Muniz
Hi Ahmed Hashim, Try Struts-Layout http://struts.application-servers.com/doc/tags/datagrid.html#datagrid On 6/23/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: Dear All, Is there any Grid Struts Tag Lib to display data in table and handle paging and sorting? Regards, Ahmed Hashim -- www.egjug

Re: [tiles] Re: Tiles & action classes

2006-06-23 Thread sim085
Okej, Basically my page is divided into two sections. On the left I have a menu, and on the right I have my view. Now, using tiles, I am loading the menu from a jsp page, and the view according to the required page. in the tiles.config file I defined a base definition (that defines the menu an

RE: Communicate between two struts apps

2006-06-23 Thread Mukta
I am developing an SSO application and we are using this kind of scenario when one app calls some actions of the other app. We are picking those URLs from DB and simply providing links to them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 20

Grid Control

2006-06-23 Thread Ahmed Hashim
Dear All, Is there any Grid Struts Tag Lib to display data in table and handle paging and sorting? Regards, Ahmed Hashim -- www.egjug.org http://www.egjug.org/hashimblog/ http://www.jroller.com/page/Hashim In Life, it doesn't matter who you are, but whether someone appreciates you for what you

RE: [shale] t:commandLink issues

2006-06-23 Thread Ian.Priest
I had a very similar problem. I had a table that was the result of a search. When a search was performed all was well and the table displayed. When a link in the table was clicked the action was ignored as the getter for my table was returning an empty list on that request. I "fixed" it by making m

[tiles] Re: Tiles & action classes

2006-06-23 Thread Antonio Petrelli
sim085 ha scritto: Hello, Tiles is part of the Struts Framework that is why I tought of asking this here. You're right :-) Basically I have a page that is made from a menu section and a view section. The view section changes all the time. However now I wish to add an action and a form b

Re: Struts 1.3 Release Date...

2006-06-23 Thread Wendy Smoak
On 6/22/06, thamizh arasu <[EMAIL PROTECTED]> wrote: This is a good news about Struts 1.3 is going to be released. I searched the web but i could not find the release date of struts 1.3 version. can any one tell me the release date of struts 1.3.. There isn't one. :) http://struts.apache.or

Re: Struts 1.3.x snapshot is not available

2006-06-23 Thread Wendy Smoak
On 6/22/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page > [2] results in "Not Found" response: "The requested URL > /builds/struts/maven/trunk/nightly/struts-action/ was n

Tiles & action classes

2006-06-23 Thread sim085
Hello, Tiles is part of the Struts Framework that is why I tought of asking this here. Basically I have a page that is made from a menu section and a view section. The view section changes all the time. However now I wish to add an action and a form bean for my menu as well. I had read once t

[OT] Re: Log4j -how not to log everything?

2006-06-23 Thread Antonio Petrelli
Bharat Kumar Meda ha scritto: Add the following in ur log4j property file: log4j.logger.org.apache = OFF Mmm this way you switch off all the errors of "org.apache" packages, including fatal ones! I think it is better to enable "error" as the level of the root logger, then enable, for exa

RE: Log4j -how not to log everything?

2006-06-23 Thread Bharat Kumar Meda
Add the following in ur log4j property file: log4j.logger.org.apache = OFF -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:15 PM To: user@struts.apache.org Subject: Log4j -how not to log everything? Hi, I have been using log4j for logg

Log4j -how not to log everything?

2006-06-23 Thread nageshkumar.siddu
Hi, I have been using log4j for logging purpose in a struts application. The genreted log file contains all log messages apart from given in the application. It is logging all the messages genereted from struts classes also. can any one suggest the properties of log4j properties file so that ONLY

XDoclet + struts-config.xml + modules

2006-06-23 Thread Stasica, Grzegorz
Hi, Is it possible to generate struts-config.xml for modules? I've two modules in my application handled by one DispatchAction. Unfortunately I can't find a way to indicate that specific mapping is related to another module. By the way is it true that XDoclet for struts doesn't support in 100% D

RE: Mistake of syntax in html:button

2006-06-23 Thread José María Tristán
Thanks, is ok. I work whith quotation marks and apostrophes 'Enviar("<%... and this not work. -Mensaje original- De: Miller, Andy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 22 de junio de 2006 19:47 Para: Struts Users Mailing List Asunto: RE: Mistake of syntax in html:button Well, ju