Re: websites that use Struts..

2003-02-26 Thread Michael Mok
Try this. It is 100% STRUTS. Other open source technologies used are itext (PDF generator) and castor (Persistance and caching layer to the database). http://www.teatimej.com Logon: guest password: guest Regards Michael Dennis Muhlestein wrote: http://www.datemate.com On Wed, 2003-02-26 a

Re: Design Advice - Relational Databases & Java Objects

2002-05-30 Thread Michael Mok
tsrv = new com.consultech.helper.CustomerSrv(); custsrv.getCustRecords(); in com.consultech.helper.CustomerSrv getCustRecords(){ db = castor. getDatabase(); db.begin(); // invoke a Object Query to get a list of customers db.commit(); } M

RE: Design Advice - Relational Databases & Java Objects

2002-05-30 Thread Michael Mok
Hello We are using Castor and have implemented a STRUTS based online reservation system using CASTOR as our data access layer. Castor works well as the functionalities it provides are non intrusive. What I meant is that it provides a Mapping.xml file which maps your beans to each table (and even

RE: BigDecimal

2002-03-20 Thread Michael Mok
ountString){ java.text.DecimalFormat def = new java.text.DecimalFormat("###.00"); this.setAmount(new java.math.BigDecimal(def.parse(amountString))); } Regards Michael Mok -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Thursday, 21 March 2002 12:40

RE: Implement HTTP and HTTPS in a safe, flexible, and easily maintainable manner

2002-02-24 Thread Michael Mok
Steve I tried to compile your SecureRequestUtils code using servlet 2.1 and the compiler says that "aRequest.getParameterMap()" does not exist. Is your servletUtil based on Servlet 2.3? Regards Michael Mok /** * Creates query String from request body parameters */

RE: anyone using Castor with Struts?

2002-02-21 Thread Michael Mok
John We have implemented a couple of web applications using STRUTS and CASTOR. Check out www.teatimej.com (framework and api include struts, castor, mysql and itext) Regards, Michael Mok -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: Friday, 22 February 2002

RE: Execute Struts in Netbeans?

2002-01-15 Thread Michael Mok
Hi Dave Yes it should work with Netbeans 3.3. Regards Michael Mok -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 January 2002 2:55 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Execute Struts in Netbeans? Has anyone

RE: Execute Struts in Netbeans?

2002-01-13 Thread Michael Mok
I have written a HOW-TO on this. You may want to read it first. www.michaelmok.com Michael Mok Product Manager FullyBooked 1306 Hay Street West Perth Western Australia 6005 Tel: 61 8 93221295 Fax: 61 8 94815281 Email: [EMAIL PROTECTED] www.fullybooked.com.au -Original Message- From

RE: JSTL (standard taglib) Early Access 3

2002-01-07 Thread Michael Mok
assuming that the items in your lists rarely change as they will only be loaded once. There are also ways which you can periodically refresh the list if you are using them in a 24x7 operation. Regards, Michael Mok -Original Message- From: Sills, David [mailto:[EMAIL PROTECTED]] Sent

RE: Can't forward to a global-Here's the code in question?

2001-12-07 Thread Michael Mok
Alex Session.isNew() only help to a certain extent. I would check for existance of objects that should exist in the Session. eg User user = session.getAttribute("user"); if (user == null) return mapping.findForward("logon"); Regards Michael Mok -Original Message--

RE: AW: Want to check user is logged in every page server

2001-12-06 Thread Michael Mok
If you can using Tomcat 4, you may want to use the filter mechanism. I have not used it myself but there are a few good sample examples in the Tomcat 4 distribution. It may not address your security issue but may be effective in stopping authorised access to certain areas of the web site. Regard

RE: Forte

2001-10-31 Thread Michael Mok
Lee I have posted a How-To use Forte with STRUTS on my website. www.michaelmok.com Regards Michael Mok -Original Message- From: Lee Torrence [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 November 2001 9:23 To: Struts Users Mailing List Subject: Forte I just started using Forte 3.0

RE: https and struts - forcing an https connection

2001-10-04 Thread Michael Mok
Hi Matt Here is the code I have written to redirect connection from HTTP to HTTPS and vice versa /* * * * Function to perform HTTP and HTTPS redirection * Author : Michael Mok ([EMAIL PROTECTED]) * Version : 1.0 * * */ public static String getURL

RE: Struts DB example

2001-10-04 Thread Michael Mok
Title: RE: Struts DB example Bill   Check out TeaTimeJ Web TimeSheet www.teatimej.com . It is a STRUTS 1.0+ based application and it uses Castor JDO to maintain records in a MySQL database.   Regards   Michael Mok -Original Message-From: Bill G [mailto:[EMAIL PROTECTED]]Sent

SSL revisited again

2001-10-03 Thread Michael Mok
I would not use scope="session" but in this case I have no other choice. I would like to hear how you would go about overcoming this scenario (ie still be able to pass beans to the jsp via the request object instead of the session object) ? Thanks in advance. Michael Mok www.teatimej.com

How-To :

2001-09-27 Thread Michael Mok
("login.succesful.key")); saveMessages(request,messages); In your JSP Regards Michael Mok -Message d'origine- De: storck [mailto:[EMAIL PROTECTED]] Date: lundi 24 septembre 2001 10:07 À: User Struts (E-Mail) Objet: User-messages from Action-Class to JSP Hi, maybe I

Re: STRUTS with Sybase EAServer 3.6.1 C2

2001-08-13 Thread Michael Mok
Malcolm This is a current issue with EA Server 3.6.1 C2. From the sybase newsgroups, the Sybase engineers are looking into it. Regards Michael Mok www.teatimej.com - Original Message - From: "Malcolm Wise" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday

Session attributes thread safe

2001-08-06 Thread Michael Mok
Hi all This may be an off topic discussion. Craig mentioned about the need to make session attributes thread safe. What are the factors to look out for in order to make session attributes thread safe? Thanks in advance Regards Michael Mok -Original Message- From: Craig R

struts-example from 3/8/2001 Nightly Build failed

2001-08-04 Thread Michael Mok
I downloaded struts nightly build 3/8/2001 and run the struts-example. Tomcat 3.2.2 failed to start up this application.   I notice that in this build, the commons jars are included. Has anybody encountered this problem. It seems like the action servlet fails to load.   Regards     Michael M

RE: full featured example

2001-07-26 Thread Michael Mok
Here is another full featured example without console. www.teatimej.com (Web Timesheet Management System). It also uses Castor for O/R data binding and itext for dynamic PDF document generation and JavaMail. Regards Michael Mok www.teatimej.com -Original Message- From: Pan Li

Re: Design Q - Select List Data of possible values of a business object attribute

2001-07-24 Thread Michael Mok
Regards Michael Mok www.teatimej.com - Original Message - From: "Mary Jo Serrino" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 4:18 AM Subject: Design Q - Select List Data of possible values of a business obj

RE: Form rendering problem

2001-06-28 Thread Michael Mok
mad) and they are both running fine (built on STRUTS!).   Regards   Michael Mok -Original Message-From: Rod Schmidt [mailto:[EMAIL PROTECTED]]Sent: Thursday, 28 June 2001 14:28To: [EMAIL PROTECTED]Subject: Form rendering problem I'm using www.webappcabaret.com as a hostin

