[Q] what is right way to display list of checkbox(es) in two or three columns?

2003-02-25 Thread michael . korolyov
Hello,

I have a list that needs to be displayed in two or three columns
something like that format :

tr
td /td
td /td
/tr
tr
td /td
td /td
/tr
tr
td /td
/tr

is html:multibox tag and logic.iterate only one way?
is any other ways to do it?

tnx

Best Regards.
Michael.


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



Re: how old is struts

2003-02-25 Thread Andreas Mack
On Sat, 2003-02-22 at 02:45, Craig R. McClanahan wrote:
 On Fri, 21 Feb 2003 [EMAIL PROTECTED] wrote:
 
  Date: Fri, 21 Feb 2003 16:34:03 -0500
  From: [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: how old is struts
 
  Craig,
 
 
 
  Since you are one of the developers of struts, can you tell me how old is
  this project?
 
 
 The initial code was written in May, 2001, so we're not quite two years
 old yet.

I started to use Struts in Oct 2001, but I clearly remember reading
about it on Easter 2001. The CVS log also dates Action.java much
earlier:

--
Revision 1.1 / (view) - annotate - [select for diffs] , Wed May 31
22:28:11 2000 UTC (2 years, 8 months ago) by craigmcc
Branch: MAIN
Initial revision
---
I believe it's closer to 3 years now :)

Craig, thanks a lot for all the work!

Andreas.

-- 
Andreas Mack [EMAIL PROTECTED]
mediales. GmbH


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



RE: Support for automatic frames

2003-02-25 Thread Ray Madigan
Well, you have to know somehow, or you could never get the
application running in the first place.  Seems like you
need a method to know which frame to load what action
into.

How many levels of frames are you planning to use?

Is there a heirarchy to the frames relative to the
actions that will be performed on them.  Can a subframe
in one frame invoke an action in s sibling subframe?

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Support for automatic frames


Ray,

But, imagine that with several action you must reload the top frameset, and
in the subframes there are framesets again. How do you know which frame to
load of it can be different for every action?
As you say we have no problems when our action is redirected to a TARGET
frame, but when the frameset itself is different under several action. (And
in the framesets under the top frameset we have not the original request!)

Thanks

Jose R.


-Mensaje original-
De: Ray Madigan [mailto:[EMAIL PROTECTED]
Enviado el: 24 de febrero de 03 19:10
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: RE: Support for automatic frames


Im not sure i understand what you are trying to accomplish.  I have
a struts application that uses frames and i can populate multiple
frames from one frame when the user clicks or even mouseover an area
of the screen.  The action to cause a frame event trigger to fire
carries arguments so the action can be specific to the location on
the frame and what frame generated the action.  Is this what you mean?

Thanks
RayM

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 3:02 AM
To: [EMAIL PROTECTED]
Subject: Support for automatic frames


Hi all,

This is a a bit long question,... :-\
We are going to start a new project with Struts, and we HAVE TO use frames.
So we have different approaches. Tha navigation is quite complex: same
action can go to different frames, and different actions can go to the same
frame, depending the place (the screen) we choose the action or the action
itself.
The main one is the next:

1) We think  about one special action called frames.do which knows all
the stuff with the frames composition. It would need two parameters: the
position where it holds the frame, and the action is being executed. This
action is setted in the original action in the session object.
We are thinking to configure this action from an XML file, which would have
the relacion between the action, the frame holder and the view returned
(which can be another frameset calling frames.do for each frame).
Would it be possible to validate this file with struts-config.xml, with the
indicated forwards in the frames.do action?

For example:
This is the top frame, which can be loaded by several actions, so the
sub-frames can be different on each call.

frameset rows=68,* border=0 framespacing=0 frameborder=NO
  frame
src=/prototipo01/frames.do?position=frameUpaction=session:attribute
name=next/  name=menuPrincipal/
  frame
src=/prototipo01/frames.do?position=frameBottomaction=session:attribute
name=next/ name=bottom/
/frameset

The session attibute next would have been setted by the action with the
name of the action.

Plase, what do you think? Are we making a mess?

Regards



Jose Ramon Diaz, E-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Editorial Aranzadi: www.aranzadi.es http://www.aranzadi.es/


-
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: need to display a tree struture in JSP

2003-02-25 Thread Ray Madigan
Have you looked at the Struts Menu system that can be
found in the Resources section of the struts website.

For the most part it is static, reads the configuration
from an xml document.  It probably wouldn't take much
to make it dynamic.

Just a thought - lots of work has gone into it, and
it already is built on struts.



-Original Message-
From: Pani Ramasami [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:53 PM
To: 'Struts Users Mailing List'
Subject: need to display a tree struture in JSP


Hi:

I have a object which contains all the necessary data. Now, I need to
display the data in a Tree structure in my JSP. Iam using Stuts 1.1b3. (may
be irrelavant)

If any of you have done this succesfully, kindly guide me on how to proceed.

Thanks,
Pani.



_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

-
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: Support for automatic frames

2003-02-25 Thread Jose Ramon Diaz

Hello Ray,

Well, you have to know somehow, or you could never get the
application running in the first place.  Seems like you
need a method to know which frame to load what action
into.

Yes, that´s the reason why we create the frames.do action configured with
an XML file as we said in our first message.

 How many levels of frames are you planning to use?
We will use 3 level of frames, with 3 or 4 jsps which can be loaded into
every different frame. this give us a quite high number of different
posibilities.

Is there a heirarchy to the frames relative to the
actions that will be performed on them.  Can a subframe
in one frame invoke an action in s sibling subframe?

There are actions whose target goes to the sibling frames, another targets
go to the top frame and another action´s targets go to another frame
(sibling or sublevel).
Do you think the idea of a frames.do action is good way to help us to
minimize the complexity of the frames? Remember our main problem is to
redraw the framesets with the correct pages invoked, not to redirect an
action which return a simple JSP to a specific frame.
We will try to create this action to be generic for any application, and we
won´t have problem to publish it.

Thanks

Jose R.  David


-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Support for automatic frames


Ray,

But, imagine that with several action you must reload the top frameset, and
in the subframes there are framesets again. How do you know which frame to
load of it can be different for every action?
As you say we have no problems when our action is redirected to a TARGET
frame, but when the frameset itself is different under several action. (And
in the framesets under the top frameset we have not the original request!)

Thanks

Jose R.


-Mensaje original-
De: Ray Madigan [mailto:[EMAIL PROTECTED]
Enviado el: 24 de febrero de 03 19:10
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: RE: Support for automatic frames


Im not sure i understand what you are trying to accomplish.  I have
a struts application that uses frames and i can populate multiple
frames from one frame when the user clicks or even mouseover an area
of the screen.  The action to cause a frame event trigger to fire
carries arguments so the action can be specific to the location on
the frame and what frame generated the action.  Is this what you mean?

Thanks
RayM

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 3:02 AM
To: [EMAIL PROTECTED]
Subject: Support for automatic frames


Hi all,

This is a a bit long question,... :-\
We are going to start a new project with Struts, and we HAVE TO use frames.
So we have different approaches. Tha navigation is quite complex: same
action can go to different frames, and different actions can go to the same
frame, depending the place (the screen) we choose the action or the action
itself.
The main one is the next:

1) We think  about one special action called frames.do which knows all
the stuff with the frames composition. It would need two parameters: the
position where it holds the frame, and the action is being executed. This
action is setted in the original action in the session object.
We are thinking to configure this action from an XML file, which would have
the relacion between the action, the frame holder and the view returned
(which can be another frameset calling frames.do for each frame).
Would it be possible to validate this file with struts-config.xml, with the
indicated forwards in the frames.do action?

For example:
This is the top frame, which can be loaded by several actions, so the
sub-frames can be different on each call.

frameset rows=68,* border=0 framespacing=0 frameborder=NO
  frame
src=/prototipo01/frames.do?position=frameUpaction=session:attribute
name=next/  name=menuPrincipal/
  frame
src=/prototipo01/frames.do?position=frameBottomaction=session:attribute
name=next/ name=bottom/
/frameset

The session attibute next would have been setted by the action with the
name of the action.

Plase, what do you think? Are we making a mess?

Regards



Jose Ramon Diaz, E-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Editorial Aranzadi: www.aranzadi.es http://www.aranzadi.es/


-
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 

AW: HELP - SOS - Single Form Bean Problem

2003-02-25 Thread Hirschmann, Bernhard

Hm - it looks fine for me...

What makes you think, that a new form bean is created for every JSP? Did you
debug through it?

Surely for every session a new form bean will be created, but it shouldn't
create new ones for all the JSPs in the same session.

Bernhard


-Ursprüngliche Nachricht-
Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 10:02
An: Hirschmann, Bernhard
Betreff: Re: HELP - SOS - Single Form Bean Problem


hi again :)

I went through the tutorials, every time the sope is set to session, and
same form bean is used.
i have done the same, but stilll the new formbean instance is getting
created.

attached is my struts-config.xml

Thanks
Chetan
- Original Message -
From: Hirschmann, Bernhard [EMAIL PROTECTED]
To: 'Chetan Sahasrabudhe' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:25 PM
Subject: AW: HELP - SOS - Single Form Bean Problem



 Sure you can use your form beans for as many JSPs as you want. Just make
 sure, they are valid not only for the request, but for the whole session
or
 so.

 I think this toppic is described in some very basic tutorials, which you
can
 find at the struts homepage.

 Regards,
 Bernhard


  -Ursprüngliche Nachricht-
 Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 24. Februar 2003 13:30
 An: Hirschmann, Bernhard
 Betreff: Fw: HELP - SOS - Single Form Bean Problem



 - Original Message -
 From: Chetan Sahasrabudhe
 To: Struts Users Mailing List
 Sent: Monday, February 24, 2003 5:03 PM
 Subject: HELP - SOS - Single Form Bean Problem


 Has anyone used a single form bean for multiple jsps?
 I am trying to use it and have set form scope as session in my action
 declaration in config-struts file
 worst part is, for every jsp itz creating a new form bean ?

 whatz the catch, can anyone help me in this ?

 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___

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



Re: HELP! Plz!! request.getRequestURI() in jsp vs. Action classHELP!!! :)

2003-02-25 Thread Guido
If I am not missing anything, maybe you can (it is a good practice) go 
_always_ through an Action (or ActionForward, etc) and never post 
directly to a JSP...

HTH,
Guido.
Khalid K. wrote:

(Repost)

Hello All, Please help with this problem.

I need request.getRequestURI() to return  actionA.do   

This works fine if when I call the getRequestURI() method from an Action
class,
But When I call request.getRequestURI() from a JSP file...it returns the
ActionA.jsp   
I could replace .jsp with .do, but my method sometimes post to a jsp
file and others to an Action, so It is not as easy
Any ideas??

Thanks

Khalid



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


Tiles menu and user authorization rights

2003-02-25 Thread Heligon Sandra

I am developing a Struts application and I am using Tiles for the
presentation.
I have a common look and feel for all pages with a header, a menu, a
body, and a footer.
My question is the following:
The options (commands) of the menu depend on the user authorization
rights that are retrieved
through a request on the remote application server.
How is it possible to display Tiles menu depending on the user
rights ?

Sandra

--- 
As of February 12, 2003 Thomson unifies its email addresses on a worldwide
basis.Please note my new email address: [EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 


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



strange display delay

2003-02-25 Thread Nicolas Grehalle
I have a strange display problem with a web page.
I try to display a Tree with a expand all option.
When i expand all the tree, the program spends :
- few milliseconds in my Action class (about 30 ms)
- 1.2 second in my jsp page (i use the code System.out.println( 
System.currentTimeMillis() ); on top and bottom of my jsp page).
- 30 seconds before page displaying (and after my last
System.out.println) in the browser.

What kind of treatment occures after the jsp executing ?

How know what is the problem ?

Thanks for your help

N.G.




RE: Tiles menu and user authorization rights

2003-02-25 Thread ROSSEL Olivier
   I am developing a Struts application and I am using 
 Tiles for the
 presentation.
   I have a common look and feel for all pages with a 
 header, a menu, a
 body, and a footer.
   My question is the following:
   The options (commands) of the menu depend on the user 
 authorization
 rights that are retrieved
   through a request on the remote application server.
   How is it possible to display Tiles menu depending on the user
 rights ?

I made two menus.
One for guests, one for admin.
And I call one or the other from an action (/ShowMenu.do)
which makes the request, then sends the right forward.

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]



Re: strange display delay

2003-02-25 Thread Chetan Sahasrabudhe
Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the tree ?
or do u populate it beforehand and all data goes in one shot to the jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


