bean define tag

2004-06-11 Thread Naresh Sharma
Hi, I am reading a value object property and holding in a script variable defined using bean:define tag. bean:define id=time name=MyVO property=endTime / This property time actually contains a key to the resource bundle, so passing it to bean:message tag, so it can fetch

Want to do some business logic before the action class of struts is invoked. How ?

2004-06-11 Thread raviv
Dear Strusts users, I have a typical requirement where i need to do some business logic before any action class gets executed. Where should I write the code for this ? Pls suggest. regds r-a-v-i

RE: Want to do some business logic before the action class of str uts is invoked. How ?

2004-06-11 Thread mike . raath
Have you looked at filters? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 June 2004 09:33 To: [EMAIL PROTECTED] Subject: Want to do some business logic before the action class of struts is invoked. How ? Dear Strusts users, I have a typical

RE: Want to do some business logic before the action class of str uts is invoked. How ?

2004-06-11 Thread Andrew Hill
The other alternative would be in the RequestProcessor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 11 June 2004 16:36 To: [EMAIL PROTECTED] Subject: RE: Want to do some business logic before the action class of str uts is invoked. How ? Have you

Re: Want to do some business logic before the action class of struts is invoked. How?

2004-06-11 Thread Shailender Jain
Have you tried processPreprocess() method of RequestProcessor. This method will be executed for each request and will be before action class gets executed [EMAIL PROTECTED] wrote: Dear Strusts users, I have a typical requirement where i need to do some business logic before any

Steven Lock/ffm01/aps ist außer Haus.

2004-06-11 Thread Steven . Lock
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am 01.07.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann vertreten. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for

Re: Want to do some business logic before the action class of struts is invoked. How?

2004-06-11 Thread raviv
Thanks Shailendar ! Shailender Jain [EMAIL PROTECTED] 06/11/2004 02:11 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Want to do some business logic before the action class of struts is

RE: Struts, War files, and WebLogic

2004-06-11 Thread raviv
I dont think it's a security issue...coz if it is, then weblogic should have thrown some security related exception. I too suspect it as a configuration problem. regds r-a-v-i [EMAIL PROTECTED] 06/11/2004 03:19 AM Please respond to Struts Users Mailing List To: [EMAIL

Problem in running

2004-06-11 Thread gitanjali
Hi All, i m facing a problem in running any struts application in tomcat.to compile the bean files i need struts.jar in ext folder of jdk but if i place struts.jar in ext tomcat doesn't run any of my struts application.it gives error like this.. root cause

RE: bean define tag

2004-06-11 Thread chris . cranford
On 6/11/2004 5:08 AM, [EMAIL PROTECTED] wrote to CHRIS CRANFORD: Is hi the language type, ie: en_US.[resource] is what gets shown on my install when a message cannot be found in the appropriate application.properties file for that language. - I am reading a value object property and holding in

session problem

2004-06-11 Thread Shailender Jain
I am using session object in my application to validate whether the user is valid or not. I am doing this in the processPreprocess() method of RequestProcessor. But in I.E. 6.0 update version: SP1, the session object becomes null. So once user click at any link in the application he gets logged

Re: Problem in running

2004-06-11 Thread raviv
It is not looking for struts.jar but it is looking for : commons-logging.jar which contains the class org/apache/commons/logging/LogFactory. Pls keep common-logging.jar in the classpath. That should solve your problem. regds r-a-v-i gitanjali [EMAIL PROTECTED] 06/11/2004 02:32 PM Please

Multiple ApplicationResources.properties

2004-06-11 Thread satish ashok shukla
Hi All, Can we have multiple ApplicationResources.properties files for a project? As of now I have a following entry in web.xml for an ApplicationResources.properties file. init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param

Re: session problem

2004-06-11 Thread nikhil walvekar
Hi, same thing i have experienced with IE 6.0, it will work with mozilla Problem is that with each request session id is not passed. You need to explicitly pass it as url parameter. http://dbomis.com/anyLink;jsessionid=A0698B81A1F1AA2B1ECDA19B0ACFD6E2 Nikhil Shailender Jain [EMAIL PROTECTED]