Re: [ANNOUNCEMENT] Struts 1.0 (Final) Released

2001-06-16 Thread Michael Mok
Title: RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released Congratulations to Craig and the team!   Cheers   Michael Mokwww.webappcabaret.com/teatimej  

Re: Displaying data retrieved from a database

2001-06-12 Thread Michael Mok
Hi Kat   In my struts-config         type="org.teatimej.timesheet.EditTimeSheetAction"   name="timesheetform"  scope="session">        This is how I iterate through my arraylist in my jsp.   property="timeHeader.timeRow"   type="org.teatimej.timesheet.dao

RE: ActionForms for read-only data??

2001-06-12 Thread Michael Mok
next action, STRUTS does not automatically create the table1 bean nor the table2 bean though it creates the formbean fine. Any comments? Regards Michael Mok www.webappcabaret.com/normad -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 12 June 2001 17:44 To

RE: Handling nested properties

2001-06-12 Thread Michael Mok
. Now you can access all the attributes of OrderLineDetail inside your iterate loop. Regards Michael Mok www.webappcabaret.com/normad -Original Message- From: Victor Chai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 12 June 2001 16:09 To: [EMAIL PROTECTED] Subject: Handling nested properties

RE: Handling Multipart forms (sort of Wizard)

2001-06-12 Thread Michael Mok
Hi Victor A high level sequence diagram fillform.html ---> loadfirstpage.do ---> firstpage.jsp firstpage.jsp --> savefirstpage.do --> loadsecondpage.do --> secondpage.jsp secondpage.jsp --> savesecondpage.do --> loadthirdpage.do --> thirdpage.jsp thirdpage.jsp --> savethirdpage.do. See my respo

