Re: Authentication and Authorisation Newbie

2003-04-04 Thread V. Cekvenich
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/web.xml

It at J2EE spec in web.xml, as above, with full working struts example 
source.

.V

Brian McSweeney wrote:
Hi all,

I'm using JBoss and EJBs and struts as my web app. 
I've got some resources that are protected and for the 
moment I've written a Filter which protects them. 

However this may not be the best way to do this. I'm 
vaguely aware that J2EE can use JAAS and I can have 
things like roles and principles and that these can 
be propogated from the servlets to methods on the 
session facade and that this is probably the right 
way to go.

However the limited bit of documentation that I've 
read on this seems very non-standard and confusing.

I'd like to know people's experience with this area and 
any advice if possible.

thanks very much,
Brian


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


Re: 12 month contract - Toronto - immediate start

2003-04-03 Thread V. Cekvenich
Does this have anything to do with Struts?
.V
Jack Nodel wrote:
Hi All,

My name is Jack Nodel, I work with ARES consulting. Recently one of my
clients has asked me to locate contractors for a Toronto based 12 month
contract. 

The following is the list of required technical skills. Excellent
communication is an absolute must.
We are searching for a subject matter expert with extensive knowledge of BEA
WLI to assist and provide guidance. To qualify, the candidate must have:
£ 5+ years experience in the information technology industry
£ 3 years of development experience on J2EE platform
£ Hands on experience with E-Commerce design and application design
£ Expert technical knowledge of the BEA workflow product
£ Good technical architecture
£ Good Java programming skills
£ Experience with BEA Weblogic and Commerce Server exposure (nice to have)
£ Excellent communication skills, both oral and written (10/10 essential)
MUST HAVE SKILLS:
… J2EE development experience (Min. Experience 2-5yrs)
… Enterprise Java Bean Development (Min. Experience of 2-5 yrs)
… Oracle 9i (Min. Experience of 2-5 yrs)
… WLI (Min. Experience of 1-2 yrs)
… SQL (Min. Experience of 2-5 yrs)
… XMLSpy (Min. Experience of 2-5 yrs)
… CVS (Min. Experience of 1-2 yrs)
… Java IDE: Eclipse (Min. Experience of 1-2 yrs)
If you are interested PLEASE FORWARD RESUMES TO
[EMAIL PROTECTED]
I can also be reached at 416.480.2700 ext224.

Thanks,

Jack


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


Re: Session bean behavior when user creates new browser window......

2003-03-31 Thread V. Cekvenich
In event driven programing the user is in charge of program flow.
As opposed to procedural programing where programmer is in charge (In 
COBOL you had menu choice 1-5).
So you have to check.
You have to consider most contingencies.

A good practice is to bean.save() on any submit. (keep the session small 
also).

If the bean saves, good!, continue.
If the bean does not save because xhyz is missing, or wrong step, then 
you forward user to the appropriate place.

See how action/controller comes in handy?

It is a bad practice to have several steps and save at the "end" of 
*YOUR* idea of the flow.
Each "step" is an individual event/submit that should be each processed 
discrete.

In your case, you have "dirty" data, and you have to decide is this OK 
to save. (If you do not know about dirty writes issues, then you should 
just save based on primary key, and save the dirty data). If this is a 
problem, you have to make a longer where clause based on your bus. reqs.
Then fail the save, and handle in controler.

hth,

.V

Al Willingham wrote:
Suppose a user chooses to create a new browser window during a session
with a session bean, submits the data in the new window, then goes back
to the old and submits the old data that has not been refreshed. Is this
one of those things that the user gets what they deserve for being so
brain dead, or is there some check that I can perform to prevent this?
Thanks
Al




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


Re: Right way to extends Action

2003-03-31 Thread V. Cekvenich



What about DispatchAction and LookupDispatchAction? Anyone have a good
solution for reuse of common action logic across these multiple action base
classes provided by Struts?


I wrote my own dispatch:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base/BaseAct.java

.V



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


Re: Right way to extends Action

2003-03-31 Thread V. Cekvenich

- we added some usefull field like a logger an a pointer to a singleton that
retains application's data
protected Log log = LogFactory.getLog(this.getClass());
protected static final Infos infos = Infos.getInstance();
Be aware that adding other properties to Action is not thread safe.

.V



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


Re: Role Based Struts Validation

2003-01-29 Thread V. Cekvenich
I can't help on XML, but if it does not work, you are not sunk since ... 
stating the obvious ... of course you can implement the form Beans 
validate method in which you can write ... Java.

.V

PILGRIM, Peter, FM wrote:
My XML skills are brain dead. I just had a thought that my role base
struts validation will not work as intended.

I intended to customise FieldChecks with validators that checks
against a "role" attribute in the action form. I realise that
the Validator does not quite work that way.

Normally when you write the depends attribute you want
to do something like this

	




 min
 18


 max
 125
		
	

Execute the "required" validator first, then the "integer" and "range"
ones.

Now with role base validation. Say I have validator that checks that
role was in the administration category.

	




 min
 18


 max
 125
		


 roleProperty
 role   

		
 roleGroup
 admin  


	

This validator rule say that the action form has a property called
"role" and the group it should check for is "admin".

If the action form has the role "admin" then the validation should
continue, if the action form does not have the role "admin"
then further validation should terminate. It should skip the
remaining validations "required", "integer" and "range"

Of course I dont think the Validator works this way?
Is it possible to skip validations? If not, then I am sunk.

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority




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




Re: [OT] Open Source Q Mailing List

2003-01-28 Thread V. Cekvenich
I do not think such a  mail list exists.

Some good products are: RedHat free OS download, PostgreSQL.org DB from 
Cygwin.com, Eclispe.org IDE (maybe add in SolarEclipse from sf.net for 
JSP/XML), Tomcat APP server, JasperReports.sf.net (reports), Struts, 
JSTL tags from Jakarta, (IBatis.com DAO or RowSet or Commons SQL), 
jxdbcon.sourceforge.net for JDBC driver, openoffice.org for Word/Excel, 
Netscape browser, ximian.com/products/evolution for E-Mail, 
squirrel-sql.sourceforge.net for a SQL client,
commerce.bea.com/downloads/weblogic_jrockit.jsp#80_beta for JVM.
basicPortal.sf.net for sample apps. designs.

Variations are shades of Good.
Main things are Eclipse, Tomcat, JasperReports, PostgreSQL, JSTL 
(standard tag lib), Struts. Each is dominant, so at least you will be in 
the crowd. Also, start with a busines problem and then solution for it.
A bad tool in good hands is a winner as well.

.V



Mark Chaimungkalanont wrote:
Hey all,

I'm just wondering, what would be a good forum/mailing list for Qs on
general open source things like below?

like "What should i use for ..." sorta questions. I'm quite new to the
whole open source things and the range of things possible seems mind
boggling. It's usually pretty hard to see what's good / bad or which is
better (eg. struts VS turbine) and which we could use. The possibilities
are exciting but can be pretty overwhelming at times.

A reference to a general mailing list where more experienced people could
provide me with pointers would be much appreciated

cheers

Mark C



   
  Ashish Kulkarni  
  
  @yahoo.com>  cc: 
   Subject:  Re: what I can use to display a Chart?
  29/01/2003 09:39 
  AM   
  Please respond to
  "Struts Users
  Mailing List"
   
   



try
http://www.object-refinery.com/jfreechart/
or www.ve.com

Ashish
--- [EMAIL PROTECTED] wrote:

Hello,

does any one use Charts with Struts?
what lib / product you can recommend?

thank you.

Best Regards.
Michael.

--
To unsubscribe, e-mail:

For additional commands, e-mail:





=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




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




Re: [OT] Single Sign On

2003-01-28 Thread V. Cekvenich
See this:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Sign%20On

Also most of the time, there is no need for Apache, as Tomcat can 
display static content as well.

.V

Victor Soares wrote:
This may not be the appropriate place to ask this question, but this seems to be an intelligent group that may be able to answer this question

I am planning on creating 3 websites. The sites are all related and will have some customizable functionality for users that requires a login. I would like to carry user authentication information across all 3 websites without asking the user to login to each website. I guess this functionality is similar to the .net passport.

How would I be able to accomplish this? Is there something out there already that can help me do this?

Some additional info:
- the 3 sites will be hosted on the same server (virtual hosts)
- web server config is apache 2, tomcat 4, RedHat 8
- I will be using struts (cuz it's awesome)

Please let me know if you've ever run into this situation and how you solved it.

Thank you,
- Victor Soares




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Flash+Struts how?

2003-01-28 Thread V. Cekvenich
Nothing wrong with Flash as View, in fact Flash is a good practice IMO 
(when used w/o Remoting or runtime costs).

Javascript/DHTML is just OK. We try to remove navigation and vlidation 
(menu and validator) but still its a mess in a JSP.

Applets are a bad practice, in my experience.

JSF is not here.
XForms has a lot of promise.
As does this Axis to Flash thing on dev list.

But people, lets watch the signal to noise ratio. Already people ask 
questions on dev. list that should be here (and there was a thread to 
start another mail list).
There is a lot of Friday, OT, Beer, etc., an no need to add just pure noise.

.V

Assenza, Chris wrote:
I suspect the original poster was just having him/herself a little fun with
the list using an anonymous email account knowing its history with the
topic. In that case, while I hate to admit it, Mark's reply was probably
quite apropos. =p

-Chris

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:27 PM
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?


Yes, it does seem a bit off form.
Normally any reference to the F word really gets him going.
Maybe he's a bit under the weather this week?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 04:02
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?






-Original Message-
From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:09 PM
To: Struts Users Mailing List
Subject: Re: Flash+Struts how?


Mark Galbreath wrote:


Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...



Actually, knowing Mark, that was one of his more restrained replies. He's
mellowing in his old age. ;-)



Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: moving from ASP to jsp/Struts redirecting visitors into new site

2003-01-28 Thread V. Cekvenich
A shot in the dark:
In your container server xml file set root "" to you "/pages"
This removes the need for pages.
In you struts.xml map "*.asp" to Action (as opposed to *.do). Of course, 
every "page" needs a action mapping that and a forward to a real jsp.
.V

Rachel wrote:
Hi

I'm rebuilding a site that is currently built in ASP and hosted on a 
win2k box on IIS to A JSP/Struts application that will be hosted on 
JBoss on Linux. I'll be moving the domain so I can't just do browser 
redirects from one to the other and what I would like to be able to do 
is come up with the best method of redirecting people who go to my *.asp 
pages to the relevant 'page' within my new application (I'm using Tiles 
with the definitions in the xml file). So someone would go to:

http://www.foo.com/pages/page1.asp

and I need to send them to

http://www.foo.com/page1.do

the new server doesn't have asp so I can't just stick in some asp pages 
to do redirects there. I had the idea that I should be able to redirect 
them in some manner using a forward, anything coming in that is *.asp 
forward to something but ideally I'd like to put people at the content 
they would have found at the old location as I get a lot of traffic from 
people who linked to pages deep within the site.

Apologies if this is very basic, I'm converting myself to jsp/struts as 
well as my site so I'm having to learn a lot!

Rachel



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles: a portal question

2003-01-28 Thread V. Cekvenich


Marco Fabbri wrote:

Hi all,
I'm playing with the VERY interesting site dedicated on Tiles (http://www.lifl.fr/~dumoulin/tiles/) and I have a little question.

Suppose I've created a Tile to view jsp contents, what happen if I compile a form and I press "Submit"?

Only the Tile's space is refreshed or the entire screen?

Yes.



Can I use a Tile like a "portlet"?

basicPortal.com



Thanks a lot in advance.

Marco Fabbri






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Hi

2003-01-28 Thread V. Cekvenich
1. This fals in : " I do not have time to do it, but maybe you do".

2. Also this has nothing to do with struts, struts is MVC, so you do not 
do things in JSP or view.

3. The answer is: You need to grab a hold you your application context, 
and get the real path.

Uday wrote:
Hi,


I want to read and write from/into the file using strtus (struts-taglibs).
Can you tell me how to do it.

It is very urgent. Tell me is there any code available on the net.


Have a nice day

Regards,
Uday




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Synchronizing Session Objects

2003-01-27 Thread V. Cekvenich
A users opens another browser session and your action takes a bit longer 
than a split second.
.V

James Turner wrote:
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 8:57 PM
To: Struts Users Mailing List
Subject: Re: [OT] Synchronizing Session Objects

If you're modifying them, you definitely should -- there are 
lots of cases where it is possible to have multiple 
simultaneous requests for the same session.



I'd be curious what the non-trivial cases of this would be.  You can
certainly get multiple simultaneous requests if you have images loading
on a page, or that type of stuff.  But where would you (for example) see
it being possible for multiple Struts Actions to be running at once on
the same session, without it being some kind of "the user hit the back
button" scenario?  I can see this happening in pure servlet code, where
a give page might be calling several servlets at once, but isn't that
the benefit of MVC, that all the stuff that would be likely to need to
be synchronized happens in a single method (the Action), and the page
merely displays results?

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts productivity metrics?

2003-01-27 Thread V. Cekvenich
I agree with Joe
One such metric is a  pro can do a few CRUD modules per day and a newbie 
takes a few days per module.

Also... it sounds self serving but. consider hiring a mentor, 
someone who put Struts in production before, it is cost effective. They 
can kick start you and reduce risk. Some experienced people on this list.

.V

Joe Barefoot wrote:



4) Assuming that struts provides a consistent framework that 
is easier to
maintain, is there perhaps a increase in initial development 
effort which is
offset by a decrease in the ongoing maintenance effort for 
the application?
Can that be quantified by testing metrics like # of issues 
reported/module
and avg. # hours required to resolve an issue?


Can't help chiming in here:  You're not likely to find any metrics like these, and if you do, you should only use them the way most statistics are--to blindside people into agreeing with your premises.  If you think about it briefly, you'll realize that metrics like these will never be that accurate, and even if the metrics themselves were precise, they could never accurately represent quantitative differences between development methodologies or frameworks.  The reason is simple:  No company ever builds the same thing twice and every project is very different.  This makes quantitative apples-to-apples comparisons of frameworks/practices practically impossible in the business world.  Perhaps an academic experiment with two teams implementing the exact same spec. with different frameworks would yield some useful information, but any quantitative comparisons you receive from the business world are spurious at best.  

You're much better off relying on first-hand qualitative comparisons, e.g. "We were using X for web development and now that we've switched to Struts, I don't have to don my fire hat on a daily basis to douse that conflagaration we called a web app."

:)





Anecdotal comments are appreciated, but I'm mostly interested in hard
metrics (X hrs w/ struts vs. Y hrs w/ 'the old way') if 
possible.  Also - if
there are any books/sites which address these questions, 
please send them my
way.

Thanks in advance,
- Scott


--
To unsubscribe, e-mail:   


For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts on iPlanet Web Server 6.0?

2003-01-27 Thread V. Cekvenich
Try Resin or at least OrionServer.com.

Trevor Morris wrote:

We are in the process of looking at other options after WebLogic 7 has
failed to meet our needs.  I want to go with Tomcat, but management says
otherwise.  They want to use the antiquated iPlanet Web Server.

Can anyone confirm that Struts 1.1b3 works on iPlanet Web Server 6.0?  Or
4?  I have heard that Struts 1.0 can work on 4, but I have written my code
with 1.1b3 and do not feel like changing it all to go back to 1.0.  The
worst feeling in the world is to have to downgrade!

I appreciate any insights.

Trevor




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Flash+Struts how?

2003-01-27 Thread V. Cekvenich
I wish I could add something more, other than repeat what has been said:

http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg12987.html

It seems that Flash/SOAP/Beans is mostly Model/View, however it is very 
marketable.

I like cybersage.com as well, and avoiding Remoting Server (license cost 
in case of MS). There is also an open source someplace looking for 
the link.

.V


Michael C. Clark wrote:
Being able to return XML to the UI is not all that bad, when you
consider the opportunities for integrating other technolgies for
presentation (if you like XSLT and the like).

There are also some nice tools that take advantage of the modular
nature of FlashMX, and the native XML parsing capabilities of Flash,
available from Flash5 forward.

For UI components check out www.cybersage.com and Flash developer CD
($99 additional) ... XML opens the door to a *slick* rich client UI.

"I love Struts and I vote"

In the right hands, Flash aint all that bad (but then I don't use
emacs to code JavaBean accessors, so...).

-M

 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Flash+Struts how?
Date: Mon, 27 Jan 2003 14:09:22 -0500



Mark Galbreath wrote:


Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...

Anyway, to answer the original inquiry:
A part of the UI of our app is a flash movie, and we chose to
integrate 
it using XML. The Flash sends requests to our struts actions (they
look 
like any other URL to Flash), but these particular actions return XML

instead of HTML. The Flash parses the XML and applies it to the UI 
appropriately. Works quite well and with no noticeable CPU usage on
the 
client - a problem we had with the previous, complicated HTML
interface 
for this part of the app.
There is also a relatively new feature of Flash MX that provides 
integration between Flash and J2EE apps without using XML in between.

Although I haven't looked at it in detail, I bet it can be used with 
Struts as well as "ordinary" servlets. See 


HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does anyone have the Java Pet Store rewritten with Struts

2003-01-27 Thread V. Cekvenich
http://www.ibatis.com/jpetstore/jpetstore.html

Steven Banks wrote:

A while back, several posters mentioned that they had rewritten the Java
Pet Store Application to use Struts.  Does anyone have the source code
available?  

I mentioned it to my boss when he said we had to develop a sample
application to prove that the various technologies we are pushing in our
organization work with our hardware platform.

Thanks in advance

Steven Banks



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Friday!

2003-01-26 Thread V. Cekvenich
Mark Galbreath wrote:

So you're unemployed and need some guidance?  Turn up the volume and go to:

http://www.oddtodd.com

Cheers!
Mark


Flash?
More usefull is a rich GUI data grid:

http://dynamic.macromedia.com/bin/MM/exchange/main.jsp?product=flash





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Need input about user authentication with user self registration strategies

2003-01-25 Thread V. Cekvenich
inline

John Cavacas wrote:

Hello everyone,

I'm currently in the planning/proof of concept stages for my second Struts
based web app. My first Struts app was pretty small and simple, so I'm still
new at this.

I spent most of last night looking through the mailing list archives and
searching on the web to find out about the best strategies regarding user
authentication in regards to Struts and J2EE (Servlets/JSPs) are concerned.
I think I have a pretty good understanding of all of the alternatives out
there. From CMA to Filters, to checking for a user session in a BaseAction
class, and some other alternatives. My problem is that I'm not sure what is
the best way to deal with a specific requirement that I have in my
application. First the requirement. My application is a simple news/article
posting web app. I need to be able to let a user (based on permissions) to
edit, delete or archive, an article from the main page, or the article view
without going into the "admin" area. Picture a news item with buttons for
edit, delete, or archive and possibly other administrative functions in the
future. This would use the same JSP as other users would view, but of course
these other users would not be able to see the admin functions. The
application has its own user database table, and also a roles table from
which the permissions are based. These are Admin, editor, contributor,
registered.

