Re: [OT] Java as a Daemon

2005-07-15 Thread Duncan Mills
Yes as Daniel mentioned you can access the objects in a remote database 
using a database link. Select * from [EMAIL PROTECTED] kind of thing. The 
two databases can also take part in a co-ordinated transaction if needs 
be as well.

Duncan

Richard Reyes wrote:


Hi Duncan,

Will there be a way that the source DB access the target directly?
Because right now these DB's are accessed via web services Im thinking
if the source DB can directly connect to the target DB.

Also these procedural package, can they send notification emails?

On 7/14/05, Duncan Mills <[EMAIL PROTECTED]> wrote:
 


Indeed the Oracle Database itself has a DBMS_JOB procedural package
which acts just like Cron in the database - so that provides another way
to tackle the problem - On the other hand  the Oracle database also has
a whole set of replication features which are designed for syncing data
between databases instances in realtime if necessary - have a serious
look at these built-in functions of the database infrastructure before
you build something new to do the same job.

Duncan

Jesse Alexander (KBSA 21) wrote:

   


Hi

(Warning: not an Oracle insider...)

If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be "communicated". And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:53 AM
To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file
- a java application running as a daemon on a unix box

But I really am not sure which better path I should take. Any
suggestions would be very much appreciated.

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]



     


--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[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: [OT] Java as a Daemon

2005-07-14 Thread Duncan Mills
Indeed the Oracle Database itself has a DBMS_JOB procedural package 
which acts just like Cron in the database - so that provides another way 
to tackle the problem - On the other hand  the Oracle database also has 
a whole set of replication features which are designed for syncing data 
between databases instances in realtime if necessary - have a serious 
look at these built-in functions of the database infrastructure before 
you build something new to do the same job.


Duncan

Jesse Alexander (KBSA 21) wrote:


Hi

(Warning: not an Oracle insider...) 


If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be "communicated". And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 14, 2005 3:53 AM

To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file 
- a java application running as a daemon on a unix box


But I really am not sure which better path I should take. Any
suggestions would be very much appreciated.

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]

 



--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]


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



Re: anyone else pass their ActionForm off to another (layer) helper

2005-07-13 Thread Duncan Mills
Back to the (rephrased) question - The Oracle ADF framework uses a twist 
on the DynaForm idea.  There is (generally) only one ActionForm in an 
Application which is configured at runtime based on an XML bindings file 
which describes exactly what data is required for this particular page. 
The binding file is in the format proposed by JSR-277 
<http://www.jcp.org/en/jsr/detail?id=227> and acts as the abstraction 
between the model and the view. The view layer  is ignorant of what the 
actual source of the data for the form is, be it EJB, a WebService, 
TopLink,  a POJO or whatever. The JSR 227 metadata describes and service 
in the common terms of available collections and methods. The 
implementing framework handles the resource management and DTO 
functionality between the layers.
To the page programmer the data  for the page is just made available on 
the request as a "bindings" object and can be accessed through JSTL or 
Struts Tags. Likewise the service coder is ignorant of the consumer of 
the data.  The JSR-227 bindings are the same across multiple UI's Swing, 
JSP/Struts and JSF and the UI developer's  gestures for consuming data 
in the IDE are identical in each case.
Not everyone's cup of tea I know but it does remove a huge amount of 
boilerplate plumbing from code.


Duncan

Rick Reumann wrote:


Rick Reumann wrote the following on 7/12/2005 11:45 AM:

One thing I didn't bring up, though, because I'm not sure how 'best 
practice' it is, is the concept of passing your ActionForm and 
sometimes the HttpServletRequest off to another class for some 
processing.  




Just realized, thanks to Dave pointing it out, that I DID NOT MEAN 
another 'layer' in the sense of a design layer as in the "model" or 
"view". Layer was a very, very, very poor term to use.


I sure hope people don't think I was advocating passing struts objects 
to the model *layer* or anything along those lines.


I should have restated the subject as "How often do you create Helper 
classes that your Actions use" or something along those lines.


Sorry for all the confusion. (Wish I could go back an edit the subject 
heading:)




--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Re: Anyone going to JavaOne!

2005-06-26 Thread Duncan Mills
Right the presentation should be posted up - although you can follow a 
lot of my adventures with this stuff on the GroundBlog as well.

www.groundside.com/blog
Duncan

David G. Friedman wrote:


Duncan,

Will a link to this presentation be posted to the Wiki (or this list)
sometime after you present?  I find the topic interesting, especially since
I'm probably going to the Boston JUG in August to learn why Spring is
supposed to be such a big deal. :)

Regards,
David


-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 26, 2005 12:40 PM
To: Struts Users Mailing List
Subject: Re: Anyone going to JavaOne!


Going and Speaking:
TS-5068 - Spring and JavaServer™ Faces Technology: Synergy or Superfluous?
I'll also be around at Van's BayChi event

Duncan
http://www.groundside.com/blog



Richard Yee wrote:

 


Anyone on the list going to JavaOne?

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

 



--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Re: Anyone going to JavaOne!

2005-06-26 Thread Duncan Mills

Going and Speaking:
TS-5068 - Spring and JavaServer™ Faces Technology: Synergy or Superfluous?
I'll also be around at Van's BayChi event

Duncan
http://www.groundside.com/blog



Richard Yee wrote:


Anyone on the list going to JavaOne?

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



Re: Oracle 10g and 'forward with redirect'

2005-06-07 Thread Duncan Mills
Michael, are you in a clustered environment here or is it a single OC4J 
instance?

Duncan

Michael Rasmussen wrote:


I am working with Oracle Application Server 10G (version 9.0.4.0.0
according to help) with an application using Struts 1.1.  We want to
use Struts' forward with redirect option, but have had intermittent
success.  Meaning, sometimes the forward re-direct will work and other
times it returns an http status of 400 (malformed url).  When we
receive the 400, we copy the url from our log file, paste it into the
url of a browser, press enter and it works every time.

When I worked at a previous client using WebSphere Application Server
with Struts 1.1, we had a similar problem.  In order to get it to work
with WAS, we had to add the following parameter to the "Environment
Options":  com.ibm.websphere.sendredirect.compliance=1

In the interim, we've traced through the Struts code to the following
statement, where upon executing it, our application blows up with an
http status of 400:
response.sendRedirect(response.encodeRedirectURL(url));

We copied this code into our program and of course it works just fine.

After searching the world over, or at least the www and coming away
empty,  Ideally, we'd like to be able to use Struts' forward with
redirect option, ActionForward(String path, boolean redirect), instead
of the response.sendR . . .  Does Oracle's app server require an
environment parameter similar to WAS to play nicely with Struts 1.1?
Basically, I'd like to know why the Oracle app server and Struts 1.1
are not cooperating with one another!


Thanks,
Michael

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



London JSF and Struts BOF

2005-05-05 Thread Duncan Mills
The Struts-London group are holding our 9th Birds of a Feather session 
at the Oracle offices in the City of London on Monday 9th.
The agenda this time will kick off with a brief session on Shale to 
follow on from our JSF introduction last time, followed by a discussion 
on what we're going to do to replace meetup.com now they want to charge us!

Afterwards we'll be heading out to some suitable establishment for a nosh.
Location:Oracle City Office 
<http://www.oracle.com/global/uk/corporate/locations/city.html> - One 
South Place, London
Time:7:00pm until 8:30 + networking and meal afterwards

Anyone is welcome to come along, but do let me know beforehand.
Duncan Mills
http://www.groundside.com/blog


[OT]Re: Possibly OT: JSF Facets

2005-05-04 Thread Duncan Mills
Facets are named children of a component.  You put something in a named 
slot and then the component actually takes care of how they gets laid 
out.  This means the component can control the look and feel of the 
layout and adapt to localization issues such as reading right to left.
It's a bit like Tiles really.

Duncan
http://www.groundside.com/blog
Martin Gainty wrote:
Good Evening to All
I am reading the spec on JSF and would like to know what facets are and 
when/where they are used
My apologies for the OT nature of this inquiry
Thanks,
Martin Gainty
 

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


[OT] BC4J

2005-04-12 Thread Duncan Mills
JPX files are the BCJ4 package XML definition files.  These must be 
packaged up in the application deployment, it may be you've just 
neglected to do that?
Given that this issue could get rather detailed you should post it over 
on the OTN forum (http://forums.oracle.com/forums/forum.jsp?forum=83)

Duncan Mills
http://www.groundside.com/blog
G V wrote:
Hi 

Anyone there to help me in Business components 4
java(BC4J)?
I am getting a error Common.jpx not found.how to solve
this?
vim
		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

-
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: Need Database Connectivity Advice

2005-04-11 Thread Duncan Mills
Depending on your feelings towards paying for an O/R mapping solution, 
there are two long established O/R mapping mechanisms from Oracle.

   * TopLink
 (http://www.oracle.com/technology/products/ias/toplink/index.html)
   * ADF Business Components
 (http://www.oracle.com/technology/products/jdev/index.html)
I'd recommend Business Components if you are from a relational 
background and tend to do your DB design up front and TopLink if the 
reverse is true and / or you don't have as much control as you'd like 
over the relational side and need more complex mapping capabilities.
Both frameworks handle pooling caching and so forth for you as you'd expect

With either framework you can integrate with Struts directly through 
code, or using the ADF Model framework 
 
handle UI binding and method invocation from Struts Actions declaratively.
It's worth running through the online tour 
 
to get an idea what it's all about in any case, more to illustrate the 
levels of productivity O/R mapping frameworks should aspire to if 
nothing else.

Duncan
http://www.groundside.com/blog
Scott Purcell wrote:
I am at a crossroads of information today, and could use some advice. Prior to 
using the Struts framework, I had a roll-your-own database pooling solution 
that of course required threads and Vectors of connections, etc. Upon the start 
of another new project, I found myself Friday trying to figure out how to use 
the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. 
I had some trouble Friday and over the weekend, getting all configured. And 
when I did get it work work by their simple example, I ended up connecting in a 
JSP page, and that is not what I want.
So reflecting to my book OReilly/Struts, I noticed that they use a database 
persistance product. Something called ObjectRelationalBridge, and use it with 
some design patterns that I am having trouble following. I would like to 
possbily go this route, but I am confused at the Factory references, etc. I 
don't know why I am having trouble understanding this, but I am.
I had the weekend to try and get my bearings on how to start this new web-app, 
and build it so I can war up and host at an ISP. I figured each user on this 
list probably already connects, and has some great ideas to throw my way.
I could really use some advice, on selecting the correct, both easy to use, and 
reusable in the future solution for my connectivity dilemma. The reason I found 
DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, 
using JSTL commands, and I really do not want to connect in JSP pages.
I would really appreciate any input, advice, links, how to advice, etc.
Sincerely
Scott K Purcell

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



Re: jsf] RE: [REFERENDUM] Struts is a Community

2005-04-11 Thread Duncan Mills
[EMAIL PROTECTED] is also active, but not to the extent of 
the MyFaces user list.

Duncan
http://www.groundside.com/blog
[EMAIL PROTECTED] wrote:
Hi
Is there any other "real" list than MyFaces :)
Hermod
-Original Message-
From: Jesse Alexander (KBSA 21)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 2:48 PM
To: Struts Users Mailing List
Subject: [OT: jsf] RE: [REFERENDUM] Struts is a Community
which  JSF list?
the myfaces-list or another one? (I follow myfaces, because sun offers
only 
a rather unfriendly forum...)

Alexander
(promoting Struts until I got JSF ready for our people ;-) )
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 2:20 PM
To: user@struts.apache.org
Subject: RE: [REFERENDUM] Struts is a Community