- Original Message - 
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println( 
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.
 
 What kind of treatment occures after the jsp executing ?
 
 How know what is the problem ?
 
 Thanks for your help
 
 N.G.
 
 
 


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



Re: strange display delay

2003-02-25 Thread Nicolas Grehalle
Le mar 25/02/2003  11:19, Chetan Sahasrabudhe a crit :

Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the tree ?
or do u populate it beforehand and all data goes in one shot to the jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


Tree is all populated in the action. 
I use nested tags to display the tree in the jsp page.
My problem is that server takes anly 1.2 second to build the jsp page,
but the page is displayed in 30 secondes.
I don't understand what takes so many time.


- Original Message - 
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println( 
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.
 
 What kind of treatment occures after the jsp executing ?
 
 How know what is the problem ?
 
 Thanks for your help
 
 N.G.
 
 
 


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





Re: strange display delay

2003-02-25 Thread Chetan Sahasrabudhe
Nicolas :
can u push your jsp on net ?
I will like to have look at it
coz it itz acting fast on server side it should not have much of the problem
on client side either
but letz see ... push u jsp as attachment (if itz not against ur company
policy)
Chetan
- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:54 PM
Subject: Re: strange display delay


Le mar 25/02/2003  11:19, Chetan Sahasrabudhe a crit :

Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the tree
?
or do u populate it beforehand and all data goes in one shot to the jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


Tree is all populated in the action.
I use nested tags to display the tree in the jsp page.
My problem is that server takes anly 1.2 second to build the jsp page,
but the page is displayed in 30 secondes.
I don't understand what takes so many time.


- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println(
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.

 What kind of treatment occures after the jsp executing ?

 How know what is the problem ?

 Thanks for your help

 N.G.





-
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: strange display delay

2003-02-25 Thread Nicolas Grehalle
I'm not allowed to join my jsp code, but i can put some part of this
code :


body 


%
long td = System.currentTimeMillis();
System.out.println( heure dpart (vue) :  + (  td ) );
%


nested:form action=/TEXT/searchTextContentBooks.do method=POST

nested:nest property=expandableTree 

nested:iterate id=currentElement property = childCollection
indexId=index 

!--  Node treatment . --


nested:equal property=showChildren value=true
   jsp:include 
page=searchTextContentBooksTreenode.jsp /

/nested:iterate

%
System.out.println( Temps traitement vue :  + (
System.currentTimeMillis() - td ) + ms );
%

/body
/html






Le mar 25/02/2003  11:31, Chetan Sahasrabudhe a crit :

Nicolas :
can u push your jsp on net ?
I will like to have look at it
coz it itz acting fast on server side it should not have much of the problem
on client side either
but letz see ... push u jsp as attachment (if itz not against ur company
policy)
Chetan
- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:54 PM
Subject: Re: strange display delay


Le mar 25/02/2003  11:19, Chetan Sahasrabudhe a crit :

Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the tree
?
or do u populate it beforehand and all data goes in one shot to the jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


Tree is all populated in the action.
I use nested tags to display the tree in the jsp page.
My problem is that server takes anly 1.2 second to build the jsp page,
but the page is displayed in 30 secondes.
I don't understand what takes so many time.


- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println(
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.

 What kind of treatment occures after the jsp executing ?

 How know what is the problem ?

 Thanks for your help

 N.G.





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






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





Re: Struts and Portlets

2003-02-25 Thread Vic Cekvenich
I found JSR-168 lacking.
I have been using Tile 201 like things for a long time to give me a 
lite and fast version of Portlets features.
http://blogs.browsermedia.com/patrick/index.do?date=20030211#130200

.V

[EMAIL PROTECTED] wrote:
Hi,

is there an intention to implement the JSR-168 (Portlet API) into struts? 

In my opinion three important features like multiple output formats with XSLT, workflows and the support of portlets would be very important for the future. 

The ability to create standardised portlets with struts would be very interesting. I think the the actions and jsp are not much mightful for the future. The development of the jsp/action with tiles a.s.o. is fine but too slow and theres still a limited reuse. In my opinion there should/could be more abstraction for project comprehensive reuse. Such portlets could create configurable components with jsp/actions and beans. I dont have access to the portlets specification, but I am sure that this aspects are included there.

Any comments?

Juraj


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


RE: [TILES] Foxy Tiles Problem

2003-02-25 Thread PILGRIM, Peter, FM
 -Original Message-
 From: Hue Holleran [mailto:[EMAIL PROTECTED]
 
 Hi Peter,
 
 I'm not sure I fully understand but we're using ... template 
 layout within
 templates layout? successfully and I think this is necessary 
 for all but
 the simplest tiles layouts. Indeed, tiles examples have used 
 this mechanism
 a lot and appears the only way of using layouts within layouts.

Yes I think templates with templates is good idea, as long as you
are aware for each template you need two JSPs, one to instantiate
the template and the other for the content.
 
 I'm concerned that run an html:form outside all the shareable and
 non-shareable tiles will severely limit the true flexibility 
 of tiles as
 clearly HTML FORM .. cannot be nested and so you would not 
 be able to
 insert a tile that say asked for one or more input fields 
 with a submit. I
 guess you could change your global FORM... action= 
 usind javascript to
 post to a different action but that seems yukky in the extreme.
 
Except for the case, when a business has lots of HTML Input element
 (say 10-30) inside a HTML Form! This is not a limitation if it 
is user requirement, for example a complex data entry suite. 

It is possible to have HTML Form inside another HTML Form, but you
have to implement with a slight-of-hand. A trusty IFRAME which
is source another JSP with another HTML Form will do the trick.

 We use this run an html:form outside all the shareable and 
 non-shareable
 tiles for wizards and this works really nicely as clearly 
 data is entered
 on one page before posting to the next page.
 
 I hope I'm on track so far?

I guess we are on the same page. What I am talking about is
regionalising certain key areas of the web page design. These
area become shareable and non-shareable tiles.

 
 All I would ask is that is there a way to avoid the run an 
 html:form
 outside all the shareable and non-shareable tiles and have a 
 different
 mechanism for changing pages (sorry haven't seen amazon for a 
 while so do
 not know their layout) - this would clearly be a problem if 
 you wanted to
 post values from one page on changing page. Maybe using a 
 A.. may be
 possible to change pages.

Why not incorporate the mechanism for changing pages as part 
of the form. Struts gives us the tools, DispatchAction, and 
LookupDispatchAction, so why not use them? Of course you can
program some fancy JavaScript to programmatically submit
forms, and YMMV, but it is just eye candy after all.

In anycase you do not have to avid Amazonite! Just be aware
of the tab navigation idiom in web design.

----

----

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



Session timeout problem

2003-02-25 Thread Mohan Radhakrishnan
Hi,
   Our struts application ( I am not sure if it is the session
)occasionally timesout and throws us back to the login page.

session-config
  session-timeout15/session-timeout
/session-config

This is not uniform.

Whenever I login I use code like this

protected void inValidateSession( HttpServletRequest request ){
HttpSession session = request.getSession( false ); -- Is this
right?
if( session != null ){
session.invalidate();
}
}

  Does any of you see any problem here ?

Mohan

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



Re: Struts and Portlets

2003-02-25 Thread tnist
You could take a look at www.liferay.com, there latest implementation (1.8) follows 
the Porlet Spec, JSR-168, and is using Struts 1.1b2.

Regards,
Todd G. Nist

 
 From: [EMAIL PROTECTED]
 Date: 2003/02/25 Tue AM 01:52:38 EST
 To: [EMAIL PROTECTED]
 Subject: Struts and Portlets
 
 Hi,
 
 is there an intention to implement the JSR-168 (Portlet API) into struts? 
 
 In my opinion three important features like multiple output formats with XSLT, 
 workflows and the support of portlets would be very important for the future. 
 
 The ability to create standardised portlets with struts would be very interesting. I 
 think the the actions and jsp are not much mightful for the future. The development 
 of the jsp/action with tiles a.s.o. is fine but too slow and theres still a limited 
 reuse. In my opinion there should/could be more abstraction for project 
 comprehensive reuse. Such portlets could create configurable components with 
 jsp/actions and beans. I dont have access to the portlets specification, but I am 
 sure that this aspects are included there.
 
 Any comments?
 
 Juraj
 
 
 
 
 -
 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]



planning component

2003-02-25 Thread alexj
Hi I need to know if there is any struts planning component with calendar ?

My goal is to have the capability to add-edit-view the planning for
each students, prof etc..

Thanks in advance.

--
Alexandre Jaquet
-



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



XML dummy question

2003-02-25 Thread Adolfo Miguelez
Hi All,

just I easy question for XML developers. We have many configuration XML 
files for our model tier in struts our apps.

Are the following approaches analogous?

- approach A: tag ACDATA[text_that_I_do_not_want_to_parse]/A

- approach B: tag Atext_that_I_do_not_want_to_parse/A validating against 
a DTD which says that tag A is a CDATA and a validating parser.

The question appears because we hace some XML files with 
text_that_I_do_not_want_to_parse containing [ and ]. This is parsed Ok for 
xerces 1.4.4 but xerces 4.0.5 (necessary for IBM WAS5) breaks in chunks 
whenever it finds a [. Method characters restart offset parameter whenever 
it finds a [. In both cases XML have not DTD.

Has this sense? Feedback would be appreciated.

Regards,

Adolfo.



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

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


Show or hide fields according to an other field value.

2003-02-25 Thread Heligon Sandra

I would like to know how is it possible to show or hide fields in a
Tiles/JSP page according 
to the check or not of a radio button ?

For example at the top of the page I have a radio button with two
values:one or more.
If the more option is selected I have to display a table else a
single line is displayed.

Thanks in advance
Sandra


--- 
As of February 12, 2003 Thomson unifies its email addresses on a worldwide
basis.Please note my new email address: [EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 


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



RE: Session timeout problem

2003-02-25 Thread Mohan Radhakrishnan
Hi,

  I also have the following in web.xml

init-param
  param-namenocache/param-name
  param-valuetrue/param-value

/init-param
session-config
  session-timeout15/session-timeout
/session-config
Thanks,
Mohan

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 5:07 PM
To: 'Struts Users Mailing List'
Subject: Session timeout problem


Hi,
   Our struts application ( I am not sure if it is the session
)occasionally timesout and throws us back to the login page.

session-config
  session-timeout15/session-timeout
/session-config

This is not uniform.

Whenever I login I use code like this

protected void inValidateSession( HttpServletRequest request ){
HttpSession session = request.getSession( false ); -- Is this
right?
if( session != null ){
session.invalidate();
}
}

  Does any of you see any problem here ?

Mohan

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



Student question about struts

2003-02-25 Thread Jobe, Mike [EESUS]
Hey all,
I am working on my senior project at school and I need to make a dropdown
box and a list box. What is the easiest way of doing these? I will be
connecting them to the database later, so all I need is help with the actual
layout.

Thanks!
Michael


Re: Validation Rules XML

2003-02-25 Thread Jeff Kyser
Hey Brian,

here's my guess:	(note uncertainty :)

	The javascript function required() is generated in:

		org.apache.struts.taglib.html.JavascriptValidatorTag

	in method doStartTag().

If you look at similar statements in other rules in the 
validator-rules.xml file, such as

	oByte = new ByteValidations();

they often have a property jsFunctionName=ByteValidations, etc.

But required, minlength, maxlength, and a number of others do not.

In method doStartTag(), you find:

if (va.getJsFunctionName() != null  
va.getJsFunctionName().length()  0) {
functionName = va.getJsFunctionName();
} else {
functionName = va.getName();
}

and later:

results.append(function  + functionName +  
() { \n);

So it has to be generating the function:

function required() {
// ...
}
and then later, in the snippet provided by the validator-rules.xml,
a function object is created with:
	oRequired = new required();

I don't have client-side validation enabled on my project, but
that certainly would seem to me to be what's happening.
regards,

-jeff

On Monday, February 24, 2003, at 07:27  AM, Brian Blignaut wrote:

Hi,

I am trying to write the javascript for my own validation rules based 
on the javascript in the validation-rules.xml file. Can anyone tell me 
what the statement 'new required()' does. Where is required defined?

Any help would be greatly appreciated

Brian

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


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


Struts tags common properties

2003-02-25 Thread Sanjay Sharma
Most Struts tags use name and property to retrieve
a value that is used in a custom tag. What criteria
did the tag developers use to determine which custom
tag attribute should be obtain a value through
name/property combination. Most tags have only one
attribute that uses name/property lookup. Some
like link tag have two: name/property and
paramName/paramProperty.

Sanjay 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: strange display delay

2003-02-25 Thread du Plessis, Corneil C
Iterators are generally very efficient I have not used the nested tags but I
cannot image that they would be any different from logic:iterate.
How much work is done in searchTextContentBooksTreenode.jsp ?


-Original Message-
From: Nicolas Grehalle [mailto:[EMAIL PROTECTED]
Sent: 25 February, 2003 12:40
To: Struts Users Mailing List
Subject: Re: strange display delay


I'm not allowed to join my jsp code, but i can put some part of this
code :


body 


%
long td = System.currentTimeMillis();
System.out.println( heure dpart (vue) :  + (  td ) );
%


nested:form action=/TEXT/searchTextContentBooks.do method=POST

nested:nest property=expandableTree 

nested:iterate id=currentElement property =
childCollection
indexId=index 

!--  Node treatment . --


nested:equal property=showChildren value=true
   jsp:include
page=searchTextContentBooksTreenode.jsp /

/nested:iterate

%
System.out.println( Temps traitement vue :  + (
System.currentTimeMillis() - td ) + ms );
%

/body
/html






Le mar 25/02/2003  11:31, Chetan Sahasrabudhe a crit :

Nicolas :
can u push your jsp on net ?
I will like to have look at it
coz it itz acting fast on server side it should not have much of the
problem
on client side either
but letz see ... push u jsp as attachment (if itz not against ur company
policy)
Chetan
- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:54 PM
Subject: Re: strange display delay


Le mar 25/02/2003  11:19, Chetan Sahasrabudhe a crit :

Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the
tree
?
or do u populate it beforehand and all data goes in one shot to the
jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


Tree is all populated in the action.
I use nested tags to display the tree in the jsp page.
My problem is that server takes anly 1.2 second to build the jsp page,
but the page is displayed in 30 secondes.
I don't understand what takes so many time.


- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println(
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.

 What kind of treatment occures after the jsp executing ?

 How know what is the problem ?

 Thanks for your help

 N.G.





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



__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



the ActionMapping input property can optionally be the name of an ActionForward instead. but ERROR

2003-02-25 Thread Ferran Parra
Hi all,
I configure this in the struts-config.xml :
controller inputForward=true

but this error is returned when application redirect to ActionMapping input
property with the name of Global ActionForward:
The requested resource (/ibercamera/adminPreCreateUser) is not available.

any idea?? thanks in advanced.


Ferran Parra [EMAIL PROTECTED]
Departament de Noves Tecnologies
MUBIMEDIA S.L.
Mallorca, 275, 1r 2a 08008
BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21


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



RE: Student question about struts

2003-02-25 Thread John Espey
You should read about the html:select and html:options tags.

http://jakarta.apache.org/struts/userGuide/struts-html.html

They won't actually be connected to a database directly, instead they will
read from a java.util.Collection (no ASP or PHP here ;-)

 -Original Message-
 From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 7:19 AM
 To: '[EMAIL PROTECTED]'
 Subject: Student question about struts


 Hey all,
 I am working on my senior project at school and I need to make a dropdown
 box and a list box. What is the easiest way of doing these? I will be
 connecting them to the database later, so all I need is help with
 the actual
 layout.

 Thanks!
 Michael



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



RE: Student question about struts

2003-02-25 Thread Jobe, Mike [EESUS]
Thanks I will look at that!
Mike

-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:50 AM
To: Struts Users Mailing List
Subject: RE: Student question about struts


You should read about the html:select and html:options tags.

http://jakarta.apache.org/struts/userGuide/struts-html.html

They won't actually be connected to a database directly, instead they will
read from a java.util.Collection (no ASP or PHP here ;-)

 -Original Message-
 From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 7:19 AM
 To: '[EMAIL PROTECTED]'
 Subject: Student question about struts


 Hey all,
 I am working on my senior project at school and I need to make a dropdown
 box and a list box. What is the easiest way of doing these? I will be
 connecting them to the database later, so all I need is help with
 the actual
 layout.

 Thanks!
 Michael



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


Reporting an Exception message in a JSP.

2003-02-25 Thread ROSSEL Olivier
I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and
to display it via html:errors/.
It does not work because ActionError accepts as an input
string the key of a property.

So what's the nicest way to show to the user the error message
that I get from my SQLException ?


---cut here---


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]



RE: [Q] what is right way to display list of checkbox(es) in two or three columns?

2003-02-25 Thread Sri Sankaran
Management of layout must be handled by yourself.  The tags don't get involved in this 
process.  If using Struts tags you might have to resort to scriptlets in conjunction 
with the iteration index to manage your layout.  

Or if scriptlets are anathema, you can use JSTL or Struts-EL.  Still you'll have to 
manage the layout.

Sri

P.S.

RE: Multibox -- It is handy if you have to display several checkboxes in your 
iteration.

RE: logic:iterate -- It is one way to loop through your collection

Neither does anything for the layout.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 3:14 AM
To: [EMAIL PROTECTED]
Subject: [Q] what is right way to display list of checkbox(es) in two or three columns?


Hello,

I have a list that needs to be displayed in two or three columns something like that 
format :

tr
td /td
td /td
/tr
tr
td /td
td /td
/tr
tr
td /td
/tr

is html:multibox tag and logic.iterate only one way?
is any other ways to do it?

tnx

Best Regards.
Michael.


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


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



RE: struts 1.1b3 , getting lot of messages in out file

2003-02-25 Thread Mark Williamson
I encountered this exact same thing when i put my
log4j jar file in common\lib, and I had debug level
set in my properties file.  Apparently tomcat spotted
the log4j and used it, along with my debug line, and
started spewing out volumes of stuff.

So I changed the debug to info and it went away.

--- Pani, Gourav [EMAIL PROTECTED]
wrote:
 well, i have log4j setup to do all my logging.  so i
 just set it in my own
 properties file.  
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 5:23 PM
 To: Struts Users Mailing List
 Subject: Re: struts 1.1b3 , getting lot of messages
 in out file
 
 
 Hi,
 where is this log4j properties file in struts??
 i thought only i have to give the message level in
 web.xml file??
 
 Ashish
 --- Ashish Kulkarni [EMAIL PROTECTED]
 wrote:
  Hi,
  I am using struts1.1b3 and in my web.xml i have
 set
  the debug message level to 4, but still i get a
 lot
  of
  messages in my out file, most of the messages i
 get 
  are from PropertyMessageResources.java,
  I also use Log4j for my project and the message
  level
  for it is set to 1, does it affect struts messages
  also??
  
  here is an example of few messages
  2003-02-24 17:09:08,486 DEBUG [Thread-5]
  util.PropertyMessageResources
  (PropertyMessageResources.java:321) -   Saving
  message
  key '.toolslaunch.option3
  2003-02-24 17:09:08,486 DEBUG [Thread-5]
  util.PropertyMessageResources
  (PropertyMessageResources.java:321) -   Saving
  message
  key '.web0096
  2
  
  Here is my definition in web.xml
  servlet
  servlet-nameaction/servlet-name
 
 

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
param-nameapplication/param-name
   
  param-valuecom.pfizer.maps.maps/param-value
  /init-param
  init-param
param-nameconfig/param-name
   
 

param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value4/param-value
  /init-param
  init-param
param-namedetail/param-name
param-value2/param-value
  /init-param
  load-on-startup3/load-on-startup
/servlet
  
  Ashish
  
  
  
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
  http://taxes.yahoo.com/
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: need to display a tree struture in JSP

2003-02-25 Thread Chen, Gin
Struts-Layout sounds like a viable option for you.

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

-Tim

-Original Message-
From: Pani Ramasami [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 5:53 PM
To: 'Struts Users Mailing List'
Subject: need to display a tree struture in JSP


Hi:

I have a object which contains all the necessary data. Now, I need to
display the data in a Tree structure in my JSP. Iam using Stuts 1.1b3. (may
be irrelavant) 

If any of you have done this succesfully, kindly guide me on how to proceed.

Thanks,
Pani.



_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

-
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: Reporting an Exception message in a JSP.

2003-02-25 Thread Sri Sankaran
You can still use the fact that argument to the constructor of an ActionError is the 
key to resource.  You could set up your app resources with

some.key=Could not proceed because of {0} error

Then you can create the ActionError as

  new ActionError(some.key, exception.getMessage());

Sri

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:03 AM
To: '[EMAIL PROTECTED]'
Subject: Reporting an Exception message in a JSP.


I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and to display it via 
html:errors/. It does not work because ActionError accepts as an input string the 
key of a property.

So what's the nicest way to show to the user the error message that I get from my 
SQLException ?


---cut here---


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]



Re: Reporting an Exception message in a JSP.

2003-02-25 Thread David Graham
Well, I would never show my user an error message from some low level system 
such as the database.  If you really want them to see this info you could 
define a message key as anything={0} and substitute your SQL message.  I 
highly discourage this but it's an option.

David





From: ROSSEL Olivier [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Reporting an Exception message in a JSP.
Date: Tue, 25 Feb 2003 16:03:12 +0100
I want to display the error message of an SQLException
in my JSP.
At first, I tried to set an ActionError with this message and
to display it via html:errors/.
It does not work because ActionError accepts as an input
string the key of a property.
So what's the nicest way to show to the user the error message
that I get from my SQLException ?
---cut here---

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]


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
HI Bernhard,

Thanks for your valuable response. It worked fine.

Regards
Shabbir

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 1:56 PM
To: 'Struts Users Mailing List'
Subject: AW: How to Show gif image instead of html button in the forms for 
html:submit tag ?


Good morning Shabbir!

try this:
html:image page=/images/enter.gif property=submit value=Enter/

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


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

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

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
If you want to show your error message on the page where error occurs, there
is no easy way than html:error/.

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

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 10:03 AM
To: '[EMAIL PROTECTED]'
Subject: Reporting an Exception message in a JSP.

I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and
to display it via html:errors/.
It does not work because ActionError accepts as an input
string the key of a property.

So what's the nicest way to show to the user the error message
that I get from my SQLException ?


---cut here---


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]


How to Show gif image instead of html button in the forms for html:reset tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.

html:reset/ 

It is displaying normal html button for reset
On clicking this button form will be resetting.
Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be reset (WITH OUT using Java Script) on clicking
that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


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

RE: Reporting an Exception message in a JSP.

2003-02-25 Thread John Espey
Quick questiondo you really want the user to see a SQLException message?

Assuming that is really what you want, there are constructors for AE that
take a key and up to four objects that will be substituted in the error
value that is specified for the key.  The key and value appear in
ApplicationResources.properties.  So you could do the following in your
action:
catch (SQLException e)
{
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(sql.exception,
e.getMessage()));
saveErrors(request, errors);
return mapping.findForward(systemexception);
}


and then have this entry:
sql.exception=A database access error occurred.  {0}

The error message should then have the exception's message appear in it in
your error page.

Hope this helps



 -Original Message-
 From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 9:03 AM
 To: '[EMAIL PROTECTED]'
 Subject: Reporting an Exception message in a JSP.


 I want to display the error message of an SQLException
 in my JSP.

 At first, I tried to set an ActionError with this message and
 to display it via html:errors/.
 It does not work because ActionError accepts as an input
 string the key of a property.

 So what's the nicest way to show to the user the error message
 that I get from my SQLException ?


 ---cut here---


 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]



AW: Reporting an Exception message in a JSP.

2003-02-25 Thread Hirschmann, Bernhard

You can pass one or more arguments to the constructor of ActionError. This
argument could be your stack trace. 

In the resource string you have to handle the first argument as a {0}, the
second as {1} etc.

i.e. in you ApplicationResources.properties:
error.msg=An error has occured. Stack trace: {0}

Regards,
Bernhard

-Ursprüngliche Nachricht-
Von: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 16:03
An: '[EMAIL PROTECTED]'
Betreff: Reporting an Exception message in a JSP.


I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and
to display it via html:errors/.
It does not work because ActionError accepts as an input
string the key of a property.

So what's the nicest way to show to the user the error message
that I get from my SQLException ?


---cut here---


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]



AW: Reporting an Exception message in a JSP.

2003-02-25 Thread Juraj . Lenharcik
Hi Oliver,

whats with this constructor:

ActionError(java.lang.String key, java.lang.Object value0) 
  Construct an action error with the specified replacement values.

?

Juraj

-Ursprungliche Nachricht-
Von: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 16:03
An: '[EMAIL PROTECTED]'
Betreff: Reporting an Exception message in a JSP.


I want to display the error message of an SQLException
in my JSP.

At first, I tried to set an ActionError with this message and
to display it via html:errors/.
It does not work because ActionError accepts as an input
string the key of a property.

So what's the nicest way to show to the user the error message
that I get from my SQLException ?


---cut here---


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]



RE: Reporting an Exception message in a JSP.

2003-02-25 Thread Mark Galbreath
I've always found electric shock to be effective.  There's nothing like that
ol' 117v/60Hz AC wake-up call to let a user know not to do that again!

Seriously, you can add a returned exception to the errors array in the
Action class, then display it with html:errors.

Mark

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:03 AM

what's the nicest way to show to the user the error message that I get from
my SQLException?



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



Re: Session timeout problem

2003-02-25 Thread Michael C. Lee Jr.
Are you using container managed security? Home brewed? Whatever it is, the
problem is most likely not with struts. I'm also guessing that there is no
problem. You need to read the spec on how container managed security works
if that's what your using. We had a lot of problems here with session
timeout and they were all part of the spec. Mainly, that request parameters
are 'lost' when a page is submitted after the session timeout value and your
redirected to your login page (form based auth).

Also, do you invalidate the session after you login? Usually, you would
invalidate a session on a logout.
Michael Lee

- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 6:36 AM
Subject: Session timeout problem


 Hi,
Our struts application ( I am not sure if it is the session
 )occasionally timesout and throws us back to the login page.

 session-config
   session-timeout15/session-timeout
 /session-config

 This is not uniform.

 Whenever I login I use code like this

 protected void inValidateSession( HttpServletRequest request ){
 HttpSession session = request.getSession( false ); -- Is this
 right?
 if( session != null ){
 session.invalidate();
 }
 }

   Does any of you see any problem here ?

 Mohan

 -
 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: Reporting an Exception message in a JSP.

2003-02-25 Thread Robert S. Sfeir
On Tuesday, Feb 25, 2003, at 10:14 US/Eastern, David Graham wrote:

Well, I would never show my user an error message from some low level 
system such as the database.  If you really want them to see this info 
you could define a message key as anything={0} and substitute your SQL 
message.  I highly discourage this but it's an option.
True but in my case I find it sometimes easier to turn on debugging 
from my browser on a live app to see what's causing the exception the 
user is seeing without having to look at logs or anything, so while the 
user never sees this error in normal processing, I can see the 
exception when trying to debug and figure out what's going on on a live 
app.

I don't know if this was the original poster's intent though.

R

--
Robert S. Sfeir
Senior Java Engineer
Codepuccino, Inc.
[EMAIL PROTECTED]
definition - Codepuccino n:
A Little JSP mixed with lots of Java, usually served with Servlets, a 
Datasource, a sprinkle of XML, and sometimes EJB.  (See Great MVC 
Frameworks)

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


[struts-menu] display trouble

2003-02-25 Thread alexj
Hi,

After testing the example app who work fine, I've try to include
struts-menu on my project.

After reading the readme I follow that :

- Copy the file lib/struts-menu.tld from the struts-menu distribution into
the

WEB-INF directory of your web application.

- Copy the file lib/struts-menu.jar from the struts-menu distribution into
the

WEB-INF/lib directory of your web application.

- Modify the application WEB-INF/web.xml file to include a tag library
decleration

for the struts-menu taglibrary. For example:

taglib

taglib-uri/WEB-INF/struts-menu.tld/taglib-uri

taglib-location/WEB-INF/struts-menu.tld/taglib-location

/taglib

- In each JSP page that will use the Struts custom tags, add the
corresponding taglib

directive for struts-menu.tld. For example:

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu %

I create a simple jsp test page based on the coolmenu 3

%@ page contentType=text/html; charset=UTF-8 %

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%

html

head

titleCoolMenus3 Example/title

link rel=stylesheet type=text/css media=screen

href=styles/global.css /

/head

body

script language=JavaScript1.2 src=./scripts/coolmenus3.js

/script

script src=./scripts/coolmenu-config.js

/script

menu:useMenuDisplayer name=CoolMenu
bundle=org.apache.struts.action.MESSAGE

menu:displayMenu name=ToDoListMenuFile/

menu:displayMenu name=ToDoListMenuEdit/

menu:displayMenu name=CaseDetailMenuCase/

/menu:useMenuDisplayer



/body

/html

And when I test I got the following error :

org.apache.jasper.JasperException: The menu repository could not be found

Any idea ??

Thanks in advance.



--
Alexandre Jaquet
-



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



RE: NPE, webapp broken after moving to 1.1-rc1

2003-02-25 Thread Wendy Smoak
David Karr wrote:
 I could use a full review of exactly the page that is causing problems,
 including the full stack trace, along with a modified page that is not
having a
 problem.

I filed a bug for it (#17375).  Basically, any page with html-el:errors/
dies with a NPE.

I thought maybe it wouldn't happen if there actually were errors to be
displayed, but that's not the case.  I determined this by commenting out the
html-el:errors/ tag so the form would display, then deliberately making an
error, but putting the tag back in and saving the .jsp before submitting the
form.  It recompiled and showed the NPE.  If I edit the .jsp again to use
html:errors/ save it and resubmit the form, I now see the html formatted
validation errors.

I hope the sample JSP and the stack trace in the bug report are enough to go
on.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


RE: Reporting an Exception message in a JSP.

2003-02-25 Thread John Espey
What do you think of printing that exception out in comment, so you can view
the source to see the exception but not have to worry about turning it on or
off?

 -Original Message-
 From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 9:30 AM
 To: Struts Users Mailing List
 Subject: Re: Reporting an Exception message in a JSP.



 On Tuesday, Feb 25, 2003, at 10:14 US/Eastern, David Graham wrote:

  Well, I would never show my user an error message from some low level
  system such as the database.  If you really want them to see this info
  you could define a message key as anything={0} and substitute your SQL
  message.  I highly discourage this but it's an option.

 True but in my case I find it sometimes easier to turn on debugging
 from my browser on a live app to see what's causing the exception the
 user is seeing without having to look at logs or anything, so while the
 user never sees this error in normal processing, I can see the
 exception when trying to debug and figure out what's going on on a live
 app.

 I don't know if this was the original poster's intent though.


 R

 --
 Robert S. Sfeir
 Senior Java Engineer
 Codepuccino, Inc.
 [EMAIL PROTECTED]

 definition - Codepuccino n:
 A Little JSP mixed with lots of Java, usually served with Servlets, a
 Datasource, a sprinkle of XML, and sometimes EJB.  (See Great MVC
 Frameworks)


 -
 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: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
I usually log SQLExceptions in log file and display An unexpected error
occurred, please contact your sys admin.

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

-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 10:19 AM
To: Struts Users Mailing List
Subject: RE: Reporting an Exception message in a JSP.

Quick questiondo you really want the user to see a SQLException message?

Assuming that is really what you want, there are constructors for AE that
take a key and up to four objects that will be substituted in the error
value that is specified for the key.  The key and value appear in
ApplicationResources.properties.  So you could do the following in your
action:
catch (SQLException e)
{
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(sql.exception,
e.getMessage()));
saveErrors(request, errors);
return mapping.findForward(systemexception);
}


and then have this entry:
sql.exception=A database access error occurred.  {0}

The error message should then have the exception's message appear in it in
your error page.

Hope this helps



 -Original Message-
 From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 9:03 AM
 To: '[EMAIL PROTECTED]'
 Subject: Reporting an Exception message in a JSP.


 I want to display the error message of an SQLException
 in my JSP.

 At first, I tried to set an ActionError with this message and
 to display it via html:errors/.
 It does not work because ActionError accepts as an input
 string the key of a property.

 So what's the nicest way to show to the user the error message
 that I get from my SQLException ?


 ---cut here---


 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]


multibox?

2003-02-25 Thread Jobe, Mike [EESUS]
Can anyone send me an example of a Multibox by any chance?

Thanks,
Mike


Re: Reporting an Exception message in a JSP.

2003-02-25 Thread Ian Hunter
If you can, make it based on some user token that only you would have.

- Original Message -
From: John Espey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:35 AM
Subject: RE: Reporting an Exception message in a JSP.


 What do you think of printing that exception out in comment, so you can
view
 the source to see the exception but not have to worry about turning it on
or
 off?

  -Original Message-
  From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 9:30 AM
  To: Struts Users Mailing List
  Subject: Re: Reporting an Exception message in a JSP.
 
 
 
  On Tuesday, Feb 25, 2003, at 10:14 US/Eastern, David Graham wrote:
 
   Well, I would never show my user an error message from some low level
   system such as the database.  If you really want them to see this info
   you could define a message key as anything={0} and substitute your SQL
   message.  I highly discourage this but it's an option.
 
  True but in my case I find it sometimes easier to turn on debugging
  from my browser on a live app to see what's causing the exception the
  user is seeing without having to look at logs or anything, so while the
  user never sees this error in normal processing, I can see the
  exception when trying to debug and figure out what's going on on a live
  app.
 
  I don't know if this was the original poster's intent though.
 
 
  R
 
  --
  Robert S. Sfeir
  Senior Java Engineer
  Codepuccino, Inc.
  [EMAIL PROTECTED]
 
  definition - Codepuccino n:
  A Little JSP mixed with lots of Java, usually served with Servlets, a
  Datasource, a sprinkle of XML, and sometimes EJB.  (See Great MVC
  Frameworks)
 
 
  -
  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: Reporting an Exception message in a JSP.

2003-02-25 Thread pqin
Solution 1:

- Add error to ActionMessage.
- Display the above message as a hidden field on the same page.
- Meanwhile, display a friendly message to user on the same page.

Solution 2:

- log exception to a file.
- display friendly message to user on the same page.


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

-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 10:30 AM
To: Struts Users Mailing List
Subject: Re: Reporting an Exception message in a JSP.


On Tuesday, Feb 25, 2003, at 10:14 US/Eastern, David Graham wrote:

 Well, I would never show my user an error message from some low level 
 system such as the database.  If you really want them to see this info 
 you could define a message key as anything={0} and substitute your SQL 
 message.  I highly discourage this but it's an option.

True but in my case I find it sometimes easier to turn on debugging 
from my browser on a live app to see what's causing the exception the 
user is seeing without having to look at logs or anything, so while the 
user never sees this error in normal processing, I can see the 
exception when trying to debug and figure out what's going on on a live 
app.

I don't know if this was the original poster's intent though.


R

--
Robert S. Sfeir
Senior Java Engineer
Codepuccino, Inc.
[EMAIL PROTECTED]

definition - Codepuccino n:
A Little JSP mixed with lots of Java, usually served with Servlets, a 
Datasource, a sprinkle of XML, and sometimes EJB.  (See Great MVC 
Frameworks)


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


RE: multibox?

2003-02-25 Thread Sri Sankaran
Have you looked at html-multibox.jsp that is in the struts-exercise-taglib application 
that ships with Struts?

Sri

-Original Message-
From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:46 AM
To: '[EMAIL PROTECTED]'
Subject: multibox?


Can anyone send me an example of a Multibox by any chance?

Thanks,
Mike

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



RE: multibox?

2003-02-25 Thread Jobe, Mike [EESUS]
No I haven't, thanks I will look at it!
Mike

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: multibox?


Have you looked at html-multibox.jsp that is in the struts-exercise-taglib
application that ships with Struts?

Sri

-Original Message-
From: Jobe, Mike [EESUS] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 10:46 AM
To: '[EMAIL PROTECTED]'
Subject: multibox?


Can anyone send me an example of a Multibox by any chance?

Thanks,
Mike

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


RE: Struts and Portlets

2003-02-25 Thread Mitchell Morris
Ummm ... JSR-168 is still being held under NDA. Their page
(http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
in March sometime. How did you get a copy of the spec in advance, and aren't
you concerned about violating the NDA? Also, can we look at the spec too?
I'm exceedingly curious to see what's in it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 7:02 AM
 To: Struts Users Mailing List
 Subject: Re: Struts and Portlets


 You could take a look at www.liferay.com, there latest
 implementation (1.8) follows the Porlet Spec, JSR-168, and is
 using Struts 1.1b2.

 Regards,
 Todd G. Nist

 
  From: [EMAIL PROTECTED]
  Date: 2003/02/25 Tue AM 01:52:38 EST
  To: [EMAIL PROTECTED]
  Subject: Struts and Portlets
 
  Hi,
 
  is there an intention to implement the JSR-168 (Portlet
 API) into struts?
 
  In my opinion three important features like multiple output
 formats with XSLT, workflows and the support of portlets
 would be very important for the future.
 
  The ability to create standardised portlets with struts
 would be very interesting. I think the the actions and jsp
 are not much mightful for the future. The development of the
 jsp/action with tiles a.s.o. is fine but too slow and theres
 still a limited reuse. In my opinion there should/could be
 more abstraction for project comprehensive reuse. Such
 portlets could create configurable components with
 jsp/actions and beans. I dont have access to the portlets
 specification, but I am sure that this aspects are included there.
 
  Any comments?
 
  Juraj
 
 
 
 
 
 -
  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]



AW: Struts and Portlets

2003-02-25 Thread Juraj . Lenharcik
Hi Mitchell,

I dont have it. I expect that some features are included. 

Juraj

-Ursprüngliche Nachricht-
Von: Mitchell Morris [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 17:12
An: 'Struts Users Mailing List'
Betreff: RE: Struts and Portlets


Ummm ... JSR-168 is still being held under NDA. Their page
(http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
in March sometime. How did you get a copy of the spec in advance, and aren't
you concerned about violating the NDA? Also, can we look at the spec too?
I'm exceedingly curious to see what's in it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 7:02 AM
 To: Struts Users Mailing List
 Subject: Re: Struts and Portlets


 You could take a look at www.liferay.com, there latest
 implementation (1.8) follows the Porlet Spec, JSR-168, and is
 using Struts 1.1b2.

 Regards,
 Todd G. Nist

 
  From: [EMAIL PROTECTED]
  Date: 2003/02/25 Tue AM 01:52:38 EST
  To: [EMAIL PROTECTED]
  Subject: Struts and Portlets
 
  Hi,
 
  is there an intention to implement the JSR-168 (Portlet
 API) into struts?
 
  In my opinion three important features like multiple output
 formats with XSLT, workflows and the support of portlets
 would be very important for the future.
 
  The ability to create standardised portlets with struts
 would be very interesting. I think the the actions and jsp
 are not much mightful for the future. The development of the
 jsp/action with tiles a.s.o. is fine but too slow and theres
 still a limited reuse. In my opinion there should/could be
 more abstraction for project comprehensive reuse. Such
 portlets could create configurable components with
 jsp/actions and beans. I dont have access to the portlets
 specification, but I am sure that this aspects are included there.
 
  Any comments?
 
  Juraj
 
 
 
 
 
 -
  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]



where do i get info for setting the logging level in struts1.1.b3

2003-02-25 Thread Ashish Kulkarni
Hi,

I want to set the log message level to error , so i
dont get all the debug messages. 
Is there a place where some steps or procedurs is
given to setup this level,
I am using log4j in my project and so have the
log4j.jar file in lib directory, does it affect it??



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Reuse Frames with Tiles

2003-02-25 Thread Cedric Dumoulin
 The Tiles insert mechanism use the RequestDispatcher.include(...) 
which only allows to include a resource from the same webapp. So, you 
can't insert a tile from another war file.
 A solution is to implement a tile that read its content from an 
external location. But, the external location will not have access to 
the current request and so on ...

  Cedric

Bernhard Lenz wrote:

We have multiple web applications (wars) which all use the same header
(e.g. header.jsp). Currently since the jsp:include tag only works within
a war's context we have to package/copy header.jsp into each war. Now
every time header.jsp changes all applications have to be repackaged and
redeployed. 



The goal is to store header.jsp only once e.g. in a common repository
war and have all other wars access this common repository to obtain the
header information. 

Is this possible with struts tiles? If so how? The examples that are
provided with tiles all reside in a single web application / war. An
inter war tile definitions example is missing. 



Your help is greatly appreciated. 



Greetings

Bernie



P.S.: The app server we're using is WL 6.1. 

 



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


RE: where do i get info for setting the logging level in struts1.1.b3

2003-02-25 Thread Pani, Gourav
Ashish, 

You would have to create a log4j.properties file and load it with a Servlet
on startup.  Information for this should be available here:
http://jakarta.apache.org/log4j/docs/manual.html.

You can then set your logging level with the following line in your
properties file.

# Logger for apache classes to exclude basic debug messages
log4j.logger.org.apache=ERROR, LoggerType



PS:  Not so subtle hint.  Consider losing the $ signs in your signature.

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: where do i get info for setting the logging level in
struts1.1.b3


Hi,

I want to set the log message level to error , so i
dont get all the debug messages. 
Is there a place where some steps or procedurs is
given to setup this level,
I am using log4j in my project and so have the
log4j.jar file in lib directory, does it affect it??



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.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]



[OT] RE: where do i get info for setting the logging level in struts1.1.b3

2003-02-25 Thread John Espey
http://jakarta.apache.org/log4j
look for log4j.properties


 -Original Message-
 From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: where do i get info for setting the logging level in
 struts1.1.b3
 
 
 Hi,
 
 I want to set the log message level to error , so i
 dont get all the debug messages. 
 Is there a place where some steps or procedurs is
 given to setup this level,
 I am using log4j in my project and so have the
 log4j.jar file in lib directory, does it affect it??
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.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: where do i get info for setting the logging level in struts1. 1.b3

2003-02-25 Thread Ashish Kulkarni
Hi, 
Thanx for the info,
just wondering about the hint about losing $ sign in
my signature,why do u think so?

Ashish
--- Pani, Gourav [EMAIL PROTECTED]
wrote:
 Ashish, 
 
 You would have to create a log4j.properties file and
 load it with a Servlet
 on startup.  Information for this should be
 available here:
 http://jakarta.apache.org/log4j/docs/manual.html.
 
 You can then set your logging level with the
 following line in your
 properties file.
 
 # Logger for apache classes to exclude basic debug
 messages
 log4j.logger.org.apache=ERROR, LoggerType
 
 
 
 PS:  Not so subtle hint.  Consider losing the $
 signs in your signature.
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 11:21 AM
 To: [EMAIL PROTECTED]
 Subject: where do i get info for setting the logging
 level in
 struts1.1.b3
 
 
 Hi,
 
 I want to set the log message level to error , so i
 dont get all the debug messages. 
 Is there a place where some steps or procedurs is
 given to setup this level,
 I am using log4j in my project and so have the
 log4j.jar file in lib directory, does it affect it??
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.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]
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[OT] RE: where do i get info for setting the logging level in struts1. 1.b3

2003-02-25 Thread Pani, Gourav
hmm, if you can't figure out why seeing $ signs in someone's signature is
irritating, how about this.  not classy.  $ in your name makes it sound like
you are all about the cash.  especially in an open source environment, that
is a bit tasteless don't you think.  

your call.  

  

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:29 AM
To: Struts Users Mailing List
Subject: RE: where do i get info for setting the logging level in
struts1. 1.b3


Hi, 
Thanx for the info,
just wondering about the hint about losing $ sign in
my signature,why do u think so?

Ashish
--- Pani, Gourav [EMAIL PROTECTED]
wrote:
 Ashish, 
 
 You would have to create a log4j.properties file and
 load it with a Servlet
 on startup.  Information for this should be
 available here:
 http://jakarta.apache.org/log4j/docs/manual.html.
 
 You can then set your logging level with the
 following line in your
 properties file.
 
 # Logger for apache classes to exclude basic debug
 messages
 log4j.logger.org.apache=ERROR, LoggerType
 
 
 
 PS:  Not so subtle hint.  Consider losing the $
 signs in your signature.
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 11:21 AM
 To: [EMAIL PROTECTED]
 Subject: where do i get info for setting the logging
 level in
 struts1.1.b3
 
 
 Hi,
 
 I want to set the log message level to error , so i
 dont get all the debug messages. 
 Is there a place where some steps or procedurs is
 given to setup this level,
 I am using log4j in my project and so have the
 log4j.jar file in lib directory, does it affect it??
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.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]
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.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: Struts and Portlets

2003-02-25 Thread BaTien Duong
We believe that Struts together with other best-of-breed loosely connected
components without hard connections to any engines such as the ones in
JetSpeed will be best to implement JSR-168. Obviously, we have to wait for
Reference Implementation of JSR-168. This topic will be hot.

BaTien
===

-Original Message-
From: Mitchell Morris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:12 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts and Portlets


Ummm ... JSR-168 is still being held under NDA. Their page
(http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
in March sometime. How did you get a copy of the spec in advance, and aren't
you concerned about violating the NDA? Also, can we look at the spec too?
I'm exceedingly curious to see what's in it.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 7:02 AM
 To: Struts Users Mailing List
 Subject: Re: Struts and Portlets


 You could take a look at www.liferay.com, there latest
 implementation (1.8) follows the Porlet Spec, JSR-168, and is
 using Struts 1.1b2.

 Regards,
 Todd G. Nist

 
  From: [EMAIL PROTECTED]
  Date: 2003/02/25 Tue AM 01:52:38 EST
  To: [EMAIL PROTECTED]
  Subject: Struts and Portlets
 
  Hi,
 
  is there an intention to implement the JSR-168 (Portlet
 API) into struts?
 
  In my opinion three important features like multiple output
 formats with XSLT, workflows and the support of portlets
 would be very important for the future.
 
  The ability to create standardised portlets with struts
 would be very interesting. I think the the actions and jsp
 are not much mightful for the future. The development of the
 jsp/action with tiles a.s.o. is fine but too slow and theres
 still a limited reuse. In my opinion there should/could be
 more abstraction for project comprehensive reuse. Such
 portlets could create configurable components with
 jsp/actions and beans. I dont have access to the portlets
 specification, but I am sure that this aspects are included there.
 
  Any comments?
 
  Juraj
 
 
 
 
 
 -
  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: Tile configuration problem: No value defined for bean

2003-02-25 Thread Cedric Dumoulin
 Hi,

 You should use tiles:insert name=sccLayout .../ rather than
tiles:insert beanName=sccLayout .../
 beanName is for retrieving a definition from the jsp scope.
 name is for retrieving a definition from the tiles factory.
   Cedric

[EMAIL PROTECTED] wrote:

Greetings,
I'm experienced with Struts 1.0.2 and am trying to use 1.1 with Tiles for
the first time, and have successfully created my layout, but now I can't
seem to get my definitions to register in the tiles-defs.xml.  I've been at
this for two days and searched newsgroups and archives but can't seem to
find a solution...
I am using Struts 1.1 b3 on Weblogic 6.1 SP4
Using the struts-blank.war as my example, I placed the following in my
struts-config.xml:
 controller processorClass
=org.apache.struts.tiles.TilesRequestProcessor /
 message-resources parameter=resources.application /
 plug-in className=org.apache.struts.tiles.TilesPlugin
   set-property property=definitions-config value
=/WEB-INF/tiles-defs.xml /
   set-property property=moduleAware value=true /
   set-property property=definitions-parser-validate value=true /
 /plug-in
then in the WEB-INF/tiles-def.xml, I have put:
tiles-definitions
   definition name=sccLayout path=/common/layouts/upLayout.jsp
 put name=pageTitle value=CHANGEME/
 put name=stylesheet value=css/scc.css /
 put name=menuoptions value=/common/scc-menuoptions.jsp /
 put name=body-content value=CHANGEME/
   /definition
/tiles-definitions
Finally, in my jsp file, I have:
tiles:insert beanName=sccLayout beanScope=request flush=true
 tiles:put name=pageTitle value=Shipment Cancellations direct=true
type=string/
 tiles:put name=body-content type=string
 html:errors/

 centerh3bean:message key=index.heading//h3
 table width=50%
   trtd
   bean:message key=index.message/
   /td/tr
 /table
 /center
/tiles:put
/tiles:insert
Any time I hit this jsp, I get the following error:
Feb 21, 2003 12:08:06 PM CST Error HTTP
[WebAppServletContext(3210383,scc,/scc)] Root cause of ServletException
javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for
bean 'sccLayout' with property 'null' in scope 'request'.
   at
org.apache.struts.taglib.tiles.InsertTag.processBean(InsertTag.java:629)
   at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:485)
   at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445)
   at jsp_servlet._secure.__index._jspService(__index.java:110)
   at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321)
   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
   at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:250)
   at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)
   at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269)
   at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436)
   at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312)
   at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
   at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
   at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
   at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I have verifyed this layout will work, but only if I use it as a JSP
