RE: problem with String[]

2003-09-24 Thread Mohd Amin Mohd Din
I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED]

2003-09-24 Thread Mohd Amin Mohd Din
Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Ensuring a clean Form

2003-09-24 Thread Mohd Amin Mohd Din
Yes.

-Original Message-
From: Linus Nikander [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 4:42 PM
To: [EMAIL PROTECTED]
Subject: Ensuring a clean Form

How do I ensure that each invocation of a particular action receives a
clean form. I.e a form where no values from any previous invocation
are
present.

I remember reading somewhere that under certain conditions old values
from
one invocation could, because struts reuses form instances, be present
in a
later invocation.

Is this true or have i misunderstood something ? I also remember reading
something about a reset() method for the ActionForm. Is this the method
one
should use to reset all values ? When exactly is the reset() method
called
in that case ?

//Linus Nikander linus @nikander.net




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED]

2003-09-24 Thread Mohd Amin Mohd Din
I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused 



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread Mohd Amin Mohd Din
I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused 



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread Mohd Amin Mohd Din
Some of the updates were done using transactions.the show_sql=true,
the command line shows insert sql being run but the data is just not in
there. Commit also was performed. Maybe it's an Oracle specific issue or
something.
For my objects, I do use the reverse generator which does need a bit of
editing especially the sequence part, since most of the ids in the
Oracle database use sequences to generate unique ids.

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 3:18 AM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue

I'd like to know what your Hibernate problem was
since I'm using hibernate and never had a problem
with it saving data, unless I had the wrong
information in the object, causing a Hibernate
Exception, which I caught.

Do you have show_sql=true in your hibernate.properties
or hibernate.cfg.xml file?

It shows me what the SQL statement is when it is performed,
such as:

Hibernate: select login0_.vendorid as vendorid, login0_.Login as Login,
login0_.Password as Password, login0_.type as type from company login0_
where (login0_.Login=? )

I'm also using transaction syntax like so:

SessionFactory sf = // however you initialize it, I use
// the hibernate Struts pluging from hibernate.org
Session sess = sf.openSession();
Transaction tx = sess.beginTransaction();
// do something
tx.commit()
etc... ;

I had plenty of Hibernate errors when I started
until I started using the SchemaExport and
hbm2ddl classes to create my relevant objects.

Regards,
David

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 2:42 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue


I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional

RE: IDE for Struts Examples

2003-09-23 Thread Mohd Amin Mohd Din
Wuhooo! Oracle10g
-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 5:09 PM
To: Martin Gainty; Struts Users Mailing List
Subject: Re: IDE for Struts Examples

Martin for General JDeveloper 10g issues you'd be better continuing this
on
the OTN forum (http://www.oracle.com/forums/forum.jsp?forum=83) as
little is
relevant to this list. We can pick up there where we leave off..

 Also find that under 10g Projects and Web Tier disappear from the
 File/New/General Menu..
Set the Filter By: to All Technologies

 The majority of examples in OTN for Struts are geared towards 9 and I
am
 having great difficulty creating these projects in 10g..
 Is there updated doc for 10g for Struts?
10g is a preview release, existing samples etc relate to the current
production release, but will be updated when the time comes.

Regards

Duncan Mills


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT]More Design Patterns. Real world example application

2003-09-23 Thread Mohd Amin Mohd Din
As the subject says, many discussion on design patterns have occurred.
However I need a good example to implement in my project. An application
using struts + hibernate would be a plus. Hopefully the example also
does some big joining at the database, and a few master detail forms.
(seems like a requirement for a mid-scale project ;-) ).
 
The current way, which I'm implement is using
 
ViewBusiness Logic   DataAccess
Action - usecasemanagerBD - usecaseDAO
 
The DAO uses ServiceLocator to get database connection. I know its quite
lame and doesn't have clean separation because we don't have an
interface for each DAO but we have a parent class BaseDAO which all DAOs
subclass from. Hopefully, with the example, the next project will be
better designed
 
Thanks
Amin


RE: how to change this logic into tags

2003-09-22 Thread Mohd Amin Mohd Din
This could/should be put into an Action

/*   ArrayList al = (ArrayList) request.getAttribute(al);

if (al != null) {
for (int i=0;ial.size()/2;i++) {
SystemProfileData spd = (SystemProfileData)
al.get(i);
if (i==0)
int topmsg = spd.getSentCount();
*/

The spd.getSentCount() should give u the correct top message. No need to
count it. But if you can't then you could either create a new property
which shows this or create a bean which you could hold your values

/*   
 td width=%=topmsg!=0?spd.getSentCount()*80/topmsg:0%%/td
*/

for writing out properties you could use bean:write name=beanName
property=propertyName /

for html link html:link 

Look here for more info http://jakarta.apache.org/struts/userGuide/