Hi
Nag Nag - Have you followed the JSF list lately ?
Hermod
(A great fan of Struts - and lately also JSF/Shale)
-Original Message-
From: Jesse Alexander (KBSA 21)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 11:02 AM
To: Struts Users Mailing List
Subject: RE: [REFERENDUM] Struts is a Community
First of all: Happy Birthday Ted (maybe a bit late, but I read the
Struts mailinglist only in the office because of its hig volume)

Is Struts a product?
- If products means that it is marketed: I do not have the feeling
- If product means something like MS Office: thank god it is not...
-> rather not
Is Struts a community?
- a community should mean people helping people
 - in a technical problem: Struts (and this mailing list): definitely
true
 - getting a good start in the weekend: Struts definitely is that (all
   thos wonderfull OT - friday - beer threads. They get you in a good
cheerfull mood ;-)
 - in defficult times (eg. job-loss): the growing list of Struts-jobs
means: 
   definitely true
- A community keeps you hooked on to it, even if some reasons why you
joined it, are not 
 true anymore: definitely true (I work now on establishing a
JSF-infrastructure for
 our company, but I CANNOT unsubscribe this mailing list: too many
usefull bits of info
 and I would miss this example of a good "company")

For me this means 
+indefinitely (>1) Struts is a community!!!

regards
Alexander
PS: I WISH something similar could happen to JSF ;-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR
Group
cannot accept any payment orders or other legally binding correspondence
with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
-
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: [OT]Tool to find amount of data transfered in web application

2005-04-08 Thread Duncan Mills
I'd use a packet sniffer like ethereal (www.ethereal.com) . Its free 
under the GNU license and tremendously powerful.  You should be able to 
use it to measure both HTTP and Telnet traffic.  The only problem I have 
with it is the amount of stuff it captures, fortunately it has 
sophisticated filtering so you can limit it to Just your application 
endpoint for instance.

Duncan
http://www.groundside.com/blog
Ashish Kulkarni wrote:
Hi
I need this tool to find out the bandwidth used when
using a green screen (clinet access) application and
bandwidht when using web application
Ashish
--- "Fogleson, Allen" <[EMAIL PROTECTED]>
wrote:
 

You might check out jmeter
(http://jakarta.apache.org/jmeter/index.html)
it might be able to do what you want. Don't remember
off the top of my
head if it includes bandwidth reports but I think it
does.
Al
-Original Message-
From: Ashish Kulkarni
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 9:46 AM
To: user@struts.apache.org
Subject: [OT]Tool to find amount of data transfered
in web application

Hi
I have to make a report to display amount of data
transfered when using a web application, to find out
if it will work in existing networking (Intranet)
and
there are no band width issues,
Is there a open source tool which will tell the
amount
of data transfere in Intranet when accessing a web
site from client browser machine
Ashish
		
__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second
dates. 
http://personals.yahoo.com


   

-
 

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!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Right, this is more or less what I've gone for in the end, but the 
managed bean I'm creating was not referenced directly in the page, and 
it would have been a little artificial in that case to put it in. 
So I've resorted to a createValueBinding in the Shale init() method 
which bootstraps the bean, along with the specified managed properties 
from the faces-config and then populates it correctly.  I had so simply 
add a flag to the parent object to not do the post-processing on 
subsequent invocations.

Duncan
Craig McClanahan wrote:
A technique I like (and is actually used in the Use Cases example) is
to make your reference data into an application-scoped managed bean
(for stuff common to all users; use session scope if it is user
specific).  Then, the first use of a value binding that needs to load
the reference data will cause it to happen (via the managed beans
facility).
For example, there is a "select many" component listing available
categories on (among others) the logon/profile3.jsp page:
 
   
 
The "domains" bean is an application scoped managed bean that (for the
simple lists) has a getter for each one.  The contents of the list can
be composed with literal Java statements (as was done here for
simplicity), loaded from a database or web service call, or whatever
you need.
For extra credit, you can hook up JSF-Spring and use Spring's
mechanisms to configure the managed bean for you.
Craig
On Fri, 18 Mar 2005 10:21:47 +, Duncan Mills
<[EMAIL PROTECTED]> wrote:
 

Fellow Shale'ers,
Given the scenario when you have reference data to set up, say on the
application, which is not dependent on a particular view, but which must
be put in place before the first view is displayed, and given that there
is no single entry point for the app, what approach would you take?
What I'm currently doing is inserting a custom command into the Shale
preprocess chain . This works OK, however, I'm "distressed" by the fact
that I can't save the relevant state using a valueBinding because at the
point in time the Chain command is first executed there is no
FacesContext.  So instead I have to set the application attributes
directly.
Plan B would be to do the same setup in a common superclass of
viewController which will have access to a valid FacesContext, however,
I'd rather keep this general setup logically away from the per page
setup. Does anyone have any other ideas?
Duncan Mills
http://www.groundside.com/blog
-
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]


[Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Fellow Shale'ers,
Given the scenario when you have reference data to set up, say on the 
application, which is not dependent on a particular view, but which must 
be put in place before the first view is displayed, and given that there 
is no single entry point for the app, what approach would you take?

What I'm currently doing is inserting a custom command into the Shale 
preprocess chain . This works OK, however, I'm "distressed" by the fact 
that I can't save the relevant state using a valueBinding because at the 
point in time the Chain command is first executed there is no 
FacesContext.  So instead I have to set the application attributes 
directly.
Plan B would be to do the same setup in a common superclass of 
viewController which will have access to a valid FacesContext, however, 
I'd rather keep this general setup logically away from the per page 
setup. Does anyone have any other ideas?

Duncan Mills
http://www.groundside.com/blog
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Eliminate Setup Actions

2005-03-09 Thread Duncan Mills
An extension of the approach here is what we so with the Oracle ADF 
framework, namely that of associating a metadata XML file with the 
Action which drives the runtime framework to prepare the bindings for 
the page.  So this is taking the whole declarative thing that much 
further by basically pushing all back end access into JSR 227 compliant 
data bindings.

Duncan
Frank W. Zammetti wrote:
More (application-level) code isn't needed... it's just a question of
making it declarative rather than programmatic, which is how so much of
Struts already is.
Here's an example from the example app posted to the Bugzilla ticket I
referenced (ticket # 33935 if you want to download it and try it)...
I wrote a class SetupClass1.  It contains three methods, setupMethod1(),
setupMethod2() and setupMethod3() (I don't win any contests for creative
naming today!).  Now... let's say that setupMethod1() reads from a
database and creates an ArrayList that is used to populate a dropdown. 
Let's further say that this dropdown is on a couple of pages in the app. 
Clearly it makes sense to have this "setup" code in a separate class.

Now, as you were saying, you could just use this class from the Actions
manually, that works fine, and plenty of people do that.  But, it's extra
code, and redundant code if used in more than one Action, even if the
redundant code amounts to:
SetupClass1.setupMethod1(request);
(assuming its a static method).
Instead, my proposal, and what I posted to Buzilla accomplishes this, is
to allow this:

 
   
   
 
So now, whenever that forward is returned the method will be executed.  It
is passed request, so it does whatever it does, presumably sticks the
ArrayList in request as per the example, and everything else goes on as
before.  It's just a declarative approach to the programmatic solution.
Now, the code I submitted allows you to put the  element within
forwards as shown here (that's what I meant by at the forward-level).  You
can ALSO put it at the mapping level, and those items get executed BEFORE
execute() is called (as opposed to after, in the case of the forward-level
elements).  In addition, you can add s to global forwards just
the same.
 

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


Re: Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Duncan Mills
For Shale check out the WIKI:
http://wiki.apache.org/struts/StrutsShale
http://wiki.apache.org/struts/BuildingShale
Duncan
Simon Chappell wrote:
I need to pull a document together that lists the JSP and Servlet
versions required by each of the available versions of Struts, JSF and
Shale.
I have looked all over the Struts website and wiki, but I'm not
finding what I'm looking for. Can anyone help?
-
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: Is There a Tool for JSF?

2005-03-09 Thread Duncan Mills
Check out Oracle JDeveloper 10.1.3 preview - you can download that for 
free from
http://www.oracle.com/technology/software/products/jdev/index.html
This has both Struts and JSF visual modeling as well as JSP WYSIWYG 
editing.
( And no you don't need Oracle Application Server or database to use it 
:-)  )
Duncan

Caroline Jen wrote:
There are many tools that help developing the Struts;
for example, EasyStruts, StrutsConsole, StrutsBox.
We also have the NitroX, Lomboz, etc. that help
debugging.
Is there any tool available for JSF?
	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
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: Here's a question for yous...

2005-03-03 Thread Duncan Mills
David - I was going to give a run through on Shale at the Struts London 
Meetup <http://struts.meetup.com/4/> on the 15th I appreciate you may 
not be able to make it but I'll post the sides up somewhere after the 
event and push that into the Wiki.

Duncan Mills
http://www.groundside.com/blog
David G. Friedman wrote:
Craig,
Is there a tutorial or walk-through explaining Shale?  I didn't see that in
the nightly download.  I have no clue about JSF and skimming through the
Shale code made little sense to me (at this time).  I.E. Conceptually, I'm
interested but programmatically, it's still over my head for some reason (I
could just be in the wrong place whenever I go look at it).
Regards,
David
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:31 AM
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: Re: Here's a question for yous...
On Tue, 01 Mar 2005 00:52:07 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
 

I sometimes wonder if we (the generic we I mean) don't sometimes think
at too high a level... We try to build so much flexibility into our
designs, but every time I hear "a new API" or "a new interface" or
"another abstraction layer" or any of those somewhat similar terms (you
know, the ones spewed forth by enterprise architects ad nauseum!), I
wonder if the cost of the added flexibility isn't too high in terms of
overall complexity.
   

I can appreciate that feeling.  That's why Shale is focused on
(compared to something like classic Struts) *reducing* the number of
abstractions you have to care about:
* No more configuration beans (so developers can configure properties
 on the equivalent of an  and have it do what they really
expected).
* No more form beans (JSF takes care of the reason form beans exist in the
 first place, but lets go further and combine the "form bean" and "action"
 concepts in a thread safe request-scope object, like WebWork does it,
 as well as take advantage of JSF's support for a basic IoC framework
 using the setter injection pattern).
* No more RequestProcessor or corresponding Chain implementation (the
 application developer should think solely about responding to view tier
 events, not how their code fits in to the "big picture".
Of course, there are still use cases where you need traditional "every
request flows through this pipe" sorts of control.  But the current
servlet API provides that for us (javax.servlet.Filter) -- there is no
longer any reason for an application framework to reinvent that sort
of thing.
Craig
-
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: Struts Studio

2005-02-11 Thread Duncan Mills
To play the other side of the argument, with all due respect to Frank)  
I'm a whole hearted supporter of IDE tools for Struts  like Exadel or 
Oracle JDeveloper 
<http://www.oracle.com/technology/products/jdev/index.html>.  For 
several reasons:
1) My team builds one - so I'll declare an interest there
2) Diagrammers & IDEs can give you a real kick start to learning the 
absolute basics of Struts, there's nothing more frustrating than failing 
to get a simple two-page flow working simply because you've made an 
error in the web.xml, or your editor doesn't validate the Struts config 
against the DTD.  People get put off before they've even got started.  
However, the big BUT here, is that the tool must help you, but not get 
in your way.  If you want to hack the XML then it better let you do so.
3) I actually feel that page flow diagrams are a useful tool, both for 
documentation and for requirements gathering.
4) A good way to learn is to draw and then see what the tool has done 
for you.