include.
Any clues?  Am I missing something obvious here??
TIA

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



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


RE: [OT] RE: where do i get info for $etting the logging level in $trut$1. 1.b3

2003-02-25 Thread James Mitchell
What'$ wrong with u$ing $ in my $ig?


--
Jame$ Mitchell
$oftware Engineer/$trut$ Evangeli$t



 -Original Message-
 From: Pani, Gourav [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 25, 2003 11:33 AM
 To: 'Struts Users Mailing List'
 Subject: [OT] RE: where do i get info for setting the logging 
 level in struts1. 1.b3
 
 
 hmm, if you can't figure out why seeing $ signs in someone's 
 signature is
 irritating, how about this.  not classy.  $ in your name 
 makes it sound like
 you are all about the cash.  especially in an open source 
 environment, that
 is a bit tasteless don't you think.  
 
 your call.  
 
   
 
 -Original Message-
 From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 11:29 AM
 To: Struts Users Mailing List
 Subject: RE: where do i get info for setting the logging level in
 struts1. 1.b3
 
 
 Hi, 
 Thanx for the info,
 just wondering about the hint about losing $ sign in
 my signature,why do u think so?
 
 Ashish
 --- Pani, Gourav [EMAIL PROTECTED]
 wrote:
  Ashish, 
  
  You would have to create a log4j.properties file and
  load it with a Servlet
  on startup.  Information for this should be
  available here:
  http://jakarta.apache.org/log4j/docs/manual.html.
  
  You can then set your logging level with the
  following line in your
  properties file.
  
  # Logger for apache classes to exclude basic debug
  messages
  log4j.logger.org.apache=ERROR, LoggerType
  
  
  
  PS:  Not so subtle hint.  Consider losing the $
  signs in your signature.
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 11:21 AM
  To: [EMAIL PROTECTED]
  Subject: where do i get info for setting the logging
  level in
  struts1.1.b3
  
  
  Hi,
  
  I want to set the log message level to error , so i
  dont get all the debug messages. 
  Is there a place where some steps or procedurs is
  given to setup this level,
  I am using log4j in my project and so have the
  log4j.jar file in lib directory, does it affect it??
  
  
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
  http://taxes.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]
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.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]
 


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