RE: session problem

2004-06-11 Thread Andrew Hill
The servlet container will try to encode this sessionId in a cookie if it can (saving the need to rewrite links) so you may wish to check the browser settings to see if cookies are enabled. (Its best to make sure you use the html:rewrite tag (or equivelent) for your links though so that your app

Re: session problem

2004-06-11 Thread Shailender Jain
Thanks Andrew for the response. Should i just put html:rewrite/ in all my JSP or some attributed also needs to be passed. Where should i put this tag in the JSP. Andrew Hill wrote: The servlet container will try to encode this sessionId in a cookie if it can (saving the need to rewrite links)

RE: session problem

2004-06-11 Thread Andrew Hill
The syntax I forget (I dont use JSP for the view myself), so you will need to look that up, but where you have links in your pages you would use the html:rewrite tag to rewrite the url (or you could use html:link to render the entire link) so that it will include the jsessionid if necessary. Take

Re: session problem

2004-06-11 Thread Shailender Jain
I tried to use 1. html:rewrite/ 2. html:rewrite forward=DBOMISRequestProcessor/ Both are giving errors For the second option i am getting the error java.net.MalformedURLException: Cannot retrive ActionForward named DBOMISRequestProcessor Andrew Hill wrote: The servlet container will

How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Hi all, I have an application where the user should be allowed to use text formatting tags as b or li (and so on). To avoid that tags like html oder body (and so on) are used I check the for these tags before it's stored in the DB. When the text is read from the DB my tags are encoded to

re prob in running

2004-06-11 Thread gitanjali
Thnx Andrew and Ravi.Ya my problem is solved.i can't place struts.jar in ext of jdk.so to compile the bean files i have placed struts.jar in classpath and it is working. Anjlai Yahoo! India Matrimony: Find your partner online.

form handling

2004-06-11 Thread chris . cranford
Could someone offer some input on the best way to handle the necessary form logic described below? I have a popup window and that looks similar to the following: Search: [ ] [Find] A B C D E F G H I J K L M N O P Q R S T U V W X Y Z All

How to get tiles to respect different bachground colors of its pages?

2004-06-11 Thread Johannes Wolfgang Woger
Hi, I have a webapp that uses tiles (-definitions). I allways get a single background color even if the component pages have different body bgcolor='xx' or reference different css (giving other background: color=#yy). Any suggestions? Wolfgang

RE: How to avoid character encoding for html tags

2004-06-11 Thread Vclavk Radek
Hi Axel, don't know if I understood your problem well, but i have such text in db and when printing it in jsp using bean:write i use this parameter: bean:write name=foo property=fooo filter=false/ Hope this helps. regards Radek -Original Message- From: Axel Seinsche [mailto:[EMAIL

RE: How to get tiles to respect different bachground colors of it s pages?

2004-06-11 Thread Paul McCulloch
I think should only have one body element in a single html page. The component pages you refer to should *not* be well formed html pages in their own right. The complete page as rendered by tiles should be a well formed html page with a single body element. I'd put each of your component pages

Re: How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Vclavk Radek wrote: Hi Axel, don't know if I understood your problem well, but i have such text in db and when printing it in jsp using bean:write i use this parameter: bean:write name=foo property=fooo filter=false/ Hope this helps. Hi Radek, thanks your very much. As I used c:out the filter

Re: How to get tiles to respect different bachground colors of it s pages?

2004-06-11 Thread Johannes Wolfgang Woger
Thank you works fine. Wolfgang Paul McCulloch wrote: I think should only have one body element in a single html page. The component pages you refer to should *not* be well formed html pages in their own right. The complete page as rendered by tiles should be a well formed html page with a single

Struts 1.2.x binaries download?

2004-06-11 Thread Illya Kysil
Hi all, Are there any Struts 1.2.x binaries downloads available? http://jakarta.apache.org/site/binindex.cgi reports 1.1 is the latest. -- Illya Kysil, software developer Delphi/C/C++/C#/Java/Forth/Assembler - No trees were

RE: bean define tag

2004-06-11 Thread Naresh Sharma
Title: RE: bean define tag No. I am only using en_US. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 11, 2004 2:41 PM To: [EMAIL PROTECTED] Subject: RE: bean define tag On 6/11/2004 5:08 AM, [EMAIL PROTECTED] wrote to CHRIS CRANFORD: Is

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Mark Lowe
You'll want to look at the nightlies. http://cvs.apache.org/builds/jakarta-struts/nightly/ Mark On 11 Jun 2004, at 14:08, Illya Kysil wrote: Hi all, Are there any Struts 1.2.x binaries downloads available? http://jakarta.apache.org/site/binindex.cgi reports 1.1 is the latest. -- Illya Kysil,

Steven Lock/ffm01/aps ist außer Haus.

2004-06-11 Thread Steven . Lock
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am 01.07.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann vertreten. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for

Re: form handling

2004-06-11 Thread Bill Siggelkow
It sounds like you would want to use a session-scoped form containing an array of Strings representing the total set of the selections. Then you would use html:multibox to create the checkboxes on the form. As a far as the paging/selecting by letter -- this is not too hard -- you just need

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Illya Kysil
Mark Lowe wrote: You'll want to look at the nightlies. http://cvs.apache.org/builds/jakarta-struts/nightly/ Thanx, but I would like to use something more stable... -- Illya Kysil, software developer Delphi/C/C++/C#/Java/Forth/Assembler

validation for optional fields

2004-06-11 Thread Kalra, Ashwani
hi, how can I validate an optional field. ie validate only if there is some value in it. For example. I want to validate a field which should of type int.But it should be validated only if use has entered some value in it. Thanks Regds Ashwani Kalra http://www.geocities.com/ashwani_kalra/

Re: validation for optional fields

2004-06-11 Thread Axel Seinsche
Kalra, Ashwani wrote: hi, how can I validate an optional field. ie validate only if there is some value in it. For example. I want to validate a field which should of type int.But it should be validated only if use has entered some value in it. hi, if you are validating in your form or action

RE: validation for optional fields

2004-06-11 Thread Kalra, Ashwani
I am validating using validator and working on Struts 1.1 -Original Message- From: Axel Seinsche [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 7:24 PM To: Struts Users Mailing List Subject: Re: validation for optional fields Kalra, Ashwani wrote: hi, how can I validate an

How to convert A href tag to a submit button

2004-06-11 Thread PADALA, SANDHYA (SBCSI)
Hi all, I have a href tag on my JSP. I am using html:link tag for this. And when a user clicks on this URL, if for some reason there is an error on the action which opens the url page then the user is redirected to the original page which has the link , which is what I want. But the problem

RE: validation for optional fields

2004-06-11 Thread Nicholas L Mohler
We have a similar situation with our validations. We created our own validators to handle those situations. For the javascript, we cloned the javascript for the validation and added logic to apply the validation when a field was populated - very easy. For the server-side validation, our

RE: How to convert A href tag to a submit button

2004-06-11 Thread Wendy Smoak
From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] I tried using onClick java script method in the html:link tag and in the method implementation I have done document.forms[0].submit().NO luck. I was not successful. Why don't you post what you tried that didn't work? That's the

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Mark Lowe
There is chat of a release of 1.2 on the dev list, but I'm also waiting.. I've a few internal apps running on 1.2 but like you i cant be arsed with the bleeding edge stuff. That said I've the impression that struts becoming a top level apache project means that the requirements for release

Re: validation for optional fields

2004-06-11 Thread Matt Bathje
Maybe I'm missing something here, but why can't you just setup the validation to do the integer validation without the required validation? Integer does not depend on the required validation, so it should be fine - if there is nothing in the field the validation will just return true. Sample

RE: validation for optional fields

2004-06-11 Thread Kalra, Ashwani
Yeah, I think its working, thanks -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 8:10 PM To: Struts Users Mailing List Subject: Re: validation for optional fields Maybe I'm missing something here, but why can't you just setup the validation

Re: validation for optional fields

2004-06-11 Thread Nicholas L Mohler
You are completely correct Matt. In our situation, there were other reasons that led us to create our own versions of the struts validations - I won't bore anyone with those details. The point I was really getting at, is that specialized applications of the struts validations can be easily

RE: Struts 1.2.x binaries download?

2004-06-11 Thread Wendy Smoak
Illya Kysil wrote: http://cvs.apache.org/builds/jakarta-struts/nightly/ Thanx, but I would like to use something more stable... Suit yourself, but the code doesn't GET much more stable than in the days leading up to a release. I've been using nightlies for as long as I can remember, and

Re: Struts scalability and benchmarking

2004-06-11 Thread Ashu Jaiswal
What if the system needed to scale to thousands (or potentially even millions) of user? Would just throwing more hardware solve the scalability issues? I know this sounds really open ended, but I'm just trying to figure out how well struts has performed (or will) in the past for large websites.

RE: How to convert A href tag to a submit button

2004-06-11 Thread PADALA, SANDHYA (SBCSI)
Hello Wendy, Thank you for replying to my mail. What I have tried is something like this html:link page=/attachment.do onclick=attSubmit() attName /html:link SCRIPT language=javascript function attSubmit(ID) { document.forms[0].action=/attachment.do;

RE: Single ActionForm accross multiple Actions

2004-06-11 Thread Wang, Yuanbo
Interesting topic. I am new to server clustering so I'd like to discuss about how fail-over get implemented in a clustering env. I understand any ActionForms and custom data objects in the session need to be serializable, so in case one node server fails, all the information can be serialized

RE: How to convert A href tag to a submit button

2004-06-11 Thread Wendy Smoak
From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] html:link page=/attachment.do onclick=attSubmit() attName /html:link SCRIPT language=javascript function attSubmit(ID) { document.forms[0].action=/attachment.do; document.forms[0].submit(); } /SCRIPT Check a

Need Help

2004-06-11 Thread Bharat Bhushan
Hi I am using struts tag library. And I want help in the following tag. html:link href= "" 'bean value ' ) Submit /html:link In the above tag how to pass value from bean in _javascript_ function callAction(). And Submit will also be a bean variable. How to do that??? Any

RE: How to convert A href tag to a submit button

2004-06-11 Thread Hubert Rabago
I think your problem is that the link itself goes somewhere instead of just calling the JS function. Why don't you try something like html:link href=javascript:attSubmit()attName/html:link or even just a regular, non-struts tag, link? --- PADALA, SANDHYA (SBCSI) [EMAIL PROTECTED] wrote:

RE: How to convert A href tag to a submit button

2004-06-11 Thread Ram Venkataswamy
In addition you can check whether you are receiving the form element values using alert() - or even check whether method is getting called V.K.Ram www.m7.com NitroX for Struts -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 9:38 AM To:

Re: Multiple ApplicationResources.properties

2004-06-11 Thread Niall Pemberton
You can in the struts-config. Take a look at Section 5.2.2 Message Resources Configuration in the User Guide http://jakarta.apache.org/struts/userGuide/configuration.html Niall - Original Message - From: satish ashok shukla [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Viral_Thakkar

Steven Lock/ffm01/aps ist außer Haus.

2004-06-11 Thread Steven . Lock
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am 01.07.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann vertreten. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for

RE: How to convert A href tag to a submit button

2004-06-11 Thread Wendy Smoak
From: Hubert Rabago [mailto:[EMAIL PROTECTED] I think your problem is that the link itself goes somewhere instead of just calling the JS function. Why don't you try something like html:link href=javascript:attSubmit()attName/html:link or even just a regular, non-struts tag, link? I think

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Joe Germuska
That said I've the impression that struts becoming a top level apache project means that the requirements for release are stricter than when 1.1 came out. But there's certainly a hive of activity going on to get 1.2 released. Actually, I wouldn't say that's true. In fact, going forward, we

RE: Single ActionForm accross multiple Actions

2004-06-11 Thread Frank Zammetti
Usually what happens in a clustered environment, whether failover is involved or not, is that all information that would otherwise be stored in memory gets saved to a database, or some other persistent storage mechanism, that all servers have access to. In many cases this is a database that

RE: How to convert A href tag to a submit button

2004-06-11 Thread Hubert Rabago
So it's the 'return false' statement that makes your links different from Sandhya's. --- Wendy Smoak [EMAIL PROTECTED] wrote: From: Hubert Rabago [mailto:[EMAIL PROTECTED] I think your problem is that the link itself goes somewhere instead of just calling the JS function. Why don't you

Multiple ApplicationResources.properties

2004-06-11 Thread Viral_Thakkar
Hi All, Can we have multiple ApplicationResources.properties files for a project? As of now I have a following entry in web.xml for an ApplicationResources.properties file. init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param

jsp document/xml and struts

2004-06-11 Thread Mark Shifman
I have been trying to make a jsp document work and display. I'm using tomcat5 and mosiac 1.6. and struts 1.1 I have saved my document as a jspx file and have tried a variety of ways to add links to a stylesheet. mosiac tells me this : This XML file does not appear to have any style

RE: Multiple ApplicationResources.properties

2004-06-11 Thread Wang, Yuanbo
You can define multiple Message-resources in your struts-config.xml and message-resources parameter=MyWebAppResources null=false / message-resources parameter=MyWebAppResources2 key=prop2 null=false / To access MyWebAppResources, use bean:message key=aKey/ Then to

RE: How to convert A href tag to a submit button

2004-06-11 Thread PADALA, SANDHYA (SBCSI)
Hello , Thank you Wendy, Hubert and Ram for your reply. I followed what you have suggested and solved my problem. Wendy , attSubmit() function accepting argument is cut paste error , I am sorry I confused you. Thank you for the code snippet. Hubert, you are right the problem is that the

Downloading a file from an Action class.

2004-06-11 Thread Suzanne Rizzo
Return Receipt Your Downloading a file from an Action class. document :

Re: Generating a form database

2004-06-11 Thread Niall Pemberton
http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean - Original Message - From: Ricardo Andres Quintero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 11, 2004 5:29 PM Subject: Generating a form database Good afternoon The problem i want to solve is that, i need to

Steven Lock/ffm01/aps ist außer Haus.

2004-06-11 Thread Steven . Lock
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am 01.07.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann vertreten. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for

NPE in forwardURL

2004-06-11 Thread Christopher Schultz
Hello all, I am in the process of upgrading from velocity-tools 1.0 to velocity-tools 1.1 in my existing Struts 1.1-based application. This app was working perfectly before the upgrade (just one JAR file) and now I get an NPE whenever I use the velocity-tools's LinkTool.setForward() method.

Re: Struts/tiles: Run-time definition of which tile to include

2004-06-11 Thread Vic Cekvenich
basicPortal (a Struts Portal w/ rich UI and iBatis DAO) uses the the tiles to control the page modules, for example here: http://www.basicportal.com/bp/download/cms.PNG You can see beta of it here, should go live: http://sp8des.ogamo.com ZD replaced Vignette with the Struts Portal for the 5

Re: NPE in forwardURL

2004-06-11 Thread Niall Pemberton
I have to say I don't use velocity and so I don't really understand how your using Struts without an Action, but anyway here goes... When modules were introduced in Struts 1.1 ActionServlet was modified so that every time a request was processed it stores the ModuleConfig as a parameter in the

Re: NPE in forwardURL

2004-06-11 Thread Christopher Schultz
Niall, (First, let me say that I'm very happy to see such a great response so fast. I really appreciate the time you took to research my problem and make suggestions. I expected to suffer several rounds of go away and complain to the velocity tools guys before getting anything useful. Thanks!)

Re: NPE in forwardURL

2004-06-11 Thread Niall Pemberton
Chris, Its an interesting point you raise about using a logic:forward tag in a jsp without going through an Action. Looking at the Struts 1.1 code it looks like it would work - ForwardTag calls RequestUtils.getModuleConfig(HttpServletRequest, ServletContext) which does exactly what you were