RE: I can't find taglib "logic:empty" nor "logic:notEmpty"

2001-11-02 Thread Minh Tran

Arnaud,

they are in the nightly builds  my assumption is that you are using the
1.0 release..

Good Luck,
Minh Tran

-Original Message-
From: Arnaud Chiaberge [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: I can't find taglib "logic:empty" nor "logic:notEmpty"


Hi all,

On the "http://jakarta.apache.org/struts/struts-logic.html"; site page, two
very interresting tags are presented : 'empty' and 'notEmpty'.

I have downloaded struts v1.0, but I just can't find them neither the
declaration in the "struts-logic.tld" file, nor the corresponding .class
files in "struts.jar".

Where are they ?

I absolutely need them ;-)

Thanks in advance,

Arnaud Chiaberge


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

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




Nested object reference inside of a nested iterator

2001-10-25 Thread Minh Tran

Hi,

could someone please take a look at this snippet of code and let me know
what i'm doing wrong?  I built this from snippets of facts that I found
throughout the messages on the list..  please let me know if any info is
incorrect..

Thanks,
Minh


In the following code.. I have several nested object.. I need to access..
on the highest level.. I have an orderForm which contains a collection of
shipSets..  I access each shipSet using the outside iterator.. now...
each shipSet contains.. a collection of lineItems...  so for each of the
shipSets..  I have another iterator.. that goes through all the lineItems
within the shipSet..   all of this works.. fine...  but here is the tricky
part... each of my lineItems.. contain a lineItemInfo which in turn has an
itemInfo object within the itemInfo object is "description"... which is
the value I want to get to...

assuming both iterator works(because they do.. and i've tested them..)...
lets look at the second iterator.. at this point.. I have a handle on each
lineItemInfo object for every iteration..  I would like to be able to do
   where I
can write out the description from within the itemInfo object held by the
lineItemInfo of the current iteration  this doesn't work... the server
always gives me back an error saying  "X Servlet Error: Cannot find bean
lineItemInfo.itemInfo in scope null".  

If you look a few lines above.. you will notice ""... which does work...  here...
quantity is in the lineItemInfo object..

I've seen many examples on this list of doing... something like ... is this faulse
information?

Thanks,
Minh





 

 

 
New Line
Item












Edit Line Item







RE: How to customize the way Validation Error is display

2001-10-05 Thread Minh Tran

Well.. I think what I was looking for and what might help Brian is:

This queues two error messages, one for the "username" field and another for
the "password" field. To print all the messages together, simply place the
error tag anywhere in your JSP.
  
  
Or, you can place specific error messages at different locations
  


  
  
  


  



> -Original Message-
> From: Christophe Marchand [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 05, 2001 10:03 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: How to customize the way Validation Error is display
> 
> I think you can use a factory for this. Have a look in
> ActionServlet.initApplication() for more detail... And do not forget to
> have
> a good WE ;-))
> 
> - Original Message -
> From: "McClung, Brian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 05, 2001 5:52 PM
> Subject: RE: How to customize the way Validation Error is display
> 
> 
> > Where do I get hold of the messages tag?  I've looked in my
> struts-html.tld
> > file but it isn't there?  Which version is it located in?
> >
> > Thanks
> > Brian McClung
> >
> > -Original Message-
> > From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 04, 2001 1:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to customize the way Validation Error is display
> >
> >
> > I'm not sure if this is what you were asking about,
> > but you can use html:messages instead of html:errors
> > to give a little more control over displaying errors.
> > The html:messages tag iterates over the errors so you
> > can insert markup around an individual message.  You
> > can also use the property attribute to retrieve a
> > message for an individual property (html:errors and
> > html:messages) so you could display an error message
> > next to each field.
> >
> > 
> >
> >   
> >
> > 
> >
> > David
> >
> > --- Adam Grohs <[EMAIL PROTECTED]> wrote:
> > > Have a look at an implimentation description and
> > > sample that I've put
> > > together at www.leanonme.org.  Hope this helps.
> > > Thanks,
> > > Adam S. Grohs
> > > [EMAIL PROTECTED]
> > >
> > > - Original Message -
> > > From: "Minh Tran" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 03, 2001 3:40 PM
> > > Subject: How to customize the way Validation Error
> > > is display
> > >
> > >
> > > > Does anyone know how to control and customize the
> > > way the validation error
> > > > is display when when fills out incorrect form
> > > information?
> > > >
> > > > Thanks,
> > > > Minh
> > > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> > $8.95/month.
> > http://geocities.yahoo.com/ps/info1
> >
> >