HELP! Plz!! request.getRequestURI() in jsp vs. Action class

2003-02-25 Thread Khalid K.
Thanks for the replies, let me clarify something:

Here is the problem:

We have a header for the site called header.jsp. This header has an
image/link which if clicked will switch between languages..i.e. english and
spanish.
This header is included in all subsquent jsp pages.  So if the client clicks
on the link, it suppose to change the language in the session and the POST
to the same page..basically it should execute the action class again, which
will to go and get the resource file, set it in the request, build the jsp
and display it.

In order to POST this little form the change the language, I need the get
the URI of the page. Well, when executing request.getRequestURI() from a
JSP, it returns the jsp name (which I dont want), it doesn't return the
/customer/FileA.do instead it returns '/customer/filea.jsp'

Anyone has any idea on how to approach this problem ??

Thanks,

- Original Message -
From: Guido [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:49 AM
Subject: Re: HELP! Plz!! request.getRequestURI() in jsp vs. Action class
HELP!!! :)


 If I am not missing anything, maybe you can (it is a good practice) go
 _always_ through an Action (or ActionForward, etc) and never post
 directly to a JSP...

 HTH,
 Guido.

 Khalid K. wrote:

 (Repost)
 
 Hello All, Please help with this problem.
 
 I need request.getRequestURI() to return  actionA.do
 
 This works fine if when I call the getRequestURI() method from an Action
 class,
 
 But When I call request.getRequestURI() from a JSP file...it returns the
 ActionA.jsp   
 
 I could replace .jsp with .do, but my method sometimes post to a jsp
 file and others to an Action, so It is not as easy
 
 Any ideas??
 
 Thanks
 
 Khalid
 
 
 
 -
 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: Session timeout problem