My preferred method to do this would be to use CMA with form based
authentication, since I could use it even at the action level. I could use
the Servlet API to detect user roles. However, I also have the requirement
that users can self register and maintain a profile. Tomcat's JDBCRealms
looks interesting, but how standard is that feature in other containers? It
also looks like the database tables required for JDBCRealms have to have a
certain layout which my current database layout doesn't match. 

Create a view that does.

I would also

like to keep the application as portable as possible across containers.



It has to be, with any J2EE based container, which I think is all of them.


Using a Servlet filter also seems interesting, but it leaves the problem of
having to decide at the JSP level how to show the "admin" actions. The same
issue is true with using a BaseAction approach. 

Not standard. Look at action - mapping, which uses CMA.
Like you said, just do is_user_in role in action, KISS and then extend.
hth,
.V



I would really like to avoid a messy set of if/elses in the JSP to have this
done. I've even thought that maybe I should create a custom tag for this.
But I figured I would shoot these questions out to the list before I decided
to go down that path. Sticking a user object into a session object is the
usual way which I have solved this problem in the past using things like PHP
and ASP (ack!) and of course the same thing could be done here too. But I
would really like to use a better approach for this application and remove
any application logic out of the View. 

Any suggestions or ideas that I should consider?

Thanks for reading, I know it's long.

John



This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread V. Cekvenich
I think it is heavyweight, as is Castor (part of J2EE.jar), Hibernate 
(very popular) and not fully SQL based.

Light weight and SQL based (therefore fast) are in my personal order of 
preference: Disconnected RowSet (read up on google, past messages), 
Commons-SQL, IBatis, Scafolding.

htt, .V


Dan Tran wrote:
I am investigating quite a few object mapping frameworks and JDO seems to be
my only choice to stick with.   Is it a good assumption since it is a
standard framework?

-Dan


- Original Message -
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 10:30 AM
Subject: RE: Struts and OJB




I have used OJB in two project. Be sure you know the performance impact.


It


is a great tool. But, it will take you a while to learn how to use it
"effectively". The caching is all or none (you can spin your own) and the
fine grained control that you have over object materialization is


something


you need to understand. I would say for you to make sure you understand


how


to use the Proxy. If you don't you will be creating massive amounts of
objects and slow your performance drastically. IMHO, I don't think that


OJB


is the answer for all projects. The reduction that you find in your own


code


as compared to the time it takes to become completely familiar with an
evolving code base is pretty dramatic. Like mentioned earlier. I think


that


after a 1.0 final version is released then the community will have more


time


to update the docs and write some books. When that happens I am going to
take another look at it. Until then... I just can't keep up and I don't
think that it is performant for the "ignorant" (i.e. me :-)) All I can say
is if you are going to learn OJB right then spend some time scouring the
scads of source and see what is truly going on. "Use the source Luke!" :-)
Personally, I just don't have the time for that and I am more productive
using a tweak of the Sun recommended DAO Pattern.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Joel Wickard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 7:00 AM
To: Struts Users Mailing List
Subject: Re: Struts and OJB


James Mitchell wrote:



Yes, I agree (almost).you can (so I've heard) change it so that
those required internal tables are in another database, but for now I
don't really mind.





Yeah, I just fixed the problem by using a different o/r mapping tool.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:





For additional commands, e-mail:








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Allowing user to change password thru tomcat CMS

2003-01-24 Thread V. Cekvenich
Read up on JDBC Relms.
Create a user table in DBMS.

Dan Tran wrote:

Hi I am using Tomcat 4.1.x Container Managed Security

First I create my users thru Admin module and I would like
user to change his/her own password after login.

Give a user name and new password, how do I interface with
Tomcat to update this info? 

At this moment, I am using tomcat-users.xml

Advice is greatly appreciated.

-Dan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ActionFilter and detecting a forward

2003-01-23 Thread V. Cekvenich
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg42455.html
See above how to store context and action change of prior action, it 
might help.
.V


Raible, Matt wrote:
I have an ActionFilter that is applied to all my /do/* requests.  I want to
populate a list of data, but only when the user goes to my "mainMenu"
forward.  What is the best way to detect that they are going here.  I tried
request.getRequestURL, but that doesn't do me any good, cause sometimes that
will be things like "/do/saveUser".

Thanks,

Matt




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] web site idea (was Value of Struts)

2003-01-23 Thread V. Cekvenich
-1.

My philosophy is under promise over deliver.
If you put this on a site, than someone's mileage may vary.
Then when you get on a client's site it will be "how come we didn't have 
 xyz here?"

.V

Robert McIntosh wrote:
I read everyone's responses to Gene Campbell's question and I think 
there should be a place on the Struts website (maybe a wiki or 
something?) where all of these good folks who responded to him could put 
 up their "Why I love Struts" comments. I know I have to answer this 
question often to clients and other developers and it would be nice to 
say "Go to the struts website and look at page 'Why I love it'" or 
whatever.

Promoting Struts is often difficult since it is open source and there is 
that fear amongst the management (generally) about open source stuff. 
Never mind that there are 5 (6?) books on struts alone, it has one of 
the largest followings in open source Java, is in production is some 
major companies, etc. The one thing I usually say to a manager type is 
"IBM uses it for the admin on WebSphere". Throwing in that big name 
usually helps...

My .02

Robert McIntosh



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: multi row / multi col input forms

2003-01-23 Thread V. Cekvenich
This works fine with either!

Ex:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/ROOT/portlets/cms/ContentApprovePortlet.jsp

Make sure you implement a collection and unit test the formbean outside 
of Struts before doing any beans, including multi row.

.V
"Mentoring adds value"

Neil Carusetta wrote:
We are having trouble solving the same problem of updating the fields for a
DynaActionForm's indexed properties.  We are running on Struts 1.1 beta2.
Should we be using the latest beta3 to get this to work? 
Our configuration basically follows that of James' below.
We defined a Bean named EditFormIndexPropertyBean, which will be the
elements of the DynaActionForm's array property
The form-bean is configured as:

type="org.apache.struts.action.DynaActionForm">
   	
type="com.cgc.approve.struts.beans.EditFormIndexPropertyBean[]"
   	 size="10"/> 


The form's iteration in the JSP look like:

property="categoryIndex"
type="com.cgc.approve.struts.beans.EditFormIndexPropertyBean"
indexId="index">
   

   			 
 

   


Unlike James' example, we had to name the  'name' attribute
the same as the  'property' attribute, in this case
"categoryIndex".  Otherwise the PropertyUtils could not find the DynaForm's
property by that name.

Here's what appears to be the problem:  The DynaForm's array property
'categoryIndex' is not being populated with the elements of our
EditFormIndexPropertyBean. The array property is instantiated with the
correct name, however it is empty. The DynaActionForm then attempts to set
the property with name=categoryIndex at index 0 with some value:

DynaActionForm.set(String name, int index, Object value) {

DynaProperty descriptor = getDynaProperty(name);
Object prop = dynaValues.get(name);
}

This causes a null pointer exception as there are no dynaValues to retrieve
(no EditFormIndexPropertyBeans in the array property) .

We have used successfully indexed properties for DynaActionForms such as
String[] and Integer[] and other primitive type wrapper classes.  How can we
get our DynaActionForm to work use a property that consists of an array of
user defined classes?

A side question for any who might know.  When using a String[] property it
is not necessary to set the size attribute.  Is this needed for user defined
classes?

Thanks for any help,

Neil Carusetta
CGC 
 
   
*	From: James Turner 
*	Subject: RE: multi row / multi col input forms 
*	Date: Thu, 02 Jan 2003 15:44:18 -0800 

Here's one way to do it:

Let's say you want to be able to record the grades of some students
across a number of classes.

First define a Bean called StudentGrades:

Package example;

public StudentGrades {
   private String name, biology, chemistry, physics, english, math;

   public String getName () { return this.name; }
   public String getBiology () { return this.biology; }
   public String getChemisty () { return this.chemistry; }
   public String getPhysics () { return this.physics; }
   public String getEnglish () { return this.english; }
   public String getMath () { return this.math; }

   public void setName (String name) { this.name = name; }
   public void setBiology (String grade) { this.biology = grade; }
   public void setChemisty (String grade) { this.chemistry = grade; }
   public void setPhysics (String grade) { this.physics = grade; }
   public void setEnglish (String grade) { this.english = grade; }
   public void setMath (String grade) { this.math = grade; }
}

In your struts-config.xml, define:


type="org.apache.struts.validator.DynaValidatorForm">
   
size="50">


Then, presuming that your Action populates the StudentGrades array with
the student names, in your JSP, you'd say:


NameBiologyChemistryPhysics
D>EnglishMath

type="example.StudentGrades">











-Original Message-
From: Mike Ash [] 
Sent: Thursday, January 02, 2003 5:04 PM
To: 'Struts Users Mailing List'
Subject: RE: multi row / multi col input forms


I understand what he is saying about setter methods perhaps I 
am not explaining the problem correctly

The exact example is I am trying to display a listing of a 
dynamic number of projects with hours assigned to them by day 
for a given week, the user can then update any of those 
fields to make changes, some of those fields may be blank 
which means the browser will not send them to the server 
which puts the rows / cols out of balance.

I am using the logic iterate tag to build a row which looks like

someText  someMoreText inputBox1 inputBox2 inputBox3 inputBox4

So for two rows I get

someText  someMoreText inputBox1 inputBox2 inputBox3 
inputBox4 someText  someMoreText inputBox1 inputBox2 
inputBox3 inputBox4

This means that from a vertical perspective the boxes have 
the same name ( is there a better way to do the names?) If a 
inputBox doesn't contain anything I can't tell which one it 
really was except which column it "didn't" come from.

Clear as mud?







--
To unsubscribe, e-mail:

Re: The tag library

2003-01-22 Thread V. Cekvenich
+1

It's a nice library.

Vic



Matt Raible wrote:

Below is a proposal I posted on my website tonight
(http://tinyurl.com/4s3j):


If you need a slick JSP Tag Library for sorting and paging data, the
display tag library is a great library to use. However, it's got issues
- just like any piece of software. I've fixed a couple on my own, but it
definitely needs some work - and integration with Struts (i.e. for
getting messages, or referencing forwards) would be awesome.

The problem is that Ed Hill doesn't seem to be working on it anymore -
and there hasn't been a release since May 2002! Since I do have the
source it wouldn't be hard to create a project at SourceForge for it. It
would be great to get some input from Ed though. Last year, I think he
even did a presentation on JSP Taglibs at Java One! I know there's lots
of Struts developers that use the  tag - are any of you
interested in continuing development on this project? 

Thanks,

Matt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: data types on the travel between DB and view -- best to make everything Strings?

2003-01-22 Thread V. Cekvenich
How would you do date + 30 days, or compute a 15% increase to salary, or 
keep a sequence #, or incrment a count on each login?
.V

Trevor Morris wrote:
Where and when do you do data conversion between the DB, Business, and View
levels?  When you grab data out of the DB and set them in your VOs, do you
set dates as Dates, ints as ints, etc?  Or is it easier to just leave
everything as Strings and pass them around.  The majority of data in web
apps is only used for display.  Little data has any logic performed against
it.  If it does, you can just cast the String to the appropriate type when
needed.

String number1;
String number2;

e.g.  if (Integer.parseInt(number1) < Integer.parseInt(number2) {}

What purpose really is there in keeping the data in their native types?  If
you do, you have so much work to do in the transfer between the view and
business layers.

Thanks for any advice.

Trevor




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Value of Struts?

2003-01-22 Thread V. Cekvenich
"Democracy is the worst kind of government there is, except for 
everything else out there".
I think W. Churchill.

Think of Struts as kindergarten: "We put our coasts here, we put our 
books here, etc."
It also has best productivity if you do it right. 2 ti 3 CRUD M/D muli 
row modules per day is easy.
Decorative validation, declarative action mapping security, declarative 
layouts w/tiles, easy for IDE to generate beans getters/setters, it can 
use standard tag lib.
You can go from portyotpe in html to ren *.html *.jsp, add actions and 
pick a nice light persistance layer and you are so done.

But:
Struts does not make your project successful, that would be requirements.
It does not enforce an iterative development process, etc.
You can have a good tool and point it in your head and pull the trigger.
Ex: is OO, java is OO capable, but you can be object disoriented and 
code very slow.

.V

Gene Campbell wrote:
I've been using Struts (1.0) for a few months now, and
I'm not seeing a big advantage to using it other than
that it does Model 2 (which is very very wise) and
hides some of the heavy lifting.  

ActionForms get you server side form validation and
HTTP parameters->bean mapping.  

The taglibs get you reduced scriplet code and hooks to
the form bean.

Actions get you a clean place to write controller code
and a way to easily forward to presentation jsps.

Is that all Struts does?  Or are there features I'm
missing?  Is it just a framework abstracting away the
easy stuff into easier stuff?

I'm not trying to start a war - I'm sorry if I'm
coming of antagonistic.  I'm not intending any ill
will.  I'm just having a hard time figuring out why
Struts is so popular.  

thanks - gene

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: To check if user is logged in

2003-01-22 Thread V. Cekvenich
Any security FAQ:
best practice is to use standard container based security that is there 
since Servlet 2.2.
Struts-config works with it.

Then based on that extend.
The example app in struts  is not a good practice AFIK.

.V

Suresh Addagalla wrote:
Hi,

I think this is a commonly performed task, but I need your inputs to
implement it in the best possible way.

I have login page to authenticate the user. For subsequent requests, I
need to check that the user is logged in. If he is not logged in, I need
to display the login page.

Is extending ActionServlet a good way to do this? The process() method
can check for the existence of user's data in session to know if he is
logged in. But I see a problem. My login page itself is submitted to
login.do, so the login request goes through my ActionServlet subclass,
which means that he will never be able to login?? Or am I missing
something?

Any other approach, please let me know.

Thanks,
Suresh





**Disclaimer**
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How closely to map VOs/ActionForms to relational DB?

2003-01-22 Thread V. Cekvenich
-That sounds like a very good class Craig. I can't wait to use it, 
sounds similar to disconnected row set, when used with commons-sql for 
persistence (at least that is how I will use it).

-David, with respect, view do not ease join problems but hide it. Also, 
sometimes you can use selection/options collection on browser and cache 
and not join on server.

- Tevor, what I do as far as objects is I have formbeans that *MUST* 
match my view/jsp/requirment of course. That is #1.
#2. Then I look to see if its a submit/updetable. Most of the time its not.
So if no submit, no "form bean" in struts-config.
That means I would write long join and have one or several beans defined 
in request. Joins (but try to speed up with options/collection*) and 
multiple beans defined in scope.
#3. If it is updetable/submit, I define a formbean in Struts config.
(You can only have one) and nest. Your back end now has to map close to db.

So a short answer to Tevors question, imo, "how closely should the back 
beans match the jsp?"  is match db on updetable formBeans, and  match 
the jsp when no update with joins/mutiple beans.

Vic
Struts project recovery/mentoring
http://strutsplus.com/
[EMAIL PROTECTED]


* OT: If you want to show employee and departments and status. Do not 
join to department and status, just have a select optionsCollection in 
say application scope. That is because when employ changes departments 
or status, only employ table changes. Anyway, for performance and 
validation, use lot's of select options collection.



Craig R. McClanahan wrote:

On Tue, 21 Jan 2003, David Graham wrote:



Date: Tue, 21 Jan 2003 18:10:33 -0700
From: David Graham <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How closely to map VOs/ActionForms to relational DB?

Use views to ease your join problems.  If a person can have many accounts
then I will have a Person object in each account object but I won't have a
list of accounts in the person object.




If you don't need your VOs to actually be JavaBeans, you might want to
look at a recent addition to commons-beanutils (included in the 1.6
version that was just released, so it'll be included in Struts 1.1 final)
called RowSetDynaClass.

What this does is copies the data from an SQL query (either a ResultSet or
a RowSet) into a List of DynaBeans that can then be manipulated via
BeanUtils and PropertyUtils methods.  This way, you don't care how many
different combinations of column names all your different queries might
require - you are essentially creating a VO dynamically on the fly with
just the right set of properties.

Javadocs:  http://jakarta.apache.org/commons/beanutils/api/



David




Craig




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Your opinions please

2003-01-22 Thread V. Cekvenich


Pankaj Dhoolia wrote:

Folks,
 
Was experimenting with patterns to componentize presentations.
Found Tiles absolutely well suited with its concept of Controller per
tile.
 
But I realize that populating the tile maynot be the only thing that I
want to, one may want to do more things which are generic in nature
rather than being Tile specific. For example, a common requirement is to
display or hide, on the basis of the context of the request (and that
may be more than just principal and role). There may be many such
requirements which I may want to dynamically want to plug on in a
generic manner to a selection of my tiles.
 
An ideal way probably would have been to have the ability to define a
set of controllers in a particular sequence for a Tile along with the
Tile definitions, but since there is an option for only one, I probably
need to work my way around.
 
So here's a thought broken down into a number of points:

*	Let me define a single generic Controller 

*	Along with it define my own configuration schema where in I can
define a mapping of my presentation components to the set (and sequence
of the controllers that should be executed before the presentation is
made). Of course I can cache it and take care of dynamic changes to this
cache at runtime etc (if I need to) 

I assume your controler would decide what deefinition to forward. 
Also... each tile would have a controller.


*	Now let me define a generic Security Controller for my site
which encapsulates the understanding of the implementation of security
policies on my site. 

I assume you will use standard servelt 2.2 based declerative security 
for starters and build on it. Web.xml and Struts config support this.
Ex: if usersinrole().
Read up n jdbc relms (and struts.config in StrutsInAction bu Husted)


*	Along with this generic Security Controller now I define a
schema where I can define a mapping of my presentation components to the
associated security rules. Of course I can cache it as well along with
taking care of dynamic changes to this cache at runtime etc (if I need
to) 

*	Now when every Component is to be displayed my generic
Controller (not the generic security controller) is invoked which looks
at the sequence of controllers to be executed and coordinates the
display, and if my generic security controller is also to sequenced then
it is just brought into picture by the generic controller and it
utilizes the ComponentContext and the security mappings configurations
to execute what ever security rules its wants to.

Security is handled by cotainer/framework. But lets assume you did a 
base action and now you write concreate actions.
IT IS A BAD PARCTICE NOT TO USE STANDARD SERVLET 2.2 DECLERATIVE 
SECURITY. Start with it and build on top of it.
That is my .02 cents.
.V


Just wanted to have your opinions on the model, and if there are
alternative models that have been tried for similar scenarios (I believe
the scenario is a very common scenario).
 
Of course I know it for a fact that Action PlugIn extension by ASQdotCOM
can also be be utilized for such a need
 
cheers,
pdhoolia




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Validating indexed properties

2003-01-21 Thread V. Cekvenich
There are 2 patches  (that I have tried submitting to BugZila a few 
times) that make multi row indexed validation work as is. My clients use 
the patched Struts that make the multi row validation work. I have no 
idea what others do (I can't be one of few with multi row master detail)

Send me a private e-mail and get both patches, either works, use at your 
own risk.

.V
[EMAIL PROTECTED]

Raible, Matt wrote:
I'm guessing that nothing has changed since the message below on Aug. 2001.
Since this is not possible, I'm willing to write out a bunch of Javascript
to do this validation.  My question is, how do I get the mask and such from
the validator.  The validator produces the following:

function mask () { 
 this.aa = new Array("signals[1].action", "The signal '1' has an invalid
action.  Please enter +, - or nothing at all.", new Function ("varName",
"this.mask=/^(\\+|\\-|\\s)$/;  return this[varName];"));

And I want to do this, except using a new function and I'll write signals[1]
- signals[x] as variables.

Thanks,

Matt

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13943.html

* From: David Winterfeldt
* Subject: RE: Does the Validator package work with indexed properties?
* Date: Tue, 21 Aug 2001 15:28:27 -0700 

It can, but it is the same issue as the indexed
property.  You would have to define each field.  There
isn't currently anything where you can specify
'name[x]' and have it match any index (name[0],
name[1], etc.).  Which is what you would probably want
to do.

David

--- Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]>
wrote:

David,

What I was referring to are the tabular fields, i.e,
multiple rows of the same kind of data (a grid). Can
your package be used to validate those.

Thanks.

-Nimmi






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XML to PDF

2003-01-21 Thread V. Cekvenich
Yet another alternative:
JasperReports and iText.

Yan, Charlene wrote:

Hello all,

I just got assigned to convert XML to pdf to do reports.  Is any of you working on it?  Any insights where I should get started my research?  I am looking at xmlmil and aparche xml home right now.

Thanks in advance for your help!

Charlene




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: easy struts

2003-01-21 Thread V. Cekvenich
I finally got you!
:-)
You wrote:
"I'm currently on Windoze, I use Textpad when not using Eclipse."

VIM.org is GUI VI that runs on Windoze! And it runs in X.
He, he, he.

(as does Eclipse-Run in X. and of course everyone knows that RH 8 is 
avilable for free to download, they are not allowed to charge, RH can 
only charge for the CD).

Oh yeah, ant is great, but just to comiple and run in dev., one does not 
have to set it up.
.V

James Mitchell wrote:
-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of V. Cekvenich
Sent: Tuesday, January 21, 2003 8:39 AM
To: [EMAIL PROTECTED]
Subject: Re: AW: easy struts


Thanks for writing it up.

I would say an alternative is to set up your project in 
webapps\myProject, and run the Container outside of IDE (as 
you would in production).


That's correct.  I never run my apps with any IDE's "plugged-in"
container.  If needed, I'll remotely attach to the VM and debug from
there.



This makes it easy to configure Container ( Tomcat or Resin, 
or Orion, 
etc.) to save the session while you change the class "live"

A good practice to be able to change the class and not have to restart



Container, and not have to reacquire the session; while in dev. mode.
Ex: If you change your Action Java code, and you are logged in to you 
webapp, you do not want to navigate back to the same point (save 
session) or restart container.


Agreed.  You have many options available with a good Ant build script.  
Anything you have to do 'by hand' can be (and usually already is)
provided with ant tasks.

In recent projects, I've used Ant to do tasks (ftp, database calls, etc)
that are totally unrelated to software development.  The possibilities
are endless!!!


Also, sometimes one uses more than one IDE at a time, ex: Eclipse and 
when it gets rought, Vi.

.V


Since I'm currently on Windoze, I use Textpad when not using Eclipse.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
	- Mark Twain (1835-1910)




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




Re: AW: easy struts

2003-01-21 Thread V. Cekvenich
Thanks for writing it up.

I would say an alternative is to set up your project in 
webapps\myProject, and run the Container outside of IDE (as you would in 
production).
This makes it easy to configure Container ( Tomcat or Resin, or Orion, 
etc.) to save the session while you change the class "live"

A good practice to be able to change the class and not have to restart 
Container, and not have to reacquire the session; while in dev. mode.
Ex: If you change your Action Java code, and you are logged in to you 
webapp, you do not want to navigate back to the same point (save 
session) or restart container.
Also, sometimes one uses more than one IDE at a time, ex: Eclipse and 
when it gets rought, Vi.

.V

James Mitchell wrote:
I can't speak for everyone, but you should be using Ant to build your
projects no matter which IDE you choose.  Every single (Java) IDE I've
ever used (NetBeans, Jbuilder, Together, Eclipse, Idea) has either
built-in support for Ant or at least a plug-in.

I recently added tutorials that demonstrate building and deploying a
sample Struts app with:
1. NetBeans - http://jakarta.apache.org/struts/faqs/eclipse.html
2. Eclipse  - http://jakarta.apache.org/struts/faqs/netbeans.html

If you see anything that needs correction, please let me know.


--
James Mitchell








-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 7:31 AM
To: Struts Users Mailing List
Subject: Re: AW: easy struts


Hi,

I need some advice how can I made a war file after
creating a Struts app using Easy Struts.

Chears.

<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b 
DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--

- Original Message -
From: "Emmanuel Boudrant" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 11:19 AM
Subject: Re: AW: easy struts



Yes it's mesorry

I think somebody send me a patch about this bug, I going to 

release a new
version this WE.


This bug appear when you add support to a tomcat (Sysdeo) projet

-emmanuel



--- Softwareentwicklung Hauschel 

<[EMAIL PROTECTED]> a
écrit : > Hey, you are the


guy,


who isn't reachable



Hi. This is the qmail-send program at dom.future-invent.de.
I'm afraid I wasn't able to deliver your message to the 


following


addresses.


This is a permanent error; I've given up. Sorry it 


didn't work out.


<[EMAIL PROTECTED]>:



so i'm sure you can answer my last question...

Ich wünsche Ihnen noch einen schönen Tag,
Fred Robert Hauschel

_

Softwareentwicklung Hauschel
Fred Robert Hauschel

http://www.hauschel.de
[EMAIL PROTECTED]

0179 - 69 170 92
07427 - 9 11 79
_


-Ursprüngliche Nachricht-
Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 21. Januar 2003 10:55
An: Struts Users Mailing List
Betreff: Re: easy struts


Hi,

I develop Easy Struts ... and I use Easy Struts for my 


struts apps ;)


I think some people use it too.

Actually I haven't got time for update it ;( so there is some few



bugs...to


be continued...

Thx,
-emmanuel

--- Softwareentwicklung Hauschel 


<[EMAIL PROTECTED]> a


écrit : > Hey all,


does anybody develop with easy struts and eclipse ?

Ich wünsche Ihnen noch einen schönen Tag,
Fred Robert Hauschel

_

Softwareentwicklung Hauschel
Fred Robert Hauschel

http://www.hauschel.de
[EMAIL PROTECTED]

0179 - 69 170 92
07427 - 9 11 79
_


--
To unsubscribe, e-mail:





For additional commands, e-mail:




___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:






For additional commands, e-mail:






___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:





For additional commands, e-mail:





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






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Eclipse IDE

2003-01-20 Thread V. Cekvenich
vim.org I use for XML and JSP editing, for real.
In Eclipse I just add it as a plug in.
Its GUI and all in Windows and X.
.V

Andrew Hill wrote:

Hmm. If your gonna restrict yourself to one editor better pick something
versatile...

Have you tried vi yet?...

...I heard it was better than Emacs

;->

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 21 January 2003 11:07
To: [EMAIL PROTECTED]
Subject: Re: [OT] Eclipse IDE


You're not likely to get many unbiased opinions on this topic.  I will tell
you that my brief experience with Netbeans has been terrible (even on latest
versions).  I'm a big fan of Eclipse even though it doesn't have the JSP
editor yet.  Netbeans also has a gui builder but I don't know how good the
code it generates is.

I don't recommend that your report mandate one IDE over another.  Everyone
on the project should be allowed to use what they like and are most
productive in.  I just found NetBeans very difficult to work with.

David








From: "Daniel H. F. e Silva" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [OT] Eclipse IDE
Date: Mon, 20 Jan 2003 17:35:08 -0800 (PST)

Hi all,
I know that it is very possible that this subject was already discussed
here, but i couldn't
search on archives (why is this resource disabled?).
I'm beginning to design a software development process specification as a
job task. It will
include, for instance, a list of all tools, software, frameworks, etc,
necessary to develop
Web-based solutions in J2EE platform.
And after doing a lot of research, i've found that open-source world has
two leading IDEs:
Netbeans and Eclipse.
I'd like to hear about experiences with both of them. In my preliminary
tests i guess it was
difficult to work with Eclipse with focus on Web development. For instance,
it doesn't have a cool
JSP editor like Netbeans. I've tried an Eclipse plugin, but its features
are inferior than
Netbeans offered features.
But i liked Eclipse's plugins feature. And it has a better aproach to
manage code quality than
Netbeans.
So, opinions?

Best regards,
Daniel.

PS: Sorry for possible language mistakes. English is not my native
language.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:





_
The new MSN 8 is here: Try it free* for 2 months
http://join.msn.com/?page=dept/dialup


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Eclipse IDE

2003-01-20 Thread V. Cekvenich
I used to use NetBeans and now I switched to Eclipse, because Eclipse is 
 so much faster, smaller, and works great with CVS.
Keep in mind that a tool or a framework might not make a project 
successful by itself.
.V

Daniel H. F. e Silva wrote:
Hi all,
 I know that it is very possible that this subject was already discussed here, but i couldn't
search on archives (why is this resource disabled?).
 I'm beginning to design a software development process specification as a job task. It will
include, for instance, a list of all tools, software, frameworks, etc, necessary to develop
Web-based solutions in J2EE platform.
 And after doing a lot of research, i've found that open-source world has two leading IDEs:
Netbeans and Eclipse.
 I'd like to hear about experiences with both of them. In my preliminary tests i guess it was
difficult to work with Eclipse with focus on Web development. For instance, it doesn't have a cool
JSP editor like Netbeans. I've tried an Eclipse plugin, but its features are inferior than
Netbeans offered features.
 But i liked Eclipse's plugins feature. And it has a better aproach to manage code quality than
Netbeans.
 So, opinions?

Best regards,
 Daniel.

PS: Sorry for possible language mistakes. English is not my native language.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Building navigation bar with Struts

2003-01-20 Thread V. Cekvenich
http://sourceforge.net/projects/struts-menu/

Rick Ashley wrote:

Hello,

I would like to build same kind of navigation bar as a top navigation 
bar to my application that www.google.com has. (Items like Web, Images, 
Groups, Directory and News). It uses plain html with tables and 
td-tags's background color, not gif images. I would also like to have 
aleft side navigation bar so some kind synchronizing with these to 
navigation bar should exists. E.g. when choosing item in left navigation 
bar should highligt same item in top navigation bar.

What is the easiest way to build this kind of menus and handle selected 
item with focusing using Struts?

Any sample code or information appreciate.

Br

rick









_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Axis/SOAP proposal for Struts

2003-01-17 Thread V. Cekvenich
Interface?
Can this thread move to dev list?
.V

[EMAIL PROTECTED] wrote:


I agree - extending the Action Servlet shouldn't be required.




   
   
 "Bradley G Smith" To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
 <[EMAIL PROTECTED]> cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 01/17/2003 11:45 AM   Subject:  Re: Axis/SOAP proposal for Struts 
 Please respond to "Struts 
 Users Mailing List"   
   
   





I have been thinking about it this off and on for a while. It seems to me
that SOAP (or xml-rpc or ...) would be another access point into the
business logic of the application that is a peer to the access point
provided by a Struts-based layer. The Struts-based components provide the
mechanism to deliver content to web browsers, the SOAP interface enables
content delivery from the business logic layer to other types of clients on
the network. I do not see the need to extend the ActionServlet to provide
this type of access.

Brad Smith




  "Mike Oliver"

  
<[EMAIL PROTECTED]>
  rs.com>  cc:

   Subject: Axis/SOAP proposal
for Struts
  17-01-03 07:45

  Please respond

  to "Struts Users

  Mailing List"







Struts Users,



I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services Interface to Struts.  FormBeans would be part of the payload
for requests.  Responses would be generated by Forwards for SOAP.  This
new Axis entry point would do the same work as ActionServlet with the
only significant difference being the construction of the FormBean.
Incoming SOAP Requests would be configured to call the same
RequestHandlers and as far as the actions go they won't know that the
source was an HTML Form or a serialized FormBean.



I feel this will give a great deal of flexibility to Applications where
they want a Web Browser User Interface as well as Web Services for the
same Application Data Model and Business Logic.



I am planning on doing this anyway, and felt it applicable to this group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.



Michael Oliver
Chief Technology Officer
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
520.574.1150 Voice
520.844.1036 Fax
520.270.8862 Cell
http://www.appsaspeers.com   Home Page
[EMAIL PROTECTED] SMS
http://www.ollie.ezpeer.net   Personal
Home Page
http://www.ollie.im-live.com/im-live/  Instant Chat
[EMAIL PROTECTED] MSN Messenger
[EMAIL PROTECTED] Yahoo Instant Messenger
MikeOliverAZ Aol Instant Messenger











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





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DAO and Struts Best Practice

2003-01-17 Thread V. Cekvenich
I TOO am too dense to communicate it clearly sometimes:
But this is clear:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/ROOT/src/basicWebLib/org/commons/DAO

Take a look at the DAO interface;  and then a DAO implementation above.
(OT: The 2nd DAO implementation there will be using Commons SQL but not 
ready yet)

Static for me is the getting a hold of the connection pool so that gets 
done once, has nothing to do with getters/setters.
The parms are passed once.
Even a DAO.update() does not have parms, once can just do reflection and 
getmetadata, etc. genericaly.

But each bean (bean has getters/setters) has its own instance of DAO helper.

.V


Phase Web and Multimedia wrote:
My struts app access my resource layer via a DAO pattern. I have been using
DAO for a while and have seen various manners in which this is implemented.
I have some questions for all of you out there in regards to the DAO pattern
that you use and why. Following are some comparison points between a few
patterns. What in your opinion are the pluses and minuses

Below I describe a few DAO patterns. If you have others feel free to append
them:

Static Method DAO Pattern:
- class is not instantiated
- class use static methods
- class contains multiple methods
- each method contains it's own connection instantiation and destruction
- parameters needed to perform each method's operation's are passed into the
method

Instantiated DAO with Method parameters: (* This is the pattern I use)
- class is instantiated
- class methods are NOT static
- class contains multiple methods
- connection is a setter/getter and is shared among all methods during the
life of the instantiated class object
- parameters needed to perform each method's operations are passed into the
method (no setters/getters)

Instantiated DAO Bean Pattern:
- class is instantiated
- class methods are NOT static
- class contains multiple methods
- connection is a setter/getter and is shared among all methods during the
life of the instantiated class object
- parameters needed to perform each method's operations are held on the
class level as members of the class. They are altered with setters/getters.
Each method receives no parameters.

The one method DAO:
This pattern can be applied to all of the above. Essentially every class
contains only one method that accomplishes a specific function.

I use the second pattern simply because during development I can see what
parameters my method needs to perform it's funtion and make sure they are
passed in. If I try to compile without providing the proper parameters the
compile fails and I know my error before I start testing the class. It's
simply a development things... easier javadoc and code completion as well.
But, there have been times when I questioned the amount of parameters being
passed into the method, but, rarely. My pattern does not easily lend itself
to using tools like BeanUtils to perform property copying from one bean to
another.

So, what are your thoughts.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: The best way for learning struts (stupid question)

2003-01-17 Thread V. Cekvenich
I will post here when I am ready soon. Glad there is interest, I got 
some private e-mail.

As I plan to donate materials to Jakarta I would like to see if some 
of the Advanced Pros would want to participate, so that one of them 
could teach next online seminar, or maybe even document some of the 
presentation.
.V

Joyce Gu wrote:
Hello,
Do you have the web address and we can refer to when you start your 
training session? I have worked on Strut for seven months now. I learned 
by myself. However, I would like to have a formal training and I really 
like that the idea that you will give home work too.
Thanks

At 08:31 AM 1/16/2003 -0500, you wrote:

http://www.sdtimes.com/news/063/story2.htm
Tomcat has most market share (above) and  best support.
(Check out PostgreSQL and Eclipse).

Re: training:
I plan to do public training "Intermediate Struts" via the Internet, 
in about a month.
4 Sessions Saturdays at 10:15 for about an hour, giving  labs for  
home work due for next week labs. The cost will be only to cover the 
cost of webex, and so that it is not FREE.
It will cover is Struts review, Tiles, Master/Detail, Multi Row 
Update, Option Selections, Development Process, CRUD testing, and how 
to develop very very fast,  etc.

I have done lots of public (and private training) Struts training (and 
won best training by JDJ) and am looking to showcase my training 
approach, so someone else can do this kind of an online training 
seminar next time so I can see other training aproaches(but I would 
like them to take the class first, or even contribute to it, and then 
maybe donate all back to Struts). If I sign up at least 20 people I 
will do it.

.V

(This is not intro to Struts, some pre-reqs for the class are at least 
some MVC, and some books such as "SQL for Smarties",  "Java Web 
Compoent Developer Certification" or at least "JSP Weekend Crash Course")

joni santoso wrote:



* The Servlet API -- foundation to every Java-based web application



It's probably worth throwing in "installing and configuring a servlet
container like Tomcat" at about this point.  Many of us have the 
luxury of
sysadmins who takt that task on, but it's a very useful skill to 
know how
to set Tomcat up on your development PC.

I wonder if Tomcat is used in real and critical application by major 
companies? What other servlet containers out there? I once played 
with orion.
=== 

Meriahkan Hari Valentine Anda dan Ikuti Lomba Desain Kartu Eletronik 
dengan Tema Valentine
Ikuti Polling Pemilihan Pemenang Lomba Desain Kartu Elektronik Natal 
dan Tahun Baru 2003 di http://kartu.plasa.com/lomba
KSI PlasaCom - Reuni Alumni STTTelkom 
http://www.plasa.com/belajar/reuni.html 
=== 





--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



Joyce GuM.S
Scientific Programmer
Biomedical Computing Facility
Baylor College of Medicine
Phone: (713)502-7024(C)
Fax: (713)798-6822
email: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: numberFormat

2003-01-16 Thread V. Cekvenich
Formating could be done in the view, for example using JSTL format tag:

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html


Gabrovsky, Ivaylo wrote:

You can find it in JDK API
http://java.sun.com/j2se/1.4.1/docs/api/
java.text.NumberFormat

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: numberFormat


Is there a struts documentation that explains what those formats are?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 10:13 AM
To: 'Struts Users Mailing List'
Subject: RE: numberFormat

moneyFormat=$###,###,##0.00

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:03 AM

What is the proper format string to put into ApplicationResources.properties
to get



to produce   $3,456.00 from an integer?

Steve



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: complexed structures/objects

2003-01-16 Thread V. Cekvenich
Check out nested tags for starters.

Michael Mashian wrote:

guys.

can someone please help with retrieving data from complexed
structures/objects using tags ?




-

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.


-





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Important Struts Question

2003-01-16 Thread V. Cekvenich
Regarding jobs:

Consider one could write a vertical killer app. in Struts and become an 
employer (not an employee).  It's kind of working out for me.
The side benefit is you become the PHB. ("Everyone must use MVC")

(Maybe we can get Robin Givens in here?)
.V

Haseltine, Celeste wrote:
But at least that means the job market must be picking up in some areas of
the US, if she has to go to a user list to find talent.  Here in the
Dallas/Ft. Worth, Tx area, the market is still pretty bad, since most of the
telecom companies (WorldCom, Alcatel, Northern Telecom), and a number of
dot.coms were either based here, or had regional HQ offices here.

Celeste

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Important Struts Question


Uh ohrecruiter spam now?

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:08 PM

Hey Gang,

Does anyone live in Northern California who is an expert with Java, J2EE,
Servlet, Struts--JSP of course--and Web Logic?  Perhaps you have a friend
who does?

This would be for a year long contract with a Fortune 500 company in the
East Bay of the San Francisco Bay Area.

Please contact me immediately at 650-583-3600 to discuss this terrific
opportunity.

Cheers!
Aileen
Aileen Cardenas
Technical Recruiter
Apex Systems, Inc.
1250 Bayhill Drive, Suite 101
San Bruno, CA  94066
650-583-3600
650-583-3668 Fax
www.apexsystemsinc.com




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Controlling amount of log messages in Struts 1.1

2003-01-16 Thread V. Cekvenich
Set up your log4.jproperties file to do that.

John Fairbairn wrote:

Hi,

I'm using Struts 1.1-b2 within Websphere Studio Application Developer 4. I am getting an excessive amount of messages logged to my console such as:

0 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true

10 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true

3265 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='UIStrings', returnNull=true

I tried setting the debug param to 0 when configuring the ActionServlet with no success:



action

org.apache.struts.action.ActionServlet



application

UIStrings

 



config

/WEB-INF/conf/struts-config.xml





debug

0



2 



I'd like to have no log messages written to the console or any other files. 

Thanks,

John 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: The best way for learning struts (stupid question)

2003-01-16 Thread V. Cekvenich
http://www.sdtimes.com/news/063/story2.htm
Tomcat has most market share (above) and  best support.
(Check out PostgreSQL and Eclipse).

Re: training:
I plan to do public training "Intermediate Struts" via the Internet, in 
about a month.
4 Sessions Saturdays at 10:15 for about an hour, giving  labs for  home 
work due for next week labs. The cost will be only to cover the cost of 
webex, and so that it is not FREE.
It will cover is Struts review, Tiles, Master/Detail, Multi Row Update, 
Option Selections, Development Process, CRUD testing, and how to develop 
very very fast,  etc.

I have done lots of public (and private training) Struts training (and 
won best training by JDJ) and am looking to showcase my training 
approach, so someone else can do this kind of an online training seminar 
next time so I can see other training aproaches(but I would like them to 
take the class first, or even contribute to it, and then maybe donate 
all back to Struts). If I sign up at least 20 people I will do it.

.V

(This is not intro to Struts, some pre-reqs for the class are at least 
some MVC, and some books such as "SQL for Smarties",  "Java Web Compoent 
Developer Certification" or at least "JSP Weekend Crash Course")

joni santoso wrote:


* The Servlet API -- foundation to every Java-based web application



It's probably worth throwing in "installing and configuring a servlet
container like Tomcat" at about this point.  Many of us have the 
luxury of
sysadmins who takt that task on, but it's a very useful skill to know how
to set Tomcat up on your development PC.


I wonder if Tomcat is used in real and critical application by major 
companies? What other servlet containers out there? I once played with 
orion.
=== 

Meriahkan Hari Valentine Anda dan Ikuti Lomba Desain Kartu Eletronik 
dengan Tema Valentine
Ikuti Polling Pemilihan Pemenang Lomba Desain Kartu Elektronik Natal dan 
Tahun Baru 2003 di http://kartu.plasa.com/lomba
KSI PlasaCom - Reuni Alumni STTTelkom 
http://www.plasa.com/belajar/reuni.html 
=== 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Active users in a struts web application.

2003-01-15 Thread V. Cekvenich
I should have said I would keep doing the listener.
:(

{Maybe if I read the whole message}
.V

VEDRE, RANAPRATAP REDDY wrote:

Not a struts specific question, but i know where the experts are...

I am tring to show the users currently logged into a web application, so
that anybody who logs in can see who else is logged in.

This functionality is similar to a standard chat program.

i am using ServletContextListener and HttpSessionAttributeListener classes
in the server API.

Struts 1.1b2, so i can use Plugins if needed.

Any help/ideas about tracking users currently logged into a web application
are most welcome.



Thanks,
Rana.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Active users in a struts web application.

2003-01-15 Thread V. Cekvenich
Try a session listener, store it in a db table.
.V

VEDRE, RANAPRATAP REDDY wrote:

Not a struts specific question, but i know where the experts are...

I am tring to show the users currently logged into a web application, so
that anybody who logs in can see who else is logged in.

This functionality is similar to a standard chat program.

i am using ServletContextListener and HttpSessionAttributeListener classes
in the server API.

Struts 1.1b2, so i can use Plugins if needed.

Any help/ideas about tracking users currently logged into a web application
are most welcome.



Thanks,
Rana.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts horizontal menu

2003-01-15 Thread V. Cekvenich
Cool menus is used in struts-menu, available for free on sf.net.
.V

Raible, Matt wrote:

One problem with HeirMenus is they now charge for it - doh!

http://www.webreference.com/cgi-bin/hier/index.cgi

CoolMenus offers the same functionality, and it's free:

http://www.dhtmlcentral.com/projects/coolmenus/?m=10


-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 8:14 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts horizontal menu


Sandra, 

Have you looked at using HierMenu's?  It's a JS menu with a LOT of
functionality in it.  There is also an article on adapting it to work with
Struts, but I had already adapted the Heir Menu's to dynamically create a
menu based on the user's previous chosen preferences, which are stored in
the database.  When I first started using the JS files for HeirMenu, the
code was free, but I believe the site now charges a nominal fee for the
code.  More info on HeirMenu's can be found at:

http://www.webreference.com/dhtml/

an the article on how to modify it to work with Struts can be found at:

http://www.webreference.com/programming/java/jspmenus/

Again, I didn't do exactly what the article presented, as I had already
modified HierMenu's to work dynamically in JSP's 2 years ago.  

Hope this info helps.

Celeste


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:16 AM
To: '[EMAIL PROTECTED]'
Subject: Struts horizontal menu
Importance: High



	I have many difficulties of presenting the menu which I wish in my
application. I already 	posted a message on this subject, a person sent a
example to me but unfortunately some 	imperfections remain and I am not
able to solve them. This example uses the tags Tiles and 	Javascript
functions but unfortunately I have very little knowledge of Javascript. 
	This is why I launch a new call. The problem is as follows we wish
to place a menu in the 	Web 	pages of our application. The menu should
not be posted in a band on the left of all pages but in 	the header
(horizontal position). 
	Example of JSP page:

	<>	Home	Admin	Titel1 	Title2 	Help

	

---
	|
	|	Table
	|
	

---

	The main items can have sub-items

	- Home (no sub-item)

	- Admin
		- Change password

	- Tile1	
		- sub-item1
		- sub-item2

	- Title2

	- Help
		- about


	The requirements are the following, 
	- we want to present the menu in a horizontal bar. 
	- spaces between each command (home, admin, etc...) must be regular.

	If somebody has an example who function I am really very interested.

	Thanks in advance
	Sandra




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Validator and security roles

2003-01-15 Thread V. Cekvenich
Another aproach:

Call a setter for the role (1)
(ex: formBean.setRole(req.getUserPrinicipal) in "onSave" in action.

Now your can call formBean.validate() in your action.

And... your formBean class must implement a validate method to do all 
your logic.

This way you can use the same formbean validation in model1, or anywhere 
where you need the bean.

Or a variant of yours is to just do (1) and then do your role 
thingy. That code could be usefull to others.

,V

PILGRIM, Peter, FM wrote:
Hi

Has anyone used the Struts Validator with security roles?

What I would like to do validate on fields which depend 
on the login account detail. It doesn't matter what kind of
the credential either user id, realm, or group role 
but the type will be a java.lang.String. For example

role: `submitter'

  check the fields  `firstName', `lastName' are not null or blank

role: `reviewer'

  check also the fields  `firstName', `lastName' are not null 
  or blank but also check `supervisor', `department' too.


My first thought would be to subclass the `FieldChecks' class 
(1.1 beta3) to add an extra parameter `role', but then how
do I get the "role" into the action form bean. 

Thoughts?
--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-5642



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
 Regulated by the Financial Services Authority




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




OT/ Friday: A Struts Haiku

2003-01-13 Thread V. Cekvenich
action does not fire, jsp is a mess
take a deep breath and redirect ...oh I how wonder, should one unit test

Rick Reumann wrote:

Time, too much have you
major geeks these people are
boss know you do this? :)


On Monday, January 13, 2003, 4:17:13 PM, James wrote:

JM> Interesting post. What does all this mean to me? I have errors
JM> now.

JM> --
JM> James Mitchell




-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 4:11 PM
To: 'Struts Users Mailing List'
Subject: RE: A Struts Haiku


Your action is null.
So your form will not process.
Edit struts-config.


-Original Message-
From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 4:05 PM
To: Struts
Subject: A Struts Haiku


a Struts Haiku

model view control
struts is good for this model
simple it is not






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




JM> --
JM> To unsubscribe, e-mail:   
JM> For additional commands, e-mail: 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Productivity Survey

2003-01-10 Thread V. Cekvenich
In this case, does the consultant/architect:
a. have previous deployed Struts applications,
b. or does the consultant "know of" Struts?

In case a. one should have an idea of how long it takes to train and 
develop. One opinion for time frame range is newbie developers take 
about a few days per MVC, and experienced programers do a few MVCs per 
day (of an average complexity MVC - bean, dao, view, action. 
JasperReports take about the same. Assuming you have decent 
requirements, use an iterative process and have a good DBA). Also, 50 
developers for 100 screens?

In case of choice b. ... lets see nothing comes to mind.

.V





[EMAIL PROTECTED] wrote:
Ok, so let me pose it a different way.  Put yourself in this position:

You're a consultant or an architect who has been tasked with building a Struts application with 100 screens.  You're actually migrating an application which was originally written as a fat client app in VB and the server was written in C++.

You have about 50 developers who know VB and C++ pretty well.  Some of them know Java/JSP/Servlets very well.  Some of them know it very little.  None of them know Struts.

Your job is to estimate the cost of getting these folks up to speed on Struts.  You already have the application design.  THere's going to be a thin business layer called by the Action classes that will use EJB session beans to provide application functionality.  Fairly simple.  You have to train these people to use Struts, create actions and pages, and write the web-tier business layer.  Somebody else is doing the EJB stuff.

How do you estimate that cost?
How long do you think it will take for these various developers to write their first business function?
How long to do the next one, etc?



-Original Message-
From: Andreas Mack [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 12:34 AM
To: Struts Users Mailing List
Subject: Re: Struts Productivity Survey


On Fri, 2003-01-10 at 07:57, Rick Reumann wrote:



easier. I think it's really going be difficult to get an 

accurate feel


for how long it takes people to get 'up to speed' with 

struts since I


think it's much easier now for new developers to learn 

struts simply due


to the books and better documentation available.


I agree 100%. I looked at Struts for the first time in April 
2001 mainly
for the forms stuff, really wanting to use it. I've read the UserGuide
and said "What is he talking about!?" Half a year later, with a real
project at hand it went much faster, using the /example stuff. Back
then there were no DynaForms, no Tiles, no Nested, all the stuff that
makes things much easier now. The pages that are now the Taglib API
Reference were the best resources back then.

Greets,
Andreas.

--
Andreas Mack <[EMAIL PROTECTED]>
mediales. GmbH


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [ANNOUNCE] Struts Training in NYC and DC in January

2003-01-09 Thread V. Cekvenich
#1.We are looking for more people to develop  basicPortal.sf.net 
(baseBeans.com is on basicPortal). Now we are working on setup.exe 
(currently in beta but available) that will install DB, Tomcat (because 
people do not know how to set up JDBC realms in server.xml). As you know 
bP demos master detail processing, XML, RSS, CMS, task tracking, contact 
management, JDBC realms, BLOBs, CRUD,  JMeter, JaserReports, etc. Just 
e-mail me if you know Struts and want to contribute to open source.

#2. Bring a laptop to public training in DC/NYC training to get *FREE* 
autographed "Struts in Action". Prices goes up tmrw by 9:30 AM Eastern.
This is not intro to Struts, you must know some MVC (and JAVA and SQL 
well), I do not like teaching intro.

.V


John Menke wrote:
Increase Your Struts Productivity - Attend the BaseBeans Public Struts
Training

We have a 11 hour public class in DC and in NYC in January.

Washington DC Class -- January 18th 2003
NYC Class  -- January 24th 2003

This class is taught by baseBeans Engineering, the company voted to have the
best hands on training class by JDJ for their "Fast Track to Struts" class.

Get your training from the #1 trainer with a money back guarantee

You will pay $50 to register and be billed the balance. Upon registration,
you will be shipped a CD that contains the tools needed for the class, such
as an IDE, App. Server, some sample working source code, Struts, etc.

Follow this link to register:  http://www.basebeans.com/do/classReservation

At the training, we will cover Struts, Java Server Faces, JDO, DAO,
JDBC,etc.

A pre-requisite for attendance is some Struts knowledge or at least Servlet
and SQL knowledge. This class is targeted at tech leads. Bring your
questions and receive practical advice from the baseBeans team.

You can FedEx a check or a PO for the balance to BaseBeans.

Prior paid students and clients are free for this class, as always, but we
need to know you are coming.

Hope to see you there,

JOHN




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Wanted a Good Struts Book

2003-01-08 Thread V. Cekvenich
That book is about 16 months old and is now FREE on basicPortal.com.
Just download DOCO from there, and there it is!

I am writing 2nd edition now.

.V

P K wrote:

What I actually meant was 'Struts Fast Track' BETA edition. Wonderful 
reviews on Amazon.

mech wrote:

Avoid "Mastering Jakarta Struts". It was on sale at Amazon, so I took it
(at that time all newer (more) up-to-date books weren't available yet).
Actually for a simple application it's okay, but I got the impression
that it's not really "complete". It's somewhere stuck in between Struts
1.0 and 1.1. I guess it's fine, if you don't mind to read the Struts
docu whenever you exceed the scope of the book.
And the taglibs, only mentioned in the appendix... Well just written
down what you could find in the documentation. Hardly any examples for
tag usage (except those cases you could figure out yourself because
obvious)





I would disagree on that point. All the taglibs have
1. a definition of every attribute.
2. working example of the tag.
3. example of what the rendered html result will look like.

There may be errors as mech said, but I have not run across one yet.
I have Chuck and ted's books as well. Weighing in as the thinnist book
of the bunch , I still use it as a tag reference. Having said that I
love ted's book a lot, it is stuffed with a lot of excellent
information.A lot of question that are asked frequently on this list
are answered in this book. Chuck's book I have not had a chance to
really evaluate it fully but I liked what I have seen so far.
--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advanced JSP page help.

2003-01-08 Thread V. Cekvenich
Like I said, if I undersand you.
Struts HTML tag indeed does provide built in ability for multi row 
processing.
But it turns out that was not your question.
.V

Siggelkow, Bill wrote:
V,
	When you replied "Yes" below you seemed to indicate HTML provided some sort of built-in ability for multi-row selection in a table (not in a "select" control) -- I do not believe that HTML provides such -- however, you can indicate of rows in a table using a variety of input controls (checkbox, select).

In my experience I have used a checkboxes for each row to indicate selection and in some cases provide a "Select All" or "Select None" type of control.

-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Advanced JSP page help.


If I understand you, both would work, and very minor load difference.

Yes you can do multirow updates, it is done all the time.

.V

Heligon Sandra wrote:


To group several actions in order to not overload the server
is it better 
(1) to have a check-box column named select in the table
that allows to identify all the records of the table that will be
concern by the next action (save, submit or other)  

or (2) allow the multiple row selection on the table ?
is it possible to select multiple rows on a HTML page ?

-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 16:22
To: [EMAIL PROTECTED]
Subject: Re: Advanced JSP page help.


One opinion:
Use HTML-EL for updateable fields, and JSTL for general processing.

Use tiles for layout.

Use special tags for special formats (menu, display, tree, tab, calendar 
all have JSP tags).

.V

Heligon Sandra wrote:


Thanks for these links but I have an another question.
When one wants to create a page JSP for a Struts application it is very
difficult to know which technology used. 
The software components are numerous: 

- Basic HTML tags (not specific to Struts)
- Basic Struts tags
(http://jakarta.apache.org/struts/struts-html.html)
- Nested tags
- Logic tags
- Tiles library
- The Struts-EL contrib library
- Struts-Layout library
- The tag library (not specific to struts)
- others 

All the items listed above are perhaps not in direct competition because
they offer not all exactly the same thing but I is not found there more.
I would put Basic HTML tags (not specific to Struts),Basic Struts tags and
Tiles in one group but for the remainder? nested vs logic:iterate vs
Struts-EL tags vs struts-layout list tag what is the best to display a

list



of elements in a table 
- where the number the number of recording varies 
- with functions of sorting when a column's header is selected 
- multiple column types (string, check box)  

I would be really interested to know the complete list of tags which exist
and especially the advantages and disadvantages of each one to know which
choice to make to display a list? 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 13:24
To: 'Struts Users Mailing List'
Subject: RE: Advanced JSP page help.


You can look this taglibraries to help you :

http://struts.application-servers.com/

http://edhill.its.uiowa.edu/display-0.8/

Arnaud




-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 8 janvier 2003 11:49
À : '[EMAIL PROTECTED]'
Objet : Advanced JSP page help.




	I seek to create a page JSP with the tags Struts/Tiles
and others.
The page which was 	specified is a little complex for
somebody like me
which has little experiment with HTML
	 this is why I am searching concrete examples in order
to facilitate
this development.
	The page 	that I must carry 	out contains a
table with
five columns, four string 	columns and one column with
check box type.I
attached in file joined an image of this list.
	A button add in the page allows the user to add new
element to the
list.
	So the number of record  varies and a scroll bar must
appear if the
number of records
	is superior to four elements. Is it easy to display
scrollbar with
HTML?
	Is it another solution if one wishes all to display on a page ?
	The view must be customizable and the user can sort the
elements of
the table
	by clicking on the header of the column, is it possible ?
	I hope that somebody already made a similar
interface and will
be able to 	send code.
	Thanks a lot in advance.
	Sandra
	. <>





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





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





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




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




Re: Database generated Reports with Struts Taglibs

2003-01-08 Thread V. Cekvenich
I use JasperReports w/ iReport, both from SourceForge.
.V

Dan Tran wrote:

1. Provide a query screen
2. Load the collection of your custom bean based on search criteria screen
(1)
3. Forward the collection bean  (thru session object) to Display tag to
allow user to page thru (http://edhill.its.uiowa.edu/display-0.8/)
4. The display tage also have option to export the result into csv or excel
spreadsheet

5. Watchout for large result set, seen it can take lots of memory.

Your custom bean must provide get/set methods properties

Hope this help

- Original Message -
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 8:22 AM
Subject: Database generated Reports with Struts Taglibs




Hi, I'd like an opinion on generating database reports with struts, though
using an Action class or a custom bean to generate it, then be forwarded


to


the presentation layer.

I didn't see any examples in the Struts in Action book, so I was wondering
on the best practice.

Also, my problem is, that I don't want to necessarily have a getter method
return a Collection, by fetching all records in memory, I'd like for each
iteration, or the call to getXXX method, for it to fetch another record.

Basically, if someone has done anything similar, generated large database
reports using the strtus framework, I'd like some direction.

Thanks a bunch in advance.

Ilya







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advanced JSP page help.

2003-01-08 Thread V. Cekvenich
If I understand you, both would work, and very minor load difference.

Yes you can do multirow updates, it is done all the time.

.V

Heligon Sandra wrote:

To group several actions in order to not overload the server
is it better 
(1) to have a check-box column named select in the table
that allows to identify all the records of the table that will be
concern by the next action (save, submit or other)  

or (2) allow the multiple row selection on the table ?
is it possible to select multiple rows on a HTML page ?

-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 16:22
To: [EMAIL PROTECTED]
Subject: Re: Advanced JSP page help.


One opinion:
Use HTML-EL for updateable fields, and JSTL for general processing.

Use tiles for layout.

Use special tags for special formats (menu, display, tree, tab, calendar 
all have JSP tags).

.V

Heligon Sandra wrote:

Thanks for these links but I have an another question.
When one wants to create a page JSP for a Struts application it is very
difficult to know which technology used. 
The software components are numerous: 

- Basic HTML tags (not specific to Struts)
- Basic Struts tags
(http://jakarta.apache.org/struts/struts-html.html)
- Nested tags
- Logic tags
- Tiles library
- The Struts-EL contrib library
- Struts-Layout library
- The tag library (not specific to struts)
- others 

All the items listed above are perhaps not in direct competition because
they offer not all exactly the same thing but I is not found there more.
I would put Basic HTML tags (not specific to Struts),Basic Struts tags and
Tiles in one group but for the remainder? nested vs logic:iterate vs
Struts-EL tags vs struts-layout list tag what is the best to display a

list


of elements in a table 
- where the number the number of recording varies 
- with functions of sorting when a column's header is selected 
- multiple column types (string, check box)  

I would be really interested to know the complete list of tags which exist
and especially the advantages and disadvantages of each one to know which
choice to make to display a list? 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 13:24
To: 'Struts Users Mailing List'
Subject: RE: Advanced JSP page help.


You can look this taglibraries to help you :

http://struts.application-servers.com/

http://edhill.its.uiowa.edu/display-0.8/

Arnaud



-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 8 janvier 2003 11:49
À : '[EMAIL PROTECTED]'
Objet : Advanced JSP page help.




	I seek to create a page JSP with the tags Struts/Tiles
and others.
The page which was 	specified is a little complex for
somebody like me
which has little experiment with HTML
	 this is why I am searching concrete examples in order
to facilitate
this development.
	The page 	that I must carry 	out contains a
table with
five columns, four string 	columns and one column with
check box type.I
attached in file joined an image of this list.
	A button add in the page allows the user to add new
element to the
list.
	So the number of record  varies and a scroll bar must
appear if the
number of records
	is superior to four elements. Is it easy to display
scrollbar with
HTML?
	Is it another solution if one wishes all to display on a page ?
	The view must be customizable and the user can sort the
elements of
the table
	by clicking on the header of the column, is it possible ?
	I hope that somebody already made a similar
interface and will
be able to 	send code.
	Thanks a lot in advance.
	Sandra
	. <>






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





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




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




Re: XSLT Struts

2003-01-08 Thread V. Cekvenich


ROSSEL Olivier wrote:

XML in files, and not in DB is fine for small site, or if you do not 
have a lot of consent turn over.

But it is much easier to operate a large site, whit a lot of 
approval, 
editing, etc. and complex custom layouts (tiles) if you store XML 
content in a db, IMO. Ex: flag content as approved. Count number of 
clicks on it. Display content to a role. etc. is trivial with 
a DB XML.


Well, the question is to know what change most.
The XML content itself or the metadata around it.

The advantage of DB is the notion of relations.
The drawback is the cache management.
If the DB allows to retrieve timestamps or things like that so you can
take decisions about cache, it's fine.

Filesystem can be a VERY efficient database, when
properly used.

My main problem with XML databases is the poor load capability.
And RDBMS with XML extensions have too poor functionnalities (at
least Oracle 9iR2)



I do not use it as such, I just store XML as text (or even blob) in a field.
And date/time created is there. As is user that last modified, etc.
Works nice, and in production (and basicPortal is Apache license).

.V




This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advanced JSP page help.

2003-01-08 Thread V. Cekvenich
One opinion:
Use HTML-EL for updateable fields, and JSTL for general processing.

Use tiles for layout.

Use special tags for special formats (menu, display, tree, tab, calendar 
all have JSP tags).

.V

Heligon Sandra wrote:
Thanks for these links but I have an another question.
When one wants to create a page JSP for a Struts application it is very
difficult to know which technology used. 
The software components are numerous: 

- Basic HTML tags (not specific to Struts)
- Basic Struts tags
(http://jakarta.apache.org/struts/struts-html.html)
- Nested tags
- Logic tags
- Tiles library
- The Struts-EL contrib library
- Struts-Layout library
- The tag library (not specific to struts)
- others 

All the items listed above are perhaps not in direct competition because
they offer not all exactly the same thing but I is not found there more.
I would put Basic HTML tags (not specific to Struts),Basic Struts tags and
Tiles in one group but for the remainder? nested vs logic:iterate vs
Struts-EL tags vs struts-layout list tag what is the best to display a list
of elements in a table 
- where the number the number of recording varies 
- with functions of sorting when a column's header is selected 
- multiple column types (string, check box)  

I would be really interested to know the complete list of tags which exist
and especially the advantages and disadvantages of each one to know which
choice to make to display a list? 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 13:24
To: 'Struts Users Mailing List'
Subject: RE: Advanced JSP page help.


You can look this taglibraries to help you :

http://struts.application-servers.com/

http://edhill.its.uiowa.edu/display-0.8/

Arnaud


-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 8 janvier 2003 11:49
À : '[EMAIL PROTECTED]'
Objet : Advanced JSP page help.




	I seek to create a page JSP with the tags Struts/Tiles
and others.
The page which was 	specified is a little complex for
somebody like me
which has little experiment with HTML
	 this is why I am searching concrete examples in order
to facilitate
this development.
	The page 	that I must carry 	out contains a
table with
five columns, four string 	columns and one column with
check box type.I
attached in file joined an image of this list.
	A button add in the page allows the user to add new
element to the
list.
	So the number of record  varies and a scroll bar must
appear if the
number of records
	is superior to four elements. Is it easy to display
scrollbar with
HTML?
	Is it another solution if one wishes all to display on a page ?
	The view must be customizable and the user can sort the
elements of
the table
	by clicking on the header of the column, is it possible ?
	I hope that somebody already made a similar
interface and will
be able to 	send code.
	Thanks a lot in advance.
	Sandra
	. <>







--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-08 Thread V. Cekvenich
XML in files, and not in DB is fine for small site, or if you do not 
have a lot of consent turn over.

But it is much easier to operate a large site, whit a lot of approval, 
editing, etc. and complex custom layouts (tiles) if you store XML 
content in a db, IMO. Ex: flag content as approved. Count number of 
clicks on it. Display content to a role. etc. is trivial with a DB XML.

.V

Johan wrote:
ROSSEL Olivier wrote:


That would be the past IMO. Apache HTTP and Cocon and similar are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, count 
clicks, find matching advertisements to display, display it in a 
struts tile that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for delivery 
of static and dynamic content.



Cocoon is great if your input is already XML.
Cocoon is a fully-XML framework.
And its cache management can't be beat.



The problem I'm facing is that I don't want to put xml documents inside 
a database. This because the fact that there are a lot of documents in 
various formats. So we want to convert those documents to XML. And use 
cocoon to publish those documents. Plus those documents are written by 
people using their average wordprocessor or in the futere a 
wordprocessor which can do XML. We don't want them to feed a Database.

But another part of the website is an application which will be written 
with struts. Now I don't think it is a solution to XML the output from 
struts (I just understant the struts-tag libraries and the struts-layout 
library, I don't want to learn XSP/XForms etc yet) and render it with 
cocoon.

What is wrong with using struts and cocoon mixed together. For me it's 
just a few extra steps to forward an struts action to JSP page that 
produces XML output which will be forwarded to cocoon. Especially when 
it is an form where users have to provide input which needs to be 
processed by a struts action.

On the other side I think it's worthwile when a result of a struts 
action is a XML document, is to render that document with cocoon. So 
levering the power of both frameworks.

Question is if it is possible to render part's of a page with struts and 
 another part with cocoon which are combined within a tiles-definition.

Johan
---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
w: http://www.nilling.nl
e: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Wanted a Good Struts Book

2003-01-08 Thread V. Cekvenich
http://www.oreillynet.com/pub/wlg/2287
Above is great article!
.V

[EMAIL PROTECTED] wrote:


Reviews and feedback on my book, Struts Kick Start, have been very good so
far.

The primary differences I can see for this book are its detailed taglib
examples and the enclosed CD-Rom which contains a good number of open
source packages like Struts, Tomcat, Axis, JBoss, XDoclet, Mysql, etc.

Also, people have told me they thought the coverage of Ant and JUnit/Cactus
testing was good.

Not trying to take away from the other excellent books available.

Kevin

http://www.strutskickstart.com




   
   
 "V. Cekvenich"To: [EMAIL PROTECTED]  
 <[EMAIL PROTECTED]>cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
 Sent by: news Subject:  Re: Wanted a Good Struts Book 
 <[EMAIL PROTECTED]> 
 01/07/2003 09:59 PM   
 Please respond to "Struts 
 Users Mailing List"   
   
   




"Struts in Action" by Husted if you buy only one.

Alok Pota wrote:

I am about to wrap up for the day and head out to a bookstore to get a


good


book on Struts. I have to demo my little
Strut demo apps to my peers @ work.

What is a good Struts book? I am looking for a comprehensive coverage of
hopefully the latest version.


-Alok





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





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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




Re: JSTL-XML does not work

2003-01-08 Thread V. Cekvenich
Test out your XML with outside with a XSLT, easy via browser (all new 
browser will do XSLT).
The basicPortal above does work with XML in a DB and XSLT, the site 
baseBeans.com uses basicPortal.
.V


Mouratidis, Georg wrote:
-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 7. Januar 2003 21:31
To: [EMAIL PROTECTED]
Subject: Re: JSTL-XML does not work




http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/cms/ContentZoomPortlet.jsp?rev=1.7&content-type=text/vnd.viewcvs-markup




Sorry so far, but i does not work.
if i do this way an error is fired and i dont know what to do.

web/views/shared/Organization/OrganizationData.jsp [-1:-1] Validation error messages from tag library xnull: org.xml.sax.SAXParseException: Zeichenumwandlungsfehler: "Unconvertible UTF-8 character beginning with 0xfc" (Zeilenzahl möglicherweise zu niedrig)Validation error messages from tag library cnull: org.xml.sax.SAXParseException: Zeichenumwandlungsfehler: "Unconvertible UTF-8 character beginning with 0xfc" (Zeilenzahl möglicherweise zu niedrig)
Errors compiling OrganizationData.

Again, no idea how to fix this problem

georg




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




Re: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3

2003-01-08 Thread V. Cekvenich
Or just try Tomcat (or Resin).

In general, if one has bugs in BEA or IBM, a good idea is to test the 
reference implementation (Tomcat) to see if you can reproduce, which 
will tell you if it is a container bug.
Tomcat has a lot more market share (and therefore more users) and one of 
the main benefits of open source is better quality.
(the other is that if you run a larger site, say 10,000 or 40, 
concurrent, open source model revenue model is better because of the 
license).
Also, open *support* is much, much better, as you can see. Try asking a 
question of commercial support.
.V

ps: A good open source DB is PostgreSQL (Full ANSI SQL)
(Using MS SQL or Oracle for a large site kills you on the on going 
license if a market downturn. This lets you spend more resources on 
requirements and programer$.) PostgreSQL (and Tomcat and Eclipse) is 
FREE no mater how many DB servers you have in production, so it makes 
your application more cometetive. M$ SQL is a toy. (So is IBM and BEA, I 
realy hate the sales guy who dirves up in his BMW)
Save a buck or two.



Arnaud HERITIER wrote:
it is bug in WLS.
If you need to use the 6.1 SP2 then you should apply this patchs :

062920
 When specifying an  in web.xml in a webapp (the exception
class is located under WEB-INF/classes) when the webapp is deployed,
WebLogic Server was not finding the exception class and throwing a
ClassNotFoundException. This has been fixed.

064449
 Web application deployment was failing and resulting in a
StringIndexOutOfBoundsException. This has been fixed.

064650
 WebLogic Server is now able to load a class from a JAR file with a period
in its name.

065213
 When both xalan.jar and xerxes.jar were in the lib directory,
NoClassDefFound was occurring. This has been fixed.

064391
 When deploying applications that contain malformed MANIFEST.MF entries,
exceptions are no longer being thrown.

Contact the Bea Support to acquire them.

Arnaud



-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 8 janvier 2003 07:33
A : Struts Users Mailing List
Objet : Re: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3




On Wed, 8 Jan 2003, Amit Keshav Kulkarni wrote:



Date: Wed, 8 Jan 2003 11:57:20 +0530
From: Amit Keshav Kulkarni <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3

Hi All,

I tried to install struts-example.war and struts-documentation for
Struts 1.1 Beta 3 on Weblogic 6.1 sp2 on WinNT When I tried


to install


the war files on Weblogic, it gave following error..



I thought I heard people say you needed sp4 to successfully run on WL
6.1???



"  

mydomain:Name=struts-documentation,Ty


pe=Application, loading from path


.\config\mydomain\applications\struts-documentation.war


java.util.zip.ZipException: error in opening zip file"

However the same war files were deployed succefully on Tomcat.
So I tried deploying the exploded directory structure


created by Tomcat in Weblogic.


It gives the following error:

Any solutions ?

Thanks and regards,
Amit


  

of range: -1

This exception is caused by a bug in WebLogic's JVM -- it
does not obey
the spec requirements for the format of lines in the MANIFEST.MF file.

Craig



   at java.lang.String.substring(String.java:1520)
   at



weblogic.servlet.internal.WebAppHelper.resolveManifestName(Web
AppHelper.java


:469)
   at



weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAp
pHelper.java:2


34)
   at



weblogic.servlet.internal.WebAppServletContext.extractClassFil
es(WebAppServl


etContext.java:3407)
   at



weblogic.servlet.internal.WebAppServletContext.setDocroot(WebA
ppServletConte


xt.java:3376)
   at



weblogic.servlet.internal.WebAppServletContext.init(WebAppServ
letContext.jav


a:862)
   at



weblogic.servlet.internal.WebAppServletContext.(WebAppSe
rvletContext.j


ava:815)
   at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
   at


weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)


   at


weblogic.j2ee.Application.addComponent(Application.java:163)


   at


weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)


   at



weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
nt(DeploymentT


arget.java:329)
   at



weblogic.management.mbeans.custom.DeploymentTarget.addDeployme
nt(DeploymentT


arget.java:144)
   at



weblogic.management.mbeans.custom.WebServer.addWebDeployment(W
ebServer.java:


76)
   at java.lang.reflect.Method.invoke(Native Method)
   at



weblogic.management.internal.DynamicMBeanImpl.invokeLocally(Dy
namicMBeanImpl


.java:636)
   at



weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMB
eanImpl.java:6


21)
   at



weblogic.management.internal.ConfigurationMBeanImpl.invoke(Con
figurationMBea


nImpl.java:3

Re: Wanted a Good Struts Book

2003-01-07 Thread V. Cekvenich
"Struts in Action" by Husted if you buy only one.

Alok Pota wrote:

I am about to wrap up for the day and head out to a bookstore to get a good
book on Struts. I have to demo my little
Strut demo apps to my peers @ work.

What is a good Struts book? I am looking for a comprehensive coverage of
hopefully the latest version.


-Alok




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-07 Thread V. Cekvenich
That would be the past IMO. Apache HTTP and Cocon and similar are PITA.

... you can publish static text from Struts like this:
- Store XML content in a db field. (from user input or RSS feed).
- XSLT it and cache HTML cache in a db field.
Or many variations such as Styxx browser side.

You can now approve it, secure it, WIKI it, RSS feed it, count clicks, 
find matching advertisements to display, display it in a struts tile 
that users can move around like my.netscape.com.

I would say it is a good practice to use Struts with XML for delivery of 
static and dynamic content.


.V

Johan wrote:
[EMAIL PROTECTED] wrote:


here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt. 

zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can 
tell
my feeling on the question, I suggest -if your app is "large"- that 
you feed
cocoon with you're serialized XML ... but I don't own such an example.



I agree on using cocoon for publishing XML data. But IMHO we shouldn't 
mix two parts of the universe to much. Struts for webapplications and 
cocoon as a publishing framework.

I just started developing webapplications with struts. It's great for 
the application-part of the website, but for the publishing of static 
text I don't see much advantage using struts. For that I see a great 
advantage in using cocoon.

Now I didn't use cocoon yet. But for me the ideal combination would be 
that I could insert into a tiles-definition a jsp-page, a struts-action, 
a tiles-definition or a xml page. The first three would be handled by 
struts and the xml-page by cocoon.

Have anyone experience with this kind of use with cocoon and struts?

Johan

---
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
www: http://www.nilling.nl
epost: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSTL-XML does not work

2003-01-07 Thread V. Cekvenich
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/cms/ContentZoomPortlet.jsp?rev=1.7&content-type=text/vnd.viewcvs-markup

Above is good working example (also the baseBeans.com is in CVS above)
.V

Mouratidis, Georg wrote:

Hi all,

i have the following code in my .jsp









This is an example in JavaServer Pages Standard Tag Library Doc
but it does not work. 

further more. i can see these lines on the client when i view the source.
this should meen that it wouldnt be parsed by the engine. 

Can somebody help please??

mit freundlichen Grüßen 

Georg XL. Mouratidis 
Web Application Developer 

Heiler|Software AG 
Mittlerer Pfad 9 
D-70499 Stuttgart 

Tel: 0711-139 84-265
Fax: 0711-866 63 01 
Email: [EMAIL PROTECTED] 

Connecting Buyer and Supplier
http://www.heiler.com 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XSLT Struts

2003-01-07 Thread V. Cekvenich
Also consider JSTL X:transform or browser side Styxx or caching HTML in 
a db field.
.V

maya menon wrote:
The artcile is the same one from Javaworld that you sent me, I already downloaded the example, but it explains nothing. the article is good, but the sample is vague
Thanks
 [EMAIL PROTECTED] wrote:here we go
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.
zip
http://www.oroad.com/opencode/stxx/download.html

these are two custom approachs (both with java sources), but if I can tell
my feeling on the question, I suggest -if your app is "large"- that you feed
cocoon with you're serialized XML ... but I don't own such an example.

By the way, could you please send me your wonderful article ?

thank's & regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 18:05
To: Struts Users Mailing List
Subject: RE: XSLT Struts



Fabrice
I got a wonderful arcticle,
But I need a good example..
do u have any or any suggestions\

[EMAIL PROTECTED] wrote:Hi,

go to javaworld.com and search for "XSLT struts" you'll find good
articles +
links to sources...

regards,
fabrice.

-Original Message-
From: maya menon [mailto:[EMAIL PROTECTED]]
Sent: mardi 7 janvier 2003 17:32
To: [EMAIL PROTECTED]
Subject: XSLT Struts


Hi, 
Can any body pls give me an example of using XSLT and struts.. Or can
any one tell me how to convert the sample Struts application so that it
uses Model 2 architecture rather than the usual JSP routines  Any
help apprecaied.
I have had experience with both as seperate techs, but havent used both
together.. 
I was going thru an article from Javaworld, and was thinking of how to
make the sample struts application in such a way that it doesnt have any
JSPs..

Any links, appreciated 
Thanks 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Updating collections of information

2003-01-07 Thread V. Cekvenich
Multirow updates and MasterDetail and even more complex processing is 
done all the time with Sturts.
In resource you will find many sample apps, one of the multirow links is 
here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/cms/ContentApprovePortlet.jsp?rev=1.7&content-type=text/vnd.viewcvs-markup

So yes, of course that works.

.V

Greg Bearth wrote:
I've read the Struts User Guide, "Programming Jakarta Struts", searched
Google, and asked a couple of acquaintances, but have yet to find a
definitive answer to whether Struts can help me in the following situation.
The closest thing I've found is a reference to IndexTags under Struts
Resource.

I have a form which correctly displays information found in a collection of
beans.  However, each piece of displayed information is potentially
updateable.  When the form is subsequently submitted, does Struts
rebuild/update the collection of elements?  I suspect it doesn't because
attempting to retrieve the collection from the form bean returns null.  If
not, any suggestions as to how I should handle this?  Shall I resort to
using straight html elements with a naming convention and Java scriptlets,
as opposed to trying to use the struts html element tags?

Sample portion of JSP:

  " >



  


I am using Struts 1.0.2 and Tomcat 4.1.12.

Any assistance, or confirmation that this is not possible with Struts will
be appreciated.  Thanks.

Greg Bearth
Fourth Generation, Inc.
175 East Fifth Street, Suite 251
St Paul  MN  55101
mailto:[EMAIL PROTECTED]
(651) 260-7643




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Iterate tag with ResultSet Example

2003-01-05 Thread V. Cekvenich
If you want  (updetable) multi row working sample, here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/cms/ContentApprovePortlet.jsp?rev=1.7&content-type=text/vnd.viewcvs-markup

Same link has the bean and dao and other common things.
.V

Mervin Williams wrote:

Can someone please provide sample code that demonstrates the use of passing a
database SQL ResultSet to the logic:iterate tag?  

Please include the .java and .jsp code.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Compliment Frameworks

2002-12-20 Thread V. Cekvenich


ROSSEL Olivier wrote:

O/R is not always needed. Sometimes you just want to work with a 
relational master/detail (ie, next row(); next row();).


My concern is not to have to think in term of (for example) 
Primary Key/Foreign Key or Conposite Key...

Sometimes the business requirements are that you have a master detail ( 
a 2 dimensional array in O/R), or a many to many.
RowSet.next() can be easily overridden.
Relational algebra can explain some business easily, that O/R can't.

In general, to write a good db application, one needs to know the db.
.V


This is too much low level for me. And some programmers I talk
to really don't care about my DB model. 

That's why I am looking for tools that provide an abstract layer between
DB and business objects worlds.

I think O/R is exactly that. 
I don't see exactly what JDO is. An API by Sun for those kind of
problems?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Compliment Frameworks

2002-12-19 Thread V. Cekvenich
O/R is not always needed. Sometimes you just want to work with a 
relational master/detail (ie, next row(); next row();).

Also see basicPortal.com.
.V

ROSSEL Olivier wrote:
There are a couple tutorial examples - and the EDG (Expresso 
Developers
Guide) doc  etc. You'll find the doc at:
http://www.jcorporate.com/product/expresso.html > Documentation. A bit
slow to load - we are currently working on bringing up a new server
which will resolve this. 


After speaking about frameworks (where only Expresso Strutsxx and
Struts+Cocoon
seem to exist), let's talk about O/R mapping.
Which one is the easiest/more mature/more functionnal/best documented/most 
integrable with Struts?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: StrutsCX

2002-12-16 Thread V. Cekvenich
Errr... I'll bite:
What is Struts CX?

.V

Jacob Hookom wrote:

Struts CX is currently not threadsafe, it will be fixed in the next release.

- Original Message -
From: "Lenharcik, Juraj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 5:29 AM
Subject: StrutsCX




Hi all,

does anyone has done something with struts CX? I would be interesstend in
any experiences. What are the (dis)advantages to the cocoon concept?

thanks,
juraj

--
To unsubscribe, e-mail:





For additional commands, e-mail:









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts application & infrastructure choices

2002-12-14 Thread V. Cekvenich
One way is to integrate via Oracle (or less expensive to operate 
PostgreSQL). What ever you need, you can cache or create an async. 
process to store the needed data in the DB, that is in the secured zone.
Sort of a "real" time data ware house. So via Oracle create views or pl 
SQL on to other resources.  Like create "work" tables, that are async. 
synchronized to other resources. This makes it very, very fast for DB 
access, at worst you get a bit stale data at times.
 It is a bit of pick your pain /  gray issue.
To integrate from app server via JMS, you could have performance - 
access time issues, complexity, in addition to other issues.

Also, no reason to run an Web Server, if you have an app. server (since 
any app. server can also server out web pages).

.V

Aymeric Alibert wrote:
Hello,

We are successfully running a large struts application. We designed it using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO pattern to isolate our Data Access layer. Even if everything runs on the same server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to various type of data sources within our company and to communicate with our partners.
Also, our security team does not like having a Tomcat server in the DMZ accessing more and more internal information systems. We would like to take our infrastructure to the next level.

I was thinking of introducing an Application Server within our firewall. It will implement our Data Access connectivity and the DAO on the Web Server will use RMI to access it. 
I am a little afraid of performance degradation by introducing RMI between the Web Server and Application Server. Also deployment will probably be more complex.
Another solution would be to have both Web Server and App Server running on the same box in the DMZ. But that
does not solve my security concerns.

I don't have much experience with application servers and would not need the full features of a J2EE app server (at least not right now). Am I on the right path?
Does someone have advices or best practices to follow?

Aymeric.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: News server

2002-12-13 Thread V. Cekvenich
It will be fixed in Jan. I am moving to larger servers do to volume.
2 CPU 2.8 Ghz Xeons, with RAID 15K RPM drives.

John Zoetebier wrote:

Hi,

Does anybody know where the news server of this mailing list can be found ?
Link http://www.proj.com/subscribe.jsp is broken.






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
Confused as to what your confusion is.

Are you confused that you see one thing and display another (which I get 
a lot from my students?).

There are 2 things going on, a client/browser side join not a db/server 
side join.
Example, you have a formBean with dept "101" a numeric field. You unit 
test this and CRUD. This is your Form Bean!!
Once you get that, then:
Now you want to display "Marketing" as a drop down instead of 101. So 
101-Marketing, 102-Sales, etc. You care a collection, yet another thing 
you put in scope.
The client side, using select and optionCollection tag displays current 
dept., and a choice of other depts.
So a user sees "Marketing" drop down, which comes from the name part of 
collection. But the current value is in the formbean.

.V

Mark wrote:
Okay... But a drop down menu is screen data.

And a list of companies is something that will be used more than once.

So I have a normal class in my model layer

ListCompanies

In my UserAction

(ListCompanies).getCompanies();

But this Action's primary job is to return a list of users (which it does).

As the list is screen data i should be defining this in my form bean? This
is something thats being confusing me for weeks. If i've a bunch of
collections how can i make them available to iterate tags and select menus,
without using useBean (sorry silly design constraint, but beyond my
control).

Hopefully I'm just being silly, i could really do with some pointers as
where i'm missing the point.

Cheers mark


On 13-12-2002 11:49, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:



Also i dont understand why u need to access the request directly.I mean why
are 
u setting all the collections as request attributes.GEnerally I think the good
design is when u r FormBEan represents the screen data.So in this case
whatever 
u need on screen will become attribute of form.
I know it does not make much difference in implemantation but as a design it
becomes pretty straight forward.I mean for an action , if u just look at the
form, u know what is being displayed.So u just populate the form in action.

Any comments... :-))


-Original Message-
From: VEDRE [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:44 AM
To: struts-user
Cc: VEDRE
Subject: RE: OptionsCollection


You can either use attribute collection="users" for options tag if you store
in request
or you can use   name="formName" property="myList"   if you have
a getMyList() method for the form(You have to fill call formName.setMyList()
in your action class before forwarding to a jsp).


checkout http://jakarta.apache.org/struts/userGuide/struts-html.html#options
if you have not looked at the documentation.

-rana.


-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 5:36 AM
To: Struts Users Mailing List
Subject: OptionsCollection


Hello

I've a number of collections already defined that end up being passed to my
jsp's via the request object.

Users in this case is a map defined in my business logic class that does db
queries.

users = (ListUsers).getUsers();

request.setAttribute("users",users);


I itertate through this collection using iterate. But now i want to use this
in a select menu.

Should I be thinking about making my collection available to my FormBean i.e
making a getMyList() method.

Thanks in advance

mark


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
Use Struts-menu from sf.net.

Mark wrote:

Hello

I've a number of collections already defined that end up being passed to my
jsp's via the request object.

Users in this case is a map defined in my business logic class that does db
queries.
 
users = (ListUsers).getUsers();

request.setAttribute("users",users);


I itertate through this collection using iterate. But now i want to use this
in a select menu. 

Should I be thinking about making my collection available to my FormBean i.e
making a getMyList() method.

Thanks in advance

mark




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
Put it in application scope.

Mark wrote:

I've read the documentation.. The confusion is how do i access a collection
when the action returns another

Imagine i've a user form and a list of users on the same page.

[list returned via request via action]
Joe Bloggs
Another User
Etc

Add user form
Name 
Company 

I've already passed a list of users via the request object, and I'm not
happy with the concept of having to run an action everytime i want to get a
collection.

I could have a bunch of collections in my session but I'd prefer to use the
request. I know how to do this by instantiating a bean in my jsp, but I
can't do this due to some silly design constraints because this might
involve people having to learn something else.

I can think of a few ways of attempting this but I imagine that there must
be a way of doing this only defining collections once and being able to list
without calling an action. Ideally my collections will be availble on any
page, without having to instantiate anything.

So far I can only see that manipulating forms via FormBean . But then what
happens when i want the collection for something else? I could be confused
but when i read the struts docs i got the impression that this sort of thing
was possible. 

Many thanks mark
 

On 13-12-2002 11:44, "VEDRE, RANAPRATAP REDDY" <[EMAIL PROTECTED]> wrote:


You can either use attribute collection="users" for options tag if you store
in request
or you can use   name="formName" property="myList"   if you have
a getMyList() method for the form(You have to fill call formName.setMyList()
in your action class before forwarding to a jsp).


checkout http://jakarta.apache.org/struts/userGuide/struts-html.html#options
if you have not looked at the documentation.

-rana.


-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 5:36 AM
To: Struts Users Mailing List
Subject: OptionsCollection


Hello

I've a number of collections already defined that end up being passed to my
jsp's via the request object.

Users in this case is a map defined in my business logic class that does db
queries.

users = (ListUsers).getUsers();

request.setAttribute("users",users);


I itertate through this collection using iterate. But now i want to use this
in a select menu.

Should I be thinking about making my collection available to my FormBean i.e
making a getMyList() method.

Thanks in advance

mark


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Last Nightly build

2002-12-13 Thread V. Cekvenich
As I was peeking on the dev list, it might take them a few days to fix 
so it's in the build.

.V

Fabrice BLANQUART wrote:
Hi

Is it normal that the contrib part( especialy struts-el) of the binary 
nightly build has disappeared  ?

Rgs

Fabrice BLANQUART





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Way-OT] Struts and Swing

2002-12-12 Thread V. Cekvenich
Another Approach is SOAP:
Write a Standard Struts MVC Web application and deploy release 1, web only.
Then add Axis to the mix.
On a SOAP request create the already tested bean (getters and setters).
Best your actions have helpers. Create proxies in SOAP for beans and 
helpers. (model is easier to reuse. Also for this and many other reasons 
 best avoid Dynabeans. Other reasons is Model 1:JSP use Bean; unit 
testing, multi developer CVS hot sport and    much harder to unit test)
Now you can call same via SWING (Or Visual Basic (VB is somtimes easier 
to deploy than SWING) or Excel  etc.).
Call the stubs as needed for the heavy client.

Altenratlively, you can just JAR up your model/bean layer, and use the 
JAR in you Swing app, if you do not have a fire wall to DB.

.V




Eddie Bush wrote:
java botique has an article about this.  Someone posted it in a message 
to this list just days ago.  I just about bet if you do a google search 
for "Struts SWING" you'll find it.

hammett wrote:

Hi   (I could not search the archives, the message "text not available 
for
search" appeared)

We're developing a system that have a swing and a web interface. The 
swing
interface should be used for offline use of the system. We would love to
write once and only once a lot of thing, including the front ends. Of
course, we know the big differences of one and other, but struts have a
declarative way to conduct navigation that we like aggregate to our 
offline
system. First, have anyone tried it before? Do you think that it is 
the best
bet?

Regards

hammett







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DispatchAction CRUD validation problem

2002-12-12 Thread V. Cekvenich
One way is to have validate="flase"
and in your CRUD events manually call validate().

.V

adam kramer wrote:

 I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the validation setting.
I want form validation to be TRUE for C, U and D but FALSE for Read, else
it never gets to the form because its trying to display the form in the
first place. For instance:


		


You can't have validate both ways.
Has anyone figured out how to integrate READ into the CRUD DispatchAction?
Or do I need to make a different action mapping for READ (for showing a
blank ADD page, and a filled Modify/EDIT page).

thanks in advance,
adam k.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struggling with indexed/repeating input fields

2002-12-12 Thread V. Cekvenich
One (good) way is to have your beans implement collection.
Search messages for "cekvenich", I posted like 3 of my last 10 messages 
related to this.

.V

Michael Olszynski wrote:
I saw a post in the thread 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.html

I have the same problem and I can´t get it working. Perhaps someone can help me? It´d be very nice.

I have the problems that the data in my formbean isn´t updated. I mean, I get the data form my formbean in the jsp page. But when I edit it and press submit, it is not updated. I get the same data as I got before.

Do you see perhaps an error? (I reviewed it now 7 hours with the sample source attached in the upper thread, and I can´t find any error. Thank you)

It´s kind of urgent, because my thesis should be finished at the end of december. Thanks

Take care Michael

**
This is my projekterfassung.jsp:






:  
  :



**

My struts-config.xml:




  "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
  "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




  

  
  


   name="timeProofForm"
   type="de.proway.zerf.web.bean.TimeProofFormBean"/>




  
  

 

  


  
  

 
 type="de.proway.zerf.web.controller.ShowTimeProofAction"
 name="timeProofForm"
 scope="request"
 input="/projekterfassung.jsp">
 

  
 type="de.proway.zerf.web.controller.SaveTimeProofAction"
 name="timeProofForm"
 scope="request"
 input="/projekterfassung.jsp">
 



   type="org.apache.struts.actions.AddFormBeanAction"/>

   type="org.apache.struts.actions.AddForwardAction"/>

   type="org.apache.struts.actions.AddMappingAction"/>

   type="org.apache.struts.actions.ReloadAction"/>

   type="org.apache.struts.actions.RemoveFormBeanAction"/>

   type="org.apache.struts.actions.RemoveForwardAction"/>

   type="org.apache.struts.actions.RemoveMappingAction"/>


  


**
SaveTimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class SaveTimeProofAction extends LoginCheckAction {
public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

TimeProofFormBean tpf = (TimeProofFormBean) form;

System.out.println(tpf.toString());
System.out.println(tpf.getVector().toString());
for( int i=0; i < tpf.getVector().size(); ++i ) {
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getDate()  );
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getFromHour()  );
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getFromMinute()  );
}

return mapping.findForward( "done" );
}
}

**
Show TimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class ShowTimeProofAction extends LoginCheckAction {
 public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

Vector newCollection = new Vector();
TimeProofFormBean tpfb = ( TimeProofFormBean )form;
TimeProofTableBean tptb1 = new TimeProofTableBean();
TimeProofTableBean tptb2 = new TimeProofTableBean();
tptb1.setFromMinute(3);
tptb2.setFromMinute(4);
newCollection.add(tptb1);
newCollection.add(tptb2);
tpfb.setVector(newCollection);
return mapping.findForward( "done" );
}
}

**
TimeProofFormBean.java

package de.proway.zerf.web.bean;

import java.util.*;

import org.apache.struts.action.*;

public class TimeProofFormBean extends ActionForm {

public TimeProofFormBean() {
}


Re: Processing multiple records all at once

2002-12-12 Thread V. Cekvenich
1. make the bean implement a collection interface.
2. use indexed tag
DONE! Struts controller does the magic. The multi row is basis for doing 
master detail and many to many on the screen. Most pages need indexed 
(mutlirow, M/D, etc.) forms processing.

Source Ex:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BaseBeanImpl.java

This is a "base" bean, and it implements collection. See the iterator 
adapter in source above.
Struts sees this bean as a "collection" (but is's a bean) and it auto 
sets all the properties. You do nothing in action, etc., other than set 
up your base bean as a collection like above. Base, as in other beans 
extend this class. This means no code needed in action or concreate 
beans to handle multi row, just some code to set up bus. M/d processing.

Than your JSP is same as before, you just use indexed property as so:
<%@ tag lib uri="struts/html" prefix="html" %>
<%@ taglib uri="struts/logic" prefix="logic" %>
<%@ taglib uri="jstl/c" prefix="c" %>










FieldName:













For more come to my "1 day best practice Struts" class.
http://www.basebeans.com/do/classReservation
money back if you don't like. You'll learn at least 10 more cool things, 
but some Struts is a pre-req., I do not do intro to Struts.

hth, .V
(voted best instructor as per JDJ)

Brad Balmer wrote:
I was looking on the basicPortal site for the example, but couldn't find
it.  Could you give a direct link?

-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of V. Cekvenich
Sent: Thursday, December 12, 2002 6:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Processing multiple records all at once

This is good.

However a bit much copying. Also, quite a few forms could have multi

row processing or master/detail processing. One does not want to to it 
over and over; if you do OO, you could create a basebean that does this 
in the ancestor, by having your formbean implement a collection, as in 
basicPortal.com open source example.

.V

Max Cooper wrote:

Brad,

I have written some pages/actions that do what you describe here. I


believe


that one way to go would be to use nested properties, but I haven't


tried


that yet, so I am not sure how to do it. The solution I used was to


create


an ActionForm for the page that has arrays for each field from the


rows.


Something like this (generic example -- replace rowId and rowProperty1


with


your real row properties):

public class RowsForm extends ActionForm {
  private String[] rowId;
  private String[] rowProperty1;
  public String[] getRowId() {
 return rowId;
  }
  public void setRowId(String[] rowId) {
 this.rowId = rowId;
  }
  public String[] getRowProperty1() {
 return rowProperty1;
  }
  public void setRowProperty1(String[] rowProperty1) {
 this.rowProperty1 = rowProperty1;
  }
}

The properties are arrays to receive values from each row in the data


set


when you submit the form. For iterating through the data, we added a


method


that would return a Collection of objects, where each represents a


single


row. Something like this:

public class RowForm extends ActionForm { // this could also be a


plain-old


JavaBean, too
  private String id;
  private String property1;
  // getters and setters for the id and property1
}

// add this method to RowsForm
  public Collection getRows() {
 Collection rows = new ArrayList();
 final int size = rowId.length;
 for (int i = 0; i < size; i++) {
RowForm row = new RowForm();
row.setId(rowId[i]);
row.setProperty1(rowProperty1[i]);
rows.add(row);
 }
 return rows;
  }

So, that setup will allow you to get the data out of the form after


the user


submits their changes (by calling RowsForm.getRows()). You will get


data for


each row, so you still need to decide which rows were changed, and


which


ones the user simply left alone.

As for getting the data into the form and displaying it on the page,


you


could add another method like populateForm(Vector rowData) to copy the


data


to the arrays like this:

// another method in RowsForm
  public void populateForm(Vector rowData) {
 // get the Vector size
 final int size = rowData.size();
 // initialize the arrays
 rowId = new String[size];
 rowProperty1 = new String[size];
 // copy the data from the objects in the Vector into the arrays
 Vector rowData = new Vector();
 final int size = rowData.size();
 Enumeration enum = rowData.elements();
 for (int i = 0; i < size; i++) {
Data element = (Data) enum.nextElement();
rowId[i] = String.valueOf(element.getId());
rowProperty1[i] = element.getProperty1();
 }
  }

However, it might be a bit wasteful to copy all the data into the


arrays if


Re: Processing multiple records all at once

2002-12-12 Thread V. Cekvenich
This is good.

However a bit much copying. Also, quite a few forms could have multi 
row processing or master/detail processing. One does not want to to it 
over and over; if you do OO, you could create a basebean that does this 
in the ancestor, by having your formbean implement a collection, as in 
basicPortal.com open source example.

.V

Max Cooper wrote:
Brad,

I have written some pages/actions that do what you describe here. I believe
that one way to go would be to use nested properties, but I haven't tried
that yet, so I am not sure how to do it. The solution I used was to create
an ActionForm for the page that has arrays for each field from the rows.
Something like this (generic example -- replace rowId and rowProperty1 with
your real row properties):

public class RowsForm extends ActionForm {
   private String[] rowId;
   private String[] rowProperty1;
   public String[] getRowId() {
  return rowId;
   }
   public void setRowId(String[] rowId) {
  this.rowId = rowId;
   }
   public String[] getRowProperty1() {
  return rowProperty1;
   }
   public void setRowProperty1(String[] rowProperty1) {
  this.rowProperty1 = rowProperty1;
   }
}

The properties are arrays to receive values from each row in the data set
when you submit the form. For iterating through the data, we added a method
that would return a Collection of objects, where each represents a single
row. Something like this:

public class RowForm extends ActionForm { // this could also be a plain-old
JavaBean, too
   private String id;
   private String property1;
   // getters and setters for the id and property1
}

// add this method to RowsForm
   public Collection getRows() {
  Collection rows = new ArrayList();
  final int size = rowId.length;
  for (int i = 0; i < size; i++) {
 RowForm row = new RowForm();
 row.setId(rowId[i]);
 row.setProperty1(rowProperty1[i]);
 rows.add(row);
  }
  return rows;
   }

So, that setup will allow you to get the data out of the form after the user
submits their changes (by calling RowsForm.getRows()). You will get data for
each row, so you still need to decide which rows were changed, and which
ones the user simply left alone.

As for getting the data into the form and displaying it on the page, you
could add another method like populateForm(Vector rowData) to copy the data
to the arrays like this:

// another method in RowsForm
   public void populateForm(Vector rowData) {
  // get the Vector size
  final int size = rowData.size();
  // initialize the arrays
  rowId = new String[size];
  rowProperty1 = new String[size];
  // copy the data from the objects in the Vector into the arrays
  Vector rowData = new Vector();
  final int size = rowData.size();
  Enumeration enum = rowData.elements();
  for (int i = 0; i < size; i++) {
 Data element = (Data) enum.nextElement();
 rowId[i] = String.valueOf(element.getId());
 rowProperty1[i] = element.getProperty1();
  }
   }

However, it might be a bit wasteful to copy all the data into the arrays if
you are going to call getRows() to turn them back into a Collection of
objects so that you can use the  tag to display them in the
JSP. If you can get the data into a Collection instead of a Vector (or is a
Vector a Collection these days?), you can just have a single Collection
property on RowsForm that you set in the action, and the JSP will call the
getter to get the Collection to iterate over. The JSP to iterate over the
Collection and write out the rows might look something like this:



  id
  property1



  
<%-- write the id as text for display, and also as a hidden field for
submittal --%>


  
  

  




Your Action will get the populated RowsForm on the submit, and you can call
RowsForm.getRows() to get a Collection of RowForm objects to work with.

-Max

- Original Message -
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 5:44 PM
Subject: Processing multiple records all at once




I've searched the internet and different news groups for an answer to this
question, but have yet to find something that matches what I'm trying to


do.


I have an application that reads records from a table and creates an
instance of a bean for each row.  Therefore, when I return from my DB


call,


I have a Vector of beans representing the data.

I need to display all of this on one jsp form, letting the user have the
ability to update any of the fields in any of the records and click a


Update


button, which will send ALL of the data back to the Action class to be
processed.  I have done this before (not using Struts), but we have


switched


our Architecture and need to re-implement.

Any help would be GREATLY appreciated.





_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://j

Re: JSTL x STRUTS bean display

2002-12-10 Thread V. Cekvenich
In a secret place: http://jakarta.apache.org/struts/resources

you can find a link to this (www.basicPortal.com)
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/portlets/proj/TasksLstPortlet.jsp?rev=1.4&content-type=text/vnd.viewcvs-markup

Here is another hiden place, where you can find that this was already 
answered like 4 times:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/

.V

ps: (new e-mail is vc at baseBeans.com, not [EMAIL PROTECTED])



Joao Araujo wrote:


>
>
>  I have a arraylist  containing a collection of beans, something like
>  :
>  List list = new ArrayList ();
>
>
>  list.add(bean1_1);
>  list.add(bean1_2);
>
>  request.setAttribute ("BEAN1_LIST",  list);


 
 




This does not work. I tried this before.
Has to be something else.

Joao,


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Design Question regarding navigation menu

2002-12-09 Thread V. Cekvenich
I could not follow your question.
A good practices that I use is to have centralized navigation in XML, 
using Struts menu from sf.net.

.V

Mark Conlin wrote:
 
Design question regarding navigation menu. (I am using tiles)
 
Suppose I have a navigation menu with several choices/sections, I would
like to highlight the choice/section the user is currently in.
Example: choice A, choice B, choice C
 
Which is the proper approach?
 
Create a separate menu with each choice highlighted and then have each
of my tile-definitions override to the correct one.
OR
Create one menu header and have it make the decision as to which menu
choice to highlight based on some value 
(value would be set/altered by an Action)
OR
Create one menu header that makes a decision as to which menu choice to
highlight based on the URL.
 
I am leaning towards choice two. but I am not sure what the "proper" way
is. 
Any suggestions/Examples would be great.
 
Thank you
Mark
 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread V. Cekvenich
+1

Gemes Tibor wrote:

2002. december 9. 13:48 dátummal John D Hume ezt írtad:


You could probably compare pRequest.getParameter("Submit") against the
internationalized string, though it might be better to go a way that won't
make you dependent on those labels.  You could flip it around and decide
based on the Name of the submit button.  Something like:



LookupDispatchAction?

http://husted.com/struts/tips/003.html

Hth,

Tib





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Pass parameter to the same JSP & Display parameter value intoi/p bean field.

2002-12-08 Thread V. Cekvenich
Here is where you can find sample apps, cleverly hidden on the home page 
of Struts:
http://jakarta.apache.org/struts/resources/index.html

But don't be shy about taking a intro public Struts training class, 
there are like 10 companies that train ( It used to be a few last year). 
Or consider a mentor/consultant, many on this list.

I think you display a list of items, and users type in how many of each 
they want to order or something? If so:
Once you master parm passing using examples above(it is so basic in 
Struts), bellow is an example of a multi row update.
It might be more intermediate to do this. (that is why I like to teach 
Struts to people how "know" Struts)
Struts basically does multi row updates for you almost transparent, 
trick is index tag and form bean that implements iterator (you know 
where the example is, right?). Rumor is that David Karr is adding docs 
on Index tag in a few days.
Multi row updates are basis of doing master detail processing on a 
single page or a many to many on a single page, I give you sample 
working code for a simple multi row update:

<%@ tag lib uri="struts/html" prefix="html" %>
<%@ taglib uri="struts/logic" prefix="logic" %>
<%@ taglib uri="jstl/c" prefix="c" %>










Username:













hth,

.V


Harshal D wrote:
 My app (simplified)
ProductSearch.jsp – display a search box (searchForm) for product name 

-- > Action - > Get name string create product bean

 --> (AGAIN) ProductSearch.jsp display list of products bellow the search box.

--> In the list display QTY from product bean – but allow user to change it – submit every line to GetPrice action with changed product bean (changed qty).

Questions:

1>Any example of similar code ? – pass parameter to the same JSP (preferred request scope)

2>A table row displays i/p bean property as well as allows user to change – any such example?

3>Basically for some reason my parameter passing is not working – if any one wants to help I’ll send the code. My guess – I do not understand bean creation / resetting.

 

Thanks

 

Harshal.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Java Server Faces stage?

2002-12-07 Thread V. Cekvenich
Summary: I am considering bypassing JSF for XFORMS.

Details:
Adolfo, I have sent several longish feedback's to JCP/EG, and mostly 
gotten wait till next release. But I do not see them accepting input so 
far, true to the reputation of JCP. After calling Ms. Cleo, here is yet 
another opinion on JSF, with all respects due Craig (my guess is that 
even he can't get them to change):

1. The reference implementation of JSF, and most that follow, it will 
likely be non- scalable, and of no use to sites with large loads. As 
anyone can read the spec., it tends to do most of the "rich GUI" 
processing on the server, not on the browser.  (Because it might not use 
a browser?)

2. JSF seems design seems design by committee, where no one said no. It 
is designed for many exceptions.
- It does HTTP and other protocols.
- It does HTML and other "devices", like the long dead WAP.
Thus, I expect it to be not particularly good at any. The design should 
have been design for the rule, not the exception, so it should have been 
a HTTP/HTML design. Example where they made it complex is this state 
management stuff. If you work mostly on HTTP/HTML, there is a more 
standard way of doing things .* Same as EJB is distributed and cached 
and  local and persistence and does not use SQL, but EQL.
As people in project management know, to succeeds on a project, you must 
be able to say no. (or read about it at why projects succeed at 
softwarereality.com) JSF is sort of like a design for a submarine that 
is also a lawn mower.
State can be managed just fine as is.
See links at: http://jibbering.com/2002/4/httprequest.html

3. http://asp.net/webmatrix/default.aspx?tabindex=4&tabid=46
I asked JCP/EG to have a real client that has production web app that 
have rich GUI be involved in some way. MS I think is closer to being 
useful, yet again. My guess is that EG is more focused on technology for 
the sake of technology.


4. Multiple beans on a page? That is not MVC. That means in the view you 
are creating master detail relationships. In Struts, you have a single 
form bean. That means that you can create a business bean with master 
detail processing, or many to many processing and unit test it and reuse 
it elsewhere, with no code in the view. (you do this by overriding 
iterators next, and CRUD events in the bean). So not very MVC. Also, it 
talks a bit about expression language instead of DAO, making it harder 
to overload/ovreride, which IMO is not OO, thus not productive or reusable.


5. The RI is not open source. Enough said.

Right now, Ms. Cleo thinks JSF will be a flash in a pan, and will go the 
way of EJB.  So I will refer baseBeans and MVC clients to stick with 
JavaScript for now. But I will demo JSF features (and bad Sides) at all 
my public and private training's.
(2 coming up in DC and NYC, and also at each of the training everyone 
gets a FREE AUTOGRAPHED book on Struts by Husted).

So what does Ms. Cleo tell me will win? .NET?

Ever heard of W3.org standards?
http://www.w3.org/2002/11/xforms-pressrelease.html.en
and one plug in
	 http://www.formsplayer.com/introduction.htm

As J2EE vendors jump on, see attached and links at:
http://www.novell.com/xforms (by SilverStream)
* Attached shows drag and drop on XFORMS.
I hope you see how this is much more competitive with .NET.

Can you do JSF with XFORMS? Not sure, it appears that you would then 
process 2 sets of events.

It takes a lot of change management to switch technologies, and JSF 
might be in and out, not worth learning. Keep you eye on XFORMS.


.V
(917) 345 1445

ps: for a preview of new baseBeans.com site see proj.com.
It has XML content in DB, and uses JSTL:X tranform to render, among 
other cool things.








Craig R. McClanahan wrote:

On Fri, 6 Dec 2002, Adolfo Miguelez wrote:



Date: Fri, 06 Dec 2002 16:22:47 +
From: Adolfo Miguelez <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Java Server Faces stage?

I have been looking at glance the JSF Tutorial, at my idea idea, is that
Craig, do the things as they should be done. I mean, I large large thought,
planning, ordering ideas and short implementation. Sounds goods.

Just a set of very well ordered ideas rather that I huge development.
Good.

However, there is a point where I got worried: it seems (correct me, please,
if I am mistaking) that Craig policy is back in server the components
running in the client. In Struts, ActionForms back the info introduced in
the HTML forms, in JSF, it goes beyond and a whole component behaviour
(events, value, validation) is backed in server, e.g. drown-down lists are
backed by an UISelectOne class.




In simple terms, yes -- UIComponents in JavaServer Faces provide the same
"server side backing" storage for UI state that ActionForms do for Struts
apps.  However, they are actually somewhat more powerful (for example,
you'll be able to choose from different approaches on *how* the state is
saved

Re: Question about Struts-EL and JSTL

2002-12-05 Thread V. Cekvenich
indexed tag for multi row updates and master/detail forms processing and 
 dito validator.

Wendy Smoak wrote:
The README for Struts-EL says "every Struts tag that provides a feature
that is not covered by the JSTL (1.0) library is mapped into the Struts-EL
library."

Why was the  tag retained when I seem to be able to do the
same thing with ?

There must be something that  can do that JSTL can't.  What
is it?

Thanks!






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: abstract class

2002-12-05 Thread V. Cekvenich
From basicPortal, using disptaching (it also uses event object to 
encsulate response,request, forward, formbean, etc.):

protected Object dispatchEvents(ActionEvent ae) {
String parm = ae.getReq().getParameter(DISPATCH_KEY);
if (parm == null)
parm = "Default";

// start Dispatching
ActionForward retObj = new ActionForward();
try {


			String methodName = "on" + parm + "Exec";
			
			try {
Class args[] = { 
Class.forName("org.apache.commons.dispatch.ActionEvent") };
Method eventMethod = this.getClass().getMethod(methodName, args);

Object objs[] = { ae };
retObj = (ActionForward)eventMethod.invoke(this, objs);
			}
			catch(NoSuchMethodException e) {
System.out.println("Could not find method " + methodName + 
"(ActionEvent) to invoke.");
			}
			catch(Exception e) {
e.printStackTrace();
			}



} catch (Exception e) {
log(e, this, "*** DISPATCHING a " + e.toString());
}

return (ActionForward) retObj;
}


Mohan Radhakrishnan wrote:
Hi,
   I looked at the archives and found abstract base actions.

   1. I have two actions, the base handling the basic flow and the
sub-action handling the alternate flow. ( Apart from these two I have a
common base action which all actions extend containing login checks etc. )

   Now I wanted to pass the control to the sub-action when the alternate
flow happens. Usually it is polymorphism. Now with struts everything is
routed by the config.xml file. I can't call a method in the sub-action from
the base action ? Does it violate the struts flow ?

   That is why I decided to use an abstract method somewhere in the
hierarchy to be polymorphic but abstract classes can't be instantiated by
struts.

   That is what caused the confusion. Is my thinking right ?

The reason why I decided to have a sub-action instead of a helper class is
that in some cases it might be an independent action.

Thanks,
Mohan 

-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 5:56 PM
To: Struts Users Mailing List
Subject: Re: abstract class


Mohan,

Two different behaviors is what you wish then you need to derive from a
concrete base class. Abstract classes are more likely to provide conformance
to an architecture or signature template.

In Struts, folks usually inherit from the Action class to create certain
behaviors. If you need to super() to a base class, you are correct, it
cannot be an abstract class. I would suggest that it shouldn't be in most
any case, but I don't know your architecture.

It is also early and I am not sure of your terminology. A base class is a
super class (standard inheritance diagrams display that way) and subsequent
derivations are known as subclasses. When you want to use the code in a
super class from your sub class, you user super() to call it. So your sub
class (a derivation of your base class) needs to call into its super class,
it is done with a super() call. The super() call is (and must be) the first
statement in the subclass's overriding method.

All of this seems too easy, so I am sure I have completely missed the point.

Brian


- Original Message -
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 5:47 AM
Subject: abstract class



Hi,

  If an action has two different behaviours then it is advised to use an
abstract method in the base class that the sub-action can override.

  Our base action's perform method has to pass control to a sub action's
method for the varying behavior. But if we use an abstract method then the
action cannot be instantiated.

How is this usually done?
Thanks,
mohan

--
To unsubscribe, e-mail:





For additional commands, e-mail:









--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Emails

2002-12-03 Thread V. Cekvenich
One thing to consider. if you like MVC.

What I do is save e-mail to an e-mail table in DB.
Then I have a console async process in a cron job select all e-mail that 
was not flaged as sent.

(I also do RSS same way).

It just works better form me this way.

.V

VEDRE, RANAPRATAP REDDY wrote:
sending a mail from struts action is no different from sending a mail from
any HttpServlet.

u can use JSTL mail library if u want to do it in jpp , but the best option
would be to use JavaMail API as u want inside a servlet.

-rana.



-Original Message-
From: Wendy Cameron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 4:42 PM
To: Struts Users Mailing List (E-mail)
Subject: Emails


How do you send an email from inside a servlet using the struts framework?

Does anyone know of some sample code etc? or a good tutorial?

Regards Wendy

--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: subclassing action

2002-12-02 Thread V. Cekvenich
same

Mohan Radhakrishnan wrote:

Hi,
  I am looking for information on subclassing actions. Is there a way to
transfer control to the subclass if a certain check in the super action is
valid ?
Is this how this is done ? In normal OO, it happens based on polymorphism.
How is it done with struts ?

Thanks,
Mohan





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Bean database access concepts

2002-11-27 Thread V. Cekvenich
Yes of course. But then if you want to change your persistence 
implementation it is more difficult.

.V

David Graham wrote:
Your DAO objects can be beans.

David







From: "V. Cekvenich" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bean database access concepts
Date: Wed, 27 Nov 2002 12:25:06 -0500

Bean does not access the db!

DAO access the db. (DAO can be implemented several ways)
Bean has a DAO helper.

DAO can get JNDI pool from container or make its own pool, based on 
properties.

Also, you should be able to unit test you beans for CRUD.

I wonder where the sample code that does this would be? I know, if I 
go to struts resources page and look for a DB sample, that would do it.

.V


Joao Araujo wrote:


I am not using EJB but plain beans to access the database.
I defined everything in such a way to isolate  database access 
from action bean.
Now, I have some doubts about how to access the database 
connection.
Should I pass the connection as a parameter to the beans that 
accesss the datdabase, or
should I use another method?

Thanks a lot for your attention,

Joao,








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



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




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




Re: Bean database access concepts

2002-11-27 Thread V. Cekvenich
Bean does not access the db!

DAO access the db. (DAO can be implemented several ways)
Bean has a DAO helper.

DAO can get JNDI pool from container or make its own pool, based on 
properties.

Also, you should be able to unit test you beans for CRUD.

I wonder where the sample code that does this would be? I know, if I go 
to struts resources page and look for a DB sample, that would do it.

.V


Joao Araujo wrote:


I am not using EJB but plain beans to access the database.
I defined everything in such a way to isolate  database access 
from action bean.
Now, I have some doubts about how to access the database connection.
Should I pass the connection as a parameter to the beans that 
accesss the datdabase, or
should I use another method?

Thanks a lot for your attention,

Joao, 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Updating CachedRowSet

2002-11-26 Thread V. Cekvenich
RowSet does not do Multi Table Updates! Neither does CommonsSQL as I saw 
it. That is why it's light weight, fast and scalable, since it does not 
deal with O/R, it is just relational data. For R/O, you can do joins, 
most data is R/O. Also, if you do use RowSet, do not use ResultSet, no 
need for it. (The reason I use Struts is that is is light weight and 
fast, thus I avoid heavy DAO layers that do not do SQL (ex: EJB, JDO, OJB).

For R/W:
But of course one can do master/Detail, or many to many, or more 
complicated updates, in fact most updates are "compound". See if I can 
explain this, but it takes using the tool between the ears:
For multi table updates I create a nested bean. Master/Detail like.
I always start by creating base beans, simple beans that are unit 
tested, and have a dao, but have a singe table.
Then I created a C bean that extends bean A, and has a bean B. (is a/has 
 a is very OO **)
Bean C has 2 tables now. (you get the idea?) It has a B getB() method. I 
override next (for iteration) to go next on the A and B, find  {to do 
super.find() (for A) and B.find for b }, save { super.save(), B.save() 
}, etc.
With this Zero copy approach, I can get very high transactions rates for 
low overhead. Compare this to multi copy and ineficient aproach of array 
list of objects when you need to do updetable master detail processing.
Why is this Zero copy? Because the cached or disconnected row set, where 
the retrieval happens, is where the setters fire. (Advanced: My beans 
are actually collections with getRow so they can do multi row updates, 
but  they look like regular beans).

I can change DAO implementation at will as well. I can use same bean in 
console, or Model 1, or Soap, etc. since DAO lets me create a DBCP pool 
or use the pool of the container (based on properties).
My Beans of type C are tied to the presentation layer.

OT: (Since my beans of type C are tied to the presentation, I do 
presentation first on my projects as a "contract" with 0 code until the 
presentation layers is accepted and signed of by a client.
The presentation just has actions that forward to "success", nothing 
else, maybe some other navigation logic.
The JSPs the client sees look real, as a finished app. It has tiles, and 
CSS, but no java code, no point in coding until the client signs of. 
Once the client says, yes, this is the what I want (Just blank actions 
and JSP) then I start coding the "simple beans" that I unit test. Then I 
create the bus. compound beans (is a/ has a) and unit test them. Thus I 
have benefits of layered iterative approach. The thing that I will be 
adding soon to "example app" , is more browser side procesing in XFORMS, 
and JavaScript.
Consider allways writing presentation and action mappings first in Model 
2, then beans come natural. That is why you do MVC layers, right, so you 
can unit test each!).

.V


** Some people do not realize that Java is OO capable.  Java does not 
produce OO reusable code on it's own, it compiles fine linear, but you 
could if you have experience make it reusable via OO. This lets me reuse 
beans, and other things.



John Bigboote wrote:
Hmm, I think that's implementation dependent.  For
example, the Oracle CachedRowSet implementation
doesn't support updating joined tables.  See:

http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a90211/rowset.htm#628357

I don't know for sure, but I'll wager the RI doesn't,
either...

John



--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:


My initial SQL SELECT statement that creates my
ResultSet pulls data from several tables.  I wasn't
sure if the RowSetWriter implementation would be
able to accommodate this scenario, so I've started
using the CachedRowSet object as a means of passing 
data from DAO to business logic and back.  I had to 
kill the writer in order to use the

'acceptChanges()'


method.  Does the default RowSetWriter handle 
updating multiple tables?

Jerry


-Original Message-
From: John Bigboote [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: [OT] Updating CachedRowSet



--- Jerry Jalenak <[EMAIL PROTECTED]>


wrote:


[...snip...]



	crs.updateString("userInfo", userInfo);
	crs.updateRow();
	crs.setWriter(null);   // kill default writer
	crs.acceptChanges();



Why are you setting the writer to null?  It's the
RowSetWriter that propagates changes back to the
database...

John


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up


now.


http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   





For additional commands, e-mail: 



This transmission (and any information attached to
it) may be confidential and is intended solely for
the use of the individual or entity to which it is
addressed. If you are not the intended recipient or
the person responsible for delivering the
transmiss

Re: [OT] Updating CachedRowSet

2002-11-26 Thread V. Cekvenich
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java

Above has a working DAO implementation that uses RowSet.
The idea is that you can have many implementations using DAO.
(So, next to it is same DAO that uses SQL-Commons. I only use light 
weight DAO becuase they have higher performance and mostly zero copy beans).

After you review above, follow up.

.v

Jerry Jalenak wrote:
My initial SQL SELECT statement that creates my ResultSet pulls data from
several tables.  I wasn't sure if the RowSetWriter implementation would be
able to accommodate this scenario, so I've started using the CachedRowSet
object as a means of passing data from DAO to business logic and back.  I
had to kill the writer in order to use the 'acceptChanges()' method.  Does
the default RowSetWriter handle updating multiple tables?

Jerry



-Original Message-
From: John Bigboote [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: [OT] Updating CachedRowSet



--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:

[...snip...]



	crs.updateString("userInfo", userInfo);
	crs.updateRow();
	crs.setWriter(null);   // kill default writer
	crs.acceptChanges();



Why are you setting the writer to null?  It's the
RowSetWriter that propagates changes back to the
database...

John


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: future of struts

2002-11-20 Thread V. Cekvenich
If anyone spends a large percentage of time in the tags, jsp or view, 
then they are not fully using Model2, MVC layers. Alas, there are a lot 
of people who are need help with Struts on this list. (One example: 
newbies tend not to unit test the bean, so they debug it in the JSP.  A 
player uni tests the bean, so no issues in the view, just plop. )
JSP tags are an aside to Struts.

You can and should use JSTL. HTML tag also.

.V

edgar wrote:
This is obviously a true statement, kind of like motherhood and
applepie.  Unfortunately, an innordinately large percentage of
development time is spent with the tag library, as even a casual perusal
of this list reveals.

Any time spent improving the interface to struts has a disproportionate
effect on the efficiency of the developers using the platform.

Anyway, that is my $.02.  ;->

Edgar

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 12:02 PM
To: 'Struts Users Mailing List'
Subject: Re: future of struts


There is no issue.  Whether you use struts or not you can still use the 
taglibs.  The taglibs in struts are, in that sense, independent of 
struts.  Struts is an application framework first and a set of taglibs
as a 
bit of an aside, although there are obvious connections.

Micael

At 12:23 PM 11/20/2002 +0100, you wrote:


the following article i found at TheServerSide.com



The tag libraries bundled with Struts provide access to simple and


indexed properties; the


org.apache.struts.taglib.nested package contains tags that access 
simple

and indexed properties in a


nested combination. For a complete list of all tags available with


Struts, refer to the


http://jakarta.apache.org/struts/userGuide/index.html; more resources





on


Struts are available at


http://jakarta.apache.org/struts/resources/index.html. The future


direction of Struts is to transition


over to JavaServer Pages Standard Tag Library (JSTL) and JavaServer


Faces tags.

But what does the last sentence mean. do i have to throw my HTML-pages
away because the STRUTS tags
are not longer needed. Or is there a misunderstanding?

mit freundlichen Grüßen

Georg XL. Mouratidis
Web Application Developer

Heiler|Software AG
Mittlerer Pfad 9
D-70499 Stuttgart

Tel: 0711-139 84-265
Fax: 0711-866 63 01
Email: [EMAIL PROTECTED]

Connecting Buyer and Supplier
http://www.heiler.com

--
To unsubscribe, e-mail:





For additional commands, e-mail: 



Micael

---

This electronic mail  transmission and any accompanying documents
contain 
information belonging to the sender which may be confidential and
legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent
as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of
the 
information contained in this transmission is strictly prohibited.  If
you 
have received this transmission in error, please delete the message.
Thank you 



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: About RowSet

2002-11-20 Thread V. Cekvenich
I forgot to add... this way you can use the options collection tag. 
Writing your own tags is something you want to reduce.
.V

V. Cekvenich wrote:
Which is not very Model2.
Anytime you do something is JSP or EL. you are writing logic in the 
View, which is not the layered approach, thus less efficient.
Write less in View! Unless you are off loading processing to Browser via 
.js functions (javascript).

Much better to prepare everything ahead of the JSP/View.

.V

edgar wrote:

http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html

I think this is what you are looking for.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, November 19, 2002 10:24 PM
To: 'Struts Users Mailing List'
Subject: About RowSet


Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet? What is the significance difference using a rowset instead of
our custom generated collection object or something like TableModel?
What would be a better option for the following situation.

Objective
1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set. Approach 1
1. Run the SQL
2. Populate Collection (RowSet/TableModel/Any other) from
ResultSet
3. Pass the collection to Custom Tag
4. Custom Tag will generate  based on
the collection.

In the above scenario will I save any processing (Looping) if I use
RowSet? If I am using my own collection I need to run Loop 1 to create
the collection and Loop 2 inside Custom Tag to generate HTML. RowSet
looks like saving the first loop. But how it is internally doing? Is it
the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant


---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


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






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




Re: About RowSet

2002-11-20 Thread V. Cekvenich
Perhaps you wanted to create a SQL Super type. This is a commons sql 
design, it goes like this.

Thre are many types, codes, and decodes in SQL.
Newbies solve it like this.
Table States: StateCode, StateName;
Table Status: StatusCode, Status
Table NextStep: Step, Name
Table Type: Type, Name
etc. etc.

Thus creating many code tables and poulting the model and not be able to 
write OO.

The solution is a super type table that decodes all types like this:
Type, Code, Name
Ex:
State, NY, New York
Status, Closed, Closed

etc.

So one table to stroe all the types.

Then write a simple bean 2, properties, name/value.
Then write a helper bean that returns a collection of properties above, 
based on type.
So find("states");
or find("status");

I should upload this example up to bP.
My invoice is on the way.
hth,
V.
917 345 1445
[EMAIL PROTECTED]

Savantraj, Chennamakal Subramanian wrote:
Hi,

Thanks for your reply. I think I failed to share my objective clearly with
you.
What we are planning to do is
	1. Create a DB Table with two columns
		{ID  VARCHAR2(20)
		 SQL_STMT VARCHAR2(1000)}
	2. Register the SQL statement with an ID in DB
		For Example for a Customer Drop Down generation I will have
a record like
		ID- CUSTDD001
		SQL_STMT - SELECT Cust_Cd,Cust_Nm from Customer 
	3. Write a Custom Tag Which will take this ID as an Argument
	4. Custom Tag will retrieve the SQL_STMT based on ID ,then execute a
loop on the resultset 
	and return an HTML output like 
	
			CustNm1
			CustNm1
			CustNm1
	
	
	This looks a deviation from Model 2 Approach.

	So alternatively I was thinking to populate some Collection using
some standard Method defined and then pass
this collection to Custom Tag. This is definitely a good approach in
Architecture sense.But if I consider the performance factor this looks a bit
expensive. Reason is simple, I need to run the SQL and execute a loop on
ResultSet to create the Collection. Then in the custom Tag I need to run
another loop on Collection to generate HTML.This effect can be really
considerable in case of pages with many DropDowns.
	Returning resultset is another option which will leave me Statement
unclosed. I heard somwhere that ResultSet can be assigned to RowSet without
any loops. Also I can close the Statement and return the connection.
Hope this will explain my situation better.Pls advise.

Thanks & Regards
Savant
	




-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: About RowSet


http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html as 
per google, or you can read the JavaDoc on rowset in Java Developers 
Connection on JavaSoft.com.

You should either use RowSet or Resultset, not sure of why mix.
RowSet extends ResultSet, major difference that former is a bean, that 
is you can say new RowSet(), thus making GC a bit easier for new 
developers who do not do the nested finally right for the ResultSet.

Since you are posting on Struts, I assume you would use existing tags, 
as opposed to writing tags.

There is a source code approach with "zero" copy on basicPortal.sf.net.
A DAO has a ROWSET. (or CommonsSQL - 2 ways)
A Bean has a DAO.
DAO is also an iterator, and Bean is also a Collection(advanced topic: 
even as your treat this bean for testing with bean properties, Struts 
sees it as a collection (iterator adaptor w getRow), so it can do multi 
row updates, for master detail processing).
You unit test the Bean, so it can be used by Console, Model1 use bean, etc.

The benefit of this design is that when a setter is fired by Struts, it 
is on the disconnected RowSet, thus Zero copy.
There are no VO, DTO, etc. objects that are GCed later, thus you can 
support more concurrent users per server.

Not sure what loops or populations you are talking about, but there is a 
rowset DAO w/ Struts on sf.net

Above is for any bean.

For options collection, you can create an collection of beans, with 2 
properties. Again, do not use Resultset for beans, and RowSet for 
options, it makes no sense.

hth,
.V

ot: I will soon have a DAO that also uses Commons SQL so you can chose 
RowSet or CommonSQL (else you write your own DAO, to say JDO)

Savantraj, Chennamakal Subramanian wrote:

Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet?
What is the significance difference using a rowset instead of our custom
generated
collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set.
Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on the
collection.

In the above scenario will I save any processing (Looping) if I use


RowSet?


If I am using my own

Re: About RowSet

2002-11-20 Thread V. Cekvenich
Which is not very Model2.
Anytime you do something is JSP or EL. you are writing logic in the 
View, which is not the layered approach, thus less efficient.
Write less in View! Unless you are off loading processing to Browser via 
.js functions (javascript).

Much better to prepare everything ahead of the JSP/View.

.V

edgar wrote:
http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html

I think this is what you are looking for.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, November 19, 2002 10:24 PM
To: 'Struts Users Mailing List'
Subject: About RowSet


Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet? What is the significance difference using a rowset instead of
our custom generated collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set. Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from
ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on
the collection.

In the above scenario will I save any processing (Looping) if I use
RowSet? If I am using my own collection I need to run Loop 1 to create
the collection and Loop 2 inside Custom Tag to generate HTML. RowSet
looks like saving the first loop. But how it is internally doing? Is it
the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant
	

---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: About RowSet

2002-11-20 Thread V. Cekvenich
http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html as 
per google, or you can read the JavaDoc on rowset in Java Developers 
Connection on JavaSoft.com.

You should either use RowSet or Resultset, not sure of why mix.
RowSet extends ResultSet, major difference that former is a bean, that 
is you can say new RowSet(), thus making GC a bit easier for new 
developers who do not do the nested finally right for the ResultSet.

Since you are posting on Struts, I assume you would use existing tags, 
as opposed to writing tags.

There is a source code approach with "zero" copy on basicPortal.sf.net.
A DAO has a ROWSET. (or CommonsSQL - 2 ways)
A Bean has a DAO.
DAO is also an iterator, and Bean is also a Collection(advanced topic: 
even as your treat this bean for testing with bean properties, Struts 
sees it as a collection (iterator adaptor w getRow), so it can do multi 
row updates, for master detail processing).
You unit test the Bean, so it can be used by Console, Model1 use bean, etc.

The benefit of this design is that when a setter is fired by Struts, it 
is on the disconnected RowSet, thus Zero copy.
There are no VO, DTO, etc. objects that are GCed later, thus you can 
support more concurrent users per server.

Not sure what loops or populations you are talking about, but there is a 
rowset DAO w/ Struts on sf.net

Above is for any bean.

For options collection, you can create an collection of beans, with 2 
properties. Again, do not use Resultset for beans, and RowSet for 
options, it makes no sense.

hth,
.V

ot: I will soon have a DAO that also uses Commons SQL so you can chose 
RowSet or CommonSQL (else you write your own DAO, to say JDO)

Savantraj, Chennamakal Subramanian wrote:
Hi,
Could anyone share your experience in using RowSet to Transfer data from
ResultSet?
What is the significance difference using a rowset instead of our custom
generated
collection object or something like TableModel?
What would be a better option for the following situation.

Objective
	1. Create a Custom Tag which will generate a Table HTML Display
based on a Result Set.
Approach 1
	1. Run the SQL
	2. Populate Collection (RowSet/TableModel/Any other) from ResultSet
	3. Pass the collection to Custom Tag
	4. Custom Tag will generate  based on the
collection.

In the above scenario will I save any processing (Looping) if I use RowSet?
If I am using my own
collection I need to run Loop 1 to create the collection and Loop 2 inside
Custom Tag to generate
HTML. RowSet looks like saving the first loop. But how it is internally
doing? Is it the same way?

Pls provide your advice.

Thanks in advance

Best Regards
Savant
	

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   3   >