RE: Dynamically changing template and template source on a Master JSP page

2001-10-03 Thread Minh Tran

Hi Thinh.. yeah i've tried something like that.. using getAttribute and
setAttribute from the request object.. it seems to work.. but what I am most
concerned about is the ability for Struts to be able to function in terms of
form validation and prefill... if this happens.. since the Master jsp file
will be the one to be routed to all the time..

Let me know if you have any thoughts.

Thanks,
Minh

> -Original Message-
> From: Thinh Doan [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 10:58 AM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Dynamically changing template and template source on a
> Master JSP page
> 
> I had the same need and was thinking about doing this:
> 
> the sesion var will be set upon successful login.
> Might work.
> 
> Thinh
> 
> -Original Message-
> From: Minh Tran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 12:46 PM
> To: '[EMAIL PROTECTED]'
> Subject: Dynamically changing template and template source on a Master
> JSP page
> 
> 
> Has anyone ever tried to do this?
> 
> I would like to have a master JSP page this looks something like this:
> 
> <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
> 
>   
>   
>   
>   
>   
> 
> 
> 
> but be able to dynamically change the template and or the template:put
> content source to something else...
> 
> I thought about using scriptlets to insert the dynamic source.. but that
> doesn't work..
> 
> Please let me know if you've have any ideas.. 
> 
> Thanks,
> Minh



How to customize the way Validation Error is display

2001-10-03 Thread Minh Tran

Does anyone know how to control and customize the way the validation error
is display when when fills out incorrect form information?

Thanks,
Minh



Dynamically changing template and template source on a Master JSP page

2001-10-03 Thread Minh Tran

Has anyone ever tried to do this?

I would like to have a master JSP page this looks something like this:

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>









but be able to dynamically change the template and or the template:put
content source to something else...

I thought about using scriptlets to insert the dynamic source.. but that
doesn't work..

Please let me know if you've have any ideas.. 

Thanks,
Minh



RE: Bug in Struts Template

2001-10-03 Thread Minh Tran

I am using Websphere Application Server 4.0

Let met try the flush.. hopefully it will work..

thanks,
Minh

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 1:17 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Bug in Struts Template
> 
>   Hi,
> 
>   It is a bug from your web container, not from Templates lib.
>   Which web Container do you use ?
>   You can bypass this problem by adding flush="true" in all your 
> tags
> (i.e. : )
> 
> Cedric
> 
> 
> Minh Tran wrote:
> 
> > Hi,
> >
> > can someone please let me know if there is a known bug with the struts
> > template libs.. on how it produces html code...  notice in the html
> output
> > below has the  structure defined in the template at the end with
> all
> > of the dynamic data printed ahead of it...  there is definitely
> something
> > wrong.. the data should be within the template structure defined..
> >
> > I know this has to be a known bug.. since it's too big of a bug to not
> be
> > known...
> >
> > also.. could you please let me know how to fix it..
> >
> > Thanks,
> > Minh
> >
> > Topics
> >   
> > 
> > Introduction 
> >
> > 
> > Using Templates 
> >
> > 
> > Optional Content 
> > 
> > ... and more ...
> >   
> >
> > 
> >
> >   
> >   
> >
> > 
> > This example application is based on  >
> href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";
> >U
> > sing JSP templates to encapsulate Webpage layout and encourage modular
> > design by David Geary. Follow that link for the full article, which
> also
> > covers using role-based and nested templates. The template classes
> described
> > in the Java World article were the basis for those included with Struts
> > 1.0.
> > Introduction
> > Window toolkits typically provide a layout
> mechanism
> > that positions widgets in a container; for example, AWT and Swing have
> > layout managers, whereas VisualWorks Smalltalk has wrappers.
> > Because layout undergoes many changes over the
> course
> > of development, it's important to encapsulate that functionality so
> layout
> > can be modified with minimal impact to the rest of the application. In
> fact,
> > layout managers are an example of one of the tenets of object-oriented
> > design: encapsulate the concept that varies, which is also a fundamental
> > theme for many design patterns.
> > JSP does not provide direct support for
> encapsulating
> > layout, so web pages with identical formats usually replicate layout
> code;
> > for example, A Web Page Layout shows a web page containing
> sections
> > for a header, footer, sidebar, and main content.
> > The layout of the page shown in A Web Page
> > Layout is implemented with HTML table tags, as listed in Including
> > Content.
> > 
> > Including Content
> > 
> > <html><head><title>Templates</title></head>
> > <body background='graphics/blueAndWhiteBackground.gif'>
> > 
> > <table width='610'>
> > <tr valign='top'><td><jsp:include
> page='sidebar.jsp'/></td>
> > <td><table>
> > <tr><td><jsp:include page='header.html'/></td></tr>
> > <tr><td><jsp:include page='chapter.jsp'/></td></tr>
> > <tr><td><jsp:include page='footer.jsp'/></td></tr>
> > </table>
> > </td>
> > </tr> 
> > </table>
> > </body></html>
> > In Including Content, content is included with
> > <jsp:include> which allows content to vary without modifying HTML;
> > however, because the layout is hardcoded, layout changes require
> > modifications to the page. If a website has many pages with identical
> > formats, even simple layout changes require modifications to all of the
> > pages.
> > Using A Template
> > 
> > 
> > <%@ taglib URI='/WEB-INF/struts-template.tld' prefix='template'
> %>
> > 
> > <template:insert template='/chapterTemplate.jsp'>
> ><template:put name='title' content='Templates' direct='true'/>
> ><template:put name='header' content='/header.html'/>
> ><template:put name='sidebar' content='/sidebar.jsp'/>
> ><template:put name='content' content='/introduction.html'/>
> ><template:put name='footer' content='/footer.html'/>
> > </template:insert>
> >
> > To minimize the impact of layout changes, a
> mechanism
> > is needed for dynamically including layout in addition to content. That
> way,
> > both layout and content can be changed without modifying files that use
> > them. For large websites that have many pages with identical formats,
> such a
> > mechanism is valuable because it localizes changes to layout. That
> mechanism
> > is JSP templates.
> > TOP
> >
> > 
> > 
> > Templates
> >  >   charset="ISO-8859-1" type="text/css">
> > 
> > 
> >
> > 
> >
> >   
> >   
> > 
> > 
> > 
> >   
> >   
> >
> > 
> > 
> > 



Bug in Struts Template

2001-10-02 Thread Minh Tran

Hi,

can someone please let me know if there is a known bug with the struts
template libs.. on how it produces html code...  notice in the html output
below has the  structure defined in the template at the end with all
of the dynamic data printed ahead of it...  there is definitely something
wrong.. the data should be within the template structure defined..

I know this has to be a known bug.. since it's too big of a bug to not be
known...

also.. could you please let me know how to fix it..

Thanks,
Minh





Topics
  

Introduction 


Using Templates 


Optional Content 

... and more ...
  


   
  
  
   

This example application is based on http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";>U
sing JSP templates to encapsulate Webpage layout and encourage modular
design by David Geary. Follow that link for the full article, which also
covers using role-based and nested templates. The template classes described
in the Java World article were the basis for those included with Struts
1.0.
Introduction
Window toolkits typically provide a layout mechanism
that positions widgets in a container; for example, AWT and Swing have
layout managers, whereas VisualWorks Smalltalk has wrappers.
Because layout undergoes many changes over the course
of development, it's important to encapsulate that functionality so layout
can be modified with minimal impact to the rest of the application. In fact,
layout managers are an example of one of the tenets of object-oriented
design: encapsulate the concept that varies, which is also a fundamental
theme for many design patterns.
JSP does not provide direct support for encapsulating
layout, so web pages with identical formats usually replicate layout code;
for example, A Web Page Layout shows a web page containing sections
for a header, footer, sidebar, and main content.
The layout of the page shown in A Web Page
Layout is implemented with HTML table tags, as listed in Including
Content.

Including Content

Templates


 
In Including Content, content is included with which allows content to vary without modifying HTML; however, because the layout is hardcoded, layout changes require modifications to the page. If a website has many pages with identical formats, even simple layout changes require modifications to all of the pages. Using A Template <%@ taglib URI='/WEB-INF/struts-template.tld' prefix='template' %> To minimize the impact of layout changes, a mechanism is needed for dynamically including layout in addition to content. That way, both layout and content can be changed without modifying files that use them. For large websites that have many pages with identical formats, such a mechanism is valuable because it localizes changes to layout. That mechanism is JSP templates. TOP Templates

Struts MVC Framework Vs. XSLT Tranformation for Web UI Handling

2001-10-02 Thread Minh Tran

I'm pretty new to struts.. so I would appreciate if anyone can share their
experiences with Struts and XSLT Transformation for the Web UI generation.
I am starting a project pretty soon.. and the project lead is pushing to do
a Servlet-XSLT model where XML + XSL will be transformed to HTML for the UI.
I am currently pushing for Struts.. but I need some more ammo so that I can
push struts as the framework for us.

Thanks,
Minh Tran