RE: NewBie: Iterations for a constant no. of times

2003-08-03 Thread Oguz Kologlu
You should be using the JSTL for this.
Have a look at a concise JSTL reference at:

http://www.manning.com/bayern/appendixA.pdf

Oz

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:06 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


Somebody please answer my question as in the email below..

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: NewBie: Iterations for a constant no. of times


I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

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



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



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


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



RE: NewBie: Iterations for a constant no. of times

2003-08-03 Thread Oguz Kologlu
Jitesh,

I didn't say that. I think you have some misconceptions about
what struts is.

You were asking how to do a for loop. The answer is to use the
Java Standard Tag Library - JSTL. There is no need to use
struts tags for this. JSTL and Struts tags play very
nicely together.

If you are absolutely desperate to use the struts tags instead
you'll have to dig out the right tag yourself since I won't waste
my time on it.

Oz


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:35 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


you mean to say there is absolutely no way  I can achieve it by using
Struts???
If that is the case,struts is not a wise choice to use in our apps..because
we don't know what is present there and what is not


-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 7:55 PM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


You should be using the JSTL for this.
Have a look at a concise JSTL reference at:

http://www.manning.com/bayern/appendixA.pdf

Oz

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:06 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


Somebody please answer my question as in the email below..

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: NewBie: Iterations for a constant no. of times


I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

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



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



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


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



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


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



Action with no associated form bean?

2003-07-27 Thread Oguz Kologlu
Hi all,

I'm having some problems getting a form that has no associated form bean to
display.

It's  basically a logout form with no fields that calls a logout action but
has no form values so doesn't require a form bean - yet it seems you must
have a form bean to call an action.

Is this the case? Is there another solution around this or do I have to
create a dummy form bean / dynaform to call the action?


Thanks
Oz


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



RE: Session beans are shared across multiplae instances of browsers!

2003-03-31 Thread Oguz Kologlu
Shilpi,

You should also make sure you are not actually in the same session. If you
use IE and press ctrl-n for a new window you will be in the same session to
the server.

Oz

ps. too funny - you work for xerox!!! ;) well, maybe not
that funny.

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED]
Sent: Monday, 31 March 2003 9:42 PM
To: Struts Users Mailing List
Subject: Session beans are shared across multiplae instances of
browsers!


My session beans are getting shared across multiple instances of the
browser. The updation that I do in one instance is reflected in the other
instance.
Is this a struts bug or I am doing something wrong!

Shilpi


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



RE: [OT] OJB or Hibernate??

2003-03-29 Thread Oguz Kologlu
I've been using JDO ( Triactive JDO ) and so far I think it 
has worked quite well.

I haven't actually used Hibernate but it does look quite similar
to JDO and appears to be  little easier to configure since it 
doesn't have to be vendor neutral - ie no vendor specific extensions.

Of course JDO is based on the ODMG 3.0 spec so OJB is similar to
JDO though I think ODMG is a bit more mature.

OJB has a JDO implementation that uses the ODMG persistence broker
though I don't think it is quite complete yet - you may want to
have a look at it. The OJB is quite active so there is a bit of 
work going on over there.


HTH,

Oz





