[OT] Screen Scraping tool
Hi all, I have a project that required extensive screen scraping. I would like to know if there are any tools available (prefer open source) that can help me do this quickly. I know apache has a taglib screen scraping tag but that is tool is too limited. Thanks, HBH _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
Extends HttpJspPage
Hi all, I've a bunch of variables such as locale, timezone, userContainer, and etc. I want to make them available to all jsp pages. Right now they're located in the global.jsp page and I included them on every single page that needs these variables. I hate doing this and I wish somehow I can extend the httpJspPage or some other techniques to make these variables available without including them...Any ideas? Thanks, Hai _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Paging using struts
I don't think struts has any paging functionality available out of the box. What you can do is looking into Sun's design pattern in the petstore codebase and learn from there. Basically, you can use JDBC like this stmt = conn.prepareStatement(sqlString, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY ); to archive what you want. Hope this helps -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: Paging using struts Does anyone have a good example of Paging using struts?? _ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Controlling Direct Access to jsp pages
Last time I check, Weblogic is the only server I know that does not support this feature. Do you know other containers not support this feature? Thanks -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 9:50 AM To: 'Struts Users Mailing List' Subject: RE: Controlling Direct Access to jsp pages I place them all under /WEB-INF and force them to go through my action classes. There are other ways, but this is the most convenient for me. disclaimer Use at your own risk. Not all containers support doing it this way. /disclaimer -- James Mitchell -Original Message- From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:41 AM To: '[EMAIL PROTECTED]' Subject: Controlling Direct Access to jsp pages Hi If I have three pages in my view layer that must be called in sequence e.g. - step1.jsp then - step2.jsp then - step3.jsp How do I ensure that my users do not call step2 and step3 directly via a web browser. Do I need to use a custom tag in pages 2 and 3 to check this or is there some way to force all requests for .jsp pages in my application to route via the ActionServlet Thanks Adrian == = Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Controlling Direct Access to jsp pages
Your technique is powerful but the problem is that it even prevented index.jsp from display as well. Is there ways to work around? -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 9:54 AM To: [EMAIL PROTECTED] Subject: Re: Controlling Direct Access to jsp pages Put this security info at the bottom of your web.xml to prevent access to any *.jsp file: security-constraint web-resource-collection web-resource-nameSecureAllJSPs/web-resource-name url-pattern*.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint security-role descriptionNo one should be put in this role./description role-namenobody/role-name /security-role David From: Colquhoun, Adrian [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Controlling Direct Access to jsp pages Date: Mon, 13 Jan 2003 15:40:45 - Hi If I have three pages in my view layer that must be called in sequence e.g. - step1.jsp then - step2.jsp then - step3.jsp How do I ensure that my users do not call step2 and step3 directly via a web browser. Do I need to use a custom tag in pages 2 and 3 to check this or is there some way to force all requests for .jsp pages in my application to route via the ActionServlet Thanks Adrian === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Controlling Direct Access to jsp pages
Instead of url-pattern/pages/*/url-pattern can I have something like the following? security-constraint web-resource-collection web-resource-namePages/web-resource-name url-pattern/app1/*/url-pattern url-pattern/app2/*/url-pattern url-pattern/app3/*/url-pattern url-pattern/app4/*/url-pattern /web-resource-collection auth-constraint/auth-constraint /security-constraint -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 12:25 PM To: Struts Users Mailing List Subject: RE: Controlling Direct Access to jsp pages Here's an approach that works with WebLogic 7. All the JSP's except index.jsp (the welcome page) are kept in a directory called pages. index.jsp simply contains: %@ taglib prefix=logic uri=http://jakarta.apache.org/struts/tags-logic; % logic:forward name=main/ Where main is the name of a global forward that represents the true entry point into the app. web.xml contains: security-constraint web-resource-collection web-resource-namePages/web-resource-name url-pattern/pages/*/url-pattern /web-resource-collection auth-constraint/auth-constraint /security-constraint An empty auth-constraint is interpreted to mean deny all access. Quoting Colquhoun, Adrian [EMAIL PROTECTED]: I have had a go at this - I get a 500 error message Cannot perform access control without an authenticated principal - presumably I need to do something else as well ? -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 15:54 To: [EMAIL PROTECTED] Subject: Re: Controlling Direct Access to jsp pages Put this security info at the bottom of your web.xml to prevent access to any *.jsp file: security-constraint web-resource-collection web-resource-nameSecureAllJSPs/web-resource-name url-pattern*.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint security-role descriptionNo one should be put in this role./description role-namenobody/role-name /security-role David From: Colquhoun, Adrian [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Controlling Direct Access to jsp pages Date: Mon, 13 Jan 2003 15:40:45 - Hi If I have three pages in my view layer that must be called in sequence e.g. - step1.jsp then - step2.jsp then - step3.jsp How do I ensure that my users do not call step2 and step3 directly via a web browser. Do I need to use a custom tag in pages 2 and 3 to check this or is there some way to force all requests for .jsp pages in my application to route via the ActionServlet Thanks Adrian === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To
OJB/Struts and Jetspeed
Hi, I am a Struts and OJB user and I would like to use Jetspeed. The problem is that Jetspeed architecture is heavily depended on turbine/velocity/torque frameworks. What I want to know is there any plans, initiatives or fork to decouple Jetspeed to allow it to work with OJB/Struts frameworks? Are there any supports from Struts and OJB user communities to port Jetspeed? Thank you, Hai Hoang _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
RE: Session Cleanup
I often stored my form beans in a session scope. I've a routine that looping through the session and destroy the unused forms. The tricky part is how to determine with forms are no longer in used. Anyone out there using this technique? -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Thursday, October 17, 2002 3:37 PM To: Struts Users Mailing List Subject: Re: Session Cleanup On Thu, 17 Oct 2002, atta ur-rehman wrote: Date: Thu, 17 Oct 2002 13:36:41 -0700 From: atta ur-rehman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Session Cleanup Thanks, David. Putting commonly used collection in the application scope is a nice idea; both for storage space and performance reasons. Now how do I store my form beans in request instead of session? Is it the scope attribute of the action mapping that determines it? Yes. And what are performance implications of this change? The set of attributes in the request or session object supplied by the servlet container is usually a HashMap, so performance of storing the form bean in either is equivalent. However, your app will benefit from the fact that the form bean is automatically released at the end of the request, so the overall memory occupancy of your app will likely be lower, but the CPU time consumption might be higher (due to increased garbage collection). For most apps, this tradeoff is very much worth it because having excess CPU capacity is more common than having excess memory to store the form beans in session scope in between requests. Regards, ATTA Craig -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
RE: Session Cleanup
I have an admin main menu screen...in it I've a bunch of links to all of the admin tasks such as user profile, security, create category, etc... Once a user coming back to this main menu, I am assume they are finished working on a particular task. From here, I used the strut-config.xml and looping through and get the name of the form beans and removed it from the session object. If the user not finish working on it yet, then the framework created it again...no harm done. -Original Message- From: atta ur-rehman [mailto:attaurrehman;kapsconsulting.com] Sent: Thursday, October 17, 2002 4:13 PM To: Struts Users Mailing List Subject: Re: Session Cleanup So how do you know which ones are not used anymore? - Original Message - From: Hoang, Hai [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:49 PM Subject: RE: Session Cleanup I often stored my form beans in a session scope. I've a routine that looping through the session and destroy the unused forms. The tricky part is how to determine with forms are no longer in used. Anyone out there using this technique? -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Thursday, October 17, 2002 3:37 PM To: Struts Users Mailing List Subject: Re: Session Cleanup On Thu, 17 Oct 2002, atta ur-rehman wrote: Date: Thu, 17 Oct 2002 13:36:41 -0700 From: atta ur-rehman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Session Cleanup Thanks, David. Putting commonly used collection in the application scope is a nice idea; both for storage space and performance reasons. Now how do I store my form beans in request instead of session? Is it the scope attribute of the action mapping that determines it? Yes. And what are performance implications of this change? The set of attributes in the request or session object supplied by the servlet container is usually a HashMap, so performance of storing the form bean in either is equivalent. However, your app will benefit from the fact that the form bean is automatically released at the end of the request, so the overall memory occupancy of your app will likely be lower, but the CPU time consumption might be higher (due to increased garbage collection). For most apps, this tradeoff is very much worth it because having excess CPU capacity is more common than having excess memory to store the form beans in session scope in between requests. Regards, ATTA Craig -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: access ApplicationResource from ActionForm
public MessageResources getResources(HttpServletRequest request) { return ((MessageResources) request.getAttribute(Action.MESSAGES_KEY)); } -Original Message- From: Eddie Bush [mailto:ekbush;swbell.net] Sent: Friday, October 18, 2002 2:39 PM To: Struts Users Mailing List Subject: Re: access ApplicationResource from ActionForm You do not have access to any resources in ActionForm. The form is just there to act as a conduit for data - something for it to pass through - like electricity passes through a wire. In that case, the electricity would represent your data and the wire would be your form. Notice that a wire does not change the state of the electricity. The proper place to do this is in an Action class. Action has a getResources method (a few different signatures I believe, actually). This is where you would get that data. You could then set some property of your form accordingly. Darren Hill wrote: Hi All, My ActionForm is populating a drop-down list ( LabelvalueBean's ) and I want to say - None - for a none-selection .. and want it to be i18n. So, can I access the ApplicationResource to retrieve that 'None'. If so, how? Is this the best idea? Darren. -- Eddie Bush -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
The best practices regarding secure JSP and Action classes
I want to secure the admin portion of my application from unauthorized users. What is the best way to achieve this task? Should I include a CheckUser tag on every jsp pages and call a CheckUser function on every single action class? I don't want the user to just key in the direct url of the jsp page or calling the action class directly. But doing this, I've to go to the database twice on every action. Do you know a better way? _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The best practices regarding secure JSP and Action classes
I already have my own database driven security model. Once a user logon I already know his role. But the problem is that how do I make this security model to work with the container-managed model so I don't have to check every on single page. Hai -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 9:38 AM To: Struts Users Mailing List Subject: Re: The best practices regarding secure JSP and Action classes - setup container-managed authentication - as a server-configured service - as a filter (see securityfilter.sourceforge.net) - see your servlet container user guide for setup of non-filter-based solution - in your web.xml - declare the roles you will use - declare the URLs etc - see the servlet specification for how to configure this The web.xml config applies to the non-filter-based approach I *think*. See the filter's site for more information on how to configure that particular one. If you push your authentication/authorization up to the server level, you don't have to have nasty hacks in all of your protected JSPs. Just make the auth work and specify the mappings it holds true for. Other good references on this topic include Java Servlet Programming (Jason Hunter - O'Reilly) and Java Server Pages (Hans Bergsten - O'Reilly). There are probably other resources available that outline how to configure your deployment descriptor (web.xml) for this. Hoang, Hai wrote: I want to secure the admin portion of my application from unauthorized users. What is the best way to achieve this task? Should I include a CheckUser tag on every jsp pages and call a CheckUser function on every single action class? I don't want the user to just key in the direct url of the jsp page or calling the action class directly. But doing this, I've to go to the database twice on every action. Do you know a better way? -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
How to remove ActionForm with session scope from the session object
I've a number of forms with session scope and I want to remove them from the session object when I am no longer used them. The trick is how to find out when they are no longer being used? For example, let say I've 10 actionForms associated with 10 jsp page. If I am on page number 1 therefore, page 9-10 is not being used and I can just loop through it a remove the corresponding actionForms from the session object. If I am page number 2 then I loop through page 1 and 8-10 and so on. Is there a better way for me to do this? Thanks Hai Hoang _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
RE: How to remove ActionForm with session scope from the session obje ct
Vic, This is exactly what I am talking about but is there any sample codes for this token sharing algorithm where I can use? Thanks, Hai -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: Re: How to remove ActionForm with session scope from the session obje ct http://www.mail-archive.com/mvc-programmers@basebeans.com/msg00124.html Read part about 5th scope. V. Hoang, Hai wrote: I've a number of forms with session scope and I want to remove them from the session object when I am no longer used them. The trick is how to find out when they are no longer being used? For example, let say I've 10 actionForms associated with 10 jsp page. If I am on page number 1 therefore, page 9-10 is not being used and I can just loop through it a remove the corresponding actionForms from the session object. If I am page number 2 then I loop through page 1 and 8-10 and so on. Is there a better way for me to do this? Thanks Hai Hoang _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[AGAIN] Duplicate values on both ActionForm error.
I've a master-detail page setup where the master page contains a number of items with hyperlink to the detail page. The problem occurred when I updating on the detail page and submit the update back to the database and forward the request back to the master page. Specifically, the property value (called it actionName = update) on the ActionForm of the detail page forwards it value to the ActionForm of the master page. Do you know why this happens? Thanks. _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [AGAIN] Duplicate values on both ActionForm error.
Basically, I've an Action1 handles the ActionForm1 and on ActionForm1 I have a property called actionName=update. When I finish my work on the Action1, I forward the request (using mapping.findForward(success)) to Action2, which handles the ActionForm2 and it also has a property named actionName as well. I was expecting that the value of actionName on the ActionForm2 to be null but in this case the value is also equals update. I don't know why this happens. I never set the value for the actionName on the actionForm2 and I still get the update Any ideas? Thanks actionName=update on the -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 1:01 PM To: Struts Users Mailing List Subject: Re: [AGAIN] Duplicate values on both ActionForm error. Can you redirect instead of forward? I'm not sure what your problem is (I don't believe I understand your explaination), but that may very well cure it ... Hoang, Hai wrote: I've a master-detail page setup where the master page contains a number of items with hyperlink to the detail page. The problem occurred when I updating on the detail page and submit the update back to the database and forward the request back to the master page. Specifically, the property value (called it actionName = update) on the ActionForm of the detail page forwards it value to the ActionForm of the master page. Do you know why this happens? Thanks. _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
RE: How do I set the default selection when I'm using html:options?
You need to populate the value of the property of the dropdown before the jsp is render...the best way to do this is in the action class. For example, you have getter and setter for State in the form bean...now you need to setState(TX) in the action class if you want to have Texas as a default state. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: How do I set the default selection when I'm using html:options? You can add in an html:option tag above the html:options tag that will be the default. -Original Message- From: mleejr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:21 AM To: struts-user Subject: How do I set the default selection when I'm using html:options? 1) How do I set a default value in an html:select on an options list? I need the default state to be the one loaded from the struts form. It doesn't like this. html:select property=state size=1 value=%= state in ActionForm % html:options name=allUnitedStates labelName=allUnitedStates/ /html:select thanks everyone, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
Problem with forwarding
I've a master-detail page setup where the master page contains a number of if items with hyperlink to the detail page. The problem occurred when I updating on the detail page and submit the update back to the database and forward the request back to the master page. Specifically, the property value (called it actionName = update) on the ActionForm of the detail page forwards it value to the ActionForm of the master page. Do you know why this happens? Thanks. _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help with master-details screens
The user clicks on a link on the master page, which lead to a detail page so that the user can modify stuff. Once he is done and submitted the changes, I saved it and forwarded the request back to the master page. The problem is that the URL still shows the link of the detail page on the master screen. If I reload the master page, the changes I made on detail screen submits to the back end database again. How can I prevent URL from showing on the master screen and prevent resubmitting? Thanks, Hai _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com
RE: Help with master-details screens
Transaction token only prevent resubmitting. How can I prevent URL of the detail page from showing on the master page? -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:55 AM To: 'Struts Users Mailing List' Subject: RE: Help with master-details screens Use transaction token provided by the form tags. -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 8:53 AM To: 'struts-user' Subject: Help with master-details screens The user clicks on a link on the master page, which lead to a detail page so that the user can modify stuff. Once he is done and submitted the changes, I saved it and forwarded the request back to the master page. The problem is that the URL still shows the link of the detail page on the master screen. If I reload the master page, the changes I made on detail screen submits to the back end database again. How can I prevent URL from showing on the master screen and prevent resubmitting? Thanks, Hai _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] How to capture the html output?
The application I am working on has a weird requirement that I don't know how to do. It required me to capture the page's html (as in source) and save it to the database. Basically, what the user see on the screen I want to save that. Any suggestions?
RE: Design Advice: Using DispatchAction
You don't need to use the DispatchAction for this. Call the isLoggedIn method whenever you need it. And make sure to have the actionName property on your form. if (!isLoggedIn(request)) { return new ActionForward(Constants.GLOBAL_FORWARD_LOGON, true); } ApplicationForm applicationForm = (ApplicationForm) form; String action = applicationForm.getActionName(); if (action.equals(userContainer.getMessage(Constants.BUTTON_CANCEL))) { doAdd(mapping, applicationForm, request, response, userContainer); } else if (action.equals(userContainer.getMessage(Constants.BUTTON_ADD))) { doAdd(mapping, applicationForm, request, response, userContainer); } else if (action.equals(userContainer.getMessage(Constants.BUTTON_SAVE))) { doSave(mapping, applicationForm, request, response, userContainer); } else if (action.equals(userContainer.getMessage(Constants.BUTTON_EDIT)) || action.equals(userContainer.getMessage(Constants.BUTTON_REMOVE))) { doEdit(mapping, applicationForm, request, response, userContainer); } else if (action.equals(userContainer.getMessage(Constants.BUTTON_UPDATE))) { doUpdate(mapping, applicationForm, request, response, userContainer); } else if (action.equals(userContainer.getMessage(Constants.BUTTON_DELETE))) { doDelete(mapping, applicationForm, request, response, userContainer); } return (new ActionForward(mapping.getInput())); } -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: Design Advice: Using DispatchAction I'll try to keep this as short as possible. Background: I have various groupings of common events in my web app where I would like each grouping of common events handled by a single Action class. The DispatchAction class allows me to do this. I want to do this because in my scenario, the Action classes are simple proxies to my business tier and are not reusable and I would like to keep the number of Action classes I have to create to a minimum. Problem: The problem I am running into is that pre-processing requirements vary within the common event groupings. For example, let's say eventGroupA handles events 1, 2, 3, and 4. Events 3 and 4 require that the user be logged in before any processing occurs, but events 1 and 2 don't. An idea: Assertions What if there was a way to declaratively define an ordered list of assertions that must be true before any processing occurs for an action mapping. Assertions would be processed in the order in which they appear in the action mapping and would return an ActionForward only if it failed else it would return null indicating that the assertion passed and to continue processing. Any errors or messages would be revealed to the user via ActionErrors or ActionMessages stored in the appropriate scope. An Assertion would have access to the action mapping so it could leverage lookups for locally or globally defined forwards. An Assertion would implement a Command pattern and have a single method assert() into which the RequestProcessor would be passed the ActionForm, ActionMapping, HttpServletRequest, and HttpServletResponse. Basically the same arguments as Action.execute(). Example struts-config with assertions: assertions assertion name=authenticated type=com.company.web.assertion.SomeAssertion/ assertion name=isAdministrator type=com.company.web.assertion.AnotherAssertion/ /assertions action path=/user/account/create type=com.company.web.account.UserAccountController name=userAccountForm scope=request validate=true input=/WEB-INF/user/account/create.jsp parameter=create assert name=authenticated/ assert name=isAdministrator/ forward name=success path=/WEB-INF/user/account/detail.jsp/ forward name=failure path=/WEB-INF/user/account/error.jsp/ /action Example of Assertion.assert(): public ActionForward assert(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception; This solution seems to fit my needs, but I'm interested in any feed back on it. Good or bad. Does it suck? Is there a better way to accomplish my goal? Am I way off track? Am I close? Am I making things too complex? Is this idea kludgy? robert -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to implement paging in Struts?
I was searching the archive and come up empty with regarding to the paging functionality in struts. Some people mentioned the Jsptags.com's paging tags. The problem is this tag is that it puts a big collection of result data in the session. It may have a scalability problem. Sun's blueprints also mentioned the page-by-page pattern but the implementation causes me problem because I am using sql server 2000 jdbc driver, which does not support the resultSet.absolute method. Thanks, Hai
how to Internationalized submit button?
I want to internationalize the submit buttons on a form and I don't know how to do it. Currently, I mapped the value on the submit button to the property actionName in the ActionForm class. Base on the button the use clicked, I handle it propriately in the Action class, just like event handling mechanism. Now if I internationalize these buttons (html:submit property=actionName/bean:message key=button.add//html:submit, the value will change and my Action class will no longer work. Is there a way to work around this problem? To be specific, following is the detail about my setup 1. jsp page: html:submit property=actionName value=Add/ html:submit property=actionName value=Edit/ html:submit property=actionName value=Remove/ 2. actionForm class: public String getActionName() { return actionName; } public void setActionName( String actionName) { this.actionName = actionName; } 3. action class: ApplicationForm applicationForm = (ApplicationForm)form; String action = applicationForm.getActionName(); if (action == null) { action = Constants.BUTTON_CANCEL; } if (action.equals(Constants.BUTTON_CANCEL)) { applicationForm.setActionName(null); doAdd(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_ADD)) { doAdd(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_SAVE)) { doSave(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_EDIT) || action.equals(Constants.BUTTON_REMOVE)) { doEdit(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_UPDATE)) { doUpdate(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_DELETE)) { doDelete(mapping, applicationForm, request, response); } Thank you for your help -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Debug Struts in Tomcat
I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how to remove ActionForm from session
Most of my forms are in the session scope. I want to remove it from the session object when I am done using it. My question is, is there a way for me remove those forms? Remove an object from the session is easy but how do I know which one to remove? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
do you know what this internal error while merging PDs error mean?
Do you have any ideas what this error mean? javax.servlet.ServletException: PropertyDescriptor: internal error while merging PDs: type mismatch between read and write methods
RE: Singleton vs ServletContext
I would like to see the code...can you send me a copy? -Original Message- From: Kipnis, Adam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:37 PM To: 'Struts Users Mailing List' Subject: RE: Singleton vs ServletContext I wouldn't recommend Poolman since I have found it to be pretty problematic. As for the Singleton vs Servlet approach, I think that's really up to personal preference. If you put your connection pool logic inside a servlet and have that servlet load on startup, you're not really that much different than a standard singleton. Since there are usually more uses for an application level service other than a connection pool (ie, a global level internal data caching system), I wrote a services manager as a servlet that loads all the application level services, including connection pools, on start-up based on configuration files. If you like, I can send you a copy of the servlet and associated connection pool. -Adam Kipnis [EMAIL PROTECTED] -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:20 AM To: Struts Users Mailing List Subject: Singleton vs ServletContext Hi !! My question is about the best way to implement a JDBC ConnectionPool for Struts. I've heard that the one that is already in Struts is not a good choice. I've also read many mails about PoolMan. In Servlets JSP book from Marty Hall, he speaks also about Singleton. What's the easiest way ? Has anybody a simple sample ? Thanks All. Best Dams -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:options bug?
I've been using the html:options tag like following without any problems in the past. html:select property=availableId size=5 html:options collection=allusers property=id labelProperty=name/ /html:select However, I recently get this weird javax.servlet.ServletException: PropertyDescriptor: internal error while merging PDs: type mismatch between read and write methods When I change the code to the following and everything is working fine...Any ideas? select name=availableId size=5 % User[] users = (User[])session.getAttribute(allusers); if (users != null) { for (int i = 0; i users.length; i++) {% option value=%=users[i].getId()%%=users[i].getName()%/option %} }% /select Thank you
RE: Where is it best to populate default form bean collections etc?
I've been using the Action classes to load the required data for the form and place it under session object if the data does change often and the dropdown is being used repeatedly. This way, you don't have to when back to the database everytime. The draw back to this technique is that the scalability issue. Just be sure to remove these collections from the session object when you are done. I am very much interest in seeing other techniques being used. -Original Message- From: Rick R [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: Where is it best to populate default form bean collections etc? Sorry if I'm not to clear here but I'm really curious about the best design principle to use under struts in the following situation... Say you want to set up a jsp form and on the form you have several select elements. Each set of select elements is created dynamically from a query to the database. I have a corresponding form bean that goes with this page. The question I have is it ok to set up the default select lists inside the form bean by calls to some other business logic? For example... private dogsArray = business.getDogsArray(); then your normal set and get method. I tend to thin this probably isn't a good idea and it would be best to have some action class create the array and then call the appropriate form bean set method. I'm not sure though. Then what about when the form is reset, I take it you just make another call to the default action that sets up your form bean? I noticed in some of the examples they have a reset() method inside the form beans which goes and sets the fields to default values. This is why I began questioning the best practices, since if I follow that route than I really would have to call some business logic to populate the String[] arrays for the select options in the form beans. Hopefully I'm making some sense. Thanks for any advice. Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is it best to populate default form bean collections et c?
So, you are calling your ejb or delegate class from your formbean to get the static data? And how do you access it from the jsp? I am just curious. -Original Message- From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 1:05 PM To: Struts Users Mailing List Subject: Re: Where is it best to populate default form bean collections et c? Hoang, Hai wrote: I've been using the Action classes to load the required data for the form and place it under session object if the data does change often and the dropdown is being used repeatedly. ... Just be sure to remove these collections from the session object when you are done. The clean up part is tricky, because you can't be sure of when the data can be cleaned up, and you can't rely on the user to click somewhere that'll fire an action to make that cleanup... Around here, because we have lots of static data on the pages and querying the remove server (EJB) for these data would be very onerous, we do the following: - All our form beans are in the session scope. This way, we populate them with the necessary collections and other data needed for the JSP, and we don't need to re-populate this data in later requests from that user. - No data is stored outside the form bean. Everything on the JSPs is loaded from the form bean. - On each request, we look for the objects stored in the user's session and, in case it is a form bean but is not the form bean of the current request, it is deleted. The last part may seem heavy since in every request I loop through everything in the session, but, due to the way we implemented (everything in the bean) we generally have 2 or 3 objects in the session (the form bean, the Locale object and the token for preventing repeated requests from being processed). Also, we have some mechanisms for when we do not want a form bean to be erased from the session (since all our forms use session scope, there are times when we may need more than one bean in the session). It may not be the most beautiful thing to do, but it has been working very well. =) -- []'s Marcelo Vanzin Touch Tecnologia [EMAIL PROTECTED] Life is too short to drink cheap beer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
PropertyDescriptor: internal error while merging PDs
Do you have any ideas what this error mean? I was trying to use the html:select and html:option tags. I've check everything but I can not find anything. Any helps is appreciated. prejavax.servlet.ServletException: PropertyDescriptor: internal error while merging PDs: type mismatch between read and write methods at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:463) at org.apache.jsp.group$jsp._jspService(group$jsp.java:1659) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:683) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:355) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97 2) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:408) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) /pre/ppbroot cause/b prejava.lang.Error: PropertyDescriptor: internal error while merging PDs: type mismatch between read and write methods at java.beans.PropertyDescriptor.init(PropertyDescriptor.java:343)
RE: Struts vs Javascript validation
People can disable the javascript from there browser and they can bypass your validation. I think, it's a good idea to do it at the server. Even if you're using javascript, you still need to validate at the server level. -Original Message- From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 8:48 AM To: Struts Group (E-mail) Subject: Struts vs Javascript validation Hi, is there any thumb rule that says when to use Javascript validation and when to use Struts inbuilt validation? Thnx, GB -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Global object
I sent this item a sometime ago but no response...but here it goes again. Here is my problem, I have a java bean class that keeps track of who changes what on the table (e.g. modifiedby). When a caller class changes something to the underlying table, I want to know who. The problem is that this Java bean class doesn't have access to the session object. In addition, I want to keep servlet layer separated from the backend java bean layer. Again, does Struts have some kinds of global dictionary object so I can keep information in there and ask for it when I need it...this dictionary object should be available to everyone? Thank You, Hai Hoang
Does Struts have some kinds of global dictionary object?
Here is my problem, I have a java bean class that keeps track of who changes what on the table (e.g. modifiedby). When a caller class changes something to the underlying table, I want to know who. The problem is that this Java bean class doesn't have access to the session object. In addition, I want to keep servlet layer separated from the backend java bean layer. Again, does Struts have some kinds of global dictionary object so I can keep information in there and ask for it when I need it...this dictionary object should be available to everyone? Thank You, Hai Hoang
RE: torque struts
Do you use Fulcrum along with Torque? I think Fulcrum has lots of services available such as caching, pool, and etc...I want to use Fulcrum but I don't know how to set it up to work with Tomcat -Original Message- From: Robert Morse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 4:42 PM To: Struts Users Mailing List Subject: RE: torque struts Torque is from the 2/25/2002 nightly, and the database is Oracle 9i (9.0.1). -Original Message- From: James A. Hillyerd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:19 PM To: Struts Users Mailing List Subject: RE: torque struts What version of Torque are you using in production? And with what database, if I may ask? Thanks. -james On Wed, 2002-03-27 at 05:18, Robert Morse wrote: Yes, and using it in production. What questions do you have? -- [] James A. Hillyerd [EMAIL PROTECTED] - Java Developer [] PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fulcrum and Torque with Struts in Tomcat
Anyone is using Fulcrum and Torque with Struts in Tomcat? If so, can you share some experience and maybe show me how to initialize fulcrum. Hai Hoang Continental Airlines (713) 324-9029
RE: Is there a scheduler for calling time based actions
Fulcrum has a nice job scheduler as well. Fulcrum was developed as part of the Turbine Framework. It is now decoupled and can be used by itself. http://jakarta.apache.org/turbine/fulcrum/index.html -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: Re: Is there a scheduler for calling time based actions Go to google.com, type servlet based scheduler for timed events in the search box. Hit enter key. Wait. Ah... first result link looks like a winner http://www.jcorporate.com/html/products/expresso/job_control.html /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/18/02 10:25AM hi, i am looking for a scheduler who can call time based struts-actions... Has anybody an idea? thx Elmar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Practice for parsing an XML file for application confi guration parameters?
JDOM is great! It's so easy to used and it's part of the JCP. Jdom.org has a bunch of tutorials and articles written about it. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:03 AM To: 'Struts Users Mailing List' Subject: RE: Best Practice for parsing an XML file for application confi guration parameters? JDOM made the cover of this month's XML Magazine, should you need a primer on it. I don't know if it's online, but the URL is www.xml-mag.com. Mark -Original Message- From: Peter Pilgrim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:55 AM (1) I would could using JDOM for this? Depends on deployment size of the application. You will need xerces.jar as well as jdom.jar. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Practice for parsing an XML file for application confi guration parameters?
Nothing is wrong with the properties file...Xml is just better 1. one config.xml file in one central place...it's so much easier to manage then a whole bunch of properties 2. xml handle the structure data much better then properties file -Original Message- From: Ronald Haring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:08 AM To: 'Struts Users Mailing List' Subject: RE: Best Practice for parsing an XML file for application confi guration parameters? ever since the hype of xml started, people tend to forget about properties. what is wrong with a properties file nowadays? Its fast, its simple, and good enough for most configuration issues I have encountered so far. Gr Ronald -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:42 PM To: Struts Users Mailing List Subject: Best Practice for parsing an XML file for application configuration parameters? I am developing an application that will require different application settings for different machines/customers. Because of this, I want to to externalize certain configuration settings to a XML file outside of web.xml - let's call this myApp.xml. I have a StartupServlet that I can parse this file with. 1. What should I use to parse this file - SAX, DOM, Digester? 2. Should I have a bean that represents all the configuration settings, and put this in the ServletContext as an attirubute, or each individual setting? 3. If I use Digester and a bean (seems good), should I change my XML in the following snippet? application respository rootd:/repository/root assetsassets/assets viewPathfile://d:/repository/assets/viewPath /respository assessment !-- This value is a percentage -- default-passing-score75/default-passing-score /assessment /application Any help (or URLs) are appreciated! Matt __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Furore B.V. Rijswijkstraat 175-8 Postbus 9204 1006 AE Amsterdam tel. (020) 346 71 71 fax. (020) 346 71 77 --- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, 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 received this in error, please contact the sender and delete the material from any computer --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using Torque and Struts
http://jakarta.apache.org/turbine/index.html -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 11:30 AM To: Struts Users Mailing List Subject: RES: Using Torque and Struts where can i get information about Torque, please? thanks in advance Rubens Gama -Mensagem original- De: Hoang, Hai [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 6 de março de 2002 14:18 Para: 'struts-user' Assunto: Using Torque and Struts I am having hard time setting up Torque to work with Struts in Tomcat 4. I really appreciate if some one can help me. I went through the Torque tutorial successfully but I don't know how to make torque works JSP/Struts. Also, do you know how is torque compared to other open source OR mapping tools Thank You -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Simper Vs. Torque
How is Simper compared to Torque? If anyone used both, please share with us the experience?
RE: Design question - Action Form vs Business Delegates/Value Obj ects
Michelle, You wrote You're probably right. So far I have only used it for Strings and numbers for which no special mapping was required. In this case it was simple to implement. I've tred and it works for Long datatype. Have you try for int or long? What about editing a record? if you don't specify a hidden field for the primary key such as html:hidden property=address.addressId / the pk value in the value object resets to null. Do you experience this problem? Thank you for your help Hai -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Design question - Action Form vs Business Delegates/Value Obj ects
I used session scope because I want the form to remember or correctly selected my value dropdown list. But I don't know why all of the values that I did not display as hidden field or text field are lost. Thanks, Hai -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 9:29 AM To: [EMAIL PROTECTED] Subject: RE: Design question - Action Form vs Business Delegates/Value Obj ects Is your form bean in session or request scope? I always use session scope to ensure that existing data in vo's are not lost. HTH, Michelle From: Hoang, Hai [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] CC: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Design question - Action Form vs Business Delegates/Value Obj ects Date: Mon, 26 Nov 2001 10:26:38 -0500 Michelle, You wrote You're probably right. So far I have only used it for Strings and numbers for which no special mapping was required. In this case it was simple to implement. I've tred and it works for Long datatype. Have you try for int or long? What about editing a record? if you don't specify a hidden field for the primary key such as html:hidden property=address.addressId / the pk value in the value object resets to null. Do you experience this problem? Thank you for your help Hai _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]