2003-02-25 Thread Khalid K.
In some containers, the session is timeout is managed by the container..you
might want to look into that..
For example, we run Websphere, and it is set to time out after 30min, even
though we were sitting the seesion
to timeout after 60min, it was being overwritten by the Container...

hope this helps

Khalid

- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 5:08 AM
Subject: RE: Session timeout problem


 Hi,

   I also have the following in web.xml

 init-param
   param-namenocache/param-name
   param-valuetrue/param-value

 /init-param
 session-config
   session-timeout15/session-timeout
 /session-config
 Thanks,
 Mohan

 -Original Message-
 From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 5:07 PM
 To: 'Struts Users Mailing List'
 Subject: Session timeout problem


 Hi,
Our struts application ( I am not sure if it is the session
 )occasionally timesout and throws us back to the login page.

 session-config
   session-timeout15/session-timeout
 /session-config

 This is not uniform.

 Whenever I login I use code like this

 protected void inValidateSession( HttpServletRequest request ){
 HttpSession session = request.getSession( false ); -- Is this
 right?
 if( session != null ){
 session.invalidate();
 }
 }

   Does any of you see any problem here ?

 Mohan

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

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





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



RE: [OT] RE: where do i get info for $etting the logging level in $trut$1. 1.b3

2003-02-25 Thread Pani, Gourav
well, i guess if the struts evangelist says it's ok, it must be. ;)

maybe it is a personal preference of mine.  i just recommended it to him and
said it was his call anyway.


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:38 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] RE: where do i get info for $etting the logging level
in $trut$1. 1.b3


What'$ wrong with u$ing $ in my $ig?


--
Jame$ Mitchell
$oftware Engineer/$trut$ Evangeli$t



 -Original Message-
 From: Pani, Gourav [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 25, 2003 11:33 AM
 To: 'Struts Users Mailing List'
 Subject: [OT] RE: where do i get info for setting the logging 
 level in struts1. 1.b3
 
 
 hmm, if you can't figure out why seeing $ signs in someone's 
 signature is
 irritating, how about this.  not classy.  $ in your name 
 makes it sound like
 you are all about the cash.  especially in an open source 
 environment, that
 is a bit tasteless don't you think.  
 
 your call.  
 
   
 
 -Original Message-
 From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 11:29 AM
 To: Struts Users Mailing List
 Subject: RE: where do i get info for setting the logging level in
 struts1. 1.b3
 
 
 Hi, 
 Thanx for the info,
 just wondering about the hint about losing $ sign in
 my signature,why do u think so?
 
 Ashish
 --- Pani, Gourav [EMAIL PROTECTED]
 wrote:
  Ashish, 
  
  You would have to create a log4j.properties file and
  load it with a Servlet
  on startup.  Information for this should be
  available here:
  http://jakarta.apache.org/log4j/docs/manual.html.
  
  You can then set your logging level with the
  following line in your
  properties file.
  
  # Logger for apache classes to exclude basic debug
  messages
  log4j.logger.org.apache=ERROR, LoggerType
  
  
  
  PS:  Not so subtle hint.  Consider losing the $
  signs in your signature.
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 11:21 AM
  To: [EMAIL PROTECTED]
  Subject: where do i get info for setting the logging
  level in
  struts1.1.b3
  
  
  Hi,
  
  I want to set the log message level to error , so i
  dont get all the debug messages. 
  Is there a place where some steps or procedurs is
  given to setup this level,
  I am using log4j in my project and so have the
  log4j.jar file in lib directory, does it affect it??
  
  
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
  http://taxes.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]
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.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]
 


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

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



Re: RE: Struts and Portlets

2003-02-25 Thread tnist
My fault, I guess I needed a couple more cups of coffee before typing up my response.  
Liferay has implemented an enterprise portal, which uses Struts 1.b2.  As for their 
adherence to the fore mentioned spec, JSR-168, I am not sure.

Sorry for the misinformation.

Todd

 
 From: Mitchell Morris [EMAIL PROTECTED]
 Date: 2003/02/25 Tue AM 11:11:55 EST
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Struts and Portlets
 
 Ummm ... JSR-168 is still being held under NDA. Their page
 (http://www.jcp.org/en/jsr/detail?id=168) says that they'll expose the spec
 in March sometime. How did you get a copy of the spec in advance, and aren't
 you concerned about violating the NDA? Also, can we look at the spec too?
 I'm exceedingly curious to see what's in it.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 7:02 AM
  To: Struts Users Mailing List
  Subject: Re: Struts and Portlets
 
 
  You could take a look at www.liferay.com, there latest
  implementation (1.8) follows the Porlet Spec, JSR-168, and is
  using Struts 1.1b2.
 
  Regards,
  Todd G. Nist
 
  
   From: [EMAIL PROTECTED]
   Date: 2003/02/25 Tue AM 01:52:38 EST
   To: [EMAIL PROTECTED]
   Subject: Struts and Portlets
  
   Hi,
  
   is there an intention to implement the JSR-168 (Portlet
  API) into struts?
  
   In my opinion three important features like multiple output
  formats with XSLT, workflows and the support of portlets
  would be very important for the future.
  
   The ability to create standardised portlets with struts
  would be very interesting. I think the the actions and jsp
  are not much mightful for the future. The development of the
  jsp/action with tiles a.s.o. is fine but too slow and theres
  still a limited reuse. In my opinion there should/could be
  more abstraction for project comprehensive reuse. Such
  portlets could create configurable components with
  jsp/actions and beans. I dont have access to the portlets
  specification, but I am sure that this aspects are included there.
  
   Any comments?
  
   Juraj
  
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: RE: Struts and Portlets

2003-02-25 Thread Mete Kural
Liferay has not yet implemented JSR-168 completely.
This is because the specs keep on changing still. Once
the specs become fairly stabilized, a.k.a. once
JSR-168 hits the community, the Portlet API is
intended to be implemented fully.

As our friend said, Liferay is an implementation of an
enterprise portal server, similar to Plumtree and
Epicentric.

-Mete

--- [EMAIL PROTECTED] wrote:
 My fault, I guess I needed a couple more cups of
 coffee before typing up my response.  Liferay has
 implemented an enterprise portal, which uses Struts
 1.b2.  As for their adherence to the fore mentioned
 spec, JSR-168, I am not sure.
 
 Sorry for the misinformation.
 
 Todd
 
  
  From: Mitchell Morris [EMAIL PROTECTED]
  Date: 2003/02/25 Tue AM 11:11:55 EST
  To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
  Subject: RE: Struts and Portlets
  
  Ummm ... JSR-168 is still being held under NDA.
 Their page
  (http://www.jcp.org/en/jsr/detail?id=168) says
 that they'll expose the spec
  in March sometime. How did you get a copy of the
 spec in advance, and aren't
  you concerned about violating the NDA? Also, can
 we look at the spec too?
  I'm exceedingly curious to see what's in it.
  
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, February 25, 2003 7:02 AM
   To: Struts Users Mailing List
   Subject: Re: Struts and Portlets
  
  
   You could take a look at www.liferay.com, there
 latest
   implementation (1.8) follows the Porlet Spec,
 JSR-168, and is
   using Struts 1.1b2.
  
   Regards,
   Todd G. Nist
  
   
From: [EMAIL PROTECTED]
Date: 2003/02/25 Tue AM 01:52:38 EST
To: [EMAIL PROTECTED]
Subject: Struts and Portlets
   
Hi,
   
is there an intention to implement the JSR-168
 (Portlet
   API) into struts?
   
In my opinion three important features like
 multiple output
   formats with XSLT, workflows and the support of
 portlets
   would be very important for the future.
   
The ability to create standardised portlets
 with struts
   would be very interesting. I think the the
 actions and jsp
   are not much mightful for the future. The
 development of the
   jsp/action with tiles a.s.o. is fine but too
 slow and theres
   still a limited reuse. In my opinion there
 should/could be
   more abstraction for project comprehensive
 reuse. Such
   portlets could create configurable components
 with
   jsp/actions and beans. I dont have access to the
 portlets
   specification, but I am sure that this aspects
 are included there.
   
Any comments?
   
Juraj
   
   
   
   
   
  

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

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

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

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


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



Re: NPE, webapp broken after moving to 1.1-rc1

2003-02-25 Thread Dan Tran
I ran to the same problem, here is top level stacktrace, (if it is not
already reported)



java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:329)
at
org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java
:305)
at
org.apache.struts.util.RequestUtils.getActionErrors(RequestUtils.java:1856)
at org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:194)
at
org.apache.strutsel.taglib.html.ELErrorsTag.doStartTag(ELErrorsTag.java:181)

