RE: Navigation Bar

2004-05-27 Thread Jay Glanville
Are you referring to a navigation bar (a list or menu on left hand side
of page allowing navigation around a site) or paging controls (first /
prev / next / last)?  These are usually two different things.

For navigation / menu controls, one possibility is Struts-Menu:
http://struts-menu.sourceforge.net/ (demos here:
http://raibledesigns.com/struts-menu/index.jsp).

For paging controls, as previous poster suggested,
http://jsptags.com/tags/navigation/pager/index.jsp.

If you're looking for paging controls in conjunction with a table, have
a look at DisplayTag: http://displaytag.sf.net.

--
Jay Glanville


> -Original Message-
> From: Zaid [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 27, 2004 11:58 AM
> To: Struts Users Mailing List
> Subject: Navigation Bar
> 
> 
> Dear Friends,
> 
> I am new Struts developer, meanwhile I did huge coding in 
> PHP; however, I
> am trying to find a custom tag which can work as a navigation bar, the
> specification on the bar shoulf contain next, prev, first and last as
> well.
> 
> could anyone help me in finding useful one ? I would be very much
> appreciated.
> 
> Best Regards to all
> 
> Zaid
> 
> 
> 
> 
> -
> 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]



Confirmation Requested: "development has stopped on the presentation tags"