RE: Handling Multipart forms (sort of Wizard)

2001-06-12 Thread Michael Mok
ot;mother" bean has all the values for your 3 forms. Hope it makes sense. Regards Michael Mok www.webappcabaret.com/normad -Original Message- From: suhas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 12 June 2001 16:13 To: [EMAIL PROTECTED] Subject: Re: Handling Multipart forms (sort

RE: Handling Multipart forms (sort of Wizard)

2001-06-12 Thread Michael Mok
. In this case, each form beans can perform its validate method() and the form action class can copy each form properties to the "mother" bean using PropertyUtil.copyProperty method. Note you will need to store the "mother" bean into the session object. Regards Michael Mok www

RE: Form with request scope

2001-06-11 Thread Michael Mok
Hi Timothy Check your struts-config file to see if you have specified "scope=request" in your action definition for processN1. Regards Michael Mok www.webappcabaret.com/normad -Original Message- From: Timothy Hicks [mailto:[EMAIL PROTECTED]] Sent: Monday, 11 June 2001 20:10

RE: Displaying data retrieved from a database

2001-06-11 Thread Michael Mok
through your list.   The other option is to use the CacheResultSet from sun but I have not venture into that area. There are a number of discussions in this list about using the CacheResultSet.   Regards   Michael Mok www.webappcabaret.com/normad     -Original Message-From: Jonathan

RE: a struts tag within another struts tag ...

2001-06-06 Thread Michael Mok
Hi Charlesworth I think it should be more like this Regards Michael Mok -Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 16:09 To: '[EMAIL PROTECTED]' Subject: a struts tag within another struts tag ... d

Re: Format on the JSP pages