- Original Message -
From: Wendy Smoak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:30 AM
Subject: RE: NPE, webapp broken after moving to 1.1-rc1


 David Karr wrote:
  I could use a full review of exactly the page that is causing problems,
  including the full stack trace, along with a modified page that is not
 having a
  problem.

 I filed a bug for it (#17375).  Basically, any page with html-el:errors/
 dies with a NPE.

 I thought maybe it wouldn't happen if there actually were errors to be
 displayed, but that's not the case.  I determined this by commenting out
the
 html-el:errors/ tag so the form would display, then deliberately making
an
 error, but putting the tag back in and saving the .jsp before submitting
the
 form.  It recompiled and showed the NPE.  If I edit the .jsp again to use
 html:errors/ save it and resubmit the form, I now see the html formatted
 validation errors.

 I hope the sample JSP and the stack trace in the bug report are enough to
go
 on.

 --
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources Management


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



Re: Struts and Portlets

2003-02-25 Thread Craig R. McClanahan


On Tue, 25 Feb 2003 [EMAIL PROTECTED] wrote:

 Date: Tue, 25 Feb 2003 07:52:38 +0100
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Struts and Portlets

 Hi,

 is there an intention to implement the JSR-168 (Portlet API) into
 struts?


I'm definitely interested in making it possible to reuse Struts-based
webapp things (actions, form beans, pages, business logic) in a portlet.
That's going to take some refactoring and abstraction of the fundamental
APIs -- but it's definitely going to be worth doing.

Craig McClanahan

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



RE: NPE, webapp broken after moving to 1.1-rc1

2003-02-25 Thread Karr, David
Yes, it's reported, and I see the problem, and I'll be fixing that
tonight.

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 9:14 AM
 To: Struts Users Mailing List
 Subject: Re: NPE, webapp broken after moving to 1.1-rc1
 
 I ran to the same problem, here is top level stacktrace, (if it is not
 already reported)
 
 java.lang.NullPointerException
   at java.util.Hashtable.get(Hashtable.java:329)
   at

org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.
ja
 va
 :305)
   at

org.apache.struts.util.RequestUtils.getActionErrors(RequestUtils.java:18
56
 )
   at
 org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:194)
   at

org.apache.strutsel.taglib.html.ELErrorsTag.doStartTag(ELErrorsTag.java:
18
 1)

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



Re: Reporting an Exception message in a JSP.

2003-02-25 Thread Paul Yunusov
On Tuesday 25 February 2003 10:03 am, ROSSEL Olivier wrote:
 I want to display the error message of an SQLException
 in my JSP.

 At first, I tried to set an ActionError with this message and
 to display it via html:errors/.
 It does not work because ActionError accepts as an input
 string the key of a property.

 So what's the nicest way to show to the user the error message
 that I get from my SQLException ?

If you use Struts 1.1, declare an exception under global-exceptions or an 
action in your struts config xml file. You can specify a JSP page to 
forward the request to within the exception element.

You may need to define an ExceptionHandler class that will be passed request, 
response and exception objects if an Action throws an exception. Build any 
response there that's more complex than merely forwarding to a JSP.

Read section 4.5 of the wonderful Struts user guide:
http://jakarta.apache.org/struts/userGuide and read the struts config file's 
DTD - very revealing texts.

Paul

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



Re: Struts and Portlets

2003-02-25 Thread Mete Kural
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 I'm definitely interested in making it possible to
 reuse Struts-based
 webapp things (actions, form beans, pages, business
 logic) in a portlet.
 That's going to take some refactoring and
 abstraction of the fundamental
 APIs -- but it's definitely going to be worth doing.

Craig, what would be the scope of implementing the
Portlet API in Struts? Would it encompass implementing
some features of a portal server? Do you think it is
practical to provide a portal server platform within
Struts?

Thanks,
Mete

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



How to submit a conditional form with images link?

2003-02-25 Thread Ext-Lydia.Sabino
Hi all,
 
I am using Struts and I need to implements 3 differents actions for the same form 
(addItem.do, updateItem.do and deleteItem.do).
My form has only 2 fields and 3 images for the actions. Do I have to create 3 
different forms?
Maybe I can use the html:image tag but I don't know how.
More, I can't use javascript on my web page though I need to test if the field is 
empty or not!!
Could you help me?
 
Thanks a lot.
LSA.
 
 
 


Re: Struts and Portlets

2003-02-25 Thread Craig R. McClanahan


On Tue, 25 Feb 2003, Mete Kural wrote:

 Date: Tue, 25 Feb 2003 09:31:36 -0800 (PST)
 From: Mete Kural [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Struts and Portlets

 --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
  I'm definitely interested in making it possible to
  reuse Struts-based
  webapp things (actions, form beans, pages, business
  logic) in a portlet.
  That's going to take some refactoring and
  abstraction of the fundamental
  APIs -- but it's definitely going to be worth doing.

 Craig, what would be the scope of implementing the
 Portlet API in Struts? Would it encompass implementing
 some features of a portal server? Do you think it is
 practical to provide a portal server platform within
 Struts?


The result of JSR 168 is going to be an API contract between a portal
server and a portlet -- much like the Servlet API contract between a
servlet container and a Servlet.  As such, I think the best role for
Struts is to answer the how do you program a portlet rather than how do
I build a portal server.

The analogy in the servlet space is that there's no need for Struts to
implement the servlet API, since lots of containers (including Tomcat) do
that for you.  Instead, I want to make it possible to write Struts-based
portlets that can run on *anyone's* portal server that supports JSR-168.
That doesn't mean we have to write the portal server itself -- it means we
need to implement the portlet API analog of what ActionServlet does for
servlet requests.

Now, another interesting question is can I build a portal server based on
Struts that can then incorporate JSR-168 portlets?  The thinking is that
you could use Tiles and other Struts based features to manage the
aggregation that portal servers do.  There are certainly people in the
world who have done this sort of thing already (Liferay, BasicPortal,
etc.) for non-JSR-168 portlet APIs, so it's clearly feasible, and it's a
pretty good idea.  But, from my perspective, this sort of thing is
actually a Struts-based application, rather than part of the framework
itself.

 Thanks,
 Mete

Craig

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



Maps and Nested Properties problems

2003-02-25 Thread Mathias, Merlyn
Hi,
 
I would like to know how to use a Map with nested properties.  I have an
ArrayList of Maps in my ActionForm. I want to do something like this in my
JSP page.
 
logic:iterate id=address name=addressList indexId=index
 
Street: html:text property=address[index].street /
City : html:text property= address[index].city /

 
And so on ...
 
/logic:iterate 
 
public class MyActionForm extends ActionForm
{
private ArrayList addressList;
 
public MyActionForm()
{
addressList = new ArrayList;
addressList.add(new HashMap());
}
 
public Object getAddress(int index)
  {
return addressList.get(index);
  }
 
public void setAddress(int index, Object value)
  {
addressList.set(index,value);
  }
 

}
 
I don't get any errors but the input values are not getting saved. The
ActionForm is in session scope.  
 
I know this works if I have an ArrayList of 'Address' beans with getters and
setters.  Is there any way to do this with Map?
 
Thanks a lot,
Merlyn.


Why does struts (beanutils?) not use Map.Entry.setValue()

2003-02-25 Thread WILLIAMS,RAND (HP-USA,ex1)
Why does struts (beanutils?) not use Map.Entry.setValue() in logic:iterate
?
when I change the value in an html:text, something does not update the
Map.Entry...
has anyone noticed this?? Should I do it another way? It's driving me nuts.

-Rand Williams
Hewlett-Packard

logic:notEmpty name=_engineerHM property=products 
 logic:iterate name=_engineerHM property=products id=product
type=java.util.Map.Entry 
  html:text name=product property=key / 
  html:text name=product property=value /
  html:multibox name=_engineerHM property=products_selected 
 value='%=(String)roduct.getKey()%' / br
 /logic:iterate
/logic:notEmpty

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



Re: RE: bean:write issues... or a better solution

2003-02-25 Thread Jason Vinson
I tried this in my page and i get:
[log error]
javax.servlet.jsp.JspException: Cannot find bean under name queuesName
at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418)
at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)

[jsp]
html:select name=spgQueuesForm property=queueSelected size=1 
styleClass=fBdr-main
html:options collection=queuesName property=objid /
/html:select


queuesName is a request level collection, with getters and setters for objid and title 
elements.

any ideas?
Jason





---Original Message---
From: Ray Madigan [EMAIL PROTECTED]
Sent: 02/24/03 11:54 AM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: bean:write issues... or a better solution

 
 If queuesName is a session or request level attribute then
the options tag should be

html:options collection=queuesName property=objid/

given that the collection elements implement the getter getObjid ( ).

Hope this helps!

-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 8:37 AM
To: Struts Users Mailing List
Subject: bean:write issues... or a better solution


Hi folks,


I am using a container class (a collection referenced by queuesName) to
hold
data for populating a select list, and I can't access the internal strings
with the getter and setter methods i have written.  I have included code
and
can elaborate if needed.  Can anyone tell me what I am overlooking... or
should i try it with an Iterator tag instead?

TIA,
Jason

[jsp]
html:select name=spgQueuesForm property=queueSelected size=1
styleClass=fBdr-main
html:options property=queuesName value=bean:write
name=spgQueuesForm property=objid/
/html:select
[/jsp]

[stack trace]
Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of
ServletException
javax.servlet.jsp.JspException: No getter method for property objid of
bean
spgQueuesForm
[/stack trace]






-
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: Maps and Nested Properties problems

2003-02-25 Thread David Graham
I've never had any luck using indexed accessors.  Try defining your 
accessors like
public List getAddresses(){return addresses;}

so that they accept and return the whole list.  That's worked for me in the 
past.  You could also use JSTL instead of the nested taglib.

David



From: Mathias, Merlyn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Maps and Nested Properties problems
Date: Tue, 25 Feb 2003 12:56:37 -0500
Hi,

I would like to know how to use a Map with nested properties.  I have an
ArrayList of Maps in my ActionForm. I want to do something like this in my
JSP page.
logic:iterate id=address name=addressList indexId=index

Street: html:text property=address[index].street /
City : html:text property= address[index].city /
And so on ...

/logic:iterate

public class MyActionForm extends ActionForm
{
private ArrayList addressList;
public MyActionForm()
{
addressList = new ArrayList;
addressList.add(new HashMap());
}
public Object getAddress(int index)
  {
return addressList.get(index);
  }
public void setAddress(int index, Object value)
  {
addressList.set(index,value);
  }
}

I don't get any errors but the input values are not getting saved. The
ActionForm is in session scope.
I know this works if I have an ArrayList of 'Address' beans with getters 
and
setters.  Is there any way to do this with Map?

Thanks a lot,
Merlyn.


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: How to submit a conditional form with images link?

2003-02-25 Thread Wendy Smoak
 I am using Struts and I need to implements 3 differents actions for the
same form 
 (addItem.do, updateItem.do and deleteItem.do).
 My form has only 2 fields and 3 images for the actions. Do I have to
create 3 different forms?
 Maybe I can use the html:image tag but I don't know how.
 More, I can't use javascript on my web page though I need to test if the
field is empty or not!!
 Could you help me?

Use LookupDispatchAction instead of having three separate Action classes.
You'll have methods (possibly) called 'add' 'update' 'delete'.  The 'value'
of the three different submit buttons will control which of the methods gets
called.  If you have to use images for the submit buttons, you may run into
trouble since the 'value' seems to appear as text on the button.  I have the
same issue, and I had to use a bit of JavaScript to get around that.

There are several ways to make sure fields are not empty before the form is
allowed to submit, and you can definitely do that without JavaScript.  I
suggest you get the form submission part working first, and then tackle
validation afterwards.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


[Ann]: Live online advanced Struts training by 4 authors for $350- last chance

2003-02-25 Thread Vic Cekvenich
One place for more details and info here:
http://www.postgresql.org/event.php?EventID=122
.V



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


Re: Struts and Portlets

2003-02-25 Thread Mete Kural
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 There are certainly people in the
 world who have done this sort of thing already
 (Liferay, BasicPortal, etc.) for non-JSR-168 
 portlet APIs, so it's clearly feasible, and it's a
 pretty good idea.  But, from my perspective, this
 sort of thing is actually a Struts-based 
 application, rather than part of the framework
 itself.

Thanks for the insight. Now I understand what the role
of Struts would be regarding the Portlet API. In this
case I have another question to follow. If Struts will
hopefully provide a framework for building
Struts-based portlets, how do you find the idea of
cultivating interest for open-source programmers to
work on a Struts-based portal server under the Jakarta
umbrella? As you say, there are already people who
have implemented Struts-based non-JSR-168 portal
servers such as Liferay and BasicPortal. I think that
it would be wonderful if there could be a joint effort
to create an open-source Struts-based portal server
under Jakarta, as an alternative to JetSpeed. What do
you think?

Thanks,
Mete




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



Re: Struts and Portlets

2003-02-25 Thread Vic Cekvenich
http://nagoya.apache.org/wiki/apachewiki.cgi?PortalProposal

Mete Kural wrote:
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:

