DB Connection
hi How to share the saem db connection across user requests..without exhausitn the connection pool. regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Syntax
Hi What is wrong in the below code ? Eclipse is making noise...but code runs fine... html:multibox property=strCoreID value=%= (String)CoreID % styleId=%= c+(String)CoreID % / Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue - Database Architecture
Hi All I get error : java.sql.SQLException: Closed Connection: next when number of concurrent requests is more public class PortfolioMgmtAction extends Action{ private Connection con; public ActionForward execute(..){ this.con = dao.getConnection(); } } public class DAO { private Connection objConnection; public Connection createConnection() { Class.forName(oracle.jdbc.driver.OracleDriver); dashboard); objConnection = DriverManager.getConnection(jdbc:oracle:thin:@10.64.34.107:1521:spsdweb, NPI_DBRD_AD, RTAM70PW); return objConnection; } What is the problem in architecture?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT-FILE UPLOAD
Hi All form method=POST enctype=multipart/form-data action=test.php input type=file name=F1 size=20 input type=text name=T1 size=20 input type=submit value=Submit name=B1 input type=reset value=Reset name=B2/p /form How to access value of T1 and also the uploaded file in JSP? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP - Constant
Hi All Please help me to figure out what is wrong in this... logic:equal parameter=formState value=%=com.freescale.npidashboard.common.Constants.FormState.CREATE % html:submit property=create value= Create styleClass=NPIButton/ /logic:equal rg Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts how initialises the value
It is no way different to struts Primitive types are always initilxed to its defaults... senthil Kumar wrote: Hi all., long productId; long productId = 0; Sting abc; Sting abc = null In struts, how the above satements are differ?. is it compulsary to initialise the value?. What are all the advantage to initialise the value?. Regs., Senthil This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents. Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Checkbox
Hi All How to make checkbox checked in html:multibox / ? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TextArea
Hi Guys How to control char maxlength in html:textarea/ ? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generic template
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: form elements
syed abrar wrote: Hello all I have a problem .I have a form containing multiple elements like check boxes,radio buttons,text boxes.The type of element is not fixed and is picked from the the database and displayed in the form. I mananged to display all the form elements but my problem is picking back those values from the user page as to read back the values we dont know exactly the type of form element. Can any one plz help me By default it is string - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Propertirs file
Hi All I have a common class which gives value for keys in the properties file. How do i load / read values from properties file? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Propertirs file
Hi i need to load LDAP server name , port , username from prop file . how this will help us? Thanks replying to the mail Wendy Smoak wrote: From: Vijay K Anand [EMAIL PROTECTED] I have a common class which gives value for keys in the properties file. How do i load / read values from properties file? Many of the Struts tags have attributes such as 'altKey' 'errorKey' and 'styleKey' which will look to (usually) ApplicationResources.properties to retrieve a value. If you meant Properties in general... http://java.sun.com/docs/books/tutorial/essential/attributes/properties.html i need to load LDAP server name , port , username from prop file . how this will help us? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database Connection
Hi All I have a helper class which does creating connection and exception handling for that . How do i create connection like DataSource dataSource = (DataSource)context.getAttribute(Action.DATA_SOURCE_KEY) ; objConnection = datasource.getConnection(); it says error at context and Action.DATA_SOURCE_KEY Any help brothers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access ACL
Senthilrajan VS wrote: Hi, I am using ACL authentication, how can I get the user name from the ACL inside my action class Regards, Senthil request.getRemoteuser() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getter/Setter
hi All Any idea how to write setter / getter methods for multiple form elements ? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javascript
Hi This code is not actually translating html:button property=Create value=Create styleClass=NPIButton onclick=javascript:location.href=\'html:rewrite page='/portfoliomgmt'/\' / how do i do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript
Hi All I used the same way you have said bean:define id=create_portfoliojavascript:location.href='html:rewrite page=/portfoliomgmt/'/bean:define html:button property=Create value=Create styleClass=NPIButton onclick=%=create_portfolio % / html code generated is input type=button name=Create value=Create onclick=javascript:location.href='/portfoliomgmt' class=NPIButton but the problem is .do missing ... Any help brotheres? Bob Arnott wrote: Vijay K Anand wrote: Hi This code is not actually translating html:button property=Create value=Create styleClass=NPIButton onclick=javascript:location.href=\'html:rewrite page='/portfoliomgmt'/\' / how do i do it? You can't embed tags in other tags... Off the top of my head try something like: bean:define id=onClickUrljavascript:location.href='html:rewrite page=/portfoliomgmt /'/bean:define html:button property=Create value=Create styleClass=NPIButton onclick=%=onClickUrl% / Cheers, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript
Thanks buddy , it is great... Jeff Beal wrote: Use the action attribute instead of the page attribute in your html:rewrite/ tag. See http://struts.apache.org/userGuide/struts-html.html#rewrite for the tag documentation. -- Jeff On 7/6/05, Vijay K Anand [EMAIL PROTECTED] wrote: Hi All I used the same way you have said bean:define id=create_portfoliojavascript:location.href='html:rewrite page=/portfoliomgmt/'/bean:define html:button property=Create value=Create styleClass=NPIButton onclick=%=create_portfolio % / html code generated is input type=button name=Create value=Create onclick=javascript:location.href='/portfoliomgmt' class=NPIButton but the problem is .do missing ... Any help brotheres? Bob Arnott wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic parameter
Hi All I want to have attribute page be dynamically loaded from bean:message like tiles:insert page=bean:message key=commont.header/ flush=true / instead of tiles:insert page=/views/common/Header.jsp flush=true / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: arraylist problem.
Hi You can use size property to check the length of the Arraylist . [EMAIL PROTECTED] wrote: I have a condition where I have an arraylist(must) containing a bean and i have to display it in my jsp. I cannot use logic:iterate since if the arraylist does not contain the bean, the controls are not displayed at all. (I have approx 40 controls to be displayed ). what is the way out? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: arraylist problem.
bean:size [EMAIL PROTECTED] wrote: I have a condition where I have an arraylist(must) containing a bean and i have to display it in my jsp. I cannot use logic:iterate since if the arraylist does not contain the bean, the controls are not displayed at all. (I have approx 40 controls to be displayed ). what is the way out? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic parameter
Thanks indeedb basak , any other workaround . Afraid it is not helping my problem [EMAIL PROTECTED] wrote: If the problem is with the quotes, use tiles:insert page=bean:message key=\commont.header\/ flush=true / vijay, size is of no help!! Amitava Basak ASE(T) Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j log
Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n here is the code where i want to log static Logger logger = Logger.getLogger(HighLevelAction.class.getClass()); logger.debug(test); th eproblem is : it is not logging anything - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: log4j log
Hi Thanks for replying if i say so , it logs everything that is happening behind I dont want anything except i say explictly by logger.debug(test); [EMAIL PROTECTED] wrote: Hi log4j.rootLogger=ERROR, A2 --- Change this one to Debug, A2 -Opprinnelig melding- Fra: Vijay K Anand [mailto:[EMAIL PROTECTED] Sendt: 4. juli 2005 14:48 Til: user@struts.apache.org Emne: log4j log Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n here is the code where i want to log static Logger logger = Logger.getLogger(HighLevelAction.class.getClass()); logger.debug(test); th eproblem is : it is not logging anything - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j log
Hi This is the file name i have specified below -- npi_log Vijay K Anand wrote: Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n here is the code where i want to log static Logger logger = Logger.getLogger(HighLevelAction.class.getClass()); logger.debug(test); th eproblem is : it is not logging anything - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: log4j log
file is @ /logs directory but it is empty [EMAIL PROTECTED] wrote: Its the filename, but where is it stored on your harddisk? With Win2003 and Tomcat I found my log-file in C:\WINNT\SYSTEM32! Peter -Ursprüngliche Nachricht- Von: Vijay K Anand [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Juli 2005 14:58 An: Struts Users Mailing List Betreff: Re: log4j log Hi This is the file name i have specified below -- npi_log Vijay K Anand wrote: Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n here is the code where i want to log static Logger logger = Logger.getLogger(HighLevelAction.class.getClass()); logger.debug(test); th eproblem is : it is not logging anything - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]