RE: db connection pooling
That depends upon the Server Infrastruture. U can implement connection pooling and Datasournce throught the strutsconfig datasournce seqment. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: db connection pooling Hi, Is there any ways to achieve db connection pooling and access of such pooled connection though jndi in struts action classes. Regards, Jailani.S 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Subject
Hi, Instead of FileDataSource Create a New DataSource Called StreamDataSource. which implements the activitaion.DataSource interface. in creation of StreamDataSource u can aspcect a String or Stream as constructor and implement that interface and in your Email send method or Class use this Datasource as attachment.. like messageBodyPart.setDataHandler( new StreamHandler(m_strSource) ); messageBodyPart.setFileName( fileName ); Regards sadhas -Original Message- From: Melanie Tanaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 4:31 AM To: [EMAIL PROTECTED] Subject: Fwd: No Subject Hi I'm having trouble connecting the dots for FormFile upload and sending an email attachment with a FormFile. Can someone give me an example? I'm basing my code on this (using Java Mail API): // Part two is attachment messageBodyPart = new MimeBodyPart(); DataSource source = new FileDataSource(filename); messageBodyPart.setDataHandler(new DataHandler(source)); messageBodyPart.setFileName(filename); multipart.addBodyPart(messageBodyPart); I can't find an easy way to conver from a FormFile to this FileDataSource. I don't want to create a temporary file on disk if I can avoid it, but it's okay if no other option. Please advice. thank you. M. -- Melanie Tanaka [EMAIL PROTECTED] -- Melanie Tanaka [EMAIL PROTECTED] -- http://www.fastmail.fm - Send your email first class - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I configure multiple struts-config files?
I don't think struts will allow multiple configuration file and its always one controller and one configuration file. -Original Message- From: Bob Byron [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: How do I configure multiple struts-config files? It doesn't seem like it should be this hard, but I am trying to use multiple struts-config files. I keep getting errors. I have attached my configuration and error below. Any help is appreciated. I am using struts 1.1 rc2. By the way, whenever a config file can't be found, a NullPointerException is thrown. I hope a more meaningful message is in the works. From web.xml servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml/param-value /init-param From log: 23:52:19,585 WARN [org.jboss.jbossweb] WARNING: action: Parsing error processing resource path /WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1299) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:741) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:408) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at Thank You, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I configure multiple struts-config files?
Means.. i didn't get u. -Original Message- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? hello you can have multiple with struts need to configure sub app details in web.xml -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? I don't think struts will allow multiple configuration file and its always one controller and one configuration file. -Original Message- From: Bob Byron [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: How do I configure multiple struts-config files? It doesn't seem like it should be this hard, but I am trying to use multiple struts-config files. I keep getting errors. I have attached my configuration and error below. Any help is appreciated. I am using struts 1.1 rc2. By the way, whenever a config file can't be found, a NullPointerException is thrown. I hope a more meaningful message is in the works. From web.xml servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml/param-value /init-param From log: 23:52:19,585 WARN [org.jboss.jbossweb] WARNING: action: Parsing error processing resource path /WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1299) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:741) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:408) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at Thank You, Bob - 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] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I configure multiple struts-config files?
Yes please so far i understood that one controller serverlt in web-application will take one Struts-config.xml i am interested please -Original Message- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:59 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? struts config.xml is for single for web application/context web.xml will contain details of ure stuts-config.xml so now u want ure web-application with different contexts.. do it with multiple struts-config.xml mentioned in web.xml incase u need a sample i can send across cheers!!! -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:58 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? Means.. i didn't get u. -Original Message- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? hello you can have multiple with struts need to configure sub app details in web.xml -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? I don't think struts will allow multiple configuration file and its always one controller and one configuration file. -Original Message- From: Bob Byron [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: How do I configure multiple struts-config files? It doesn't seem like it should be this hard, but I am trying to use multiple struts-config files. I keep getting errors. I have attached my configuration and error below. Any help is appreciated. I am using struts 1.1 rc2. By the way, whenever a config file can't be found, a NullPointerException is thrown. I hope a more meaningful message is in the works. From web.xml servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml/param-value /init-param From log: 23:52:19,585 WARN [org.jboss.jbossweb] WARNING: action: Parsing error processing resource path /WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1299) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:741) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:408) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at Thank You, Bob - 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] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logic:iterate issue
Offset property is there in iterate check it up please -Original Message- From: raghu_c [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:54 PM To: [EMAIL PROTECTED] Subject: logic:iterate issue Hi - My logic:iterate tag doesnt loop thru the no of elements in the list :( Can someone help? My jsp goes something like this logic:iterate id=MINESNQueryForm name=MINESNResults property=arrlstMINESNIS41Records length=%=iNoOfRecDisplayed% tr onClick=fnSelectedRow(this,'%=iCounter%') onDblClick=fnOpenDetails(this,'%=iCounter%') td align = center nbsp; /td logic:notEmpty name=MINESNQueryForm property='%=arrIS41Date[+iCounter+]%' td align = center font color=%=(String)arrIS41ColorCode.get(iCounter)% bean:write name=MINESNQueryForm property='%=arrIS41Date[+iCounter+]%' / /font /td /logic:notEmpty /tr %iCounter+=1;% /logic:iterate The MINESNQueryForm is my ActionForm Bean ; it has getter setter methods called getArrlstMINESNIS41Records and setArrlstMINESNIS41Records iNoOfRecords is a parameter, it has a value of 15 when printed to System.out I am forced to use the iCounter to iterate since tag nesting is unavailable. It prints the first record , then doesnt return to loop any more Thanx in Advance, Raghu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: debugging in struts
U can specify debug attribute in your web.xml as a init param to the ActionServlet. but i don;t how far it will work out.. if u could give the correct context then i can suggest some thing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 12:18 PM To: Struts Users Mailing List Subject: debugging in struts hi, I am not talking of any debugging tools but is there any way in which struts api is more verbose. Like some configuration param For eg I was using html:errors / it was not printing any errors, even though validation framework was returning the errors. I found that the the value of msg attribute for validator tag was wrong. But it was not giving me any errors. How to detect such errors ? TIA Ashwani 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem Statement for some standard e-Biz requirements
Hi, I have been posting my problem and work through for the past 5 days and not even a single mail stating this is good or bad. so I am again banging with my implemented code. This is just a positive approach to improve struts in a more comprehensive framework. I haven't done much in this code, it follows a standard approach as like ActionServlet.. Files: explanation ActionHook Standard Interface to trigger Hooked methods ActionHookMapping similar tool like ActionMapping ActionHookServlet Child class for ActionServlet which does hooking to a doPost and doGet ServiceThread If the hook needs to be implemented in threaded environment hook-struts-config.xml configuration XML for action Hooks ChannelHook WebTrendsHook These are just a sample implementation tested class for this rule. Note: == Some of the behaviors can be implemented through tags also. But my idea is not that. The Subjective Goal is Doing an asynchronous job for a defined request. Let me know if there is any problem in that. Things to be done. = 1. Authentication --can be used a standard authentication 2. Parameter passing through the hook-struts-config.xml and usuage 3. Implement more comprehensive ServiceThread Class rather than ordinary thread reaper class 4. Implement rich Cache behviour to this. Dis-Advantage: = 1. Depends upon the context and usauge Thread Hook might give some problem Please find the war file for further testing ( This was tested under resin environment ). Hope Ted , criag or other senior person in apache foundation spend some time to replay this mail both positive or negative. if it is negative i can stop my spaming and if it is positive think about further. Still waiting for the replay.. Tnx and Regards sadhas -Original Message- From: J, Sadhasivam (Cognizant) Sent: Friday, June 06, 2003 7:09 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem Statement for some standard e-Biz requirmentsf Hi, Problem Statement = As per my understanding towards the struts that it doesn't have the Trigger kind of mechanism to solve some of the typical e-Biz scnerios or standard requirments for example 1. Log all the URIs with some custom format and give to some other serivces This has to happen irrespective of regular flow. 2. Standard channel behaviour in portal. Like Yahoo shows weather/ads etc to a User or User group. etc. Such kind of requirement is very common and not been taken in struts i belive. I have come up with an approach to cater these problems. I did a proof of concept also and i would like to know is its really a good approach or is there any othere standard way to implement this in Struts. Hope apache/open source foundation people spent some time to give me an indication whether this approach is correct or not. Approach Taken == Shall call this phenomenon as Hooking Step 0: Write a Standard Interface to perform this Hooking == public interface ActionHook { public void prePerform( HttpServletRequest request ); } Step 1: addition of XML Nodes in struts-config.xml == Justification = Since these problems are pertainting to the problem space and it should be configured at the runtime to pick up these data. struts-config.xml action-hooks action-hook name=org.apache.hook.ActionHook servlet=action/ action-hook name=org.apache.hook.ChannelHook servlet=action/ /action-hooks Step 2: Load ActionHook Object through digester. == Justification = Configured classes are loaded by HookRuleBase and HookRule classes as a standard way from apache. Step 3: Changes
Problem Statement for some standard e-Biz requirements
Hi, I have been posting my problem and work through for the past 5 days and not even a single mail stating this is good or bad. so I am again banging with my implemented code. This is just a positive approach to improve struts in a more comprehensive framework. I haven't done much in this code, it follows a standard approach as like ActionServlet.. Files: explanation ActionHook Standard Interface to trigger Hooked methods ActionHookMapping similar tool like ActionMapping ActionHookServlet Child class for ActionServlet which does hooking to a doPost and doGet ServiceThread If the hook needs to be implemented in threaded environment hook-struts-config.xml configuration XML for action Hooks ChannelHook WebTrendsHook These are just a sample implementation tested class for this rule. Note: == Some of the behaviors can be implemented through tags also. But my idea is not that. The Subjective Goal is Doing an asynchronous job for a defined request. Let me know if there is any problem in that. Things to be done. = 1. Authentication --can be used a standard authentication 2. Parameter passing through the hook-struts-config.xml and usuage 3. Implement more comprehensive ServiceThread Class rather than ordinary thread reaper class 4. Implement rich Cache behviour to this. Dis-Advantage: = 1. Depends upon the context and usauge Thread Hook might give some problem Please find the war file for further testing ( This was tested under resin environment ). Hope Ted , criag or other senior person in apache foundation spend some time to replay this mail both positive or negative. if it is negative i can stop my spaming and if it is positive think about further. Still waiting for the replay.. Tnx and Regards sadhas -Original Message- From: J, Sadhasivam (Cognizant) Sent: Friday, June 06, 2003 7:09 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem Statement for some standard e-Biz requirmentsf Hi, Problem Statement = As per my understanding towards the struts that it doesn't have the Trigger kind of mechanism to solve some of the typical e-Biz scnerios or standard requirments for example 1. Log all the URIs with some custom format and give to some other serivces This has to happen irrespective of regular flow. 2. Standard channel behaviour in portal. Like Yahoo shows weather/ads etc to a User or User group. etc. Such kind of requirement is very common and not been taken in struts i belive. I have come up with an approach to cater these problems. I did a proof of concept also and i would like to know is its really a good approach or is there any othere standard way to implement this in Struts. Hope apache/open source foundation people spent some time to give me an indication whether this approach is correct or not. Approach Taken == Shall call this phenomenon as Hooking Step 0: Write a Standard Interface to perform this Hooking == public interface ActionHook { public void prePerform( HttpServletRequest request ); } Step 1: addition of XML Nodes in struts-config.xml == Justification = Since these problems are pertainting to the problem space and it should be configured at the runtime to pick up these data. struts-config.xml action-hooks action-hook name=org.apache.hook.ActionHook servlet=action/ action-hook name=org.apache.hook.ChannelHook servlet=action/ /action-hooks Step 2: Load ActionHook Object through digester. == Justification = Configured classes are loaded by HookRuleBase and HookRule classes as a standard way from apache. Step 3: Changes
Problem Statement for some standard e-Biz requirmentsf
Hi, Problem Statement = As per my understanding towards the struts that it doesn't have the Trigger kind of mechanism to solve some of the typical e-Biz scnerios or standard requirments for example 1. Log all the URIs with some custom format and give to some other serivces This has to happen irrespective of regular flow. 2. Standard channel behaviour in portal. Like Yahoo shows weather/ads etc to a User or User group. etc. Such kind of requirement is very common and not been taken in struts i belive. I have come up with an approach to cater these problems. I did a proof of concept also and i would like to know is its really a good approach or is there any othere standard way to implement this in Struts. Hope apache/open source foundation people spent some time to give me an indication whether this approach is correct or not. Approach Taken == Shall call this phenomenon as Hooking Step 0: Write a Standard Interface to perform this Hooking == public interface ActionHook { public void prePerform( HttpServletRequest request ); } Step 1: addition of XML Nodes in struts-config.xml == Justification = Since these problems are pertainting to the problem space and it should be configured at the runtime to pick up these data. struts-config.xml action-hooks action-hook name=org.apache.hook.ActionHook servlet=action/ action-hook name=org.apache.hook.ChannelHook servlet=action/ /action-hooks Step 2: Load ActionHook Object through digester. == Justification = Configured classes are loaded by HookRuleBase and HookRule classes as a standard way from apache. Step 3: Changes in the ActionServlet to process ActionHooks == Justification = Load the ActionHooks Object and process the ActionHooks before even start the form processing. processHook(ActionMapping mapping, HttpServletRequest request ) { Iterator keySet = hookMap.keySet().iterator(); while( keySet.next() ) { Object key = keySet.get( key ); ActionHook hook = ( ActionHook )hookMap.get( key ); hook.prePerform( request) ; } } Step 4: Write a custom ActionHook object to perform this. == public class ChannelHook implements ActionHook { public void prePerform( ActionForward forward, HttpServletRequest request, HttpServletResponse response ) { // TO DO // Required Busisess Logic and Set the Object Object in the mentioned Scope } } Tnx for the patient reading. About to hear more things from you guys. regards sadhas -Original Message- From: J, Sadhasivam (Cognizant) Sent: Wednesday, June 04, 2003 10:25 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: Struts redirection problem The doubt is can implement portal channel kind of behivour where in channels are dropped in my dynamic contents and in the content area requalr CRUD operation will be followed. -Original Message- From: J, Sadhasivam (Cognizant) Sent: Wednesday, June 04, 2003 9:22 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts redirection problem in the problem statement i have mentioned that we are doing that but its not the right way to do as per my assumption. because do the formvalidation if its invalid instead of going to the action.perform redirect to jsp directly is the struts thumb rule and design. Ideally is it good to over look that and hypotheically if the user knows that action then get the view without doing form validation.. i don't
Struts redirection problem
Hi, We are doing a portal in which we have a News Channel in the pages across the site. assume its just a corner html display area in the Site which frameless site. with respect to site updation and new arrivals this content should be picked and display the top 10 records. For better control i have wrote a wrapper to the struts action in which perform method is implemented by having my own abstract method. for more control i have created postPerform and prePerform event methods which gets executed before perform. Problem statement: Since news item should be executed each and every page. i have hooked the News Action to postPerform or prePerform and set the form data in request scope. The problem is when there is form validation and input attribute is jsp the control won;t go to the action level and bombs. right now we did most of our validation are done in form with input attirbute point to action element which is wrong Is there any way to implement a channel kind of portal behivour in struts ?? Thx in advance sadhasivam.j 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts redirection problem
in the problem statement i have mentioned that we are doing that but its not the right way to do as per my assumption. because do the formvalidation if its invalid instead of going to the action.perform redirect to jsp directly is the struts thumb rule and design. Ideally is it good to over look that and hypotheically if the user knows that action then get the view without doing form validation.. i don't think struts will allow this even thought its a good work around. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:13 PM To: Struts Users Mailing List Subject: RE: Struts redirection problem Make the input attribute in the mapping point at the action (the one it goes through before forwarding to that view if its different). -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 23:38 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Struts redirection problem Hi, We are doing a portal in which we have a News Channel in the pages across the site. assume its just a corner html display area in the Site which frameless site. with respect to site updation and new arrivals this content should be picked and display the top 10 records. For better control i have wrote a wrapper to the struts action in which perform method is implemented by having my own abstract method. for more control i have created postPerform and prePerform event methods which gets executed before perform. Problem statement: Since news item should be executed each and every page. i have hooked the News Action to postPerform or prePerform and set the form data in request scope. The problem is when there is form validation and input attribute is jsp the control won;t go to the action level and bombs. right now we did most of our validation are done in form with input attirbute point to action element which is wrong Is there any way to implement a channel kind of portal behivour in struts ?? Thx in advance sadhasivam.j - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts redirection problem
The doubt is can implement portal channel kind of behivour where in channels are dropped in my dynamic contents and in the content area requalr CRUD operation will be followed. -Original Message- From: J, Sadhasivam (Cognizant) Sent: Wednesday, June 04, 2003 9:22 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts redirection problem in the problem statement i have mentioned that we are doing that but its not the right way to do as per my assumption. because do the formvalidation if its invalid instead of going to the action.perform redirect to jsp directly is the struts thumb rule and design. Ideally is it good to over look that and hypotheically if the user knows that action then get the view without doing form validation.. i don't think struts will allow this even thought its a good work around. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:13 PM To: Struts Users Mailing List Subject: RE: Struts redirection problem Make the input attribute in the mapping point at the action (the one it goes through before forwarding to that view if its different). -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 23:38 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Struts redirection problem Hi, We are doing a portal in which we have a News Channel in the pages across the site. assume its just a corner html display area in the Site which frameless site. with respect to site updation and new arrivals this content should be picked and display the top 10 records. For better control i have wrote a wrapper to the struts action in which perform method is implemented by having my own abstract method. for more control i have created postPerform and prePerform event methods which gets executed before perform. Problem statement: Since news item should be executed each and every page. i have hooked the News Action to postPerform or prePerform and set the form data in request scope. The problem is when there is form validation and input attribute is jsp the control won;t go to the action level and bombs. right now we did most of our validation are done in form with input attirbute point to action element which is wrong Is there any way to implement a channel kind of portal behivour in struts ?? Thx in advance sadhasivam.j - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Struts redirection problem
-Original Message- From: J, Sadhasivam (Cognizant) Sent: Wednesday, June 04, 2003 10:25 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Struts redirection problem The doubt is can implement portal channel kind of behivour where in channels are dropped in my dynamic contents and in the content area requalr CRUD operation will be followed. -Original Message- From: J, Sadhasivam (Cognizant) Sent: Wednesday, June 04, 2003 9:22 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts redirection problem in the problem statement i have mentioned that we are doing that but its not the right way to do as per my assumption. because do the formvalidation if its invalid instead of going to the action.perform redirect to jsp directly is the struts thumb rule and design. Ideally is it good to over look that and hypotheically if the user knows that action then get the view without doing form validation.. i don't think struts will allow this even thought its a good work around. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:13 PM To: Struts Users Mailing List Subject: RE: Struts redirection problem Make the input attribute in the mapping point at the action (the one it goes through before forwarding to that view if its different). -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 23:38 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Struts redirection problem Hi, We are doing a portal in which we have a News Channel in the pages across the site. assume its just a corner html display area in the Site which frameless site. with respect to site updation and new arrivals this content should be picked and display the top 10 records. For better control i have wrote a wrapper to the struts action in which perform method is implemented by having my own abstract method. for more control i have created postPerform and prePerform event methods which gets executed before perform. Problem statement: Since news item should be executed each and every page. i have hooked the News Action to postPerform or prePerform and set the form data in request scope. The problem is when there is form validation and input attribute is jsp the control won;t go to the action level and bombs. right now we did most of our validation are done in form with input attirbute point to action element which is wrong Is there any way to implement a channel kind of portal behivour in struts ?? Thx in advance sadhasivam.j - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]|W¬¶¶§²hµçpØbµªÞ~í ë(ë¬zí 觵éÝyÚÞr*bz{ljwfk'(Ö¢Ê'~'^ةݦ¸¯W yا~æjبò¢æ«zz-¶¢×§uçkyÈ©éí¦W±ç(Ö¶Ø^±éÝz¶òêeÉéV§u׬¶º2jY\¢²í ê+§jY²Æ x òºv®¶+Çëâ{¬yجrZ,º·Ë)Ú¶*'~ðj·b k{b +rrx(~Øb±éZ+j|rب֤zx§ébjw¢{aǦj)b²ËkËeÊèâµçZÙÉ·®V°~éUȺÆÛiÿü0ÁÊ ,Ú×( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Storing the Output of a Servlet to Database
As per my guess. PDF generator accepts a Stream or writer of nature Servletoutputstream.. so u can create Impl of that and send it to PDF generator and get the stream . serilzie to the DB and then use the same stream to write it to servlet if u required.. -Original Message- From: Rajesh P [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:51 PM To: Struts Users Mailing List Subject: RE: Storing the Output of a Servlet to Database Hi, The option 2 is what i am looking at. The API for generating the PDF writes to the servlet outputstream directly. So for the time being forget PDF, say, I need to capture the output of any servlet, say a html content, and store that to a db or file, how do I do that? Thanks for the response. Rajesh -Original Message- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:40 PM To: Struts Users Mailing List Subject: RE: Storing the Output of a Servlet to Database Hi There are various ways u can do this. approach 1: simple and best approach.. create a PDF file in the weblocaiton and compose the path and store it. when ever u want u can make use of it. appraoch 2 Create a CLob column once the PDF is generated push to a DA method before giving it to Servlet. apprach 3 Create a BFIle useit. -Original Message- From: Rajesh P [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:28 PM To: Struts Users Mailing List Subject: Storing the Output of a Servlet to Database Hello Everyone, I have a requirement wherein a Servlet class is used to generate a PDF document. This output should be stored into a database table for future retrieval. Can somebody tell me how this output of the Servlet can be captured and stored into a database table? Or rather, how to capture the response outputstream, convert it to bytes so that it can be persisted in the datbase. Please note that we are not allowed to write to a File and then upload it. Thanks, Rajesh - 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] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Storing the Output of a Servlet to Database
Hi There are various ways u can do this. approach 1: simple and best approach.. create a PDF file in the weblocaiton and compose the path and store it. when ever u want u can make use of it. appraoch 2 Create a CLob column once the PDF is generated push to a DA method before giving it to Servlet. apprach 3 Create a BFIle useit. -Original Message- From: Rajesh P [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:28 PM To: Struts Users Mailing List Subject: Storing the Output of a Servlet to Database Hello Everyone, I have a requirement wherein a Servlet class is used to generate a PDF document. This output should be stored into a database table for future retrieval. Can somebody tell me how this output of the Servlet can be captured and stored into a database table? Or rather, how to capture the response outputstream, convert it to bytes so that it can be persisted in the datbase. Please note that we are not allowed to write to a File and then upload it. Thanks, Rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]