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: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Michael Mok
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(); } Michael Mok

RE: BigDecimal

2002-03-20 Thread Michael Mok
){ 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 To: [EMAIL PROTECTED] Subject

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 */ public

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- From: Alex Colic

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.

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: 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

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

SSL revisited again

2001-10-03 Thread Michael Mok
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 : html:messages

2001-09-27 Thread Michael Mok
ActionMessage(login.succesful.key)); saveMessages(request,messages); In your JSP html:messages id=messageid header=login.successful.header footer=login.successful.footer message=true bean:write name=messageid/ /html:messages Regards Michael Mok -Message d'origine- De: storck [mailto:[EMAIL

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

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: Form rendering problem

2001-06-28 Thread Michael Mok
ration to work. I got a couple of contexts setup in webappcabaret.com (ie teatimej and normad) 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 PROTEC

RE: Handling Multipart forms (sort of Wizard)

2001-06-12 Thread Michael Mok
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.webappcabaret.com/normad -Original Message

RE: Handling Multipart forms (sort of Wizard)

2001-06-12 Thread Michael Mok
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 of Wizard) In the below

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 responses

RE: Handling nested properties

2001-06-12 Thread Michael Mok
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 Hi

RE: ActionForms for read-only data??

2001-06-12 Thread Michael Mok
to the 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

Re: Displaying data retrieved from a database

2001-06-12 Thread Michael Mok
Hi Kat In my struts-config action path="/edittimesheet" type="org.teatimej.timesheet.EditTimeSheetAction" name="timesheetform" scope="session" forward name="success" path="/editconsultanttimesheetpage.jsp" / /action This is how I iterate through my arraylist in my jsp. logic:iterate

RE: Displaying data retrieved from a database

2001-06-11 Thread Michael Mok
. Theother 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 Asbell [mailto:[EMAIL

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 To: [EMAIL

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

2001-06-06 Thread Michael Mok
Hi Charlesworth I think it should be more like this logic:iterate id=listElement name=myList html:radio name=listElement property=selectedListElement / /logic:iterate Regards Michael Mok -Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: Wednesday

Re: Format on the JSP pages

2001-06-02 Thread Michael Mok
=startDateTime//dt:format In the above example 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

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

2001-05-31 Thread Michael Mok
? Or 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 template:put name='title' bean:message key=app.title/ /template:put 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

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
alues back to the form [e.g. formExample.getBeanArray(0).setCode(..) etc.]" TIA Regards, Michael Mok

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 = "routingDate[" + s +"].timeOfDayStart"; beanpropertystop =

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: 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 Tomcat

Server Port Problem HELP

2001-01-29 Thread Michael Mok
request.getContextPath() + path); return (url.toString()); } catch (MalformedURLException e) { return (null); } } I cannot see any option to instruct STRUTS not 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
="dbTableColumnTypes" name="database.servlet" property="dbTableColumnTypes" scope="application"/ In the form ... html:select name="element" property="ColumnTypeName" value="ColumnType" html:options collection="dbTableColumnType

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

2001-01-26 Thread Michael Mok
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 11:08 PM Subject: RE: Off T

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: 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. Will this causes any problem

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

2001-01-18 Thread Michael Mok
d "length" attribute of the logic:iterate 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 below. TIA Michael Mok SQLDisplayRowResult

[ANN] STRUTS Demo App - MySQL Database Admin Tool

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