This all being said, an IDE can really only help you with the basics of 
Action mappings and configurations. So you're going to have to get dirty 
at some point although I'd probably stop at downloading the Struts 
source and not reach for my copy of Peter Norton's Guide to x86 
Assembler :-) 
The real fun comes later with that pesky data, but  that's a whole 
separate topic.
My 2p

Regards
Duncan Mills
www.groundside.com/blog

Frank W. Zammetti (MLists) wrote:
To answer your question, no, I haven't used it.  But, since you are new to
Struts, I'd actually caution against using such a tool.
As a general rule, I believe it is better to do things manually by hand
when you are new to them.  I think you will get a better understanding of
how everything works that way.  Then, later on, you can use the tools that
make the more mundane tasks easier and quicker.
I've always felt that the best developers I've ever known, by and large,
were better at least in part because they knew Assembly to some degree
(even if they haven't actually coded in Assembly for a long time, like
me).  I think it helps you when you start working at a high level to know
what's going on "under the covers", to at least some degree.  There are of
course plenty of exceptions everyone could point out to this, but I
generally feel this is true.  The same holds true for IDEs and code
generators and any tool that takes some of the coding work away from you.
Just one man's opinion anyway.
 



Re: [OT] Identify web user in intranet

2005-02-11 Thread Duncan Mills
You could always write a Java applet that inspects the machine in some 
way and launches the correct page in the browser. I assume that, in this 
case the machines don't get moved much, so a simple configuration file 
could be used to indicate the correct location.
Unfashionable as they are, applets do have their uses.

Regards
Duncan Mills
http://www.groundside.com/blog

Ashish Kulkarni wrote:
Hi
thanx for the mail, here is my problem we have
machines installed on different floors of building,
and we have to design a web page which will give floor
plan and display it on that machine browser, so if the
machine is on 4th floor we want to display the plan of
fourth floor, if the machine had static ip address
then i would have a cross reference table and make it
work, but since there is dynamic IP address, i cannot
do this..
how can we handle this situation, 

Ashish
--- [EMAIL PROTECTED] wrote:
 

There is the MAC address, but only if you are
connected to the same
switch/hub. Otherwise, it will fail because the MAC
address is usually the
one of the default gateway.
The big big problem is that almost everything can be
spoofed. IP address
can be spoofed (well at least the response never
arrives...), MAC address
can be spoofed, even cookies can be spoofed. In
fact, before writing this
email, I thought about setting a cookie on the
client machine, but:
1) maybe the client sometimes deletes all of his
cookies;
2) the cookie itself is insecure and can be spoofed.
In SSH (the Secure SHell, that permits secure remote
shells), both client
and server have criptography and electronic
signatures enabled, so that
the server is sure that the legitimate owner of the
private key is the one
who is communicating. But not in HTTP or at least in
normal HTTP.
The SET technology, usually used in money
transactions (but I have to say
I never saw that in action!), gives a certificate to
everyone: client,
seller and bank.
Anyway, these technologies identify THE PERSON and
not THE MACHINE because
you can simply copy certificates and key pairs on
another machine (though
usually, except of extreme cases of stupidity, the
one which does such a
thing is the legitimate owner).
Maybe you can rely on the header of HTTP request, to
see its OS,
machine,etc. But again it can be spoofed.
So I think the most viable way is to use SSL with a
login phase
(eventually with a cookie). To identify the agent,
you should analyze the
header of HTTP requests, hoping it is not spoofed,
but only for view
reasons (different page organizations, different
colours, etc.) because
relying on header of HTTP requests is pretty
dangerous.
I thought in this email that security is your main
problem. But if you
only want to display something different while a
user is on a different
machine, I think you should see Dimensions:
http://mutidimensions.sourceforge.net/
Hope it helps
Antonio Petrelli
Ashish Kulkarni wrote:
   

Hi
Is there any thing unique to identify the client
machine(desktop) other then IP address?
I have a situtation where in my intranet, i need to
identify the machine uniquely and do some
 

processing,
   

But the problem is that we dont haev static IP
address, but dynamic IP address.
I want to display a particular screen if the user
 

is
   

using a perticular computer or network node
Ashish
 


   

-
 

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


		
__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

-
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: Parse XML Files

2005-01-28 Thread Duncan Mills
For a good summary of the options check out the following Blog entry 
from Olivier Le Diouris
http://jroller.com/page/oliv/20050112

Regards
Duncan Mills

Nelson wrote:
Hi Guys,
I'm new to struts and JSP and need to parse and compare XML files. I 
know you can do this with JSTL tags, but wanting to stick to the 
struts framework, I want to seperate my business method from my JSPs. 
Is their a standard way of doing this in struts, maybe using JAXP, or 
should I stick to JSTL?

Thanks

-
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: how to integrate struts project with hibernate?

2005-01-27 Thread Duncan Mills
Metin,
I know someone who has integrated Hibernate with the ADFm DataBinding 
layer in JDeveloper.  So you can use Drag and drop databinding onto 
Pages and Struts Actions, in the same way you can bind to EJB, TopLink, 
ADF Business Components or WebServices.
If you're interested I'll send you what I can find offline.  Duncan dot 
mills at oracle dot com

Regards
Duncan Mills

Metin Erksan wrote:
hi
i try to integrate my struts project with hibernate.i
m newbie about hibernate.i use jdeveloper10g.
i googled but i found a few samples that use hibernate
plugin for struts .
is there any document or startup sample for
struts-hibernate?
at the beginning i searched for struts-spring
comparison but i couldnot find .i want to know
experienced users with hibernate.do they use hibernate
with struts or spring ? and why ?
i m at the beginning of project.
your sincerely
		
__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

-
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]Applet question, open in new JVM

2005-01-25 Thread Duncan Mills
Very Very Off Topic :-)
Generally the answer to this is you can't.  If you use IE you can 
configure it to start multiple IE processes, in which case both can have 
their own JVM's but that assumes control over the User's configuration 
which is not very sensible, and that the applets will be run in separate 
windows.  The other option is to cheat and use one JVM native, and the 
other as a plug-in - again not very satisfactory, and I've seen browsers 
crash doing that so probably not recommended.

So I think the solution is to revise the way you store the information 
don't you?

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]

Ashish Kulkarni wrote:
Hi
I was working on a Applet in which i had some static
methods in a class with some applet data, it was
working great untill i had to develop another applet
which uses these static methods, now the problem is
the data is getting mixed when i open both the
applets.
i want to know if i can open the second applet in new
JVM so it will be a different applet JVM, as if the
applet is from 2 different web sites
=
A$HI$H
		
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

-
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: [Vendor] Oracle JDeveloper 10.1.3 Preview version available

2004-12-06 Thread Duncan Mills
Derek,
Better co-existence with Tiles is something we'll have in the production 
version.  It's a feature that got dropped from the preview cut, the team 
had to get the JSF navigation modeller out of the door as a priority.

Regards
Duncan Mills

Derek Broughton wrote:
On Monday 06 December 2004 09:21, Duncan Mills wrote:
 

I'll bypass the fluff and get to the point - Oracle have just released a
preview (read beta) version of JDeveloper 10.1.3 for developers to have
a play with on OTN
(http://www.oracle.com/technology/products/jdev/101/index.html) .
The new features in this release are many and varied and fortunately
listed for me at:
http://www.oracle.com/technology/products/jdev/101/collateral/101/1013newfe
atures.html
But from the Struts point of view the key changes are
1) Support for multiple modules / diagrams within the same project
   

Nice.
 

2) Synchronized source control for the Struts configuration and the
diagram file that holds the visualization of it.
   

I _really_ hope it's doing a better job with tiles definitions.  I work mostly 
with Oracle, and have found JDeveloper to be a really useful tool.  So when I 
recently started using Struts, I used JDeveloper, even though I haven't found 
any good documentation about using the two together.  The one thing that's 
really annoying is that I can not use the diagram tool - any forward to a 
tiles definition, rather than a JSP file is treated as an error and deleted 
from the struts-config file!

 