2001-06-02 Thread Michael Mok
my bean contain the following method public long getStartDateTime() { // // return the Calender.getTime() component; }; Cheers Michael Mok www.webappcabaret.com/teatimej - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Redirecting to secure server (ie from http:// to https://)

2001-05-31 Thread Michael Mok
am I total off the track? Thanks in advance Michael Mok

RE: How to embed bean:message within a template

2001-04-30 Thread Michael Mok
Hi Jeff   Try this         Regards,   Michael Mok   -Original Message- From: Jeff Trent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 May 2001 9:26 To: [EMAIL PROTECTED] Subject: How to embed bean:message within a template   Newbie here.  Just wondering how

RE: struts at webappcabaret

2001-04-26 Thread Michael Mok
Hi Jens The servlet engine to use is Tomcat 3.1. Looking at your error message. It looks like you have placed your struts-html.tld into the META-INF folder. Try placing it into your WEB-INF folder. Regards, Michael Mok -Original Message- From: Jens Rehpöhler [mailto:[EMAIL

Serialize object to form.. class mismatch?

2001-04-14 Thread Michael Mok
(); oos.close(); return new String(buf); Any idea or workaround? TIA Michael Mok www.webappcabaret.com/teatimej

RE: POSTing arrays in struts

2001-04-10 Thread Michael Mok
ck to the form [e.g. formExample.getBeanArray(0).setCode(..) etc.]" TIA Regards, Michael Mok

Re: Connection Pooling, GenericDataSource, JNDI, CachedRowSet

2001-04-06 Thread Michael Mok
() crs.setCommand("Select name,telephone from Contacts"); crs.execute(conn); The "DATA_SOURCE_KEY" refers to the data-source property in your struts-config.xml file. Hope it helps Michael Mok www.webappcabaret.com/teatimej - Original Message - From: &q

Re: Iterate an indexed property, again?

2001-03-10 Thread Michael Mok
Hi   How about this?   << <%int counter = 0;String s = null; String beanpropertystart = null;String beanpropertystop = null; s.valueOf(counter);for (int i = 0; i < myRoutingList.getRouteElements().size(); i++) { beanpropertystart

Latest nightly build still on 24 Feb?

2001-03-04 Thread Michael Mok
Hi   Is the latest nightly build available for download still at 24 Feb 2001? I went to the website this morning and notice that the latest build is dated 24 Feb 2001.   TIA   Michael Mokwww.webappcabaret.com/teatimej

RE: jsp rendering to session property for caching?

2001-02-02 Thread Michael Mok
Regards Michael Mok www.webappcabaret.com/teatimej -Original Message- From: Ned Seagoon [mailto:[EMAIL PROTECTED]] Sent: Friday, 2 February 2001 19:00 To: [EMAIL PROTECTED] Subject: jsp rendering to session property for caching? Hi all, wonder if you can help with ideas of how I can

RE: Struts and MySQL

2001-01-31 Thread Michael Mok
recommend that you to upgrade to this version of the JDBC driver. Regards, Michael Mok -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 February 2001 9:10 To: Struts List; Struts List Subject: Re: Struts and MySQL I've been using MySQL locally on Tomca

Server Port Problem HELP

2001-01-29 Thread Michael Mok
to include the serverport when building the URL. However the server port may be a red herring. Have I got off the rails? TIA Michael Mok www.webappcabaret.com/teatimej

Re: Nested Collection with Options Tag

2001-01-27 Thread Michael Mok
... Regards Michael Mok www.webappcabaret.com/teatimej - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts List" <[EMAIL PROTECTED]> Sent: Sunday, January 28, 2001 5:24 AM Subject: Nested Collection with Options Tag > Th

Re: Nested and indexed attributes with the latest builds?

2001-01-27 Thread Michael Mok
Andi Would you like to try it again and let me know? If you still encounter problems please email me at [EMAIL PROTECTED] . This topic should be taken offline. Regards, Michael Mok www.webappcabaret.com/teatimej - Original Message - From: "Gehmeyr Andreas" <[EMAIL P

Re: Off Topic:: How do detect if user is still using your web application?

2001-01-26 Thread Michael Mok
e a number of situations which would otherwise delay the implementation of my application. Regards Michael Mok www.webappcabaret.com/teatimej - Original Message - From: "Bielby, Randy J." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001

Re: Nested and indexed attributes with the latest builds?

2001-01-26 Thread Michael Mok
Is it possible to extent the bean:write tag to handle index like the iterate tag's offset ? eg Regards Michael Mok www.webappcabaret.com/teatimej The code from the struts-test.war is below. Test 4 - String Array And Indexed Lookups Correct Value Array Result Indexed R

RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7

2001-01-23 Thread Michael Mok
Teresa   Are you referring to SO files as native runtime libraries for Solaries?     Michael Mok   Subject: RE: Deploy WAR file with Weblogic 510 sp8 on Solaris 7   I have all of JAR files under "WEB-INF/lib".  Only the SO files are under "WEB-INF/lib/solaris"

Off Topic:: How do detect if user is still using your web application?

2001-01-23 Thread Michael Mok
tion. TIA Michael Mok www.webappcabaret.com/teatimej

Re: How to pass parameter to a JSP inside a template?

2001-01-18 Thread Michael Mok
uot; attribute of the tag (to breakup and display large datasets in my TeaTimeJ application) and it works like a charm. We should vote for this framework in the Java Developers Journal Readers Choice Awards! Cheers Michael Mok

How to pass parameter to a JSP inside a template?

2001-01-17 Thread Michael Mok
is passed and "forward" the parameter to SQLDisplayRowResult.jsp. When I run the code, the SQLResult.jsp is created but SQLDisplayRowResult.jsp is not. Can anyone give me some advice as to how I can sort this out? My example are provided belo

[ANN] STRUTS Demo App - MySQL Database Admin Tool

2001-01-07 Thread Michael Mok
administer their database structure. Cheers Michael Mok

Alternating colors for rows displayed?

2000-10-31 Thread Michael Mok
displaying my rows in a HTML )within the . Maybe an enhancement can be made to the tag to take a style sheet setting for specifying a row color combination of some sort or a new tag for displaying collections. Any opinion? Michael Mok

RE: Iterate tag

2000-10-23 Thread Michael Mok
Yes Have a look at TeaTimeJ SQL Editor (www.webappcabaret.com/teatimej) Logon as userid "teatimej" and password "yy". That servlet/jsp application is written using STRUTS. Regards Michael Mok -Original Message- From: Aur Gal [mailto:[EMAIL PROTECTED]] Sent: