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
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
){
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
=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
? Or am I total off the track?
Thanks in advance
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
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
();
oos.close();
return new String(buf);
Any idea or workaround?
TIA
Michael Mok
www.webappcabaret.com/teatimej
alues
back to the form [e.g. formExample.getBeanArray(0).setCode(..) etc.]"
TIA
Regards,
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 =
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
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
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
="dbTableColumnTypes" name="database.servlet"
property="dbTableColumnTypes" scope="application"/
In the form ...
html:select name="element" property="ColumnTypeName" value="ColumnType"
html:options collection="dbTableColumnType
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
tion.
TIA
Michael Mok
www.webappcabaret.com/teatimej
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
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
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
to administer their database structure.
Cheers
Michael Mok
45 matches
Mail list logo