3) As you edit validation of the Struts config against the DTD
   

Great!
 

I've created an on-line demo to wet appetites without incurring the
bandwidth to download the preview.
http://www.oracle.com/technology/products/jdev/101/viewlets/101/struts_new_
features_viewlet_swf.html
   

Thanks Duncan.  I'm looking forward to it.
 

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


[Vendor] Oracle JDeveloper 10.1.3 Preview version available

2004-12-06 Thread Duncan Mills
I'll bypass the fluff and get to the point - Oracle have just released a 
preview (read beta) version of JDeveloper 10.1.3 for developers to have 
a play with on OTN 
(http://www.oracle.com/technology/products/jdev/101/index.html) .
The new features in this release are many and varied and fortunately 
listed for me at:
http://www.oracle.com/technology/products/jdev/101/collateral/101/1013newfeatures.html

But from the Struts point of view the key changes are
1) Support for multiple modules / diagrams within the same project
2) Synchronized source control for the Struts configuration and the 
diagram file that holds the visualization of it.
3) As you edit validation of the Struts config against the DTD
4) Local change history for your code and configurations (as well as 
source control diffs)
5) (And the really cool one) Integration of Struts into the refactoring 
mechanisms.  So if you move or rename say a Form Bean class, then we'll 
(optionally) update your Struts XML as well.

Of course all the old stuff is still there, WYSIWYG JSP editor with live 
rendering of Struts and JSTL tags, ability to edit your Struts 
configuration through the Diagram, the raw XML or a Console with all 
views synchronized, and so on.

I've created an on-line demo to wet appetites without incurring the 
bandwidth to download the preview.
http://www.oracle.com/technology/products/jdev/101/viewlets/101/struts_new_features_viewlet_swf.html

One point to note, this preview actually is shipping with 1.1 of Struts 
still.  Production will be integrated with 1.2.6 (or whatever), but you 
can simply upgrade the preview to use a newer version if the fancy takes 
you  (See:  
http://www.oracle.com/technology/products/jdev/tips/mills/struts1_2.html)

Any questions just ask me.
--
Regards
Duncan Mills
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Validator question

2004-11-30 Thread Duncan Mills
It might be worth enabling logging on the digester classes to see what's 
happening on the XML.
I run validator using apps  with Struts 1.1 in OC4J with no problem so 
there's not a fundamental issue here.  Are you using OC4J inside 
JDeveloper or deploying to it from an external IDE? / Manually

Regards
Duncan Mills

Vinicius Caldeira Carvalho wrote:
Bill Siggelkow wrote:
Make sure you are using the latest release of Struts 
(http://struts.apache.org/acquiring.html).
In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator 
that caused this problem.

-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I'm trying to make my validator projetct work on oc4j 
(oracle 10g) and so far I got no success at all.
First thing that is really strange is that at deploy time the 
application runs it complains about some attributes being used but 
not declared: " XML-0149: (Error) Element 'arg0' used but not 
declared."
well this doesn't seem to be affecting the application though.

But when I submit a form that uses validation nothin happens, I'm 
submitted to a null page with this error on the stack:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, 
org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, 
javax.servlet.http.HttpServletRequest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627) 

   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557) 

   at 
org.apache.commons.validator.Field.validateForRule(Field.java:811)
   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at 
org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112) 

   at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) 

   at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) 

   at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) 

   at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) 

   at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 

   at java.lang.Thread.run(Thread.java:534)
No matter if I entered a value or not on the field:
here's my validation.xml


   
   
   
   
   
   
   


Any ideas?


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

well, problem is... I'm using struts 1.1 is this inconsitence present 
in this release as well?

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

2004-11-30 Thread Duncan Mills
The  element should appear above the   (& 
) elements in the config XML

Regards
Duncan Mills

Brij Naald wrote:
Hi,
I'm trying to work with a subclass of requestprocessor. Therefore I add
 in the 
struts-config.xml.
How simple this looks, it doesn't work.
When I add this line to the struts-blank config-file, the end of the 
file looks like this:


 
   
 
 ;

But when I start tomcat, it gives an exception (see ERROR 1). Note 
that line 203 column 17 isn't the controller-tag, but the  
 tag.
When I try to put it in another application I also get ERROR2.

What am i doing wrong?
thanks!


**
* ERROR 1 *
**
SEVERE: Parse Error at line 203 column 17: The content of element type 
"struts-config" must match "(display-name?,descri
ption?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plu 

g-in*)".
org.xml.sax.SAXParseException: The content of element type 
"struts-config" must match "(display-name?,description?,data-
sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)". 

   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java: 

236)
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) 

   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2048) 

   at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:932) 

   at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java 

:713)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML 

DocumentFragmentScannerImpl.java:1685)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne 

rImpl.java:368)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) 

   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) 

   at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) 

   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) 

   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:708) 

   at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670) 

   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) 

   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817) 

   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755) 

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

Re: [OT] different java versions in same project

2004-11-29 Thread Duncan Mills
I don't see that there will be an issue there - the Applet will run in a 
different JVM from the server side part of the application and you 
probably want to package it separately in any case as a stand alone JAR

Regards
Duncan Mills
http://www.groundside.com/blog

Ashish Kulkarni wrote:
Hi
Has anyone used 2 different versions of java in same
J2EE project.
I have a web project where i have a Applet which
displays data in graphs etc, this applet uses applet -
servlet communication to connect to database, 
What i want to try to do is develop all the servlets
and code running on application server using
J2SDK1.4.2 and the applet using J2sdk1.5 (5.0).
I cannot use java 1.5 for server side as i am using
app server which does not support it, but i want to
use java 1.5 to get latest abilities in Swing.
I see a potential problem with class compiled in
different versions,
I populate data in java class and send this class to
applet which reads data from these classes and do the
plotting
Any suggestions
Ashish

		
__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

-
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: Applicaton-specific logging in Struts

2004-11-26 Thread Duncan Mills
It's also worth checking out Chainsaw as a Log4J viewer - It has 
filtering capabilities that will probably work just as well for you as 
separate log files

The settings would be (for instance)
# log4j.properties  in  /WEB-INF/classes
log4j.rootLogger=ERROR, Chainsaw
log4j.appender.Chainsaw=org.apache.log4j.net.SocketAppender
log4j.appender.Chainsaw.remoteHost=127.0.0.1
log4j.appender.Chainsaw.port=4560
log4j.logger.your.package=DEBUG
You can get chainsaw at http://logging.apache.org/log4j/docs/chainsaw.html
Regards
Duncan Mills

Nicholas Hemley wrote:
Hello,
I have implemented a plugin to configure the logging for my application
but my application debug log is getting swamped by the struts debug
logging.
As I understand it, struts uses the common logging based on log4j but I
cannot find an example of how to separate struts logging from
application logging.
Essentially, what I would like to do is configure the logging so that
classes in my packages go to a different file!
Any help would be appreciated for this [not so major] problem...
Cheerio,
Nic.
 

[EMAIL PROTECTED] 26/11/2004 11:59:57 >>>
   

Hi,
I get the same results when Tomcat is not run as a service.  Does this
mean 
it must be the Tomcat security policy?

Cheers
Andy
_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger 

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


**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**
-
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] Plug for Geary's JSF book

2004-11-24 Thread Duncan Mills
+1 Core JavaServer Faces certainly has the clearest explanation of JSF 
Eventing that I've found

Regards
Duncan Mills
http://www.groundside.com/blog

Rick Reumann wrote:
Sorry if this hits the list twice. I think my works outgoing server 
pegged it as Spam..

If you are Struts person thinking about learning what JSF is all 
about, go to your bookstore or favorite online store and pick up Core 
Java Server Faces by David Geary and Cay Horstmann. It's so refreshing 
to read a tech book that is clear and concise and provides GREAT 
examples as you go along. The amazing this is I'm only on page 20 and 
had to stop to write this review. Sure you can probably gather all the 
info in this book by looking at the examples and docs that are 
scattered around on the web, but it sure is nice to just go through a 
book and start seeing it all neatly put together in one place. If you 
are like me, you probably feel overwhelmed with the technologies out 
there - 'what should I start studying next syndrome.' The nice thing 
is this book cuts down the time it takes to get you up to speed with 
JSF. No fluff in this book.

Some of you have mentioned you've found my 'Struttin with Struts' site 
useful http://reumann.net/struts/main.do . If you liked the way the 
lessons were presented there, I believe you'll really enjoy this book.

And thanks also to Craig for all the time he puts on this list and 
elsewhere answering questions etc. Much appreciated.

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


Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-24 Thread Duncan Mills
Additionally if it'll make you feel warm and fuzzy (?) , The Oracle ADF 
Faces distribution includes a forEach component which acts just like a 
JSTL  tag for iterating through collections within a manged 
bean .

Regards
Duncan Mills
http://www.groundside.com/blog

Craig McClanahan wrote:
On Tue, 23 Nov 2004 13:45:37 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote:
 

First off, Craig if you are reading this, how come no one has started a
jsf-users mailing list? I hate using web forums. yuk:) Seems like
   

I'm not a huge fan of web forums either, but that's what JSF has to
deal with :-).
 (Free registration required) http://forum.java.sun.com/forum.jspa?forumID=427
 

First, let me frame my question in light of real life terms that we have
to deal with. We have some complex nested value objects that return from
the backend. Typically the user on the front end is provided the
opportunity to modify just a few of the nested VO properties. The nested
VOs are thus stored in Session scope which makes it very easy to return
back the full VOs with the modified properties (after BeanUtils does the
copying of the request params). For those that are wondering why not
just create an ActionForm to capture the single properties you need, the
answer is this would be a nightmare to then figure out how to get those
properties from your from back into the correct spots in the different
ValueObjects. (By the way, I don't think the backend should need to
provide ways to handle how the front is giving you the data so the
backend 'should' be able to just give me a VO with nested VOs inside).
All of this works completely fine in a Struts environment and is made
really easy by the use of the nested tag. (Validation is handled on the
backend).
My question then becomes... will JSF be able to handle nested objects
just as easily? I'm assuming it should but I haven't explored any of the
JSF tags. I'm assuming that at the very least I could do like I would do
it with JSTL and Strtus (not using the Nested tag) and be able to write
a JSF input maybe like:

Of course it would ne nicer with an nested tag equivalent, but the above
will work. Just checking to make sure JSF can deal with this in some way
before I get started. If not, I'm really stuck not being able to use
JSF, since our business requirements are complex and the objects coming
from the backend will be nested and I need to return them back to the
backend in their modified form. (I also don't want to have to hardcode a
bunch of hidden variable place holders so that's why I'm using Session
to store the VOs).
Thanks for any light on this issue.
   

JSF can indeed deal with nested expressions for its value bindings
("#{foo.bar.baz}), but you won't be able to intermix JSF expressions
"#{...}" and JSP expressions "${...}" because the JSF tags all turn
off evaluation of runtime expressions (to avoid potential cross site
scripting like attacks).
So, something like this should work:

Note that JSF basically does away with the need for a form bean
because the components themselves do what we use form beans for
(holding the string version of the input data so it can be redisplayed
if conversion fails).
 

--
Rick
   

Craig
-
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: dynabean and jstl

2004-11-23 Thread Duncan Mills
It works with org.apache.struts.action.DynaActionForm which exposes a 
getMap() method

Regards
Duncan Mills
http://www.goundside.com/blog

Mario Neè wrote:
this is the error
Unable to find a value for "map" in object of class 
"org.apache.commons.beanutils.BasicDynaBean" using operator "." (null)

On Tuesday 23 November 2004 15:36, Duncan Mills wrote:
 

Sure, with a Dynaform called dynaLogonForm and a  of
"email" you would use somethng like:

Duncan
Regards
Duncan Mills
http://www.goundside.com/blog
Mario Neè wrote:
   

Hello,
can i use dynabean inside a jsp using jstl ?
i'm using struts 1.2.4
-
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: dynabean and jstl

2004-11-23 Thread Duncan Mills
Sure, with a Dynaform called dynaLogonForm and a  of 
"email" you would use somethng like:


Duncan
Regards
Duncan Mills
http://www.goundside.com/blog

Mario Neè wrote:
Hello,
can i use dynabean inside a jsp using jstl ?
i'm using struts 1.2.4
-
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: Struts Best Practices

2004-11-04 Thread Duncan Mills
Ted Husted has a good set of  resources and hints  
(http://www.husted.com/struts/)  though these may be too specific?
You should also check out the StrutsCatalog in the Wiki 
(http://wiki.apache.org/struts/StrutsCatalog)

Regards
Duncan Mills
www.groundside.com/blog

Tushar Agrawal wrote:
Hi Folks,
I am handling a web project and using struts framework. Can any one tell me where to find stuff on 
"Struts Best Practices"  or "Desgin and Coding Standards for a struts Application".
I request to please share your experinces on "Struts Application Design Guidelines". 

Million Thanks in Advance
Tushar Agrawal

//
  Tushar Agrawal
Software Engineer
 Seclore Technology Pvt Ltd.
   IIT Powai, Bombay (Mah)
Cell : +919819804870
  website:www.seclore.com
/*/
			
-
Do you Yahoo!?
Check out the new Yahoo! Front Page.  www.yahoo.com/a
 

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


Re: Struts & JSF - CommandButton Actions

2004-10-13 Thread Duncan Mills
I guess I'm confused because in a vanilla JSF page, if a command button 
calls an Action which updates the backing bean, then the Components 
referencing that updated attribute  will be refreshed with the new 
value, even if the mode is immediate (using the current version of the RI).
In this case I used immediate so that I wouldn't fire the Struts Action 
associated with the   I just wanted to update the "Backing Bean" 
(which in this case is the Form bean), re-render the page and see the 
updated value.  So I'm still a little puzzled by the difference in 
behavior when immediate="true" is used in both cases?

Regards
Duncan Mills
Craig McClanahan wrote:
On Wed, 13 Oct 2004 16:06:07 +0100, Duncan Mills
<[EMAIL PROTECTED]> wrote:
 

I've been experimenting with the Struts + Faces integration library and
have hit one puzzling behavior using a .executing an
"action" in a form-bean
If I have a page with a StrutsFaces form  and
that's associated with a Form Bean "foo" (session scope)
So I can have a text field bound to an element of the foo actionForm

This works as expected.
If I then have a commandButton thus:

where setDefault() is changing the value of the name attribute in the
foo bean
The method setDefault() in the foo ActionForm class executes in response
to the button, but the page does not refresh with the new value of
foo.name.  In debug the getter in the Form Bean is never called .
If I do the same thing in a vanilla faces page with a "conventional"
backing bean defined in my faces-config the value of name would refresh .
So is there some restriction here or difference in lifecycle with
respect to Form-Bean, or should we not be overloading ActionForms with
commandButton actions?
   

The key to understanding this is the fact that you declared
immediate="true" on your command button.  That tells JSF this is just
a user interface action (for example, you'd use it on the "next page"
or "previous page" buttons for a scrolling table), instead of a form
submit action.  Remove immediate="true" and the library will treat
this like a form submit, which will fire the corresponding Struts
action.
 

--
Regards
Duncan Mills
   

Craig
-
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 & JSF - CommandButton Actions

2004-10-13 Thread Duncan Mills
I've been experimenting with the Struts + Faces integration library and 
have hit one puzzling behavior using a .executing an  
"action" in a form-bean

If I have a page with a StrutsFaces form  and 
that's associated with a Form Bean "foo" (session scope)
So I can have a text field bound to an element of the foo actionForm

This works as expected.
If I then have a commandButton thus:

where setDefault() is changing the value of the name attribute in the 
foo bean

The method setDefault() in the foo ActionForm class executes in response 
to the button, but the page does not refresh with the new value of 
foo.name.  In debug the getter in the Form Bean is never called .

If I do the same thing in a vanilla faces page with a "conventional" 
backing bean defined in my faces-config the value of name would refresh .

So is there some restriction here or difference in lifecycle with 
respect to Form-Bean, or should we not be overloading ActionForms with 
commandButton actions?

--
Regards
Duncan Mills

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


Re: how to send an email

2004-10-13 Thread Duncan Mills
Its pretty simple to plug in the JavaMail API - here's a Utility class I 
call from an Action I use when resetting a User Password: It's quick and 
dirty but provides an example.  The SMTP mail host is read from a 
properties file in this case, but equally could be passed in from the 
Appliciation scope. Note the total lack of  any kind of useful error 
handling in this example - I think I better re-write it :-)

[--Badly formmated code begin--]
package com.groundside.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class Emailer
{
 String toAddress;
 String fromAddress;
 String msgText;
 String smtpServer;
 String msgSubject;
 public Emailer()
 {
 }
 public Emailer(String from, String to, String subject, String message)
 {
   setFromAddress(from);
   setToAddress(to);
   setMsgSubject(subject);
   setMsgText(message);
 }
 public void sendMail()
 {
   Session session = null;
   MimeMessage msg = null;
   Properties props = new Properties();
  
   if (this.getSmtpServer() == null)
   {
 ClassLoader propLoader = this.getClass().getClassLoader();
 //Properties file just lives in the src root
 InputStream is = propLoader.getResourceAsStream("mailer.properties");
 try
 {
   props.load(is);   
   setSmtpServer((String)props.get("mail.smtp.host"));
 }
 catch (IOException iox)
 {
   System.out.println("Mail Properties load failed " + iox.toString());
 }

   }
   else
   {
 props.put("mail.smtp.host",this.getSmtpServer());
   }

   session = Session.getDefaultInstance(props);
   try
   {
 msg = new MimeMessage(session);

 msg.setFrom(new InternetAddress(this.getFromAddress()));
 msg.addRecipient(Message.RecipientType.TO,new 
InternetAddress(this.getToAddress()));
 msg.setSubject(getMsgSubject());
 msg.setText(getMsgText());

 Transport.send(msg);
   }
   catch (MessagingException mex)
   {
 mex.printStackTrace();
   }
  
  
 }

 // Getters and Setters
 public String getToAddress()
 {
   return toAddress;
 }
 public void setToAddress(String toAddress)
 {
   this.toAddress = toAddress;
 }
 public String getFromAddress()
 {
   return fromAddress;
 }
 public void setFromAddress(String fromAddress)
 {
   this.fromAddress = fromAddress;
 }
 public String getMsgText()
 {
   return msgText;
 }
 public void setMsgText(String msgText)
 {
   this.msgText = msgText;
 }
 public String getSmtpServer()
 {
   return smtpServer;
 }
 public void setSmtpServer(String smtpServer)
 {
   this.smtpServer = smtpServer;
 }
 public String getMsgSubject()
 {
   return msgSubject;
 }
 public void setMsgSubject(String msgSubject)
 {
   this.msgSubject = msgSubject;
 }
}
[--Badly formmated code end--]
Regards
Duncan Mills

Richard wrote:
hi guys
I have a form submitted to an action class and i need the information
on the form to be emailed
to some email address.  how can i do this ? can it be done inside the
same action?
please help
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]


Re: struts and oracle

2004-10-04 Thread DUNCAN . MILLS
Dante - you can just swap out the shipped 1.1 version of Struts with the 1.2.4 
distribution - see the article 
http://www.oracle.com/technology/products/jdev/tips/mills/struts1_2_1.html
The version numbers need updating but it should be the same with 1.2.4 


Duncan Mills 

--- Original Message ---
> Hi all,
> 
>   I hope this is the right m.l. for this post.
> 
> I was wondering why Oracle Application Server/JDeveloper is
>  not supported by
> Struts 1.2.4.
> We are planning to use struts for a couple of year project and
>  we are
> worried about struts future development strategies and containers
> integration.
>   So I ask: do you foresee to support Oracle A.S. in the near
>  future?
> If the answer is negative, do you continue supporting IBM
>  WebSphere or do
> you suggest any other A.S.?
> 
>   Your answers will be precious in driving our technology
>  decisions.
> 
>   Thank you very much
> --
>   Dante Profeta
> 
> 
> -
> 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: jstl and the brink of madness

2004-09-30 Thread Duncan Mills
Shouldn't your test be:

hello
goodbye

As you've set this as a Request attribute
Regards
Duncan Mills
andy wix wrote:
Hi,
The following expression always evaluates to true even though I can 
see the create parameter in the request.

<%@ taglib uri="jstl/c" prefix="c" %>

 hello
 goodbye

I set the parameter up in the previous action with:
request.setAttribute("create","create");
Any ideas?
Thanks,
Andy
_
Express yourself with cool new emoticons 
http://www.msn.co.uk/specials/myemo

-
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: Error reading text from ApplicationResources.properties

2004-09-29 Thread Duncan Mills
In this case I suspect the problem is that the basename attribute in the 
 tag does not have the full path to the file.  e.g. it 
should be something like 
basename="myapp.view.resources.ApplicationResources"

Regards
Duncan Mills
Jeff Beal wrote:
Rudi Doku wrote:
Hello,
I'm new to struts. I have added the following string
to teh ApplicationResources.propertiesfile :
topic.label=Topic
I am trying to display this label on the page without
very much success. My page looks like this:
<%@ page contentType="text/html;charset=UTF-8"
language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt";
prefix="fmt"%>

  

You're using a JSTL tag (fmt:message) not a Struts tag to write the 
message.  You'll need to look in the JSTL documentation to see how to 
point the JSTL tag to the resource bundle you want to use.

-- Jeff

-
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: Client Side Validation using a pure JSF Only Application

2004-09-29 Thread Duncan Mills
Check out the Oracle Faces components set which you can get an Early 
Access version of from:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html
This implemenation has client side validators built-in

Regards
Duncan Mills

babloosony wrote:
Hi All,
There is a pure web application that uses only jsf as model, view,
controller. How do we achieve a reusable client-side validations
framework likes Struts's validator framework ?
Any ideas on how we do a clientside validation in a pure jsf application ?
Thanks & Regards,
Kumar.
-
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: extracting data from oracle to excel

2004-09-28 Thread Duncan Mills
So you're not really asking a Struts question right? - Your asking a how 
to "I programatically create XLS files"

For really simple output for Excel then you can just dump a comma 
separated file from the database, set the correct mime type and let 
Excel sort it out - but if you want to start adding formatting and fancy 
stuff like frozen columns then you're gonna have to generate an XLS file.

If you're running the J2EE container on a non Windows machine then you 
should probably look at the Jakarta POI  project  
(http://jakarta.apache.org/poi/)
If you're running on an Windows box (or at least can call one from the 
server side) then you could drive from Excel itself using something like 
Oracle Objects for OLE  
(http://www.oracle.com/technology/tech/windows/ole/index.html ).  Or do 
things programatically using something like  Dan Adler's JACOB 
libraries(danadler.com/jacob) which will allow you to call Excels OLE 
interfaces directly from  your  Java Code.  I've used the latter a lot 
but you have to know Excels OLE interfaces well otherwise it can be a 
little frustrating

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]

Kranti Parisa wrote:
Hi Everybody,
need some information .
the prob goes like this...
we have a jsp page with some select boxes n all...its a search criteria
the contects of the select boxes should be dynamically changed
after user clicks on go button... the report has to be generated with
that search criteria...
actually the prob is...
there will be a "export to excel" button...if user clicks that button ...
the generated report, based on the search criteria, should be exported
as an excel file at the server end and rendered to the user..
the generated excel file should be freezed one.. means the first
column should remains constant irrespective of the no of records
fetched...
so that the user can see the report properly...
can u tell me some way to think for the solution .
waiting for the reply 

 

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


Re: [NEWBIE] Local forward with html:link?

2004-09-28 Thread Duncan Mills
No I wouldn't say that putting "/bookEdit.do" in the JSP gives it any 
knowledge of the navigation sequence.  By definition an Action is an 
abstraction, the page knows nothing of the implementation, which is the 
point of having the controller.
Forwards themselves are attributes of the ActionMapping not the .JSP, so 
logically using the forward parameter you are binding the .JSP to a 
particular Action in any case and it's no different from using an action 
reference directly.  Maybe you ought to look at some kind of generic 
router or some of the DispatchActions if you want a more abstracted 
"Event" driven model in your links - I think that's a valid route to go 
and it's something we done a lot. 
Within the specialised data binding aware actions that we (Oracle) 
supply as part of our Application Development Framework (ADF), the 
DataForwardAction, which is used as a displayer and event hander for 
data bound pages, has a just such an eventing model.
A link can use an event= url parameter which by default will cause 
a forward with the same  to be returned, of course that is coupled 
with the ability to implement your own code to react to that event as 
well.  However, it does mean that the same page can be re-used because 
it's now working on a named event basis, and then it's  up to the 
handling action to process the event as makes sense in the context that 
the .JSP is being used.
As I say this is just one possible implementation...

Regards
Duncan Mills
fjalvingh wrote:
I know that, but specifying "/bookEdit.do" in the JSP means that the
JSP has knowledge of where to go next. I want this knowledge to be
embedded in the struts-config.xml, not in the pages. So the JSP page
just specifies "exits", and the struts-config.xml "wires" those exits
to actions.
Thanks for your answer though ;-)
Frits
 

Not a 100% percent I undestand what you propose to do, but could you not
just say:
edit
Or am I missing something here?
Håkon
--
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight in the fields and in the streets,
we shall fight in the hills;
we shall never surrender
-
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: Help with Cactus StrutsTestCase

2004-08-27 Thread Duncan Mills
Leandro - a good article has just been published on the Oracle 
Technology Network on using JUnit, Cactus and StrutsTestCase - the setup 
portions relate to setting up these up with JDeveloper, but the basic 
flow and tutorial portions provide a good kickstart even if you use 
another IDE - check it out:
http://www.oracle.com/technology/pub/articles/server_side_unit_tests.html

Regards
Duncan Mills
http://www.groundside.com/blog

Leandro Melo wrote:
Doesn`t know the answer, where can i find a good
tutorial do test struts applications?
Is it true that for good testing the actions must
delegate their work to POJOs ??

--- [EMAIL PROTECTED] escreveu: 
 

I am trying to write test cases for my Struts app,
but can't seem to figure it out.
I have used the examples, but I don't seem to get
the correct outcome when I run them.
I am using LookupDispatchAction's exclusively. 

So here is the method I am testing:
==
   public void productSelectionAction(
ActionMapping mapping
   , ActionForm
form
   ,
HttpServletRequest request
   ,
HttpServletResponse response ) {
   log.info( "Process CreditApplicationActions
productSelectionAction(...)" );
   NavigationBean navigationBean = (
NavigationBean )request.getSession().getAttribute(
"navigationBean" );
   if( navigationBean == null ) {
   navigationBean = new NavigationBean();
   }
   if( Constants.TRUE.equals(
request.getParameter( Constants.BUS_LINE_SELECTED )
) ) {
   navigationBean.setHasBusinessLine( true
);
   } else {
   request.getSession().setAttribute(
"businessLineForm", null );
   navigationBean.setHasBusinessLine( false
);
   }
   if( Constants.TRUE.equals(
request.getParameter( Constants.BUS_CARD_SELECTED )
) ) {
   navigationBean.setHasBusinessCard( true
);
   } else {
   request.getSession().setAttribute(
"businessCardForm", null );
   navigationBean.setHasBusinessCard( false
);
   }
   if( Constants.TRUE.equals(
request.getParameter(
Constants.BUS_SEC_CARD_SELECTED ) ) ) {
   navigationBean.setHasSecuredCard( true
);
   } else {
   request.getSession().setAttribute(
"securedCardForm", null );
   navigationBean.setHasSecuredCard( false
);
   }
   if( Constants.TRUE.equals(
request.getParameter(
Constants.EQUIP_EXPRESS_SELECTED ) ) ) {
   navigationBean.setHasEquipExpress( true
);
   } else {
   request.getSession().setAttribute(
"equipExpressForm", null );
   navigationBean.setHasEquipExpress( false
);
   }
   request.getSession().setAttribute(
"navigationBean", navigationBean );
   };

Here is the action in the struts-config.xml:
===
   
   
   input=".productSelection"
   name="productSelectionForm"
   parameter="action"
   scope="session"   
  

   

type="com.wf.bd.ice.creditapplication.CreditApplicationActions"
 

   validate="true">
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


Here is the test method:
==
 public void testProductSelection() throws
Exception {
   // JUnitDoclet begin method productSelection
   setRequestPathInfo( "/productSelection" );
   addRequestParameter( "action", "nextPage" );
   addRequestParameter( "businessLineSelected",
"true" );
   addRequestParameter( "businessCardSelected",
"true" );
   addRequestParameter(
"businessSecuredCardSelected", "true" );
   addRequestParameter(
"equipmentExpressSelected", "true" );
   actionPerform();
   verifyForward( Constants.ERROR_FWD );
   verifyForward(
Constants.PRODUCTSELECTION_FWD );
   //verifyActionErrors(new String[]
{"error.nodefault.implementation" } );
   //verifyActionErrors(new String[] {
"error.noaction.specified"} );
   //NavigationBean navigationBean =
(NavigationBean)getSession().getAttribute(
"navigationBean" );
   //assertTrue( "NavigationBean is null",
navigationBean == null);
   verifyNoActionErrors();
   // JUnitDoclet end method productSelection
 }


And I get zero errors at all...

---
   

Thanks...
Mick Knutson
525 Market Street, SF, CA  94103
(415) 222-1020
[EMAIL PROTECTED]
MAC A0103-223
 

---

   

-
 

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

Re: Wildcard action mapping use of **

2004-08-05 Thread Duncan Mills
Yup.  And while we're on the subject if anyone has an idea as to how the 
hell we (and other vendors doing Struts Diagramming tools) are supposed 
to represent Wildcard Actions on a Page flow diagram  I'd love to hear :-)

Regards
Duncan Mills

Ruth, Brice wrote:
Bill Siggelkow wrote:
If you are unfamiliar with wildcard action mappings; they are pretty 
cool. I am writing some documentation on using them; however, I am 
not quite sure of a good use case for the ** feature (where a match 
included the "/"). If anyone can give me a practical scenario using 
this particular feature I would be most appreciated. I prefer not to 
contrive examples :)

Documentation on the wildcard mapping can be found at 
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards 

TIA
Bill Siggelkow

This is a "new for 1.2" feature, correct?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
Just giving back to the community...
Regards
Duncan Mills

Mark Lowe wrote:
sorry i just read the blog and seen that its not what you want at all.
In fact you didn't want anything in the first place :)

On 30 Jul 2004, at 14:42, Mark Lowe wrote:
Is downloading this what you want to do?
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd
Mark
On 30 Jul 2004, at 14:18, Duncan Mills wrote:
I spent a while yesterday Googling around for an XSD for Tiles and  
simply couldn't find one, so as a result I've generated one up for  
anyone else that needs it...
http://www.groundside.com/blog/resources/DuncanMills/tiles- 
config_1_1.xsd
Enjoy...

(For a discussion on installing this in JDeveloper to make the XML  
editor Tiles "aware"
http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/? 
permalink=5FE62D2ADB6014F84A346B0853B995B6.txt)

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

-
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] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
Nope -  I needed an XML schema not a DTD to register with JDeveloper's 
XML editor - The XSD I've created is generated out of the DTD so they 
are consistent.

Regards
Duncan Mills
Mark Lowe wrote:
Is downloading this what you want to do?
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd
Mark
On 30 Jul 2004, at 14:18, Duncan Mills wrote:
I spent a while yesterday Googling around for an XSD for Tiles and  
simply couldn't find one, so as a result I've generated one up for  
anyone else that needs it...
http://www.groundside.com/blog/resources/DuncanMills/tiles- 
config_1_1.xsd
Enjoy...

(For a discussion on installing this in JDeveloper to make the XML  
editor Tiles "aware"
http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/? 
permalink=5FE62D2ADB6014F84A346B0853B995B6.txt)

--
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
I spent a while yesterday Googling around for an XSD for Tiles and 
simply couldn't find one, so as a result I've generated one up for 
anyone else that needs it...
http://www.groundside.com/blog/resources/DuncanMills/tiles-config_1_1.xsd
Enjoy...

(For a discussion on installing this in JDeveloper to make the XML 
editor Tiles "aware"
http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/?permalink=5FE62D2ADB6014F84A346B0853B995B6.txt)

--
Regards
Duncan Mills

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


Re: Tiles and Oracle ADF in JDeveloper10g

2004-07-12 Thread Duncan Mills
John,
If you are using a DataPage (e.g. 
oracle.adf.controller.struts.actions.DataForwardAction) then the 
parameter attribute on the Action mapping takes the page that needs to 
be displayed once the data binding has been processed.  That parameter 
attribute can take a tiles definition without a problem and that being 
the case, as long as the  tag points back to the DataPage all 
should be OK - I've just tried it here and it works without a hitch.

Are you trying to use a DataPage as an individual tile, within a layout? 
That would perhaps cause what you are seeing. If that's the case then 
tweek it so that DataPage points to the tiles def as a while rather than 
the bound JSP and run the DataPage.

Regards
Duncan Mills
http://www.groundside.com/blog

Ruffin, John wrote:
The basic question is:
If using Tiles in an application that uses ADF, how do you change the action
of lets say - a submit button on an input form - to return the a components
defined in a tiles-def definition?
The ADF submit button returns the component where the submit button lives -
thus losing the other tiles on the page.

The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.


 

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


Re: how to disable struts connection pooling logs

2004-07-12 Thread Duncan Mills
They just need to be distributed with the application - in the case of 
JDeveloper adding them to the project will do this - but if you are 
manually deploying your app just make sure those two files end up in the 
/WEB-INF/classes directory - You can even retro-fit them in after you've 
deployed if needs be.

Regards
Duncan Mills
http://www.groundside.com/blog

Veera Sivakumar wrote:
Hi Duncan,
I have followed your instructions. I have created two properties file exactly how you 
specified in your article.
Then at the end the article says
'Once these properties files are configured and added to your project, the unwanted 
log messages will be suppressed'.
How to add these to the project. Should I update struts-config.xml or web.xml with the 
new properties file?
Can you please elaborate on this.
Thanks and regards
Shiva


-Original Message-----
From: Duncan Mills [mailto:[EMAIL PROTECTED]
Sent: 09 July 2004 12:23
To: Struts Users Mailing List
Subject: Re: how to disable struts connection pooling logs
Veera, you need to configure commons logging  to control these INFO 
messages:  I've documented what to do in a short article:
http://otn.oracle.com/products/jdev/tips/mills/Struts-logging.html

Regards
Duncan Mills
http://www.groundside.com/blog

Veera Sivakumar wrote:
 

Hi,
I have web application developed on struts 1.1 , deployed on Tomcat 4.1.
We use Postgres as backend database. We also use Struts connection pooling mechanism.
The problem I am facing is the following entries in the stderr.log file.
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:   getConnection()
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Check for timeout, activeCount=2, useCount=0
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Found available connection
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Return allocated connection, activeCount=2, useCount=1
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource returnConnection
INFO:   releaseConnection(), activeCount=2, useCount=0
My  log file is getting filled with these entries quickly. 
I want the above logs not to be written in the log file.
I have kept the debug option '0' in server.xml for my app ..


Also, I have modified my web.xml for my app to set the debug=0

  action
  org.apache.struts.action.ActionServlet
  
application
qca.aps.resources.ApplicationResources
  
  
  
config
/WEB-INF/struts-config.xml
  
  
debug
0
  
  
detail
0
  

I am still getting these logs in my log file. Can any one help me what else I have to 
set to stop these connection pooling entries in log file.
Thanks in advance
Shiva
Visit our website at http://www.rm.com
This message is confidential.  You should not copy it
or disclose its contents to anyone.  You may use and apply the information
only for the intended purpose.  Internet communications are not secure and
therefore RM does not accept legal responsibility for the contents of this
message.  Any views or opinions presented are only those of the author and
not those of RM.  If this email has come to you in error please delete it
and any attachments.  Please note that RM may intercept incoming and
outgoing e-mail communications.
This email has been scanned for viruses by Trend ScanMail.

   

-
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: how to disable struts connection pooling logs

2004-07-09 Thread Duncan Mills
Veera, you need to configure commons logging  to control these INFO 
messages:  I've documented what to do in a short article:
http://otn.oracle.com/products/jdev/tips/mills/Struts-logging.html

Regards
Duncan Mills
http://www.groundside.com/blog

Veera Sivakumar wrote:
Hi,
I have web application developed on struts 1.1 , deployed on Tomcat 4.1.
We use Postgres as backend database. We also use Struts connection pooling mechanism.
The problem I am facing is the following entries in the stderr.log file.
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:   getConnection()
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Check for timeout, activeCount=2, useCount=0
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Found available connection
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Return allocated connection, activeCount=2, useCount=1
Jul 9, 2004 9:13:59 AM org.apache.struts.legacy.GenericDataSource returnConnection
INFO:   releaseConnection(), activeCount=2, useCount=0
My  log file is getting filled with these entries quickly. 
I want the above logs not to be written in the log file.
I have kept the debug option '0' in server.xml for my app ..


Also, I have modified my web.xml for my app to set the debug=0

   action
   org.apache.struts.action.ActionServlet
   
 application
 qca.aps.resources.ApplicationResources
   
   
   
 config
 /WEB-INF/struts-config.xml
   
   
 debug
 0
   
   
 detail
 0
   

I am still getting these logs in my log file. Can any one help me what else I have to 
set to stop these connection pooling entries in log file.
Thanks in advance
Shiva
Visit our website at http://www.rm.com
This message is confidential.  You should not copy it
or disclose its contents to anyone.  You may use and apply the information
only for the intended purpose.  Internet communications are not secure and
therefore RM does not accept legal responsibility for the contents of this
message.  Any views or opinions presented are only those of the author and
not those of RM.  If this email has come to you in error please delete it
and any attachments.  Please note that RM may intercept incoming and
outgoing e-mail communications.
This email has been scanned for viruses by Trend ScanMail.
 

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


Re: JSTL Has "Paging" Built-In?

2004-07-06 Thread Duncan Mills
The  tag has the ability to use variable values for the 
start, end and step values of the loop, so you can use that to display 
say 10 rows of a collection at a time.
start and end can be defined with expressions

Regards
Duncan Mills

Caroline Jen wrote:
I was told that JSTL has "paging" built in. Could
someboday who has used this feature provide
instructions? Is there a document that illustrate the
steps of using it?
Paging means: [ previous page | 1 2 3 4 ... | next
page ]
I have tried one of the paging taglib; but, it does
not accept JSTL tags. 


__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-
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: Are there any IDE's that understand Struts tags?

2004-05-27 Thread Duncan Mills
Oracle JDeveloper 10g (http://otn.oracle.com/products/jdev)  understands 
the Struts tags and will pre-render them at design time if that's what 
you want to see in the visual editor.  For instance a  will 
render as a Text field not as a tag, likewise  tags will 
be resolved at design time so you're working with the actual text rather 
than a resource key tag.
In fact any Tag library, including the JSTL ones, can be set to 
pre-render in the design time., but it's optional of course, if you want 
to run with plain tags in the visual editor, or indeed work in code view 
then that's fine, it's all supported and synchronised.

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

Adam Lipscombe wrote:
Folks,
I am developing a J2EE server using Struts. The JSPs will be constructed by
a web developer who is used to DreamWeaver. 

I imported the Struts tag libraries into DW, but the "design view" doesn't
work. 
He cant layout the pages visually. 

Is this a limitation of DW? 
Are there any web IDE's that understand Struts tags and allow a design view
to be used?

TIA Adam

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
Sent: 14 May 2004 22:22
To: [EMAIL PROTECTED]
Subject: Re: XML stream input to Struts Action class

"Ashish Goswami, Noida" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

Hi ,
i am facing a problem where i am getting xml input from another server
   

over
 

http to my servlet.i use request.getInputStream() to get the xml file
   

parse
 

it and use JAXB to marashall into java objects.My question is can i 
use struts in this case  as a framework.does struts supports 
population of
   

form
 

bean from xml input rather than form based post input.
   

You can use Struts, yes, but Struts will not populate a form bean from XML
input. You'll need to do that yourself.
--
Martin Cooper
 

any help will be appreciable.
thanks in advance
Ashish
Disclaimer:
This message and any attachment(s) contained here are information that 
is confidential,proprietary to HCL Technologies and its customers, 
privileged or otherwise protected by law.The information is solely 
intended for the individual or the entity it is addressed to. If you 
are not the intended recipient of this message, you are not authorized 
to read, forward, print,retain, copy or disseminate this message or 
any part of it. If you have received this e-mail in error, please 
notify the sender immediately
   

by
 

return e-mail and delete it from your computer.
   



-
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: Browsing for a directory

2004-05-25 Thread Duncan Mills
I think you'll have to write a Java  applet to do this  - you'll have 
the addition issue that the applet in question would have to be signed 
and the certificate accepted on the client.  If you could guarantee that 
all your clients will use a certain browser type then this will not be 
an issue but if you have a mix of IE clients running a 1.1 JVM and other 
browsers running 1.3 or 1.4 JVMs you're going to have a headache.
The basic job of bringing up a directory selection dialog from the 
applet would not be an issue, but the interface between the applet and 
the page (for the purposes of submitting the data) will probably have to 
take the form of JavaScript  - so you have another dependency to worry 
about.

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]

praveen kulkarni wrote:
Hi Leon,
I understood that  cannot search from server, thanks.
I have to provide an user interface which allows to browse only directories
how can i do this?
Thanks in advance 
Praveen.

Yahoo! India Matrimony: Find your partner online.
 

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


[OT]UK Struts Interest Group

2004-05-25 Thread Duncan Mills
All,
As we have a few UK based folks who are interested in getting together 
I've created a Yahoo Group as a rallying point:

http://groups.yahoo.com/group/struts_sig_uk
Sign up there and we can attempt to organise drinkies without cluttering 
up the main list.

--
Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Struts Users in London / meet+greet / pub / networking / BOF ? / pre J1

2004-05-24 Thread Duncan Mills
Funny I was about to mail the group on the same topic - there must be 
some more of us in the UK...?

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
Pilgrim, Peter wrote:
Hi
Are there any Struts user in or around London interested in meeting
up one evening informally in a pub somewhere in central London 
(England of course) for a pint or two, talking about their web user 
interface experiences? 

I dont care if your experience is good or bad, beginner or expert, 
but I am rather interested in professional opinions about Struts user. 
But it doesn't have to be all abouts Struts. If you regularly use other 
frameworks like Tapestry / WebWork, then perhaps you can try to convince 
me. I'd like to find out more about the ORM debate Hibernate vs 
EJB 3.0 as well. I'd also like to find out more about 
Jython and RAD web server side development. 

Thoughts?
BTW: I will be at Java One next month for the very first time so for 
me this would be good pre-amble BOF/.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==
-
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] Re: Oracle 10g Apps Dev Framework

2004-05-24 Thread Duncan Mills
If you are using an EJB session bean based data control there are no 
standard operations that ADF can assume, as you have total control over 
the APIs that the session bean exposes.
This contrasts with a framework such as ADF Business Components which 
natively understands build-in database operations such as Create, 
Remove, Commit etc., as well as performing the Object / Relational 
mapping and data caching functions.
So if you elect to go down the Session Bean route you will have to 
expose your implementations of those functions as public functions on 
the session bean  and then consume those operations within your Struts 
Page flow as you would the Build-in ones.
If you have any further questions on this post them to the Oracle 
Technology Forum for JDeveloper as it's more appropriate there than here.
http://forums.oracle.com/forums/forum.jsp?forum=83

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

Indra Gunawan wrote:
Hi all,
I want to implement business service layer using session bean and eliminate
the need for entity beans as I plan to replace them with Hibernate . But,
when I write the session bean component ... I don't have support from ADF
for implementing Create, Remove, and the like  only iterator for
navigating around . Is there a patch ? Or ADF from Oracle only support
entity based business service , so when we want another pattern which is
rather different  we are not allowed to do so .
Thanks 

Indra
-
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: From bean into "for" loop

2004-05-24 Thread Duncan Mills
If you have an array  in the bean that you are trying to iterate 
through, then a JSTL  tag would seem ideal

 

 
Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

Andy Engle wrote:
Hi all,
I am trying to do something as simple as writing a FOR loop with some
information that I have in a bean, but this is proving to be quite a
bit more cumbersome and difficult than I thought it would be.  For some
reason, everything I try seems to fail.  Here is a short example of
what I'm trying to do:
<% for(int i = 0; i < ${productData.someCount}; i++) {  %>
  // Write my text here
<% } %>
What am I missing here?  If you could help me I'd appreciate it --
enough time wasted on this thing already.
Thanks,
Andy
-
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: Class path in Oracle 9Ias

2004-05-20 Thread Duncan Mills
Its probably worth logging this one on the OC4J Forum on OTN 
(http://forums.oracle.com/forums/forum.jsp?forum=46) there are folks who 
know about OC4J in enough detail  hanging out there.

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

Richard Yee wrote:
Duncan,
Is there a switch or something on oc4j that will cause the 
ServletContextListener.contextInitialized() method to be called before 
the init methods of the servlets that are configured to load on 
startup? I think the behavior I have seen on OAS 9.0.3 is that 
contextInitialized() happens after the init() methods are run. This 
behavior differs from Tomcat and the SunOne server.

Regards,
Richard
At 05:38 AM 5/19/2004, you wrote:
You can do this at the application level by a  entry in 
the orion-web.xml that is deployed with the app or at the OC4J Level 
as a whole in the j2ee/home/config/application.xml

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED] wrote:
Hello All,
I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j
Thanks,
VJ,
-
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: Class path in Oracle 9Ias

2004-05-19 Thread Duncan Mills
You can do this at the application level by a  entry in the 
orion-web.xml that is deployed with the app or at the OC4J Level as a 
whole in the j2ee/home/config/application.xml

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED] wrote:
Hello All,
I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j
Thanks,
VJ,
-
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] running application server (OC4J) as a background process

2004-05-05 Thread Duncan Mills
See the OC4J Configuration FAQ on OTN for the official answer :-)
http://otn.oracle.com/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_configuring
But if you do still want to do it check out Steve Button's blog entry on 
the Subject:

http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html

Duncan

Shyam A wrote:

Hello,

I'm working on a Struts application using stand alone
OC4J (Oracle 9i AS) as my application server. I need
to deploy my application on a Windows NT machine
(remote), and run the application server as a
background process. Is it possible to run the server
as a Windows service?
Has anybody done anything similar? 

Any help/pointers will be greatly appreciated.

Thanks,
Shyam
	
		
__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
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] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-19 Thread Duncan Mills
It'll work on iAS or any other J2EE server.  There is direct help in 
creating deployment profiles and installing the common libraries for
 Oracle Application Server
 Standalone OC4J
 JBoss
 Tomcat
 Weblogic
Anything else you'll have to tweak the deployment files yourself or do 
it in Ant if you prefer

[EMAIL PROTECTED] wrote:

Fantastic.tool...
Just one questionan ear created out of this will work on 9ias right?
-Original Message-
From: Amjad Shahrour [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 4:24 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Just wanted to say my toughts about Jdeveloper10g.

Simply it is GREATE!!.  

And there is no other IDE that can even compete with it.
*It has everything that I need.
* extraordinary performace ( I cant believe its pure java ;) )
* very very very organized. 
* I feel very comfortable when I use it.
* this what IDEs should be.
* IMO it is far better than VS.net.

good work Jdeveloper10g team.

I am Looking forward a plugin that simplyfies the JSF development
(visually).
regards



Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL PROTECTED]
www.labbaik.com


-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 11:12 AM
To: Struts Users Mailing List
Subject: Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]



Erik Price wrote:

 

On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:

   

Finally!

http://otn.oracle.com/software/products/jdev/index.html (249MB)

-- Chris
 

No MacOSX version?

   

:(
 



   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___
Labbaik - The Integrated
Solution Provider for the Hospitality Industry
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER:
This message contains privileged and confidential information and is intended only for 
the individual named.If you are not the intended recipient you should not 
disseminate,distribute,store,print, copy or deliver this message.Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or 
incomplete or contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result of e-mail 
transmission. If verification is required please request a hard-copy version.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]

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


Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Duncan Mills
Eric it's a pure Java App - you can run it on Mac, Linux or whatever - 
plenty of people did run the Preview on Mac without too many problems - 
if you have any problems or issues just post them on OTN.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]



Erik Price wrote:

On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote:

Finally!

http://otn.oracle.com/software/products/jdev/index.html (249MB)

-- Chris


No MacOSX version?

>:(




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


Re: question

2004-04-16 Thread Duncan Mills
No Struts is tied to the servlet API you can't reuse it for fat clients

Regards

Duncan Mills



[EMAIL PROTECTED] wrote:



Hi,



I'm new to this list and would like to say hi to everyone.

Here is my question:



I've used Struts before for web applications but at the moment I'm evaluating if it would be possible to use Struts for Java Client-Server applications (Java fat client). Any thoughts? Has some one seen Struts ever user in that way?



Any comments would be welcome.



Thanx.









This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

 

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


[Vendor] Oracle JDeveloper 10g Production

2004-04-15 Thread Duncan Mills
As Christian and James have already alluded,  Oracle JDeveloper 10g is 
now out of the door and available for download from the Oracle 
Technology Network:
http://otn.oracle.com/software/products/jdev/index.html (And from the 
OTN front page http://otn.oracle.com)

In this new release Struts plays a central role in the methodology that 
we encourage developers use, for building thin client Web applications.  
So in that respect,this is an important product for the Struts community 
as a whole.

This new version is focused on making J2EE development simpler by 
providing a visual and declarative development approach using the 
innovative Oracle Application Development Framework (Oracle ADF), Struts 
provides the controller portion of that framework.

Oracle JDeveloper 10g includes features that will appeal to both novice 
and experienced Java developers. Some of the new features in this 
release include:

 Visual Struts-based page flow modeler.
 Visual layout editing for both JSP/HTML and Swing user interfaces.
 Drag-and-Drop data-binding of business services to the user interface
 Declarative creation of business services based on EJB, TopLink, 
JavaBeans, Web Services, or Oracle ADF Business Components
 Visual UML modeling with code generation
 Code Auditing and Metrics
 Hot-Swap Debugging
 Improved code editor 
 XML Schema visual editor
 Database development and Database modeling
 One-Click deploy to Oracle Application Server, BEA Weblogic, JBoss and 
Tomcat
 Web services development and consumption with support for WS-I
And much more

A full overview of the product can be found at
http://otn.oracle.com/products/jdev/collateral/papers/10g/jdev10g_overview.pdf
I encourage you to download and have a look at the product.  For the 
purposes of evaluation and self education you are free to download and 
use the product as distributed on OTN.  The download is fully featured 
and is not crippled by time locks.  The full license conditions are 
available on the download page.

If you have questions or issues on this release feel free to mail me, or 
post your questions on the OTN JDeveloper forum:
http://forums.oracle.com/forums/forum.jsp?forum=83

You can also meet me next week at the International Oracle User Group 
conference in Toronto where I'll be manning the JDeveloper demo stand 
and giving a paper on this new release.

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
[EMAIL PROTECTED]

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