There are certainly people in the
world who have done this sort of thing already
(Liferay, BasicPortal, etc.) for non-JSR-168 
portlet APIs, so it's clearly feasible, and it's a
pretty good idea.  But, from my perspective, this
sort of thing is actually a Struts-based 
application, rather than part of the framework
itself.


Thanks for the insight. Now I understand what the role
of Struts would be regarding the Portlet API. In this
case I have another question to follow. If Struts will
hopefully provide a framework for building
Struts-based portlets, how do you find the idea of
cultivating interest for open-source programmers to
work on a Struts-based portal server under the Jakarta
umbrella? As you say, there are already people who
have implemented Struts-based non-JSR-168 portal
servers such as Liferay and BasicPortal. I think that
it would be wonderful if there could be a joint effort
to create an open-source Struts-based portal server
under Jakarta, as an alternative to JetSpeed. What do
you think?
Thanks,
Mete


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


RE: RE: bean:write issues... or a better solution

2003-02-25 Thread Karr, David
Show us where you're putting queuesName into request scope.

 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:12 AM
 To: Struts Users Mailing List
 Subject: Re: RE: bean:write issues... or a better solution
 
 I tried this in my page and i get:
 [log error]
 javax.servlet.jsp.JspException: Cannot find bean under name queuesName
 at

org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418
)
 at
 org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options collection=queuesName property=objid /
 /html:select
 
 
 queuesName is a request level collection, with getters and setters for
 objid and title elements.
 
 any ideas?
 Jason
 
 
 
 
 
 ---Original Message---
 From: Ray Madigan [EMAIL PROTECTED]
 Sent: 02/24/03 11:54 AM
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: bean:write issues... or a better solution
 
 
  If queuesName is a session or request level attribute then
 the options tag should be
 
 html:options collection=queuesName property=objid/
 
 given that the collection elements implement the getter getObjid ( ).
 
 Hope this helps!
 
 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 8:37 AM
 To: Struts Users Mailing List
 Subject: bean:write issues... or a better solution
 
 
 Hi folks,
 
 
 I am using a container class (a collection referenced by queuesName)
to
 hold
 data for populating a select list, and I can't access the internal
strings
 with the getter and setter methods i have written.  I have included
code
 and
 can elaborate if needed.  Can anyone tell me what I am overlooking...
or
 should i try it with an Iterator tag instead?
 
 TIA,
 Jason
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options property=queuesName value=bean:write
 name=spgQueuesForm property=objid/
 /html:select
 [/jsp]
 
 [stack trace]
 Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause
of
 ServletException
 javax.servlet.jsp.JspException: No getter method for property objid of
 bean
 spgQueuesForm
 [/stack trace]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: RE: RE: bean:write issues... or a better solution

2003-02-25 Thread Jason Vinson
It's in my action class.  theForm is the ActionForm that gets passed in.

QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
for (int i=0; i  theQueues.length; i++) {
theQueues[i] = new QueueListing();
theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getValue());
theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getValue());
cboQueue.moveNext();
}
theForm.setQueuesName(theQueues);



---Original Message---
From: Karr, David [EMAIL PROTECTED]
Sent: 02/25/03 01:29 PM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: RE: bean:write issues... or a better solution

 
 Show us where you're putting queuesName into request scope.

 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:12 AM
 To: Struts Users Mailing List
 Subject: Re: RE: bean:write issues... or a better solution
 
 I tried this in my page and i get:
 [log error]
 javax.servlet.jsp.JspException: Cannot find bean under name queuesName
 at

org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418
)
 at
 org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options collection=queuesName property=objid /
 /html:select
 
 
 queuesName is a request level collection, with getters and setters for
 objid and title elements.
 
 any ideas?
 Jason
 
 
 
 
 
 ---Original Message---
 From: Ray Madigan [EMAIL PROTECTED]
 Sent: 02/24/03 11:54 AM
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: bean:write issues... or a better solution
 
 
  If queuesName is a session or request level attribute then
 the options tag should be
 
 html:options collection=queuesName property=objid/
 
 given that the collection elements implement the getter getObjid ( ).
 
 Hope this helps!
 
 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 8:37 AM
 To: Struts Users Mailing List
 Subject: bean:write issues... or a better solution
 
 
 Hi folks,
 
 
 I am using a container class (a collection referenced by queuesName)
to
 hold
 data for populating a select list, and I can't access the internal
strings
 with the getter and setter methods i have written.  I have included
code
 and
 can elaborate if needed.  Can anyone tell me what I am overlooking...
or
 should i try it with an Iterator tag instead?
 
 TIA,
 Jason
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options property=queuesName value=bean:write
 name=spgQueuesForm property=objid/
 /html:select
 [/jsp]
 
 [stack trace]
 Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause
of
 ServletException
 javax.servlet.jsp.JspException: No getter method for property objid of
 bean
 spgQueuesForm
 [/stack trace]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

 

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



RE: need to display a tree struture in JSP

2003-02-25 Thread Dennis Doubleday
I'll endorse--it worked really well for me, with one issue. Arron, did
you see my post from 10 days ago or so? I had a problem with
simultaneously loading the same tree in two separate iframes on the same
page. The nested context in one seemed to interfere with the context in
the other.

 -Original Message-
 From: Arron Bates [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 24, 2003 6:18 PM
 To: Struts Users Mailing List
 Subject: RE: need to display a tree struture in JSP
 
 
 I may be bias, but I've never seen a more flexible tree 
 solution than this...
 
 http://www.keyboardmonkey.com/pilotlight
 
 a lot of trees, but this is the least clumsy solution, as the 
 markup is simply Html and the nested Struts tags, and not 
 embedded markup in java logic.



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



RE: Reporting an Exception message in a JSP.

2003-02-25 Thread David Bolsover
Agreed - but in the UK we wouldn't stop at 117v  - 240v minimum :).

db

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: 25 February 2003 15:22
 To: 'Struts Users Mailing List'
 Subject: RE: Reporting an Exception message in a JSP.
 
 
 I've always found electric shock to be effective.  There's nothing like that
 ol' 117v/60Hz AC wake-up call to let a user know not to do that again!
 
 Seriously, you can add a returned exception to the errors array in the
 Action class, then display it with html:errors.
 
 Mark
 
 -Original Message-
 From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 25, 2003 10:03 AM
 
 what's the nicest way to show to the user the error message that I get from
 my SQLException?
 
 
 
 -
 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: Maps and Nested Properties problems

2003-02-25 Thread WILLIAMS,RAND (HP-USA,ex1)
Hello Merlyn,

I am having trouble with modifying the Map.Entry.value, but this might help
you:

From the docs
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate

[ Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over. However, if you iterate over a
Map, the exposed object is of type Map.Entry that has two properties:

key - The key under which this item is stored in the underlying Map. 
value - The value that corresponds to this key. 
So, if you wish to iterate over the values of a Hashtable, you would
implement code like the following:

logic:iterate id=element name=myhashtable
Next element is bean:write name=element property=value/
/logic:iterate ]

I have used this: 

[hmtest.jsp] 
(note that type=..Entry is reslly implicit - I did it for the sake of the
%=..% chunk)

logic:notEmpty name=_engineerHM property=products 
 logic:iterate name=_engineerHM property=products id=product
type=java.util.Map.Entry 
  html:text name=product property=key / 
  html:text name=product property=value /
  html:multibox name=_engineerHM property=products_selected 
 value='%=(String)roduct.getKey()%' / br
 /logic:iterate
/logic:notEmpty

[struts-config.xml]
form-bean
name=_engineerHM 
type=org.apache.struts.action.DynaActionForm
!-- want to test iteration on a HashMap --
form-property 
name=products 
type=java.util.HashMap /
form-property 
name=products_selected 
type=java.lang.String[] /
/form-bean

[DynaActionFormHashMapTest.java]
(you will need to make a new hash map if one doesn't exist,
 this would be in the ActionForm reset() if I wasn't using DynaActionForm)
if ( pHM == null ) {
  log.info( creating new HashMap for products);
  pHM = new HashMap();
}

-Original Message-
From: Mathias, Merlyn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: Maps and Nested Properties problems


Hi,
 
I would like to know how to use a Map with nested properties.  I have an
ArrayList of Maps in my ActionForm. I want to do something like this in my
JSP page.
 
logic:iterate id=address name=addressList indexId=index
 
Street: html:text property=address[index].street /
City : html:text property= address[index].city /

 
And so on ...
 
/logic:iterate 
 
public class MyActionForm extends ActionForm
{
private ArrayList addressList;
 
public MyActionForm()
{
addressList = new ArrayList;
addressList.add(new HashMap());
}
 
public Object getAddress(int index)
  {
return addressList.get(index);
  }
 
public void setAddress(int index, Object value)
  {
addressList.set(index,value);
  }
 

}
 
I don't get any errors but the input values are not getting saved. The
ActionForm is in session scope.  
 
I know this works if I have an ArrayList of 'Address' beans with getters and
setters.  Is there any way to do this with Map?
 
Thanks a lot,
Merlyn.

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



Re: Re: RE: RE: bean:write issues... or a better solution

2003-02-25 Thread Jason Vinson
hrmm... if i load the page initially, i get a Internal Server Error, with the error 
message from before.  But if i go to the address bar and just hit enter with the same 
address, it loads the page.

what am i doing wrong?
Jason


---Original Message---
From: Jason Vinson [EMAIL PROTECTED]
Sent: 02/25/03 01:34 PM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: RE: RE: bean:write issues... or a better solution

 
 It's in my action class.  theForm is the ActionForm that gets passed in.

QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
for (int i=0; i  theQueues.length; i++) {
theQueues[i] = new QueueListing();
   
theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getValue());
   
theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getValue());
cboQueue.moveNext();
}
theForm.setQueuesName(theQueues);



---Original Message---
From: Karr, David [EMAIL PROTECTED]
Sent: 02/25/03 01:29 PM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: RE: bean:write issues... or a better solution

 
 Show us where you're putting queuesName into request scope.

 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:12 AM
 To: Struts Users Mailing List
 Subject: Re: RE: bean:write issues... or a better solution
 
 I tried this in my page and i get:
 [log error]
 javax.servlet.jsp.JspException: Cannot find bean under name queuesName
 at

org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418
)
 at
 org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options collection=queuesName property=objid /
 /html:select
 
 
 queuesName is a request level collection, with getters and setters for
 objid and title elements.
 
 any ideas?
 Jason
 
 
 
 
 
 ---Original Message---
 From: Ray Madigan [EMAIL PROTECTED]
 Sent: 02/24/03 11:54 AM
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: bean:write issues... or a better solution
 
 
  If queuesName is a session or request level attribute then
 the options tag should be
 
 html:options collection=queuesName property=objid/
 
 given that the collection elements implement the getter getObjid ( ).
 
 Hope this helps!
 
 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 8:37 AM
 To: Struts Users Mailing List
 Subject: bean:write issues... or a better solution
 
 
 Hi folks,
 
 
 I am using a container class (a collection referenced by queuesName)
to
 hold
 data for populating a select list, and I can't access the internal
strings
 with the getter and setter methods i have written.  I have included
code
 and
 can elaborate if needed.  Can anyone tell me what I am overlooking...
or
 should i try it with an Iterator tag instead?
 
 TIA,
 Jason
 
 [jsp]
 html:select name=spgQueuesForm property=queueSelected size=1
 styleClass=fBdr-main
 html:options property=queuesName value=bean:write
 name=spgQueuesForm property=objid/
 /html:select
 [/jsp]
 
 [stack trace]
 Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause
of
 ServletException
 javax.servlet.jsp.JspException: No getter method for property objid of
 bean
 spgQueuesForm
 [/stack trace]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

 

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

 

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



RE: RE: RE: bean:write issues... or a better solution

2003-02-25 Thread Jarnot Voytek Contr AU HQ/SC
You're not putting it in request scope, you're sticking it in your form - to
put it on the request, use request.setAttribute(queuesName, theQueues);

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 12:35 PM
 To: Struts Users Mailing List
 Subject: Re: RE: RE: bean:write issues... or a better solution
 
 
 It's in my action class.  theForm is the ActionForm that gets 
 passed in.
 
 QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
 for (int i=0; i  theQueues.length; i++) {
 theQueues[i] = new QueueListing();
 
 theQueues[i].setTitle((String)cboQueue.getFields().getItem(ti
 tle).getValue());
 
 theQueues[i].setObjid((String)cboQueue.getFields().getItem(ob
 jid).getValue());
 cboQueue.moveNext();
 }
 theForm.setQueuesName(theQueues);
 
 
 
 ---Original Message---
 From: Karr, David [EMAIL PROTECTED]
 Sent: 02/25/03 01:29 PM
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: RE: bean:write issues... or a better solution
 
  
  Show us where you're putting queuesName into request scope.
 
  -Original Message-
  From: Jason Vinson [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 10:12 AM
  To: Struts Users Mailing List
  Subject: Re: RE: bean:write issues... or a better solution
  
  I tried this in my page and i get:
  [log error]
  javax.servlet.jsp.JspException: Cannot find bean under name 
 queuesName
  at
 
 org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTa
 g.java:418
 )
  at
  
 org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)
  
  [jsp]
  html:select name=spgQueuesForm property=queueSelected size=1
  styleClass=fBdr-main
  html:options collection=queuesName property=objid /
  /html:select
  
  
  queuesName is a request level collection, with getters and 
 setters for
  objid and title elements.
  
  any ideas?
  Jason
  
  
  
  
  
  ---Original Message---
  From: Ray Madigan [EMAIL PROTECTED]
  Sent: 02/24/03 11:54 AM
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: RE: bean:write issues... or a better solution
  
  
   If queuesName is a session or request level attribute then
  the options tag should be
  
  html:options collection=queuesName property=objid/
  
  given that the collection elements implement the getter 
 getObjid ( ).
  
  Hope this helps!
  
  -Original Message-
  From: Jason Vinson [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 24, 2003 8:37 AM
  To: Struts Users Mailing List
  Subject: bean:write issues... or a better solution
  
  
  Hi folks,
  
  
  I am using a container class (a collection referenced by queuesName)
 to
  hold
  data for populating a select list, and I can't access the internal
 strings
  with the getter and setter methods i have written.  I have included
 code
  and
  can elaborate if needed.  Can anyone tell me what I am 
 overlooking...
 or
  should i try it with an Iterator tag instead?
  
  TIA,
  Jason
  
  [jsp]
  html:select name=spgQueuesForm property=queueSelected size=1
  styleClass=fBdr-main
  html:options property=queuesName value=bean:write
  name=spgQueuesForm property=objid/
  /html:select
  [/jsp]
  
  [stack trace]
  Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg 
 Root cause
 of
  ServletException
  javax.servlet.jsp.JspException: No getter method for 
 property objid of
  bean
  spgQueuesForm
  [/stack trace]
  
  
  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Struts and Portlets

2003-02-25 Thread Mete Kural
Hi Vic,

I read your proposal. As you say, I think it would be
great to provide Struts-based verticals under a portal
platform. In your proposal you have mentioned that one
of BasicPortal's goals is to provide a UI that is
similar to my.netscape.com. I think that Liferay has
accomplished this and it also has pretty extensive
personalization and administration features. Please
surf through the demo at my.liferay.com Log in as the
administrator so you can check out the administration
features as well:
Login: [EMAIL PROTECTED] Pass: test

Since now I am somewhat involved in both Liferay and
BasicPortal (although I have not yet contributed a
single line of code to either of them) I can clearly
see that there is a common goal in both of these
projects: providing an open-source Struts-based
portal server. Both projects have their strengths.
While BasicPortal has a good lightweight persistence
framework, Liferay has an extensive UI for
personalization and administration. I suggest that the
best of both projects can be combined under a brand
new Jakarta subproject that would aim to provide a
Struts-based alternative to JetSpeed. What do you
think?

-Mete

--- Vic Cekvenich [EMAIL PROTECTED] wrote:

http://nagoya.apache.org/wiki/apachewiki.cgi?PortalProposal
 
 Mete Kural wrote:
  --- Craig R. McClanahan [EMAIL PROTECTED]
 wrote:
  
 There are certainly people in the
 world who have done this sort of thing already
 (Liferay, BasicPortal, etc.) for non-JSR-168 
 portlet APIs, so it's clearly feasible, and it's a
 pretty good idea.  But, from my perspective, this
 sort of thing is actually a Struts-based 
 application, rather than part of the framework
 itself.
  
  
  Thanks for the insight. Now I understand what the
 role
  of Struts would be regarding the Portlet API. In
 this
  case I have another question to follow. If Struts
 will
  hopefully provide a framework for building
  Struts-based portlets, how do you find the idea
 of
  cultivating interest for open-source programmers
 to
  work on a Struts-based portal server under the
 Jakarta
  umbrella? As you say, there are already people who
  have implemented Struts-based non-JSR-168 portal
  servers such as Liferay and BasicPortal. I think
 that
  it would be wonderful if there could be a joint
 effort
  to create an open-source Struts-based portal
 server
  under Jakarta, as an alternative to JetSpeed. What
 do
  you think?
  
  Thanks,
  Mete
 
 
 

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



Relative link to top of page and Struts

2003-02-25 Thread Moyer, Alan L
Hi,

I'm having a problem with doing a link within the same page with Struts. The
sequence is as follows:

1) Go through a Struts action that forwards to a jsp page.
2) jsp page has the following at the bottom of the page: html:link
href=#top associated with an image button
At the top of the page has A NAME=top
3) In the browser, the html:link tag has been translated to a href=#top
4) Holding the mouse over the button shows an address which is the jsp page
with #top at end of the address.
5) Pressing the button gives an Error 500. The server console shows 