-Original Message-
From: Bill Johnson [mailto:[EMAIL PROTECTED]
Sent: Sunday, 30 March 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: [OT] OJB or Hibernate??


I'm curious which is the framework of choice?  What
the strengths are of each, etc.?

Thanks,

Bill

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


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



RE: Need Advise: use Struts/XSLT

2003-02-12 Thread Oguz Kologlu
Hi,

There is an article on theserverside.com that discusses this issue at:

http://www.theserverside.com/home/thread.jsp?thread_id=17866article_count=1
6

To oversimplify - it says you should develop JSP Documents ( well formed
xml ) and use xslt for presentation/rendering/i18n etc.


Regards
Oz

-Original Message-
From: Jason Yam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 12 February 2003 7:25 PM
To: '[EMAIL PROTECTED]'
Subject: Need Advise: use Struts/XSLT


Hi everyone,

anyone knows what direction the apache group will go related to
Struts/XML/XSLT?  I mean what do they respond to the following methods:

(1) Model 2: Struts + stxx + xslt
(2) Model 2: Struts + StrutsCX + xslt
(3) Model 2: Cocoon + Struts + xslt
(4) Model 2: Other publishing framework + Struts + xslt
(5) Model 2X: ?

Will Struts provide a much simpler way to let us use Model 2 framework
and xslt layout?  Any idea?

Thank you

Jason


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




RE: Need Advise: use Struts/XSLT

2003-02-12 Thread Oguz Kologlu
There is actually a lot of work being done on cocoon.

Cocoon in fact resembles struts in many ways - the developers will freely
admit they take the best ideas from each project to integrate into cocoon.

Some of the features:
- schematron ( same as validators )
- internationalisation support
- sub applications
- xmlforms ( similar to form beans ) ( w3c standard )
etc, etc.

There are also xsp's ( xml - jsp ) but I have never used them.

I think one of the shortfalls of cocoon is pipeline processing where you
cannot change the direction of a pipeline once processing has begun ( since
processing is based on sax events). We have worked around this with a
variety of custom actions but it would be a hard work in a small team where
you don't have much time for RD (play time).

Another issue is that it is very loosely coupled and you can easily end up
lost in a large project - especially for newbies.

Having said that, you can get work done very quickly as well.

It is worth evaluating - you can cut out a couple of layers of processing
using cocoon instead of struts/JSF/clxx.

hope this helps

Oz

-Original Message-
From: Rabih Yazbeck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 12 February 2003 10:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Need Advise: use Struts/XSLT


What about Cocoon integration with Struts? Is it possible that cocoon
handle the presentation layer while Sturts focus on the controller?

Even though Cocoon has released a version 2, but I think there is
anymore much work on Cocoon, am I right?

Thanks, and yes I believe in the power of XML/XSLT.. World is moving
toward this approach, and I wish there is more support for it in Struts.

-
Rabih

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 10:29
To: 'Struts Users Mailing List'
Subject: RE: Need Advise: use Struts/XSLT

 -Message d'origine-
 De: Oguz Kologlu [mailto:[EMAIL PROTECTED]]
 Date: mercredi 12 février 2003 11:15
 À: Struts Users Mailing List
 Objet: RE: Need Advise: use Struts/XSLT


 Hi,

 There is an article on theserverside.com that discusses this issue
at:


To oversimplify - it says you should develop JSP Documents ( well
formed
xml ) and use xslt for presentation/rendering/i18n etc.

XSLT is very powerful if you can manage things in your XSLT such as
document(url)
where the URL is also a dynamic XML document.
Aggregation is also a very useful feature.

To me the (too basic) process of 1 XML- 1 XSLT-whatever is not that
useful.
For example it is interesting to have 2 XMLs- 1 XSLT- 1 XSLT-whatever
or
to
have XML-XSLT-whatever
^
|
XSLT
^
|
 XML

I admit that it is quite an advanced usage of XML pipelines.
Cocoon handles that very nicely.

PS: for those who don't understand the power of the last pipeline
discribed,
think about such a pipeline:
XML-XSLT-whatever
  ^
  |
 XSLT
  ^
  |
 XHTML

Struts ceates the XML.
Dreamweaver creates the XHTML (with custom tags to be XSLT-processed).
Did you say total separation of concerns?

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


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


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




Clearing a form problem - bug or by design?

2002-11-03 Thread Oguz Kologlu
Hi all,

I know this question has been asked before - I think i know the reason why
some people are having issues clearing a form - the same as I am.

I don't know if the problem is really a bug, by design or if I'm going
about it the wrong way but it has been driving me nuts - ( update: I've
found a solution but read on if you have a better idea)

Brief Description:
When a form is submitted I save the actionform data to a DB, clear the
actionform and forward to the same page ready for more data ( a sort of
Save and New function ).

When the actionform is redisplayed the form data magically re-appears.
I've had a look at the struts source and it is re-populating the form from
the request data in org.apache.struts.util.RequestUtils.populate( ... ). Is
there any way to NOT repopulate the form?

There is no problem if I forward to another page and come back to it but
that's not really what I want. Am I going about this the wrong way or is
there a simple ( or difficult ) solution.

Simple Solution: set redirect to true:

  forward
name=newAction
path=/struts/newForm.do
redirect=true /

If there is a better solution I would love to know since I would rather not
have to redirect!!!

Thanks
Oz


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: form submit() method is not recognized.

2002-08-17 Thread Oguz Kologlu

It's not actually a problem with struts - you can't submit
from a select.

Oz

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 18 August 2002 8:52 AM
To: 'Struts Users Mailing List'
Subject: RE: form submit() method is not recognized.


Try doing something small first, like doing
alert(document.forms[0].country.value) and see if you even get that,
then you can start to determine your error.

| -Original Message-
| From: Olga Agady [mailto:[EMAIL PROTECTED]]
| Sent: Saturday, August 17, 2002 4:57 PM
| To: Struts Users Mailing List
| Subject: form submit() method is not recognized.
|
| Hello,
|
| I am using struts 1.0.2. I experience a wierd problem:
| When I submit the form after a user selects an item
| from a drop-down select box:
|
| html:select property=country
| onchange=document.forms[0].submit(),
|
| I get run-time error that Object doesn't support a
| property or a method. I tried to re-write the code
| with different variations like:
|
| html:select property=country
| onchange=submitForm(),
|
| SCRIPT
| function submitForm(){
|   document.forms[0].submit();
| }
| /SCRIPT
|
| Whatever I do, when the script starts running the line
| document.forms[0].submit(), I get the same error.
| Looks like submit() method is not recognized. Did
| someone have a similar problem?
|
|
| Thanks,
| Olga
|
|
|
| __
| Do You Yahoo!?
| HotJobs - Search Thousands of New Jobs
| http://www.hotjobs.com
|
| --
| To unsubscribe, e-mail:   mailto:struts-user-
| [EMAIL PROTECTED]
| For additional commands, e-mail: mailto:struts-user-
| [EMAIL PROTECTED]
|
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
|

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002



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