Amin
-Original Message-
From: Mohd Fadhly [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 12:05 PM
To: Struts Users Mailing List
Subject: how to change this logic into tags

hello,

how do i change this scriptlet logic into struts tag,

%
ArrayList al = (ArrayList) request.getAttribute(al);

if (al != null) {
for (int i=0;ial.size()/2;i++) {
SystemProfileData spd = (SystemProfileData)
al.get(i);
if (i==0)
int topmsg = spd.getSentCount();
%
table border=0 width=100%
trtd width=20%%=spd.getName()%/td
td
table border=0 width=100% cellspacing=0 cellpadding=0
td
width=%=topmsg!=0?spd.getSentCount()*80/topmsg:0%%/td
td 
width=%=topmsg!=0?100-(spd.getSentCount()*80/topmsg):0%%%=spd.get
SentCount()%/td
/table
/td
/tr/table
% }
}
%


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Lightweight helper libraries for reporting?

2003-09-22 Thread Mohd Amin Mohd Din
Maybe you could use http://jasperreports.sourceforge.net/

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 12:23 AM
To: Struts Users Mailing List
Subject: RE: [OT] Lightweight helper libraries for reporting?

David:

The main reason I'm not ready to use displaytag is because I need to 
generate reports for more than just HTML output; my users will have 
the choice to get a delimited file as well, or instead of HTML, and 
they'll have the option to get the report mailed to them as well as 
generated while-they-wait.  I know that displaytag has some support 
for export files, but I'm figuring it's more work than it's worth to 
use a JSP tag library for asynchronous generation of a CSV file sent 
as an email attachment.

My design is to have a model-level report returned from a report 
service to a controller which can then send the report to various 
renderers.  I just haven't yet written classes to deal with common 
report functions like grouping and totalling, and it seems like 
something that would be generally useful.

I think displaytag is pretty impressive, and totally appropriate for 
a model where the web page is the primary output form.  I actually 
find the decorator model a little frustrating, as it requires writing 
and compiling code for view things which I'd prefer to have more 
flexibly changeable in a JSP (at least it did a year ago when I used 
it last) -- I'm pretty sure I had to compile a date format into a 
column decorator; what happens when the client decides they want that 
to change?  I have to recompile the class?  Or find someplace other 
than displaytag to set a runtime property for the date format; that 
seems awkward.

I think instead of a single table tag, it would be nice to have a 
table tag which defined beans and made them available to nested 
tags for various purposes, like many Struts tags do (html:messages, 
logic:iterate, etc).  This might be hard to do and still achieve 
everything that displaytag does, but if I were really motivated, I'd 
look at adapting displaytag to a model more like that...

Joe

At 22:59 -0400 9/19/03, David G Friedman wrote:
Joe,

I've been planning on using the displaytag library for that stuff when
I get
to it next week.  Why won't the decorator classes work for you to
perform
summations of rows, groups, and so forth?  I'm wondering why it won't
work
for you in case the same reasons might apply to my application

For reference, an example of the decorators for summations of groups
and
rows is here:
http://edhill.its.uiowa.edu/display-examples/example-callbacks.jsp

With their Java decorator class code example code here:
http://edhill.its.uiowa.edu/display-examples/TotalWrapper.java.txt

-- 
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
--Jaron Lanier

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



multiple rows of editable data

2003-09-22 Thread Mohd Amin Mohd Din
Hi,
 
I have a master detail form where the detail section has multiple rows
which have one field to be updated per row. There is one submit button
at the end of the form which will allow the data in the form to be
updated in to the data store.  How do I make the field represent a
unique number, putting the detail row id?
 
 
Thanks 
Amin


RE: [OT] M7 Development tool

2003-09-18 Thread Mohd Amin Mohd Din
Second that Andrew, here, u'll be lucky enough to get a RM50k a year job
programming. 1USD = RM3.8. 
 

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 2:40 PM
To: Struts Users Mailing List
Subject: RE: [OT] M7 Development tool

The management is not bad here (actually their damn good compared to
most
places), just not very keen on forking out the dosh unless its
absolutely
necessary. Unfortunately we are a small company and not some cashed up
behemoth than can play at being a sheltered workshop, so while I like to
whinge and moan its not really like theres much choice. If we want to
ship
the product on time and make the sales then the only way is through hard
work and long hours. If we dont then its game over already as some other
company will step up to put in the hard yards and get the deals
instead...
:-(

To be honest Id die of boredom in a 925 job with no stress... ;-

As for that article:
snip programmers making $70,000 a year /snip

70k US? For a programmer? What a joke! Little wonder all those jobs are
going overseas... You could get 3 or 4 of us for that price (and we work
twice the hours (and hence have twice the experience imho)) and probably
a
good 30 skilled programmers in Chennai (who from what Ive heard work
even
longer hours).

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 04:04
To: Struts Users Mailing List
Subject: RE: [OT] M7 Development tool







Perhaps you would be interested in reading Union Now? by Warren
Keuffel
at http://www.sdmagazine.com/ or read the print version of the October
issue.

Bad Managment makes workers Unionize.





 Andrew Hill
 andrew.david.hil
 [EMAIL PROTECTED]
To
   Struts Users Mailing List
 09/17/03 02:42 PM [EMAIL PROTECTED]
 
cc

 Please respond to
Subject
   Struts Users   RE: [OT] M7 Development tool
   Mailing List
 [EMAIL PROTECTED]
  rta.apache.org







ouch! Why the smeg does every damn tool have to cost several months
salary?
Cant see mgmt springing for it then when they can just have us work till
4
or 5 am every day week atfer week in a row.
:-(

Oh well. thank God (or IBM at least) for Eclipse and extra thanks to the
struts team without whose most excellent framework Id be doing
OutOfBoundsException hours a day instead of a mere 18 or so...


-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 03:34
To: Struts Users Mailing List
Subject: Re: [OT] M7 Development tool


cool but a few thousand dollars!

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 12:15 PM
Subject: RE: [OT] M7 Development tool


 Thanks :-)

 snip
 M7 lets you develop web applications in record time by assembling
 applications visually from existing database schemas, Java components
and
 web services
 /snip

 Funny how the words record time stand out when one is reading them
at
3:30
 AM ;-
 I reckon I'll have to check this out when I get time.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 18 September 2003 03:11
 To: Struts Users Mailing List
 Subject: RE: [OT] M7 Development tool







 Andrew:

 Sorry about not including the URL http://www.m7.com/

 It is an IDE with repository, workflow designer and other stuff.  Will
know
 more after I go through the tutorial.  I guess that it could be
considered
 a CASE tool from what I have seen so far.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-18 Thread Mohd Amin Mohd Din
http://hibernate.bluemars.net/80.html

-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 12:06 AM
To: 'Struts Users Mailing List'
Subject: RE: Tool to diagnose J2EE/Struts/Oracle problem

Amin:
Yes we have have multiple users using sqlplus and everything works ok.
SO
the database is find.  Somehow, the I think the problem is either in the
JVM
provided with Weblogic or the Oracle drivers because even though the
oracle
connections are ideled, they cannot be reused.   Can you tell me what do
you
mean by  'hibernate' site. Are you referring to the Oracle site?

Regards,
Stella Auyeung
EDS Digital Enablement - Saginaw
6200 State Street, Suite 1
Saginaw,  MI  48603

* phone: 989-497-5766 (8-399)
* pager: 989-201-1030
* mailto:[EMAIL PROTECTED]



-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 11:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Tool to diagnose J2EE/Struts/Oracle problem


Is your oracle database configured properly? Try connecting multiple
users using oem or sqlplus to rule out is the issue is from the
database. I had a max cursor reached error before which was attributed
to not closing the preparedstatement. Another thing you may try is to
use the latest JDBC drivers. There are some issues with 9.0.3 and below
drivers, found out on hibernate site.

Amin

-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Tool to diagnose J2EE/Struts/Oracle problem

I am havng a No resource Available problem with my J2EE/Struts/Oracle
application.   It is saying I don't have any more Oracle connections
available.   Even I am closing the result set, statement and connection,
I
am still running into the problem.   When I use the Oracle DBA monitor
tool,
it shows that I have 10 'inactive' connection but then my app will give
the
'no resource available' error.   So it looks like somehow it is not
reusing
those inactive connections.   Does Gabage Collection release those
connections?  Does anyone have this problem before?

So I am looking for a better 'tool' to find out why GC doesn't release
those
connections or if those 10 'inactive' connections are actually available
to
be re-used.  Can someone give me a suggestion on this tool or how to
troubleshoot the problem?

Thanks
Stella


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Refreshing Form Submission and Duplicates

2003-09-18 Thread Mohd Amin Mohd Din
An easier way would be to do a redirect once submitting the form to
listing the page.

-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 10:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Refreshing Form Submission and Duplicates

I noticed this the other day at http://husted.com/struts/catalog.html

Use the Action Token methods to prevent duplicate submits

There are methods built into the Struts action to generate one-use
tokens. A
token is placed in the session when a form is populated and also into
the
HTML form as a hidden property. When the form is returned, the token is
validated. If validation fails, then the form has already been
submitted,
and the user can be apprised. 

- saveToken(request) 
- on the return trip, 
isTokenValid(request) 
resetToken(request)


I am not sure if that is of any help as I have yet to use it ...
although I
have just this minute found a case in my own application to do so ;-

Shane



 -Original Message-
 From: John Reynolds [mailto:[EMAIL PROTECTED]
 Sent: Friday, 19 September 2003 2:16 p.m.
 To: [EMAIL PROTECTED]
 Subject: Refreshing Form Submission and Duplicates
 
 Hi,
 
 I have a question about a bug in my application using a Struts Form.
 This happens in multiple areas of my site, but the one example I will
 use is a Message Board feature. The problem is that when a user goes
to
 a list of messages, fills out the form to post a message and ends up
 back on the list page, the message will be submitted twice if they
 refresh the page following the form submission. this has caused
 duplicate messages throughout the message board, as it is the nature
of
 message boards to refresh the list of messages often to check for new
 ones. Keep in mind, my app strictly follows the approach of the
O'Reilly
 book.
 
 I'll try to make this easy to follow:
 
 1. the user goes to a message board with a list of messages from other
 users. this page is /messagelist.do the action looks like this:
 
   action
 path=/messagelist
 name=messageListForm
 type=myapp.framework.actions.MessageListAction
 scope=request
 forward name=Success
path=/templates/messagelist.jsp/
   /action
 
 (the messageListForm is a struts form bean with a List of message
 objects)
 
 2. at the bottom of the page is a form to post your own message 3. the
 user enters their Name, Subject and Message Body and submit the form
4.
 the form is processed by a Struts Action. the action tag in
 struts-config.xml looks like this:
 
   action
 path=/messageinsert
 name=messageDetailForm
 type=myapp.framework.actions.MessageInsertAction
 scope=request
 validate=false
 forward name=Success path=/messagelist.do/
   /action
 
 - From the naming convention, you can see that the Action inserts the
 message into storage (database) and upon success the user is forwarded
 to the same /messagelist.do action
 
 Now, when the form is submitted and this is displayed, the URL in the
 browser says:
 
 http://myapp.com/myapp/messageinsert.do
 
 I expect that this is correct because the HTML form itself was form
 action=/messageinsert.do method=POST.
 
 The user's submitted message will be found on the list of messages.
 HOWEVER, IF THEY REFRESH THE SCREEN, THE MESSAGE WILL BE SUBMITTED
 AGAIN. This should not happen. If i'm the customer, i've already
 submitted the form, and now i'm seeing a list of messages. refreshing
 should have no effect on the form that i just submitted.
 
 Does anyone have a suggested fix?
 
 Thanks all,
 
 JR
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
Hi,
 
What else do I need to check? The form is working perfectly at the
moment but it is not being validated
In struts-config.xml
snip
form-bean name=Financial.Sponsor.ReceiveSponsorshipForm
   type=org.apache.struts.validator.DynaValidatorForm
/snip
snip
action path=/financial/sponsor/receiveSponsorshipSetup
 
type=com.enc.edu.icms.fin.sponsor.view.ReceiveSponsorshipSetupAction
name=Financial.Sponsor.ReceiveSponsorshipForm
 
input=/WEB-INF/jsp/icms/financial/sponsor/receiveSponsorship.jsp
parameter=action
validate=true
/snip
snip
  plug-in className=org.apache.struts.validator.ValidatorPlugIn 
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,
 /WEB-INF/validation.xml /
  /plug-in
/snip
 
In validation.xml
snip
  form name=Financial.Sponsor.ReceiveSponsorshipForm 
  field property=semesterId depends=required
msg name=required key=icms.error.field.null/
arg0 key=icms.financial.semester/
  /field
/snip
 
validator-rules.xml is present and contains the normal stuff
 
Help
Amin
 


RE: bean:write property= Format a Date ?

2003-09-17 Thread Mohd Amin Mohd Din
There was a discussion on the list previously on formatting a date
object. It would be better to format the date at the business layer
rather than at the presentation layer. This is because if the view layer
is changed to use Swing or another web app framework, the date is
already formatted to the requirements of the application.

Amin

-Original Message-
From: Ripudaman.Sharma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2003 9:02 PM
To: Struts Users Mailing List
Subject: RE: bean:write property= Format a Date ?

Inspite of using substring.You can use SimpleDateFormat class which
provide
you the facility of format date to any any Date Format .For Your
refrence
sending code which is generic one and convert any DateFormat-

How to convert date from 2002-11-29 to 29/11/2002 (Or from any
format to
any format.
they can be passed as params.)


public static String convertDate(String date, String fromPattern, String
toPattern) {
String newFormat = null;
try {
SimpleDateFormat fmt = new SimpleDateFormat(fromPattern);
Date objDt = fmt.parse(date);
fmt.applyPattern(toPattern);
newFormat = fmt.format(objDt);
}catch(ParseException pe)   {}
return newFormat;
}


String newFormat = convertDate(2002-11-29, -MM-dd,
dd/MM/);
System.out.println(newFormat);//will print 29/11/2002

Regard
Ripudaman Sharma
Analyst
Indus Software




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Mohd Amin Mohd Din
Is your oracle database configured properly? Try connecting multiple
users using oem or sqlplus to rule out is the issue is from the
database. I had a max cursor reached error before which was attributed
to not closing the preparedstatement. Another thing you may try is to
use the latest JDBC drivers. There are some issues with 9.0.3 and below
drivers, found out on hibernate site.

Amin

-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Tool to diagnose J2EE/Struts/Oracle problem

I am havng a No resource Available problem with my J2EE/Struts/Oracle
application.   It is saying I don't have any more Oracle connections
available.   Even I am closing the result set, statement and connection,
I
am still running into the problem.   When I use the Oracle DBA monitor
tool,
it shows that I have 10 'inactive' connection but then my app will give
the
'no resource available' error.   So it looks like somehow it is not
reusing
those inactive connections.   Does Gabage Collection release those
connections?  Does anyone have this problem before?

So I am looking for a better 'tool' to find out why GC doesn't release
those
connections or if those 10 'inactive' connections are actually available
to
be re-used.  Can someone give me a suggestion on this tool or how to
troubleshoot the problem?

Thanks
Stella


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
Just an update, the error messages was not defined in the application
resources file.

Anyway, having another issue, since the action is a
LookupDispatchAction, it has a few methods, execute, view and update.
Whenever a user comes in, automatically it will go to execute which in
turn will call the view which will then get the default record. Upon
coming in the page, if the record in the database is not complete, it
will show errors, however this is ok since the record should be
complete. But then, say if I'm updating a record on that page and I want
to view another record without saving the record which is just edited,
the data for another record will not show since the form is being
validated which when the users fills up the form to its requirement and
then moves to view another record will appear that the previous record
has been saved which is not the case.

I guess the best way to do it would be using plain Action classes, but
it would be nice if this could be done using a LookupDispatchAction
class.

Thanks

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2003 9:03 PM
To: [EMAIL PROTECTED]
Subject: Validator not configured properly?

Hi,
 
What else do I need to check? The form is working perfectly at the
moment but it is not being validated
In struts-config.xml
snip
form-bean name=Financial.Sponsor.ReceiveSponsorshipForm
   type=org.apache.struts.validator.DynaValidatorForm
/snip
snip
action path=/financial/sponsor/receiveSponsorshipSetup
 
type=com.enc.edu.icms.fin.sponsor.view.ReceiveSponsorshipSetupAction
name=Financial.Sponsor.ReceiveSponsorshipForm
 
input=/WEB-INF/jsp/icms/financial/sponsor/receiveSponsorship.jsp
parameter=action
validate=true
/snip
snip
  plug-in className=org.apache.struts.validator.ValidatorPlugIn 
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,
 /WEB-INF/validation.xml /
  /plug-in
/snip
 
In validation.xml
snip
  form name=Financial.Sponsor.ReceiveSponsorshipForm 
  field property=semesterId depends=required
msg name=required key=icms.error.field.null/
arg0 key=icms.financial.semester/
  /field
/snip
 
validator-rules.xml is present and contains the normal stuff
 
Help
Amin
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Slow file upload?

2003-09-16 Thread Mohd Amin Mohd Din
Hmm, just checking, are you doing any processing other than just simply
storing the file.

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 12:51 PM
To: Struts Users Mailing List
Subject: Re: Slow file upload?

On Tue, 2003-09-16 at 06:19, Robert Leland wrote:

 Bjørn T Johansen wrote:
 
 On Tue, 2003-09-16 at 04:12, Robert Leland wrote:
 
   
 
 Bjørn T Johansen wrote:
 
 
 
 I am testing file upload using Struts and FormFile but the upload
seems
 really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am
 running both the server and the browser on the same PC. Is this
normal
 or should the upload be faster?
  
 
   
 
 Your upload will be slower all on one machine as opposed to going
across 
 a fast LAN.
 However, that does seem slow. I have uploaded a 650MB file in about
7 
 minutes across a LAN.
 650MB/7 minutes  =~ 1.5 MB/sec.
 Are you using Strust 1.1 and the default fileupload implementation
which 
 is commons-fileupload ?
 What browser, How much free RAM, CPU etc..
 
 
 
 
 Yes, I am using Struts 1.1 and the default upload in
commons-fileupload.
 The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
 half of it free.. The browser I tried the upload with was Mozilla..
   
 
 
 What does your CPU utilization look like ?
 What does your (physical/virtual)  memory utilization look like, what
% 
 is available ?
 Is it high, low, which process is taking the most CPU/memory ?
 How many process are running in your JVM(s) and what are the JVM
virtual 
 memory settings at startup.
 Usually there is a  setting something like  -Xm256 for java.exe are
you 
 setting this ?
 Look at the docs for java.exe for the exact options, then try
increasing 
 say by 50% and see if
 it helps, or crashes your machine because windows doesn't have enough 
 Virtual memory to give to the
 JVM. Then you increase Windows virtual memory if needed.
 
 Also note that if Mozilla is like Netscape then it makes a copy of the

 file before beginning sending it.
 The temp file is either under C:\temp or C:\Documents and 
 Settings\User\Local Settings\Temp.
 If it make the copy fairly quickly, less than 1 second, then look at
your

Well, I am running this on Linux and the load is almost 0, so it's not a
question of the load on my computer..
But I'll try increasing the memory given to the Java VM when I get home
tonight and also try another browser


BTJ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Invalid Class file Format (help same problem)

2003-09-16 Thread Mohd Amin Mohd Din
If I'm not mistaken, 9ias runs on jdk1.3.1 

-Original Message-
From: Stefan Frank [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 6:32 PM
To: Richard Raquepo
Cc: Struts Users Mailing List
Subject: Re: Invalid Class file Format (help same problem)

hmm, just guessing: Maybe Oracle 9iAS runs on its own, older jvm? What 
does java.version/java.vendor say, when you start it from the server? 
Before replacing the tools.ja, were you able to compile a plain jsp 
without any struts-tags in it? (this does not look like a struts 
problem, as he complains about a wrong Version of Object)

Richard Raquepo wrote:

 i only have JDK 1.4.2  installed on my PC
 anyway here's the value of environment variables
 PATH = c:\utils;C:\j2sdk1.4.2\bin;c:\mysql4\bin;C:\jakarta-ant\bin
  JAVA_HOME=C:\j2sdk1.4.2\
  CLASSPATH=.;C:\j2sdk1.4.2\lib\tools.jar;%JAVALIB%

JAVALIB=C:\crm-dev\others.lib\pp-tools.jar;c:\javalib2\ms\msbase.jar;c:\
java

lib2\ms\mssqlserver.jar;c:\javalib2\ms\msutil.jar;C:\datamapper\source\;
 
 anymore suggestion?
 
 thanks,
 Richard
 
 
 - Original Message -
 From: Stefan Frank [EMAIL PROTECTED]
 To: Richard Raquepo [EMAIL PROTECTED]
 Cc: Struts Users Mailing List [EMAIL PROTECTED];
Christian
 Bollmeyer [EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 5:05 PM
 Subject: Re: Invalid Class file Format (help same problem)
 
 
 
Hi Richard,

it looks like your also using an older compiler. Do you have some
older
jdk's (1.3) on your machine?! Last time I installed Oracle, they used
a
jdk1.1 and set it into the path (and they also used to run java-stored
procedures in the database). Can you check you enviroment for:

PATH
JAVA_HOME
CLASSPATH

maybe one of them contains an older jdk?! If orion forks for compiling
the jsp's (as bea does), you may fall back to these
enviroment-variables, ignoring the j22home you started the server
with.

cheers
stf



Richard Raquepo wrote:

hello,

I get the same error. Although i have copied the tools.jar from the
jdk
installation to both j2ee/home and j2ee/home/lib

followed what others have done but im still not able to hack my
 
 application
 
to run. :p

can someone help me get my struts application work on Oracle 9iAS
(9.0.3.0.0)

Im using Win2K SP3, JDK 1.4.2, Oracle 9iAS, latest sruts1.1 stable
 
 release.
 
thanks in advance.



here's ny error details 

500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:

Errors

 

compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\def
ault
 
WebApp\persistence\_pages\\_login.java

error: Invalid class file format in C:\Program
Files\Java\j2re1.4.2\lib\rt.jar(java/lang/Object.class).  The
 
 major.minor
 
version '48.0' is too recent for this tool to understand.

 

C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp
\per
 
sistence\_pages\_login.java:0: Class java.lang.Object not found in
class
com.orionserver.http.OrionHttpJspPage.

^
2 errors

many thanks,

Richard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dateformat for MSSQL DB

2003-09-15 Thread Mohd Amin Mohd Din
This is a simple class I use to format date from VOs to Form and vice
versa. Hope it's helpful

import java.text.DateFormat;
import java.text.Format;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class FormatUtility
{
  public FormatUtility()
  {

  }
  
  public static String formatDate( String date ) throws
ParseException
  {
Format formatter = new SimpleDateFormat( -MM-dd HH:mm:ss.S );
Date dateD;
try
{
  dateD = ( Date )formatter.parseObject( date );
  formatter = new SimpleDateFormat( dd-MM- );
  date = formatter.format( dateD );
}
catch( NullPointerException e )
{
  // Do nothing 
}
catch( ParseException e )
{
  // Do nothing
}
return date;
  }
  
  public static Date getDate( String dateStr ) throws Exception
  {
DateFormat df;
SimpleDateFormat sdf = new SimpleDateFormat( dd-MM- );
Date date = sdf.parse( dateStr );
return date;
  }

}

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 3:53 PM
To: [EMAIL PROTECTED]
Subject: Dateformat for MSSQL DB

Hello,

i want to parse a date from a inputfield and write it to DB (MSSQL
Server) is there a method to format a date for MSSQL ? or for ODBC
Datasources ?

something like:

DateFormat df ...,
date = df.parse() ...
date = df.FormatForODBC() .


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dateformat for MSSQL DB

2003-09-15 Thread Mohd Amin Mohd Din
What bug? The formatDate( String date ) changes a format to another
format. In this instance, changes from -MM-dd HH:mm:ss.S to
dd-MM-
getDate( String dateStr ) is used to convert a string to a
java.util.Date object.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 6:48 PM
To: Struts Users Mailing List
Subject: RE: Dateformat for MSSQL DB

I think you should not use this class.
I has some bugs in it





Mohd Amin Mohd Din [EMAIL PROTECTED] 
09/15/2003 12:11 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
'Struts Users Mailing List' [EMAIL PROTECTED]
cc

Subject
RE: Dateformat for MSSQL DB






This is a simple class I use to format date from VOs to Form and vice
versa. Hope it's helpful

import java.text.DateFormat;
import java.text.Format;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class FormatUtility
{
  public FormatUtility()
  {
 
  }
 
  public static String formatDate( String date ) throws
ParseException
  {
Format formatter = new SimpleDateFormat( -MM-dd HH:mm:ss.S );
Date dateD;
try
{
  dateD = ( Date )formatter.parseObject( date );
  formatter = new SimpleDateFormat( dd-MM- );
  date = formatter.format( dateD );
}
catch( NullPointerException e )
{
  // Do nothing 
}
catch( ParseException e )
{
  // Do nothing
}
return date;
  }
 
  public static Date getDate( String dateStr ) throws Exception
  {
DateFormat df;
SimpleDateFormat sdf = new SimpleDateFormat( dd-MM- );
Date date = sdf.parse( dateStr );
return date;
  }

}

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 3:53 PM
To: [EMAIL PROTECTED]
Subject: Dateformat for MSSQL DB

Hello,

i want to parse a date from a inputfield and write it to DB (MSSQL
Server) is there a method to format a date for MSSQL ? or for ODBC
Datasources ?

something like:

DateFormat df ...,
date = df.parse() ...
date = df.FormatForODBC() .


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: request.getContextPath();

2003-09-07 Thread Mohd Amin Mohd Din
PostGraduate is still in development, WEB-INF is mapped from the IDE.
Anyway, tried the request.getContextPath() on other pages with forms,
works well.



-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2003 6:31 PM
To: Struts Users Mailing List
Subject: RE: request.getContextPath();

but this your contextPath. so, request returns that string that you set.

Is PostGraduate.war your file name?
or in server.xml you have set contextPath=/PostGraduate.

navjot
|-Original Message-
|From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 05, 2003 1:44 PM
|To: [EMAIL PROTECTED]
|Subject: request.getContextPath();
|
|
|Hi,
| 
|Having a wired problem here. On some of my pages, the
|request.getContextPath() works great, but on other pages, it doesn't
|seem to work, it only gets the webapp. Eg.
|page is in
|http://192.168.1.111:8080/PostGraduate/admission/application/listProfil
e
|Setup
|http://192.168.1.111:8080/PostGraduatte/admission/application/listProf
i
|leSetup  i'm only receiving a PostGraduate/ when I do a
|request.getContextPath();
| 
| 
|Thanks in advance
|Amin
| 
|

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



request.getContextPath();

2003-09-05 Thread Mohd Amin Mohd Din
Hi,
 
Having a wired problem here. On some of my pages, the
request.getContextPath() works great, but on other pages, it doesn't
seem to work, it only gets the webapp. Eg.
page is in
http://192.168.1.111:8080/PostGraduate/admission/application/listProfile
Setup
http://192.168.1.111:8080/PostGraduatte/admission/application/listProfi
leSetup  i'm only receiving a PostGraduate/ when I do a
request.getContextPath();
 
 
Thanks in advance
Amin
 


RE: how can I get Chekbox value

2003-09-02 Thread Mohd Amin Mohd Din
Just checking, in your action before putting 'halForm' in a scope, was
there any value for 'nilai' in 'tanda'?

-Original Message-
From: hari_s [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2003 9:49 AM
To: 'Struts Users Mailing List'
Subject: RE: how can I get Chekbox value

I'm already try that tips but it's didn't work, I can't get the value
from bean:write property=nilai name=tanda filter=true  /
Any other idea, but anyway thank you for the tips.

This is my complete code in jsp:
html:form action=halAction

tabletr
logic:iterate id=tanda name=halForm property=data   
logic:present name=tanda
tdbean:write property=nilai name=tanda filter=true  //td
tdbean:write property=nama name=tanda filter=true  //td
tdhtml:checkbox property=nilai2 indexed=true value=true
//td


/tr
/logic:present
/logic:iterate
/table
html:radio property=bulan value=bulanan  //p
html:radio property=bulan value=mingguan /
pnbsp;/p
html:submit value=submit property=tombol  /

/html:form

I want to view the value from bean write with the following code and
it's didn't appear...
c:out value=${halForm.nilai2}/c:out

and this is my formAction code:
--

package pak;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;

public class halForm extends ActionForm 
{
  private String nilai2;
  private int seleksi=0;
  private String tombol,bulan;
  
 
  private help[] data={ new help(11,a),
new help(12,b),
new help(13,c),};


public void setNilai2(int index,String value)
{
  nilai2=value;
  seleksi=index;
}
public String getNilai2(int index)
{
  return nilai2;
}
public String getNilai2()
{
return nilai2;

}

public int getIndex()
{
  return seleksi;
}
 
  public void reset(ActionMapping mapping, HttpServletRequest request)
  {
super.reset(mapping, request);
  }

  
  public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
  {
return super.validate(mapping, request);
  }

 

  public help[] getData()
  {
return data;
  }

  public String getTombol()
  {
return tombol;
  }

  public void setTombol(String newTombol)
  {
tombol = newTombol;
  }

  public String getBulan()
  {
return bulan;
  }

  public void setBulan(String newBulan)
  {
bulan = newBulan;
  }
}
--
Is there anything wrong with My code.
Can somebody help Me, thank you for the answer






-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2003 3:17 PM
To: Struts Users Mailing List
Subject: Re: how can I get Chekbox value


html:checkbox property=nilai2 indexed=true value=true /

Cheers Mark


On Tuesday, September 2, 2003, at 09:17 AM, hari_s wrote:

 How can I get an iterate value
 And this is My code

 logic:iterate id=tanda name=halForm property=data  
 logic:present name=tanda
 tdbean:write property=nilai name=tanda filter=true  //td
 tdbean:write property=nama name=tanda filter=true  //td
 tdhtml:checkbox property=nilai2 indexed=true  //td


 /tr
 /logic:present
 /logic:iterate

 I want to take the value from bean:write that the checkbox value is
 true.
 Thank you, for the answer ..


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Exception framework Usage

2003-09-01 Thread Mohd Amin Mohd Din
They way I'm doing at the moment is throwing an ApplicationException for
any application centric ( business and view layer ) exceptions. The
message of ApplicationException will tell exactly what happens.

However, I'm trying to get the error message for a particular exception.
Normally in Java it would be done 'e.getMessage()'. How can this be done
in JSP using taglibs or scriptlets?

Amin

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 01, 2003 8:53 PM
To: Struts Users Mailing List
Subject: RE: Exception framework Usage

hi viral,

You are thinking in the right direction. That's the way i do it.

I have got 2 base exception classes. AppException and
AppRuntimeException.

1. The exceptions that come under the purview of the business logic and
these can be handled somehow at the controller/model layer to alter the
flow
of control MUST extend AppException.

2. The exceptions that does not come under the purview of the business
logic
and raise because of the system or network problems MUST extend
AppRuntimeException.

However, one must use some common sense to decide which exception should
go
where.
Say, we are connecting to some URL and it may throw TimeoutException.
which
is not a checked exception. We must be ready to capture this and throw
some
checked exception.
The caller may catch the exception and try connecting againmay be
thrice
;-) and if still no luck the caller passes on the message to
PRESENTATION.

So your code will not be cluttered with throws XRuntimeException and
tthese exceptions MUST be handled back at CONTROLLER layer only. MODEL
layer
should just handle CHECKED exceptions.

Examples
At Controller  = DuplicateEmailException extends AppException (we may
display the same form showing error on top)
At Model = InsufficientBalanceException extends AppException (we may
charge
as much as he has got and rest of the amount we will accomodtae in next
invoice)

DatabaseAccessException extends AppRuntimeException ( as there is hardly
anything we can do about this. We MAY show some nice SORRY page and/or
may
LOG this exception somewhere)

BTW, there is some nice article on Exception handling on IBM Developer
site. Do check.

hope this helps and suggestions are welcome.
Navjot Singh


  -Original Message-
  From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 01, 2003 5:50 PM
  To: Struts Users Mailing List
  Subject: Exception framework Usage


  Hi,



  Please suggest the exception framework in a scenario in a following
scenario.



  Struts Action class  a Business Delegate -- EJB a OR Mapping (Top
link) a
Domain classes



  Please validate the below lines.



  There will be three layers at which we need to handle the exception.



  At EJB layer, at business delegate and at struts layer.



1.. EJB layer (session bean) methods will throw the (Application)
business exceptions along with RemoteException. In the catch block it
will
throw the EJBException (in case of checked system exceptions like
NamingException).
2.. At business delegate layer, we will throw the application
exceptions
in the catch block rather than EJBException to decouple the web layer
and
EJB layer.
3.. At struts layer, in the Action class's execute(), we will catch
all
these business exceptions.


  Please provide your valuable inputs.



  Thanks in advance.


























-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Exception framework Usage

2003-09-01 Thread Mohd Amin Mohd Din
Right now I just throw it.. do I need to put in a request?

-Original Message-
From: Carlos Sánchez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2003 3:50 AM
To: 'Struts Users Mailing List'
Subject: RE: Exception framework Usage

Have you tried to put the exception (under exception) in the request
and
use
c:out value='${exception.message}'/


 -Mensaje original-
 De: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
 Enviado el: lunes, 01 de septiembre de 2003 20:47
 Para: 'Struts Users Mailing List'
 Asunto: RE: Exception framework Usage
 
 
 They way I'm doing at the moment is throwing an 
 ApplicationException for any application centric ( business 
 and view layer ) exceptions. The message of 
 ApplicationException will tell exactly what happens.
 
 However, I'm trying to get the error message for a particular 
 exception. Normally in Java it would be done 
 'e.getMessage()'. How can this be done in JSP using taglibs 
 or scriptlets?
 
 Amin
 
 -Original Message-
 From: Navjot Singh [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 01, 2003 8:53 PM
 To: Struts Users Mailing List
 Subject: RE: Exception framework Usage
 
 hi viral,
 
 You are thinking in the right direction. That's the way i do it.
 
 I have got 2 base exception classes. AppException and 
 AppRuntimeException.
 
 1. The exceptions that come under the purview of the business 
 logic and these can be handled somehow at the 
 controller/model layer to alter the flow of control MUST 
 extend AppException.
 
 2. The exceptions that does not come under the purview of the 
 business logic and raise because of the system or network 
 problems MUST extend AppRuntimeException.
 
 However, one must use some common sense to decide which 
 exception should go where. Say, we are connecting to some URL 
 and it may throw TimeoutException. which is not a checked 
 exception. We must be ready to capture this and throw some 
 checked exception. The caller may catch the exception and try 
 connecting againmay be thrice
 ;-) and if still no luck the caller passes on the message to 
 PRESENTATION.
 
 So your code will not be cluttered with throws 
 XRuntimeException and tthese exceptions MUST be handled back 
 at CONTROLLER layer only. MODEL layer should just handle 
 CHECKED exceptions.
 
 Examples
 At Controller  = DuplicateEmailException extends 
 AppException (we may display the same form showing error on 
 top) At Model = InsufficientBalanceException extends 
 AppException (we may charge as much as he has got and rest of 
 the amount we will accomodtae in next
 invoice)
 
 DatabaseAccessException extends AppRuntimeException ( as 
 there is hardly anything we can do about this. We MAY show 
 some nice SORRY page and/or may LOG this exception somewhere)
 
 BTW, there is some nice article on Exception handling on 
 IBM Developer site. Do check.
 
 hope this helps and suggestions are welcome.
 Navjot Singh
 
 
   -Original Message-
   From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
   Sent: Monday, September 01, 2003 5:50 PM
   To: Struts Users Mailing List
   Subject: Exception framework Usage
 
 
   Hi,
 
 
 
   Please suggest the exception framework in a scenario in a 
 following scenario.
 
 
 
   Struts Action class  a Business Delegate -- EJB a OR Mapping (Top
 link) a
 Domain classes
 
 
 
   Please validate the below lines.
 
 
 
   There will be three layers at which we need to handle the exception.
 
 
 
   At EJB layer, at business delegate and at struts layer.
 
 
 
 1.. EJB layer (session bean) methods will throw the 
 (Application) business exceptions along with RemoteException. 
 In the catch block it will throw the EJBException (in case of 
 checked system exceptions like NamingException).
 2.. At business delegate layer, we will throw the 
 application exceptions in the catch block rather than 
 EJBException to decouple the web layer and EJB layer.
 3.. At struts layer, in the Action class's execute(), we 
 will catch all these business exceptions.
 
 
   Please provide your valuable inputs.
 
 
 
   Thanks in advance.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling Exceptions

2003-08-31 Thread Mohd Amin Mohd Din
Hi,
 
In struts-config, I have defined few global-exceptions such as these
 
  exception type=com.enc.edu.pg.bo.common.DataAccessException
 key=exception.common.dataaccessexception
 path=/action/main/dataAccessExceptionSetup
 scope=session
  /exception
  exception type=java.lang.Exception
 key=exception.common.exception
 path=/action/main/errorSetup
 scope=session
  /exception 
  exception type=javax.servlet.ServletException
 key=exception.common.servletexception
 path=/action/main/errorSetup
 scope=session
  /exception 
 
I also have created an error page, error.jsp with %@ page
isErrorPage=true % and at the top of the jsp template for all the
pages a %@ page errorPage=error.jsp %. However, when a
ServletException occurs, it does not go to the path defined in
struts-config.xml. Somehow, the error is still showing in the
application page and not in any one of the error pages defined.
 
Thanks
Amin 
 
 


RE: [FRIDAY] Vacancy

2003-08-29 Thread Mohd Amin Mohd Din
Its in Indonesia, not India


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 29, 2003 6:32 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Vacancy

Mark, they won't want you, so just forget about it.

However after watching the Bollywood movie 'Sometimes Happy, Sometimes 
Sad', I can understand why impressionable people like you might want to 
go and work there. ;)


On 08/29/2003 11:51 AM Mark Galbreath wrote:
 Where the heck is this?  Is English spoken there?
 
 -Original Message-
 From: Indra Gunawan [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 28, 2003 9:27 PM
 To: 'Struts Users Mailing List'
 Subject: FW: Vacancy
 
 
 PT. BenihInti Subur Intani (BISI), Charoen Pokphand (CP) group, is one
of
 the 
 Plantation and Plant Research export oriented National company. 
 We are developing a web based application for supporting our growing
 business. We are now having a vacancy for System DEveloper position
for our
 Pare, Kediri site.
 
 We seek candidate with specific criterias as mentioned below: 1. At
least
 Bachelor degree in Computer science with GAP =2.75 2. Ability in JAVA
and
 JSP is a must. 3. Fully understanding in RDBMS concept. 4. ability in
 Oracle/MySQL is highly valued.
 
 Full application include :
 -CV or Resume
 -Your Recent Photo or scanned Photo
 -Copy of your certificates
 
 Send your full application to [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 or by postal service to
 Attn : P.Suryanto, EDP
 PO BOX 1261, Surabaya
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: html:errors

2003-08-27 Thread Mohd Amin Mohd Din
Refers to the properties file. Since errors message key is a constant,
therefore it does not need to refer to a specific line in the properties
file.

Amin

-Original Message-
From: Yakov Belov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:54 AM
To: Struts Users Mailing List
Subject: html:errors

Dear All,

I have a question about html:errors tag. There is an optional
attribute,
bundle as in html:errors bundle=something/

My question is how do I use bundle attribute; is it a reference to a
properties file or reference to a line in the default properties file?

Thank you in advance,
Yakov Belov



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts User in Malaysia

2003-08-26 Thread Mohd Amin Mohd Din
Hi,
 
Any Malaysians on this mailing list? Lets start a struts user meet up in
preferably KL.
 
Amin


RE: mesage message account

2003-08-26 Thread Mohd Amin Mohd Din
Don't think that you are a colored person message message.
Get a life.

Amin
-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 2:25 AM
To: Struts Users Mailing List
Subject: RE: mesage message account 

Hi!

You are not special. There is not a conspiracy to get you because of
your skin color, religion, or political beliefs. Your paranoid is
unjustified, because you just aren't that important. You are simply a
rude person, and most mailing lists have a low tolerance for rudeness.
This one is no different.

Thanks for playing! Hope you learn to be nice to people and to not get
your feelings so easily hurt. Buh-bye!

-= J

 -Original Message-
 From: object worlds [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 8:42 AM
 To: [EMAIL PROTECTED]
 Subject: mesage message account 
 
 
 Did you take my message message account off the list ?
 Is that because that white shit Mark Galbreath
 said so and that shit Craig Mclanahan agreed.
 
 _
 Express yourself with cool emoticons - download MSN Messenger today! 
 http://www.msn.co.uk/messenger
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
I meant getting a web application certified

-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 9:59 AM
To: Struts Users Mailing List
Subject: RE: J2EE certified



Amin

 You can take the SCWCD (Sun Certified Web Component Developer),
its for JSP and Servlets. You have to have
JCP to take this exam.

Raghu

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:02 AM
To: [EMAIL PROTECTED]
Subject: J2EE certified


A colleague mentioned to me something about getting J2EE certified. I
could only find getting an application server certified not the
application. Anyone knows how to get a web application J2EE certified or
is there a certification for Java web apps?
 
Amin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
A colleague mentioned to me something about getting J2EE certified. I
could only find getting an application server certified not the
application.
Anyone knows how to get a web application J2EE certified or is there a
certification for Java web apps?
 
Amin


RE: J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
Struts is the de facto framework for J2EE. Does this mean my app using
Struts is J2EE certified? Or is the such a thing as J2EE certified web
app.

Plus, not all question on the list are about struts

-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 10:03 AM
To: 'Struts Users Mailing List'
Subject: RE: J2EE certified

So where's the Struts question?

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 August 2003 2:01 p.m.
To: 'Struts Users Mailing List'
Subject: RE: J2EE certified

I meant getting a web application certified

-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 9:59 AM
To: Struts Users Mailing List
Subject: RE: J2EE certified



Amin

 You can take the SCWCD (Sun Certified Web Component Developer),
its for JSP and Servlets. You have to have
JCP to take this exam.

Raghu

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:02 AM
To: [EMAIL PROTECTED]
Subject: J2EE certified


A colleague mentioned to me something about getting J2EE certified. I
could only find getting an application server certified not the
application. Anyone knows how to get a web application J2EE certified or
is there a certification for Java web apps?
 
Amin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : RE : Log4j Warnings

2003-08-14 Thread Mohd Amin Mohd Din
It's not working. Any sample or doc that could be read?

-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 2:45 PM
To: 'Struts Users Mailing List'
Subject: RE : RE : Log4j Warnings



THIS:
###
log4j.properties has this
log4j.rootLogger=DEBUG, stdout, file
 
# stdout appender (a carrier return here)
log4j.appender.stdout=org.apache.log4j.ConsoleAppender 
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 
log4j.appender.stdout.layout.ConversionPattern=[%c] %p: %m%n
 
# file appender (a carrier return here)
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=PostGraduate.log
log4j.appender.file.MaxFileSize=1MB 
log4j.appender.file.MaxBackupIndex=2 
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
###
Laurent.


-Message d'origine-



De : Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 14 août 2003 08:19
À : [EMAIL PROTECTED]
Objet : Log4j Warnings


Hi,
 
I'm getting log4j warnings aftering moving to struts 1.1
 
log4j:WARN No appenders could be found for logger
(org.apache.struts.util.Proper tyMessageResources). log4j:WARN Please
initialize the log4j system properly.
 
commons-logging.properties file has this
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogg
er
 
log4j.properties has this
log4j.rootLogger=DEBUG, stdout, file
 
# stdout appender log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 
log4j.appender.stdout.layout.ConversionPattern=[%c] %p: %m%n
 
# file appender log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=PostGraduate.log
log4j.appender.file.MaxFileSize=1MB 
log4j.appender.file.MaxBackupIndex=2 
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
 
any help is greatly appreciated
 
Amin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OT: J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
Simple question, is there or is there not a certification for a J2EE web
app?

Struts question,

I'm getting this error, nothing else. In tomcat, there's the Servlet
action is currently unavailable error. Any ideas?
--- error 
javax.servlet.UnavailableException: Parsing error processing resource
path 
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.java:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1014)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
- snip -

Amin

-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 10:22 AM
To: Struts Users Mailing List
Subject: Re: J2EE certified

J2EE encompasses a lot more than just a web application.  JMS, EJB, XML
processing/manipulation, SOAP, CORBA / IDL, JavaMail.. just to begin
with.


- Original Message -
From: Mohd Amin Mohd Din [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 9:14 PM
Subject: RE: J2EE certified


 Struts is the de facto framework for J2EE. Does this mean my app using
 Struts is J2EE certified? Or is the such a thing as J2EE certified web
 app.

 Plus, not all question on the list are about struts

 -Original Message-
 From: Shane Mingins [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 14, 2003 10:03 AM
 To: 'Struts Users Mailing List'
 Subject: RE: J2EE certified

 So where's the Struts question?

 -Original Message-
 From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 14 August 2003 2:01 p.m.
 To: 'Struts Users Mailing List'
 Subject: RE: J2EE certified

 I meant getting a web application certified

 -Original Message-
 From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 14, 2003 9:59 AM
 To: Struts Users Mailing List
 Subject: RE: J2EE certified



 Amin

  You can take the SCWCD (Sun Certified Web Component
Developer),
 its for JSP and Servlets. You have to have
 JCP to take this exam.

 Raghu

 -Original Message-
 From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2003 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: J2EE certified


 A colleague mentioned to me something about getting J2EE certified. I
 could only find getting an application server certified not the
 application. Anyone knows how to get a web application J2EE certified
or
 is there a certification for Java web apps?

 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log4j Warnings

2003-08-14 Thread Mohd Amin Mohd Din
Hi,
 
I'm getting log4j warnings aftering moving to struts 1.1
 
log4j:WARN No appenders could be found for logger
(org.apache.struts.util.Proper
tyMessageResources).
log4j:WARN Please initialize the log4j system properly.
 
commons-logging.properties file has this
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogg
er
 
log4j.properties has this
log4j.rootLogger=DEBUG, stdout, file
 
# stdout appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender 
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 
log4j.appender.stdout.layout.ConversionPattern=[%c] %p: %m%n
 
# file appender
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=PostGraduate.log
log4j.appender.file.MaxFileSize=1MB 
log4j.appender.file.MaxBackupIndex=2 
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
 
any help is greatly appreciated
 
Amin


RE: J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
I guess since it is only verifying the war/ear, the thousands $$$ are
not worth it. Plus, less than 10 products are j2ee verified (
http://java.sun.com/j2ee/verified/thirdparty.html ). 

I was 'told' by a colleague to get my app 'J2EE certified'. Never heard
of a web application getting certified which was why I asked it here,
since many j2ee experts are lurking in here. :)

Thanks for the responses.

Amin

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 5:16 PM
To: Struts Users Mailing List
Subject: Re: J2EE certified

Ah, you meant verified, not certified! Well why didn't you say? ;)

I guess Sun have to make money somehow - although at a charge of 15 
grand per year, I think I'll skip the Verified Designation for my j2ee
app.




On 08/14/2003 05:52 AM Thamarajah Dharma wrote:
 http://java.sun.com/j2ee/verified/avk_enterprise.html
 
 
 
 
-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 8:26 AM
To: 'Struts Users Mailing List'
Subject: OT: J2EE certified


Simple question, is there or is there not a certification for 
a J2EE web
app?

Struts question,

I'm getting this error, nothing else. In tomcat, there's the Servlet
action is currently unavailable error. Any ideas?
--- error 
javax.servlet.UnavailableException: Parsing error processing resource
path 
  at
org.apache.struts.action.ActionServlet.handleConfigException(A
ctionServl
et.java:1035)
  at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(A
ctionServl
et.java:1014)
  at
org.apache.struts.action.ActionServlet.initModuleConfig(Action
Servlet.ja
va:955)
  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
- snip -

Amin

-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 10:22 AM
To: Struts Users Mailing List
Subject: Re: J2EE certified

J2EE encompasses a lot more than just a web application.  
JMS, EJB, XML
processing/manipulation, SOAP, CORBA / IDL, JavaMail.. just to begin
with.


- Original Message -
From: Mohd Amin Mohd Din [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 9:14 PM
Subject: RE: J2EE certified



Struts is the de facto framework for J2EE. Does this mean 

my app using

Struts is J2EE certified? Or is the such a thing as J2EE 

certified web

app.

Plus, not all question on the list are about struts

-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:03 AM
To: 'Struts Users Mailing List'
Subject: RE: J2EE certified

So where's the Struts question?

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Thursday, 14 August 2003 2:01 p.m.
To: 'Struts Users Mailing List'
Subject: RE: J2EE certified

I meant getting a web application certified

-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 9:59 AM
To: Struts Users Mailing List
Subject: RE: J2EE certified



Amin

 You can take the SCWCD (Sun Certified Web Component

Developer),

its for JSP and Servlets. You have to have
JCP to take this exam.

Raghu

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 11:02 AM
To: [EMAIL PROTECTED]
Subject: J2EE certified


A colleague mentioned to me something about getting J2EE 

certified. I

could only find getting an application server certified not the
application. Anyone knows how to get a web application J2EE 

certified
or

is there a certification for Java web apps?

Amin



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -
 To unsubscribe, e-mail: [EMAIL

RE: DynaActionForm BUG?

2003-08-08 Thread Mohd Amin Mohd Din
For info,
Just changed struts.jar to 1.1 ( not beta ). Everything works fine

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2003 10:45 PM
To: [EMAIL PROTECTED]
Subject: DynaActionForm BUG?

Hi,
 
I have a big form with a number of multibox tags. It seems that there
are mixup of data from one multibox to another. Is this a documented bug
or  does it have to do something with jvm or tomcat? I have tried on
solaris and windows xp both environments seem to have the same problem
 
Thanks
Amin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: DynaActionForm BUG?

2003-08-04 Thread Mohd Amin Mohd Din
Hi,
 
I have a big form with a number of multibox tags. It seems that there
are mixup of data from one multibox to another. Is this a documented bug
or  does it have to do something with jvm or tomcat? I have tried on
solaris and windows xp both environments seem to have the same problem
 
Thanks
Amin


DynaActionForm BUG?

2003-08-04 Thread Mohd Amin Mohd Din
Hi,
 
I have a big form with a number of multibox tags. It seems that there
are mixup of data from one multibox to another. Is this a documented bug
or  does it have to do something with jvm or tomcat? I have tried on
solaris and windows xp both environments seem to have the same problem
 
Thanks
Amin


RE: Working visual on presentation layer

2003-07-22 Thread Mohd Amin Mohd Din
Me too want it!

-Original Message-
From: Kurt Post [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 11:03 PM
To: Struts Users Mailing List
Subject: RE: Working visual on presentation layer

No problem.  If you need to make any changes for MX compatibility,
please
send me a copy so I can integrate them.

-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:30 AM
To: 'Struts Users Mailing List'
Subject: RE: Working visual on presentation layer


Kurt,

Could you also bounce me your extension?  Our JSP developers are using
Dreamweaver MX, if there are issues with compatibility, I'm sure we will
be
able to make the appropriate modifications.  Many thanks!

Jacob Hookom
Senior Analyst/Programmer
McKesson Medical-Surgical
Golden Valley, Minnesota
http://www.mckesson.com

-Original Message-
From: Kurt Post [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 9:32 AM
To: Struts Users Mailing List
Subject: RE: Working visual on presentation layer

If you are using Macromedia Ultradev I might have an answer for you.

When I started working with Struts a couple of weeks ago, the first
thing I
did was whip up a crude Ultradev extension for Struts.  The extension
allows
you to see struts tags in the design view as their corresponding HTML
elements, insert common Struts tags from the insert menu and convert
standard HTML form tags to their corresponding struts tags.  This
extension
doesn't require that you be in the live data mode so there is no real
setup
required to use it.

The extension could use allot of improvement, but its good enough for
what I
wanted.  The extension doesn't do a very good job with html:select
tags
now, but I plan to fix this pretty soon.  If I get some spare time there
are
allot of nice features I would like to add to it.

I would be glad to email you the extension if your want to give it a
try.  I
am using Ultradev4 so I'm not sure how/if the extension will work on
DreamWeaver MX.

-Original Message-
From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 3:04 AM
To: 'Struts Users Mailing List'
Subject: Working visual on presentation layer


Hi,


If i give jsp page to a web designer, how can she/he can see the actual
web objects ?

For example  if i wrote a simple web application using struts, i have to
put custom tags into this JSP page

Logon.jsp

***
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %

Logon with username test and password test.br /br /
form:form action=logon.do

  Username: form:text property=username /br /

  Password: form:password property=password /br /

 form:submit value=Logon /

/form:form

***

When the web designer opens this JSP page using Macromadia DreamViewer
(also import custom tags) he/she doesn't see the web objects (text box,
checkbox, submit button),
Are there any way or any tool to work visual on presentation layer while
developers use Struts on backend?

Regards.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: question on heavy load website design using struts

2003-07-18 Thread Mohd Amin Mohd Din
You could try Oracle Real Application Clusters or Dataguard

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 5:16 PM
To: Struts Users Mailing List
Subject: Re: question on heavy load website design using struts

No problem, I'll be patient. I just want my boss to stop saying Oracle
replication each time we get load-ballancing
needs.

Nico.



 Sure! Only a little bit patience,please.It may take me
 one or two weeks to go over the test.I used to meet a
 problem on container managed security using jboss
 cluster.That is,jboss'clusterring feature works fine
 except when I use declarative security model to
 protect my page,the authenticated principal will not
 get replicated across the members in the cluster.At
 this time,I want to find a work around to that too.

 Again,thaks for your info.

 Guo Yingshou
  --- Nicolas De Loof [EMAIL PROTECTED]
  Please could you send me feedback if you
 experiment
  this jdbc-cluster-driver ?
 
  Nico
 
 
 
   Nico,
  
   Great! That is exactly what I'm looking for.Maybe
  I'll
   have some hard time to setup a testing environment
  and
   write some code to see what will happen.
  
   Thanks a lot!
  
   Guo Yingshou
  
--- Nicolas De Loof [EMAIL PROTECTED]
You could look at this :
   
http://c-jdbc.objectweb.org/
   
this intermediate JDBC driver allow you to
  cluster
databases. Notice I never used it, use it at
  your
own risk ;-)
   
Nico.
   
   
 Hi,

 I am sure that someone here must have worked
  on a
 large website with heavy load using struts and
  I
 wonder if you'll be kindly enough to give me
  some
 suggestions in this occasion.

 I am using tomcat+jboss as application
  server.I
have
 setup several tomcat_jboss instances in a
  cluster
 environment and of course I use struts in my
 application.HttpSession created in one
  instance
will
 get replicated across all members in the
cluster.It's
 just what I want.The problem is how should I
connect
 the app servers with the backend db server(s)?
  If
I
 use only one db instance,all app server can
connect to
 it without any problem,but here lies the
bottleneck.I
 want to use several db instances(preferrably
 mysql).How can I do that?

 Thanks in advance!

 Guo Yingshou


   
  
 
 _
 Do You Yahoo!?
 

   
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html


   
  
 
 -
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
  
 
 _
   Do You Yahoo!?
   
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 

 _
 Do You Yahoo!?
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where to build dropdown lists?

2003-07-15 Thread Mohd Amin Mohd Din
Need help here too.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 4:52 PM
To: [EMAIL PROTECTED]
Subject: Where to build dropdown lists?

Sorry if this is a stupid question, but any help is much appreciated!

I have some drop down lists that I populate in my action class, which
means I call myPage.do each time. This was working nicely, until I tried
adding some validation. If this fails the action class is not called and
then when the page tries to find the bean containing the list for the
drop down it does not exist! Previously we built the lists in the reset
function in the form class, but I was wanting to move all the code out
of here with the idea of using the dyna forms.

So I was wanting to know, is my only option to build my dropdowns as
part of my reset functions?

Thanks for any help
IV


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation using Validator java beans issue

2003-07-13 Thread Mohd Amin Mohd Din
Hi,
 
Having a snag using Validator, DynaValidatorForm and simple java beans.
An overview of the current application my team is currently building; We
use 2 Action classes for one jsp if the jsp has a html form in it else
we use 1 Action. Example, for changePassword.jsp we have
ChangePasswordSetupAction class which populates or do something to the
form before displaying it to the user. The form action of
changePassword.jsp points to ChangePasswordAction class which gets data
from changePassword.jsp form and does something with all the data. In
ChangePasswordSetupAction, we pass a bean containing info which is kept
as hidden field in changePassword.jsp. The fields in changePassword.jsp
are already specified in the form-bean section.
 
We have already done the application as a prototype and are now
inserting validation code into it. After validation is specified in
validation.xml for the changePassword form, the page can be viewed but
when testing for validation, example, leaving a field blank when it
should be filled, generates an error saying that it can't find the bean.
This happens when the bean is passed in a request, but everything is ok
when it is passed in a session.
 
The application has many pages, putting all the beans into a session
might cause performance degradation. Is there anyway this thing can be
solved by not putting the beans into a session?
 
-Amin