Feb 25, 2003 1:55:36 PM EST Error HTTP 101017
[ServletContext(id=478471
8,name=OPAL_STRUTS,context-path=/OPAL_STRUTS)] Root cause of
ServletException
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/DispatcherAction
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:871)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:543)
...

where DispatcherAction was the last action that forwarded to the jsp page.
I'm using Weblogic 7.0, although I doubt that has anything to do with it.
Also, using Struts modules.

Question: Using Struts, how can I get the browser to just link to the top of
the page. I've done this successfully in the past using jsp pages without
Struts.

Thanks,

Al

[EMAIL PROTECTED]

This transmission is intended only for use by the addressee(s) named herein and may 
contain information that is proprietary, confidential and/or legally privileged. If 
you are not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, 
please immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you.

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



select multiple

2003-02-25 Thread LUCERO,DENNIS (HP-Boise,ex1)
When using html:select the fields that do not use the multiple = true
attribute are correctly populated from the form bean during a round trip to
the server but the fields using multiple = true are not. 
The getter and setter methods are getting called (sys out showing up), and
the array type is String[]
 
Any help appreciated.
 
 
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming
 


RE: RE: RE: bean:write issues... or a better solution

2003-02-25 Thread Karr, David
You actually have to put a bean with the name queuesName into request
scope, like this:

 request.setAttribute(queuesName, theQueues);

 -Original Message-
 From: Jason Vinson [mailto:[EMAIL PROTECTED]
 
 It's in my action class.  theForm is the ActionForm that gets passed
in.
 
 QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
 for (int i=0; i  theQueues.length; i++) {
 theQueues[i] = new QueueListing();
 

theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getV
al
 ue());
 

theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getV
al
 ue());
 cboQueue.moveNext();
 }
 theForm.setQueuesName(theQueues);
 
 ---Original Message---
 From: Karr, David [EMAIL PROTECTED]
 
  Show us where you're putting queuesName into request scope.
 
  -Original Message-
  From: Jason Vinson [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 10:12 AM
  To: Struts Users Mailing List
  Subject: Re: RE: bean:write issues... or a better solution
 
  I tried this in my page and i get:
  [log error]
  javax.servlet.jsp.JspException: Cannot find bean under name
queuesName
  at
 

org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418
 )
  at
 
org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234)
 
  [jsp]
  html:select name=spgQueuesForm property=queueSelected size=1
  styleClass=fBdr-main
  html:options collection=queuesName property=objid /
  /html:select
 
 
  queuesName is a request level collection, with getters and setters
for
  objid and title elements.
 
  any ideas?
  Jason
 
 
 
 
 
  ---Original Message---
  From: Ray Madigan [EMAIL PROTECTED]
  Sent: 02/24/03 11:54 AM
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: RE: bean:write issues... or a better solution
 
  
   If queuesName is a session or request level attribute then
  the options tag should be
 
  html:options collection=queuesName property=objid/
 
  given that the collection elements implement the getter getObjid (
).
 
  Hope this helps!
 
  -Original Message-
  From: Jason Vinson [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 24, 2003 8:37 AM
  To: Struts Users Mailing List
  Subject: bean:write issues... or a better solution
 
 
  Hi folks,
 
 
  I am using a container class (a collection referenced by queuesName)
 to
  hold
  data for populating a select list, and I can't access the internal
 strings
  with the getter and setter methods i have written.  I have included
 code
  and
  can elaborate if needed.  Can anyone tell me what I am
overlooking...
 or
  should i try it with an Iterator tag instead?
 
  TIA,
  Jason
 
  [jsp]
  html:select name=spgQueuesForm property=queueSelected size=1
  styleClass=fBdr-main
  html:options property=queuesName value=bean:write
  name=spgQueuesForm property=objid/
  /html:select
  [/jsp]
 
  [stack trace]
  Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root
cause
 of
  ServletException
  javax.servlet.jsp.JspException: No getter method for property objid
of
  bean
  spgQueuesForm
  [/stack trace]
 
 
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: select multiple

2003-02-25 Thread Ian Hunter
I just went through this.
- Original Message -
From: LUCERO,DENNIS (HP-Boise,ex1) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:56 PM
Subject: select multiple


 When using html:select the fields that do not use the multiple = true
 attribute are correctly populated from the form bean during a round trip
to
 the server but the fields using multiple = true are not.
 The getter and setter methods are getting called (sys out showing up), and
 the array type is String[]

 Any help appreciated.


 We come from the land of the ice and snow
 With the midnight sun, where the hot springs glow
 The hammer of the gods, will drive our ships to new lands
 Fight the horde, Sing and cry
 Valhalla I am coming




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



RE: [struts-menu] display trouble

2003-02-25 Thread Ray Madigan
You need the menu-config.xml file in your WEB-INF directory


-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:32 AM
To: Struts Users Mailing List
Subject: [struts-menu] display trouble


Hi,

After testing the example app who work fine, I've try to include
struts-menu on my project.

After reading the readme I follow that :

- Copy the file lib/struts-menu.tld from the struts-menu distribution into
the

WEB-INF directory of your web application.

- Copy the file lib/struts-menu.jar from the struts-menu distribution into
the

WEB-INF/lib directory of your web application.

- Modify the application WEB-INF/web.xml file to include a tag library
decleration

for the struts-menu taglibrary. For example:

taglib

taglib-uri/WEB-INF/struts-menu.tld/taglib-uri

taglib-location/WEB-INF/struts-menu.tld/taglib-location

/taglib

- In each JSP page that will use the Struts custom tags, add the
corresponding taglib

directive for struts-menu.tld. For example:

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu %

I create a simple jsp test page based on the coolmenu 3

%@ page contentType=text/html; charset=UTF-8 %

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%

html

head

titleCoolMenus3 Example/title

link rel=stylesheet type=text/css media=screen

href=styles/global.css /

/head

body

script language=JavaScript1.2 src=./scripts/coolmenus3.js

/script

script src=./scripts/coolmenu-config.js

/script

menu:useMenuDisplayer name=CoolMenu
bundle=org.apache.struts.action.MESSAGE

menu:displayMenu name=ToDoListMenuFile/

menu:displayMenu name=ToDoListMenuEdit/

menu:displayMenu name=CaseDetailMenuCase/

/menu:useMenuDisplayer



/body

/html

And when I test I got the following error :

org.apache.jasper.JasperException: The menu repository could not be found

Any idea ??

Thanks in advance.



--
Alexandre Jaquet
-



-
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: Maps and Nested Properties problems

2003-02-25 Thread Mathias, Merlyn

Hi David and Rand,

Thank you very much for your help. I fixed my problem by referring to the
property name by address[index]{street} instead of address[index].street. It
worked. 

Thanks Again,
Merlyn.

-Original Message-
From: WILLIAMS,RAND (HP-USA,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Maps and Nested Properties problems

Hello Merlyn,

I am having trouble with modifying the Map.Entry.value, but this might help
you:

From the docs
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate

[ Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over. However, if you iterate over a
Map, the exposed object is of type Map.Entry that has two properties:

key - The key under which this item is stored in the underlying Map. 
value - The value that corresponds to this key. 
So, if you wish to iterate over the values of a Hashtable, you would
implement code like the following:

logic:iterate id=element name=myhashtable
Next element is bean:write name=element property=value/
/logic:iterate ]

I have used this: 

[hmtest.jsp] 
(note that type=..Entry is reslly implicit - I did it for the sake of the
%=..% chunk)

logic:notEmpty name=_engineerHM property=products 
 logic:iterate name=_engineerHM property=products id=product
type=java.util.Map.Entry 
  html:text name=product property=key / 
  html:text name=product property=value /
  html:multibox name=_engineerHM property=products_selected 
 value='%=(String)roduct.getKey()%' / br
 /logic:iterate
/logic:notEmpty

[struts-config.xml]
form-bean
name=_engineerHM 
type=org.apache.struts.action.DynaActionForm
!-- want to test iteration on a HashMap --
form-property 
name=products 
type=java.util.HashMap /
form-property 
name=products_selected 
type=java.lang.String[] /
/form-bean

[DynaActionFormHashMapTest.java]
(you will need to make a new hash map if one doesn't exist,
 this would be in the ActionForm reset() if I wasn't using DynaActionForm)
if ( pHM == null ) {
  log.info( creating new HashMap for products);
  pHM = new HashMap();
}

-Original Message-
From: Mathias, Merlyn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: Maps and Nested Properties problems


Hi,
 
I would like to know how to use a Map with nested properties.  I have an
ArrayList of Maps in my ActionForm. I want to do something like this in my
JSP page.
 
logic:iterate id=address name=addressList indexId=index
 
Street: html:text property=address[index].street /
City : html:text property= address[index].city /

 
And so on ...
 
/logic:iterate 
 
public class MyActionForm extends ActionForm
{
private ArrayList addressList;
 
public MyActionForm()
{
addressList = new ArrayList;
addressList.add(new HashMap());
}
 
public Object getAddress(int index)
  {
return addressList.get(index);
  }
 
public void setAddress(int index, Object value)
  {
addressList.set(index,value);
  }
 

}
 
I don't get any errors but the input values are not getting saved. The
ActionForm is in session scope.  
 
I know this works if I have an ArrayList of 'Address' beans with getters and
setters.  Is there any way to do this with Map?
 
Thanks a lot,
Merlyn.

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


Newbie Validation and DispathcAction

2003-02-25 Thread Anders
Hey,

I'm trying to implement this simple form/action.

- I'm using one DispatchAction that contains multiple methods. Show and
update will be relevant for this.
- I'm using one ValidationForm.
- The validationform is tied to the dispatchaction correctly and
everything works great. I can show the form, and submit it to update the
database. No validation is involved.
- I decide to try out the Validation framework, and test some of the
fields as required. The following happens:
- I go to the selected action (myAction.do?parm=show) to see the
  form
- The form displays with ActionErrors saying the fields are
  required and displays a blank form.

What I think happens: Because validation is set to true, and the validator
check for the required fields before the action can execute, it finds that
the form is empty and redirects to the JSP containing the form. Without
running the action. I was planning to populate the form in the show
method, but it never reaches this point. When using two separate Actions
you could turn off validation for show, and on for update. But I'm using
just one.

My question is? Is there some way to postpone the validation? Can i reach
a method in that action and populate the form before it is validated? Or
du I have to create a separate action just for this?

I probably can't, but it would be jolly good wouldn't it? ;)

Thanks,
Anders,


--
 Anders Rene Sveen
--


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



[ANNOUNCEMENT] Liferay Enterprise Portal 1.8 RC2 is released

2003-02-25 Thread Mete Kural
Hello Folks,

The Liferay team is proud to announce that Liferay
Enterprise Portal 1.8 Release Candidate 2 has been
released. You can download Liferay bundled and
pre-configured with JBoss/Tomcat, JBoss/Jetty or
Orion. Or if you wish you can download the .EAR
enterprise archive file and deploy it yourself in your
favorite application server. Documentation can be
found on Liferay's website http://www.liferay.com or
the docs zip package available in the download area.
The download page is here:
http://sourceforge.net/project/showfiles.php?group_id=49260

Liferay is a free open-source implementation of an
enterprise portal server similar to WebSphere,
Plumtree and Epicentric. It provides personalization
features similar to Yahoo and a vast array of
pre-built portlets such as Mail, News, Shopping Cart,
Message Board, Wiki, and many more. Liferay is
intended to go in the JSR-168 Portlet API direction
once the specs are released to the community. For more
info, please visit http://www.liferay.com

For a live demo, please go to http://my.liferay.com

If you would like to get involved in the project, that
would be wonderful. Please drop us a line.

Thanks and have a nice day,
The Liferay Team


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



  1   2   3   >