Anti-piracy software
Hi All, I would like to know if any anti-piracy tools available opensource that can prevent illigal use of web related software like a struts application. regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to take care of session mgmt
HI Vinodh, Look for an user attribute like user_id if if preset process the JSP or sendredirect it to login JSP. Regards, Nagesh Wipro Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 8:37 PM To: user@struts.apache.org Subject: How to take care of session mgmt Hi *, I am new to struts and to this group. Is there any standard way of doing session management. For eg, user is not allowed to access any resource(jsp pages directly) unless he logins. When he tries he should be directed to login page. Is there any standard way of doing this. Struts framework has any standard way of handling this issue. Thanks in advance for all your help. Regards, Vinodh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How o display a hashtable in jsp
Hi Pankaj, Try using inside logic:iterate tr td width=131font face=Arial size=2bean:write name=match property=value/nbsp;bean:write name=match property=key//font /td /tr I have not tried it. It may work. Regards, Nagesh -Original Message- From: Tejas Bavishi [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 2:36 PM To: 'Struts Users Mailing List' Subject: RE: How o display a hashtable in jsp Hi Pankaj Not sure if this can be done by the tag, may be others can comment. But you can definitely do this using a scriptlet. Hashtable has keys() method that returns an Enumeration of keys. You can traverse through this enumeration to print the keys and corresponding values. Hope that helps Regards Tejas -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Saturday, June 24, 2006 2:04 PM To: Struts Users Mailing List Subject: How o display a hashtable in jsp Hi, Can you please suggest how can I display key and value(both) from a hashtable in my jsp. Currently I am using the following approach but it prints only the value and not the key. logic:iterate id=match name=eventInfo tr td width=131font face=Arial size=2bean:write name=match property=value//font /td /tr /logic:iterate regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://www.patni.com World-Wide Partnerships. World-Class Solutions. _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. _ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j -how not to log everything?
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 application related messages are logged? here is a part of the log4j.properties file: log4j.appender.debuggingAppender=org.apache.log4j.RollingFileAppender log4j.appender.debuggingAppender.File=c:\\R4.1Logs\\DebugGUI.log log4j.appender.debuggingAppender.MaxFileSize=3MB log4j.appender.debuggingAppender.MaxBackupIndex=50 log4j.appender.debuggingAppender.layout=org.apache.log4j.PatternLayout log4j.appender.debuggingAppender.layout.ConversionPattern=[%d{-MM-dd HH:mm:ss}] %p %t%n%l - %m%n here is a part of the genereted log file: org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.err.bundleForm.searchbundle [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.offerconfig.offerCriteria.VersionCode [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.err.categoryForm.searchSMSCategory [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.offerconfig.offerMetaData.offerAnalysisCategory /// along with application messages also. I want to generate only appliation logs, not the logs from org.apache... etc.. Regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: [OT] Re: Log4j -how not to log everything?
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: Friday, June 23, 2006 1:45 PM To: Struts Users Mailing List Subject: [OT] Re: Log4j -how not to log everything? 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 example, debug as the level of your packages. log4j.rootLogger=error, debuggingAppender log4j.logger.my.package=debug, debuggingAppender log4j.additivity.my.package=false HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disabled button
HI , I want to set a different property in CSS for a disabled button. My requirement is the button should look like an active button (text decoration , back ground etc..) but should be disabled state. I can switch over to a different class in CSS when the button is disabled. In a disabled button the text is looking horrible because of the shadow/ 3d property of text and also the colour of text is dim. any idea / references? regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: disabled button-style
Hi, Closing the issue with the following resolution. Instead of disabling the button , we can call # on click. After Change: document.myForm.add.onclick=#; Before change: document.myForm.add.disabled = true; Regards, Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 4:40 PM To: user@struts.apache.org Subject: disabled button-style Hi, I did a search on Net and observed that text-shadow:none can actually do this. But it is not supported in any available browser and it is defined in CSS2(not avialble in CSS1). Any round about is available? Regards, Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:48 PM To: user@struts.apache.org Subject: disabled button HI , I want to set a different property in CSS for a disabled button. My requirement is the button should look like an active button (text decoration , back ground etc..) but should be disabled state. I can switch over to a different class in CSS when the button is disabled. In a disabled button the text is looking horrible because of the shadow/ 3d property of text and also the colour of text is dim. any idea / references? regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: textarea
Hi, Call a javascript method onKeyPressDown to validate the length. --CODE-- script function checkLength(obj,max){ if(obj.value.lengthmax){ alert(obj.name+ feild cannot be more than +max); } } /script BODY /// some HTML TEXTAREA NAME=textAreaName onKeyDown=javascript:return checkLength(this,30)/TEXTAREA /// some HTML --CODE-- This will work like a text box maxlength property. If you want to restrict ctrl+v also , you need to call this method on corresponding key combination. Regards, Nagesh -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 3:48 PM To: Struts Mailing list Subject: textarea how can i set the maximum number of chars in a textarea. i can only set columns and rows. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form Beans in Session
Hi , Instead of putting every form bean in session, you can put custom VO in session. Example: Let Page1.jsp, Page2.jsp,Page3.jsp have FormBean1.java, FormBean2.java,FormBean3.java as beans and Action1.java ,Action2.java,Action3.java be the Action Classes respectively. Create BaseVO.java, OneVO.java,TwoVO.java,ThreeVO.java as custome Vos which hold the parameters in JSP like form beans. Incase of form beans make all fields as String fields(Date as String, int As String etc..), incase of Vos use correct fields(date as Date, int as int etc..) Use Composition like BaseVO.java has the three vos in it. In the Action Classess write two methods(in each) like getVOFromForm, getFormFromVO which set custom VO from form and vice versa. Put the BaseVO in session. I hope this will resolve most of your session related problems. Regards, Nagesh -Original Message- From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 8:41 PM To: Struts Users Mailing List Subject: Form Beans in Session Hi We have Pages where user enters some data in step 1 ,step 2 and in last step these data should be submitted to DB. We are putting the all form beans in session as all of our transactions are multiple step process. Is there any better of way not putting the form beans in session -- Thanks and Regards Hanmayya Udgiri The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Regarding action in struts-config.xml
Yes you can -Original Message- From: Ranganathan Srinivasan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 6:07 PM To: user@struts.apache.org Subject: Regarding action in struts-config.xml Hi, ** *The following is a the action-mappings in struts-config.xml* ** action-mappings action path=/lookupAction type=wiley.LookupAction name=LookupForm scope=request validate=true input=/index.jsp forward name=success path=/createRecords.do/ forward name=faliue path=/index.jsp/ /action /action -mappings On success I call another action here..What I want to know is can i pass query Strings as shown below :- forward name=success path=/createRecords.do?string=dev388/ Regards, Ranganathan The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Basic Logic:iterate question
Hi, If you are using logic equal , you should also use logic not equal. Regards, Nagesh -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:08 PM To: Struts Users Mailing List Subject: Re: Basic Logic:iterate question Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I feel has some mismatch. hope this info helps. On 5/11/06, josh t [EMAIL PROTECTED] wrote: Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this is what I have, but doesn't seem to be correct: logic:iterate id=role name=%=LookupConstants.SESSION_OBJECT% property=userRoles scope=session logic:equal name=role property=SUPER a href=test.do class=BodyLinkbtest/b/abr / /logic:equal /logic:iterate . Note: I can get the session value just fine, when i do the following: bean:write name=%=LookupConstants.SESSION_OBJECT% property=role scope=session / Can you please let me know what I'm doing wrong within the iterte block? - Get amazing travel prices for air and hotel in one click on Yahoo! FareChase The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Error deploying struts webapp to iPlanet
Hi , I hope this issue can be resolved which i am struggling for a couple of days. The scenario: I have an application perfectly working in Tomcat 5.0. the same application when deployed in iPlanet is giving an error that unterminated tag. [03/Apr/2006:17:16:55] failure ( 5100): for host 10.116.21.235 trying to POST /CONTEXT/offerMetadata.do, service-j2ee reports: StandardWrapperValve[action]: WEB2792: Servlet.service() for servlet action threw exception org.apache.jasper.compiler.ParseException: /jsp/offer/oneoffSubscription.jsp(480,33) WEB4118: Unterminated user-defined tag: ending tag lt;/html:selectgt; not found or incorrectly nested at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:901) at org.apache.jasper.compiler.Parser.parse(Parser.java:1157) I am posting the part of the JSP code with the select tag that is giving problem. TR logic:iterate id=topup name=topupMethodVOList // topupMethodVOList is an arrayList available in session scope bean:define id=topupId name=topup type=The full qualified path of the VO / trtd tr td align=left width=49% html:checkbox property=topupId bean:write name=topupId property=topumMethod//html:checkbox /td td html:select property=subbundles name=simpleAggForm multiple=true logic:iterate id=bundlesID name=topup property=bundles //bundles this is an arrayList inside each topupMethodVO whose collection is itereting in the above iterate tag with topupMethodVOList as ArrayList bean:define id=bundle name=bundlesID type=org.apache.struts.util.LabelValueBean/ html:option value=%=String.valueOf(bundle.getValue())% bean:write name=bundle property=value/ /html:option /logic:iterate /html:select/// this tag is not closed is the error?? /td /tr /td /tr /logic:iterate /TR any references on this issue ?? I guess the problem can be with handling nested properties of VO?? but i am not sure how to go about it. regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Error deploying struts webapp to iPlanet
Hi David, Thanks for the reply. Yes this portion of HTML code is in side Table definition. The VO I am trying to access the properties in the tags is as follows: public class TopupMethodVO implements Serializable{ private String topumMethod=null; private ArrayList bundles=null; private ArrayList selBundles=null; public TopupMethodVO() { } // getter/ setter methods } Regards, Nagesh -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 9:37 PM To: Struts Users Mailing List Subject: RE: Error deploying struts webapp to iPlanet Just to nitpick, do you care that your below HTML has an opening TR, opening TD, then another opening TR and opening TD BUT NO TABLE declaration between them? Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 11:53 AM To: user@struts.apache.org Subject: FW: Error deploying struts webapp to iPlanet Hi , I hope this issue can be resolved which i am struggling for a couple of days. The scenario: I have an application perfectly working in Tomcat 5.0. the same application when deployed in iPlanet is giving an error that unterminated tag. [03/Apr/2006:17:16:55] failure ( 5100): for host 10.116.21.235 trying to POST /CONTEXT/offerMetadata.do, service-j2ee reports: StandardWrapperValve[action]: WEB2792: Servlet.service() for servlet action threw exception org.apache.jasper.compiler.ParseException: /jsp/offer/oneoffSubscription.jsp(480,33) WEB4118: Unterminated user-defined tag: ending tag lt;/html:selectgt; not found or incorrectly nested at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:901) at org.apache.jasper.compiler.Parser.parse(Parser.java:1157) I am posting the part of the JSP code with the select tag that is giving problem. TR logic:iterate id=topup name=topupMethodVOList // topupMethodVOList is an arrayList available in session scope bean:define id=topupId name=topup type=The full qualified path of the VO / trtd tr td align=left width=49% html:checkbox property=topupId bean:write name=topupId property=topumMethod//html:checkbox /td td html:select property=subbundles name=simpleAggForm multiple=true logic:iterate id=bundlesID name=topup property=bundles //bundles this is an arrayList inside each topupMethodVO whose collection is itereting in the above iterate tag with topupMethodVOList as ArrayList bean:define id=bundle name=bundlesID type=org.apache.struts.util.LabelValueBean/ html:option value=%=String.valueOf(bundle.getValue())% bean:write name=bundle property=value/ /html:option /logic:iterate /html:select/// this tag is not closed is the error?? /td /tr /td /tr /logic:iterate /TR any references on this issue ?? I guess the problem can be with handling nested properties of VO?? but i am not sure how to go about it. regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]