2004-05-27 Thread Jay Glanville
> -Original Message-
> From: Mike Duffy [mailto:[EMAIL PROTECTED] 
> Subject: RE: Are there any IDE's that understand Struts tags?
> 
> 
> I would strongly suggest that you stay away from (or move 
> away from) the Struts presentation tags
> and use JSTL instead.  Development has essentially stopped on 
> the Struts presentation tags.  JSTL
> has more functionality and JSTL is the "standard".

Can I get some clarification on the above paragraph, specifically the
line, "Development has essentially stopped on the Struts presentation
tags."

Does this mean that the Struts-HTML tag library is no longer being
developed or supported?  

When talking about the "struts presentation tags", it's the Struts-HTML
tag library that I think of.  However, I don't know of equivalent
support for this library from the JSTL libraries.  So, if Mike is
correct and usage of the Struts-HTML library is discouraged, then what
should I replace it with?  My usage of this library is rather heavy
right now (, plus all the associated HTML input tags) so if
usage is discouraged, I'd really like to know.

Now, I know that pretty much all of the Struts-Logic tag library
(equality, iteration, etc) and some of the Struts-Bean library can be
replaced with the JSTL.  Mike, is this the "presentation library" that
you're referring to?

So, which libraries am I being discouraged from using?

Apologies for being pedantic, but I'd like to be absolutely clear about
the quoted paragraph.

Thanks

JDG


--
Jay Glanville


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



RE: what is the difference between forward and redirect?

2004-04-15 Thread Jay Glanville
You need to use a forward if you are using Action.setMessages() or
Action.setErrors() in your action implementations.  For example, I have
a BeanDeleteAction class.  If an error occures in the action (an
exception being caught, wrong information being processed, database
down, etc) then I use setErrors() to display error messages to the user.
However, the error messages are stored in the request scope.  Therefore,
in the error path of my action, I need to ensure that the ActionForward
that I return is of type forward and not redirect.

You will often see action mappings like this:





Where the failure path is a forward and the success is a redirect.

I also have code like this
try {
...
} catch (NCIException e) {
addError( request,  );
ActionForward orig = mapping.findForward( "success" );
ActionForward f = new ActionForward( orig.getPath, false );
return f;
}
Where I force a redirect to be converted into a forward in order to have
request scoped objects remain in scope.

Well, this is the primary usage that I have for forwards.  The rest of
the time, I basically use redirects.

I hope this helps.

JDG

PS: I'm sure the rest of the community will correct me if I'm wrong.


--
Jay Glanville


> -Original Message-
> From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 15, 2004 8:27 AM
> To: Struts Users Mailing List
> Subject: Re: what is the difference between forward and redirect?
> 
> 
> Hi,
> I basically understood the technical diffence between forward 
> and redirect,
> but from webapplications point of view, when do I use forward 
> or redirect.
> 
> On which circumstances should I use a redirect for example?
> 
> Wolfgang
> 
> Sanoj, Antony (IE10) wrote:
> 
> >Mike,
> > 
> >  forward is carried inside the servlet engine, whereas the 
> redirect goes to
> >the browser, and then the browser sends the request to the resource 
> >  forward preserves the request state, but redirect destroys 
> the original
> >request as it completes a request/response cycle 
> >  when the browser receives the redirect.
> >regards
> >Sanoj
> >
> >-Original Message-
> >From: Mu Mike [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, April 15, 2004 3:00 PM
> >To: [EMAIL PROTECTED]
> >Subject: what is the difference between forward and redirect?
> >
> >
> >when forward, what do we foward? 
> >when redirect, what we do different?
> >
> >Thanks&Regards
> >Mike
> >
> >_
> >与联机的朋友进行交流,请使用 MSN Messenger:
http://messenger.msn.com/cn  
> >
> >
> >-
> >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: what is the difference between forward and redirect?

2004-04-15 Thread Jay Glanville
Another difference that has to be taken into consideration is that a
forward keeps all the request scope parameters and attributes, whereas
in a redirect, the request scoped parameters and attributes are lost.

JDG

--
Jay Glanville


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 15, 2004 5:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: what is the difference between forward and redirect?
> 
> 
> The main difference is that the forward takes place on the 
> server, whereas
> the redirect results in another HTTP request from the client. 
> A forward is
> therefore invisible to the client, whereas the redirect is 
> something they
> would see.
> 
> Example 1: user types in http://myserver.com/page1
> /page1 forwards to /page2
> 
> User still thinks they are seeing http://myserver.com/page1
> 
> Example 2: user types in http://myserver.com/page1
> /page1 sends redirect to /page2
> Client then requests /page2
> 
> A browser would then show http://myserver.com/page2 in the address bar
> 
> 
> -Original Message-
> From: Mu Mike [mailto:[EMAIL PROTECTED] 
> Sent: 15 April 2004 10:30
> To: [EMAIL PROTECTED]
> Subject: what is the difference between forward and redirect?
> 
> 
> when forward, what do we foward? 
> when redirect, what we do different?
> 
> Thanks&Regards
> Mike
> 
> _
> 与联机的朋友进行交流,请使用 MSN Messenger:
http://messenger.msn.com/cn  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> --
> For more information about Barclays Capital, please
> visit our web site at http://www.barcap.com.
> 
> 
> Internet communications are not secure and therefore the Barclays 
> Group does not accept legal responsibility for the contents of this 
> message.  Although the Barclays Group operates anti-virus programmes, 
> it does not accept responsibility for any damage whatsoever that is 
> caused by viruses being passed.  Any views or opinions presented are 
> solely those of the author and do not necessarily represent 
> those of the 
> Barclays Group.  Replies to this email may be monitored by 
> the Barclays 
> Group for operational or business reasons.
> 
> --
> --
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: Problem

2004-04-06 Thread Jay Glanville
> > On a side note, why isn't there any reference to mailing 
> lists on the
> > struts pages?  I'm used to seeing something mentioned in 
> the navigation
> > panel for all the other apache projects.
> > 
> 
> Its here ... http://jakarta.apache.org/struts/mail.html
> 
> I think the Struts pages are going through some changes too. 
> You can get 
> there from the Struts main page 
> http://jakarta.apache.org/struts/ 
> side bar link Struts, Using >> "join the mailing lists" ...

Sorry.  Probably mis-stated.  I'm not inquiring where it is.  I'm
inquiring why I can't get there from the front page of struts.  Heck, I
can't even get there from any page within struts: I need to go external
of struts to the jakarta pages to find the mailing lists.  If you go to
the front page (http://struts.apache.org), the only page the word 'mail'
exists is in the following sentence: "This documentation bundle and the
mailing lists are the primary ways to learn how to use Struts."  No way
for the uninitiated to find the mailing list.

As a comparison, if you go to Ant (http://ant.apache.org), it's right
there under "Contributing".  It's the same with James, Jakarta-Commons,
etc.

Just a minor pet-peeve of mine.

JDG

--
Jay Glanville


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



RE: Problem

2004-04-06 Thread Jay Glanville
I believe that struts has moved to a top-level project.  Therefore, it's
no longer [EMAIL PROTECTED], but now
[EMAIL PROTECTED]  Therefore, why don't you try
[EMAIL PROTECTED]  
That's what they say here:
http://jakarta.apache.org/site/mail2.html#Struts.

On a side note, why isn't there any reference to mailing lists on the
struts pages?  I'm used to seeing something mentioned in the navigation
panel for all the other apache projects.

JDG

--
Jay Glanville


> -Original Message-
> From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 06, 2004 8:12 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problem
> 
> 
> Ok, so I know this is not the right place, but I can't seem 
> to be able to
> unsubscribe to this list (mails to
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>  keep 
> bouncing back) and
> I can't find any other mail address to use to report this problem.
>  
> What to do?
>   
> Thanks,
>  
> Nina
> 


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



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
> If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in 
> support JSTL in JSP. You wont have to add any libraries. 

I've taken the attitude not to rely on any container's library set.  It
doesn't make the web application very portable.  Thanks for the suggest,
none the less.

JDG

--
Jay Glanville


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



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
It is an option that I didn't realize I had.  Up to now, we've been
using the struts tag library almost exclusively, as, up to now, it's
provided us with all the JSP functionality we've needed.  This situation
my provide the impetus to add JSTL to our libraries.

Thanks

JDG

--
Jay Glanville


> -Original Message-
> From: Butash, Bob [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:19 AM
> To: 'Struts Users Mailing List'
> Subject: RE: what's the best way to have an if/else clause?
> 
> 
> Jay,
> 
> Have you looked into JSTL's choose tag?
> 
> 
> 
>   
>   
>   
>   
>   
> 
> 
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Hope this helps
> 
> -Original Message-
> From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: what's the best way to have an if/else clause?
> 
> 
> I want to iterate over a set of beans, creating widget A if 
> property is set,
> widget B if not.  Therefore, I'm looking for an "if/else" 
> structure.  The
> closest thing I can find is  and .  I'm
> assuming that there is no straight forward way to implement 
> an 'else' clause
> in tags, so I'm thinking that I need to so something like the 
> following:
> 
>  property="tableDesc.batchAction" 
> id="element" >
>   
>     
>   
>   
> 
>   
> 
> 
> Basically, to implement the else clause by performing a 
> second if statement.
> 
> Is this the correct way to do things?  Is there a better way? 
>  Would I be
> better off using scriptlet code?
> 
> JDG
> 
> --
> Jay Glanville
> 
> -
> 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]