Re: [Newbie] html:link

2002-03-09 Thread tyler

Hi Silmane,

you may have already received a reply regarding this but none the less
this is how I've been doing it.

If you place a java.util.Map into the request the html:link tag will
then build
the parameter list for you where the keys are the parameter names and
their
values the parameter values (of course).

In your case your iterating over a Collection of beans and from that
collection
you would/could provide a method to return the Map.

In my example I have a Vector of 'foo.Bar' objects where Bar objects
have a getter
method for the map property.  My Vector of foo.Bar objects is an
attribute of the 
request stored under the key 'things'.



linkname 


The documentation for the link tag is of course located at:
http://jakarta.apache.org/struts/struts-html.html#link
There are a couple of restrictions I didn't mention documented there.

Someone just helped me out with this a few days ago so to whomever it
was thanks.

Rob

Slimane Zouggari wrote:
>
> Hi,
> 
> I have the following piece of code :
> 
> > >type="be.stluc.info.struts.ElementProjet">
> >
> >&codpha=
> >&codtac=">
> >
> >
> >
> >
> 
> I was wondering if there's a easier way to do that with the html:link tag ?
> 
> Thanx in advance,
> Slimane
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




RE: CachedRowSet for html:options

2002-03-09 Thread Sunder R Somasundaram

Thanks for your reply; it is a select box with single or multiple
options. Do I have to put in both the values and the labels even if both
are the same?


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 09, 2002 5:03 AM
To: [EMAIL PROTECTED]
Subject: Re: CachedRowSet for html:options

You mean you're displaying a list in a table or you are displaying a
select drop-down box?

The html:options tag works great with forms, it'll initialize the select
box to what's in the form object, and it'll display appropriate labels
and set up the appropriate values on each option.

You can quite easily use the CachedRowSet.toCollection(column) to return
any column of the rowset as a collection. Instead of putting the whole
rowset in the session, you'll have to put a collection for the values
and a collection for the labels. A few more lines of code, yes, but not
exactly difficult.

If your lists are just lists and not select boxes (it's not clear from
your message), use a logic:iterate tag.



On Fri, 08 March 2002, Sunder wrote:

> 
> Hi,
> I am currently retrieving a cachedRowSet from a session bean and
> displaying lists using the rowset. I would like to use the struts
> html:options tag to do the same, From the documentation, it looks like
I
> have to put this rowset into a collection and use the same. Is there a
> better way to do this?
> 
> Thanks,
> Sunder
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: EBJ Alternatives?

2002-03-09 Thread @Basebeans.com

Subject: Re: EBJ Alternatives?
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
I do my own "custom" thing on top of Struts (and I think a few non-ejb 
people advocated custom solutions).
I will be posting a "solution" on source forge as a Struts sample, I 
think this week.

For presistance I use CachedRowSet. Since they are SQL commands, they 
are very scalable.
For autorization I use container JAAS (table based)
For most others, Struts would do.

I also plan to expose my data/model layer as a Soap service for non - 
web applications.

hth,
Vic



Gabriel Sidler wrote:

> A couple weeks ago there has been an intense discussion on
> this list about the use of EJB. Many people were quite
> critical or at least cautious about EJB. I'd appreciate if
> some of you could share what alternative component
> architectures/frameworks you are using.
> 
> I'm now starting on a new web project where distribution and
> transactions, two of EJB's main feature, are no requirements.
> The application is a web-based collaborative system with a
> rather complex application logic but little database involvement.
> There will be clients using HTML/HTTP and other using a SOAP-
> like protocol. I am planning on using Struts for the Web-tier
> and am looking for a component framework to implement the business
> logic/data tier. If feel that EJBs wouldn't be the right technology
> for this but am wondering what alternatives are. The things I
> would like to see in such a component framework are:
> - component life cycle support
> - support for component relationships
> - component naming and lookup
> - authorization mechanism
> - web request dispatching
> - subscription/notification service
> - logging
> - configuration
> - persistence
> - some modularization concept
> - some error handling concept
> 
> How are you implementing this? Any framework you can recommend?
> Thanks for sharing!
> 
> Gabe
> 
> 
> 
> -- 
> Gabriel Sidler
> Software Engineer, Eivycom GmbH, Zurich, Switzerland
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


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




Re: What's the rigth way to do it ?

2002-03-09 Thread Bin Zhou

Slimane

Neither way will work for you as the session object will be for a single 
user only. Putting things in the URL query string has the same effect. What 
you should be looking for may be Appliation scope object or some other ways 
like persist the data to the database or server file etc.

Hope this helps.

Bin


>From: Slimane <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: What's the rigth way to do it ?
>Date: Sat, 09 Mar 2002 23:30:24 +0100
>
>Hi,
>
>I have a set of Objects (mainly Strings) that I would like to share inside
>my web application for each user. So I was thinking about setting all these
>objects using the HttpSession object. (using the methods getAttribute() and
>setAttribute()).
>
>But in a second thought, as there are only a few String that I need to
>share. I could easily pass them as parameters to my Action classes.
>
>So, I was wondering what's the right way ? If there's only a few Strings,
>isn't it easier to pass them as parameters instead of using the session
>object ?
>
>Thanx in advance for your replys.
>
>Friendly Regards,
>Slimane
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-09 Thread @Basebeans.com

Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5 6 7 8 9
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Silmane

I still think that this is a classpath / classloader problem.

I managed to duplicate your error message by putting a reference to the
servlet.jar file in Project Properties | Web Server | Tomcat 4.0 | Required
libraries tab - I hate the way JB hides all these settings - far too
complex!

David



"Slimane" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> hello David
>
> thanx for your help :) But it still doesn't work :(
>
> In the properties of my webapp, the servlet library of Tomcat was indeed
> excluded, so that isn't the problem.
>
> The weirdiest thing, I think, is the fact that this happens only the
second
> time I run my webapp. And it doesn't happen occasionnaly but every second
> time !
> Could it be related to a session bean which isn't successfully removed ?
> Because I don't see what else could generate that exception.
> (javax.servlet.ServletException: duplicate class definition:
> org/apache/jasper/runtime/HttpJspBase)
>
>
> Friendly regards,
> Slimane
>
> At 03:25 9/03/2002 -0800, you wrote:
> >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5
> >6 7 8 9
> >From: "David Bolsover" <[EMAIL PROTECTED]>
> >  ===
> >Slimane
> >
> >Sorry - quite correct - there should be reference to the servlet lib in
the
> >project properties - however, in the webapp properties (right click hand
> >holding globe) you should make sure the the Tomcat 4.0 Servlet lib is
> >Excluded from the webapp.  Otherwise, JBuilder will put a duplicate copy
of
> >servlet.jar into the WEB-INF/lib directory and into your .war file -
could
> >this be the problem?
> >
> >I'm convinced that this must be a classpath/classloader related problem
and
> >not that TC or Struts (or JB for that matter) are fundamentallty flawed.
> >
> >I occasionally see this in the JB browser:
> >javax.servlet.ServletException: duplicate class definition:
> >javax/servlet/jsp/JspTagException
> >But NEVER when the app is deployed!!
> >
> >"Slimane" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]...
> > > Hi,
> > >
> > > I'm not sure that I understood what you wrote. Of course, I have a
> > > reference to the servlet library in the properties of my jbuilder
project
> > > :) Why shouldn't I have that reference (in the required libraries) ?
> > >
> > > Sorry, if I misunderstood your reply but I'm just a newbie in the
> > > development of Web Application.
> > >
> > > For the rest, I tried deploying my webapp with Tomcat and I had the
same
> > > problem (!!!).
> > > So I'd suppose, it's a Tomcat problem (or a Struts prob ?).
> > >
> > > I also patched my Jbuilder 6.0 with the latest update available
without
> >any
> > > improvement.
> > >
> > > I didn't try to update my version of Tomcat. Because I first wanna be
sure
> > > it's Tomcat causing the problem and not something else...
> > >
> > > Friendly Regards,
> > > Slimane
> > >
> > > At 07:40 8/03/2002 -0800, you wrote:
> > > >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3
4 5
> > > >6 7 8 9
> > > >From: "David Bolsover" <[EMAIL PROTECTED]>
> > > >  ===
> > > >Hi
> > > >
> > > >I also use TC4.0.1, Struts and JB6(pro) and have seen a similar
problem.
> > > >To be honest I can't remember how I cured but I think it was because
I
> >had a
> > > >reference to the servlet library in the JB project props - you try
> >looking
> > > >there.
> > > >
> > > >Also - do you get the same problem when you deploy your project as a
war
> >and
> > > >run under TC outside of JB6? - might give some clue as to where the
> >problem
> > > >lies.
> > > >
> > > >David Bolsover
>
> [SNIP the huge quote]
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Need help - - Desparate

2002-03-09 Thread Elijah Jacobs

do you have a setters and getters for the breadCrumbTrail attribute in your
SearchBrowseResults bean?

- ej
- Original Message -
From: "Nishant Asthana" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 09, 2002 4:49 PM
Subject: Need help -  - Desparate


> Hi ,
> I have tried to search this archive for problems that I am having with
> my JSP, but was not able to get much help.
> I am a newbie to JSP customs tags. Please if anyone could
> help.Situations kinda grave.
> Heres a snapshot of my JSP
>
> 
> 
> 
> 
> 
> 
> 
> Where : browseNode is a container object or SearchBrowseResults
>  products is ArrayList in SearchBrowseResults
>  breadCrumbTrail is a Vector in browseNode container.
>
> When I run try to run this JSP, I get the following error. Can someone
> help ?
> - Nishant
>
> internal error: servlet service function had thrown ServletException
> (uri=/browse/aol/BrowseMain.jsp):
> javax.servlet.ServletException: No getter method for property
> breadCrumbTrail of bean brNode, stack:
> javax.servlet.ServletException: No getter method for property
> breadCrumbTrail of bean brNode
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:455)
>
> at
>
aol._0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37._jspService(_0002fao
l_0002fBrowseMain_0002ejspBrowseMain_jsp_37.java:360)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:176)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)
>
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServ
letRunner.java:897)
>
> at
>
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:
1065)
>
> at
>
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunn
er.java:959)
>
> at
> com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
> Method)
> at
>
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispat
cher.java:48)
>
> at BrowseServlet.doWork(BrowseServlet.java:219)
> at BrowseServlet.doGet(BrowseServlet.java:50)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServ
letRunner.java:897)
>
> at
>
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:
1065)
>
> at
>
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunn
er.java:959)
>
> , root cause: javax.servlet.jsp.JspException: No getter method for
> property breadCrumbTrail of bean brNode
> at
> org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
> at
> org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
> at
>
aol._0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37._jspService(_0002fao
l_0002fBrowseMain_0002ejspBrowseMain_jsp_37.java:260)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:176)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)
>
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServ
letRunner.java:897)
>
> at
>
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:
1065)
>
> at
>
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunn
er.java:959)
>
> at
> com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
> Method)
> at
>
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispat
cher.java:48)
>
> at BrowseServlet.doWork(BrowseServlet.java:219)
> at BrowseServlet.doGet(BrowseServlet.java:50)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServ
letRunner.java:897)
>
> at
>
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:
1065)
>
> at
>
com.netscape.server.http.servle

Building Struts From Source

2002-03-09 Thread Suneet Shah

I am trying to build struts from the source in an attempt to resolve a parsing problem 
I am experiencing.  The documentation on the site mentions that the commons-* jars are 
prerequisites for this. However, in reviewing the build.xml file, I don't see any 
reference to this. Also, the docs mention the need for a commons-digester.jar.  There 
is already a disgester.java in struts itself. Which disgester should be used?  The 
problem I am experiencing is in the digester which is the reason for my question.

Any help would be greatly appreciated.

Best Regards

Suneet Shah




Need help - - Desparate

2002-03-09 Thread Nishant Asthana

Hi ,
I have tried to search this archive for problems that I am having with
my JSP, but was not able to get much help.
I am a newbie to JSP customs tags. Please if anyone could
help.Situations kinda grave.
Heres a snapshot of my JSP








Where : browseNode is a container object or SearchBrowseResults
 products is ArrayList in SearchBrowseResults
 breadCrumbTrail is a Vector in browseNode container.

When I run try to run this JSP, I get the following error. Can someone
help ?
- Nishant

internal error: servlet service function had thrown ServletException
(uri=/browse/aol/BrowseMain.jsp):
javax.servlet.ServletException: No getter method for property
breadCrumbTrail of bean brNode, stack:
javax.servlet.ServletException: No getter method for property
breadCrumbTrail of bean brNode
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:455)

at
aol._0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37._jspService(_0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37.java:360)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:176)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)

at
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:1065)

at
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)

at BrowseServlet.doWork(BrowseServlet.java:219)
at BrowseServlet.doGet(BrowseServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)

at
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:1065)

at
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

, root cause: javax.servlet.jsp.JspException: No getter method for
property breadCrumbTrail of bean brNode
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
at
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
at
aol._0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37._jspService(_0002faol_0002fBrowseMain_0002ejspBrowseMain_jsp_37.java:260)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:176)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)

at
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:1065)

at
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)

at BrowseServlet.doWork(BrowseServlet.java:219)
at BrowseServlet.doGet(BrowseServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)

at
com.netscape.server.http.servlet.WebApplication.service(WebApplication.java:1065)

at
com.netscape.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)





What's the rigth way to do it ?

2002-03-09 Thread Slimane

Hi,

I have a set of Objects (mainly Strings) that I would like to share inside 
my web application for each user. So I was thinking about setting all these 
objects using the HttpSession object. (using the methods getAttribute() and 
setAttribute()).

But in a second thought, as there are only a few String that I need to 
share. I could easily pass them as parameters to my Action classes.

So, I was wondering what's the right way ? If there's only a few Strings, 
isn't it easier to pass them as parameters instead of using the session 
object ?

Thanx in advance for your replys.

Friendly Regards,
Slimane


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




EBJ Alternatives?

2002-03-09 Thread Gabriel Sidler

A couple weeks ago there has been an intense discussion on
this list about the use of EJB. Many people were quite
critical or at least cautious about EJB. I'd appreciate if
some of you could share what alternative component
architectures/frameworks you are using.

I'm now starting on a new web project where distribution and
transactions, two of EJB's main feature, are no requirements.
The application is a web-based collaborative system with a
rather complex application logic but little database involvement.
There will be clients using HTML/HTTP and other using a SOAP-
like protocol. I am planning on using Struts for the Web-tier
and am looking for a component framework to implement the business
logic/data tier. If feel that EJBs wouldn't be the right technology
for this but am wondering what alternatives are. The things I
would like to see in such a component framework are:
- component life cycle support
- support for component relationships
- component naming and lookup
- authorization mechanism
- web request dispatching
- subscription/notification service
- logging
- configuration
- persistence
- some modularization concept
- some error handling concept

How are you implementing this? Any framework you can recommend?
Thanks for sharing!

Gabe



--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland


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




Re: html:checkbox tag not setting its property value in Formbean

2002-03-09 Thread KrishPS

Hi Larry

Each element in the array list is a bean and the bean has a boolean property
for the checkbox.

Krishnan
[EMAIL PROTECTED]

- Original Message -
From: Maturo, Larry <[EMAIL PROTECTED]>
Newsgroups: Struts
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 5:13 PM
Subject: RE: html:checkbox tag not setting its property value in Formbean


> Hi Krishnan,
>
> Could you post more details.  Is the arraylist an
> arraylist of boolean, or an arraylist of some
> bean, which itself has a boolean property, or
> perhaps each entry in the arraylist is of a
> different type?
>
> -- Larry Maturo
>[EMAIL PROTECTED]
>
>
> -Original Message-
> From: Krishnan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 3:19 PM
> To: [EMAIL PROTECTED]
> Subject: html:checkbox tag not setting its property value in Formbean
>
>
> Hi
>
>  In my Jsp form,  I have a check box that is part of a
> collection object.  This collection object is rendered
> through a bean. The collection (arrayList) itself has
> getter/setter in the form bean. When I select the
> checkbox on the form, the corresponding property value
> is not updated to true.  However, I saw that the
> request parameters had the property name for the
> checkbox with the value 'true'.  Are there other ways
> of getting the checkbox to set the property?.  Any
> examples would be appreciated.
>
> Thanks
>
> Krishnan
>
> __
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Struts resources

2002-03-09 Thread Kevin J. Turner

On Fri, 8 Mar 2002 07:01:20 -0500, Andrew H. Peterson wrote:
--snip--
>Can anyone recommend some good resources for coming up to speed on
--snip--

Here's some usefull sites:
1) http://www.husted.com/struts -- Ted Husted's site, lots of stuff
there
2) http://stealthis.athensgroup.com/presentations/ -- a white paper
on Struts, assembled by Larry Maturo
3) The book, "Professional JSP : 2nd Edition" (Wrox Press, ISBN
1861004958), has an excellent chapter devoted entirely on Struts

Hope this helps.

--
Kevin J. Turner / dot com Entertainment Group
150 Randall Street, Oakville, Ontario L6J 1P4
telephone: 905.337.8524 fax: 905.337.8630



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




Re: CachedRowSet for html:options

2002-03-09 Thread Adam Hardy

You mean you're displaying a list in a table or you are displaying a select drop-down 
box?

The html:options tag works great with forms, it'll initialize the select box to what's 
in the form object, and it'll display appropriate labels and set up the appropriate 
values on each option.

You can quite easily use the CachedRowSet.toCollection(column) to return any column of 
the rowset as a collection. Instead of putting the whole rowset in the session, you'll 
have to put a collection for the values and a collection for the labels. A few more 
lines of code, yes, but not exactly difficult.

If your lists are just lists and not select boxes (it's not clear from your message), 
use a logic:iterate tag.



On Fri, 08 March 2002, Sunder wrote:

> 
> Hi,
> I am currently retrieving a cachedRowSet from a session bean and
> displaying lists using the rowset. I would like to use the struts
> html:options tag to do the same, From the documentation, it looks like I
> have to put this rowset into a collection and use the same. Is there a
> better way to do this?
> 
> Thanks,
> Sunder
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

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




RE: Duplicating refresh in a link

2002-03-09 Thread Matt Read

D'oh. Good point.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2002 21:08
To: [EMAIL PROTECTED]
Subject: Re: Duplicating refresh in a link



Could easily use javascript!!

Dave



"Matt Read" <[EMAIL PROTECTED]> on 03/08/2002
08:44:12 AM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject:Duplicating refresh in a link



Does anyone know of a way to reproduce the refresh functionality in a link
using the struts taglibs and no scriptlets? E.g. something like:

Refresh this page

I'm not sure how to derive the  without using scriptlets.

Thanks,
Matt.


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








--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-09 Thread Slimane

hello David

thanx for your help :) But it still doesn't work :(

In the properties of my webapp, the servlet library of Tomcat was indeed 
excluded, so that isn't the problem.

The weirdiest thing, I think, is the fact that this happens only the second 
time I run my webapp. And it doesn't happen occasionnaly but every second 
time !
Could it be related to a session bean which isn't successfully removed ? 
Because I don't see what else could generate that exception.
(javax.servlet.ServletException: duplicate class definition: 
org/apache/jasper/runtime/HttpJspBase)


Friendly regards,
Slimane

At 03:25 9/03/2002 -0800, you wrote:
>Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5 
>6 7 8 9
>From: "David Bolsover" <[EMAIL PROTECTED]>
>  ===
>Slimane
>
>Sorry - quite correct - there should be reference to the servlet lib in the
>project properties - however, in the webapp properties (right click hand
>holding globe) you should make sure the the Tomcat 4.0 Servlet lib is
>Excluded from the webapp.  Otherwise, JBuilder will put a duplicate copy of
>servlet.jar into the WEB-INF/lib directory and into your .war file - could
>this be the problem?
>
>I'm convinced that this must be a classpath/classloader related problem and
>not that TC or Struts (or JB for that matter) are fundamentallty flawed.
>
>I occasionally see this in the JB browser:
>javax.servlet.ServletException: duplicate class definition:
>javax/servlet/jsp/JspTagException
>But NEVER when the app is deployed!!
>
>"Slimane" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I'm not sure that I understood what you wrote. Of course, I have a
> > reference to the servlet library in the properties of my jbuilder project
> > :) Why shouldn't I have that reference (in the required libraries) ?
> >
> > Sorry, if I misunderstood your reply but I'm just a newbie in the
> > development of Web Application.
> >
> > For the rest, I tried deploying my webapp with Tomcat and I had the same
> > problem (!!!).
> > So I'd suppose, it's a Tomcat problem (or a Struts prob ?).
> >
> > I also patched my Jbuilder 6.0 with the latest update available without
>any
> > improvement.
> >
> > I didn't try to update my version of Tomcat. Because I first wanna be sure
> > it's Tomcat causing the problem and not something else...
> >
> > Friendly Regards,
> > Slimane
> >
> > At 07:40 8/03/2002 -0800, you wrote:
> > >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5
> > >6 7 8 9
> > >From: "David Bolsover" <[EMAIL PROTECTED]>
> > >  ===
> > >Hi
> > >
> > >I also use TC4.0.1, Struts and JB6(pro) and have seen a similar problem.
> > >To be honest I can't remember how I cured but I think it was because I
>had a
> > >reference to the servlet library in the JB project props - you try
>looking
> > >there.
> > >
> > >Also - do you get the same problem when you deploy your project as a war
>and
> > >run under TC outside of JB6? - might give some clue as to where the
>problem
> > >lies.
> > >
> > >David Bolsover

[SNIP the huge quote]


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




Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-09 Thread @Basebeans.com

Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5 6 7 8 9
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Slimane

Sorry - quite correct - there should be reference to the servlet lib in the
project properties - however, in the webapp properties (right click hand
holding globe) you should make sure the the Tomcat 4.0 Servlet lib is
Excluded from the webapp.  Otherwise, JBuilder will put a duplicate copy of
servlet.jar into the WEB-INF/lib directory and into your .war file - could
this be the problem?

I'm convinced that this must be a classpath/classloader related problem and
not that TC or Struts (or JB for that matter) are fundamentallty flawed.

I occasionally see this in the JB browser:
javax.servlet.ServletException: duplicate class definition:
javax/servlet/jsp/JspTagException
But NEVER when the app is deployed!!

"Slimane" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> I'm not sure that I understood what you wrote. Of course, I have a
> reference to the servlet library in the properties of my jbuilder project
> :) Why shouldn't I have that reference (in the required libraries) ?
>
> Sorry, if I misunderstood your reply but I'm just a newbie in the
> development of Web Application.
>
> For the rest, I tried deploying my webapp with Tomcat and I had the same
> problem (!!!).
> So I'd suppose, it's a Tomcat problem (or a Struts prob ?).
>
> I also patched my Jbuilder 6.0 with the latest update available without
any
> improvement.
>
> I didn't try to update my version of Tomcat. Because I first wanna be sure
> it's Tomcat causing the problem and not something else...
>
> Friendly Regards,
> Slimane
>
> At 07:40 8/03/2002 -0800, you wrote:
> >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5
> >6 7 8 9
> >From: "David Bolsover" <[EMAIL PROTECTED]>
> >  ===
> >Hi
> >
> >I also use TC4.0.1, Struts and JB6(pro) and have seen a similar problem.
> >To be honest I can't remember how I cured but I think it was because I
had a
> >reference to the servlet library in the JB project props - you try
looking
> >there.
> >
> >Also - do you get the same problem when you deploy your project as a war
and
> >run under TC outside of JB6? - might give some clue as to where the
problem
> >lies.
> >
> >David Bolsover
> >
> >"Slimane Zouggari" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]...
> > > Hi,
> > >
> > > I have a very strange problem here. And I don't know what is the cause
of
> > > that problem (Tomcat ? Struts ? JBuilder ? something else ?).
> > >
> > > Here's my problem: when I run a first time my project with Jbuilder 6
> > > (using Tomcat 4.0.1), I have practically no problem.
> > > Then I stop the Tomcat server and try to run it again (without
changing a
> > > thing !). And suddenly, the following exception is thrown:
> > >
> > > >Apache Tomcat/4.0.1 - Error reportApache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
> > > >Errortype Exception reportmessage Internal Server Errordescription
The
> > > >server encountered an internal error (Internal Server Error) that
> > > >prevented it from fulfilling this request.exception
> > > >javax.servlet.ServletException: duplicate class definition:
> > > >org/apache/jasper/runtime/HttpJspBase
> > > >  at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484)
> > > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > >  at
> > > >
>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
> >FilterChain.java:247)
> > > >  at
> > > >
>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
> >ain.java:193)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
> >va:243)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
> >66)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > > >  at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
> >va:201)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
> >66)
> > > >  at
> > > >
>
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
2
> >46)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
> >64)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > > >  at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:16
4
> >)
> > > >  at
> > > >
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java

iPlanet-struts

2002-03-09 Thread yogesh b

I have been trying to migrate a struts web app from Tomcat 3.2 to iPlanet WS 6.0. I am 
new to iPlanet. The deployment looks to be smooth but I get an error while loading the 
application which says that "Cannot resolve external entity" for the struts DTD, while 
initializing ActionServlet.

Please help.

regards
Yogesh Borse



Re: Dynamic Chinese (Big5 and GB) front-end input

2002-03-09 Thread @Basebeans.com

Subject: Re: Dynamic Chinese (Big5 and GB) front-end input
From: "Tea Yu" <[EMAIL PROTECTED]>
 ===
I can't wait for a fix on integrating a characterEncoding filter to struts
but hardcoding it in ActionServlet.  Anyway, for those who work on
language specific (esp. Chinese) projects please feel free to commend my
idea..

I'm using Postgresql which supports different Frontend/Backend encoding
scheme.  For example, I can insert into a backend "euc_tw" (Chinese)
encoding database either Big5 Chinese or GB2312 Chinese records.  Later on
any record can be retrieved either in Big5 or GB or something.

In the real world I'm not sure when Big5 users or GB users will submit
form data in Big5/GB..  so I utilize ServletRequest.setCharacterEncoding()
in servlet 2.3 before populating formBeans in the below priorities (from
the highest)

clues from browser//not likely
defined in session attribute//idea from Tomcat 3.3
default servlet config

I'd also like to hear from anyone who did something similar before.
Thanks!

Tea Yu

> The simple SetCharacterEncoding filter accompanied with tomcat 4.0.2 is
> configured as follows:
>
>   
> Set Character Encoding
> filters.SetCharacterEncodingFilter
> 
>   encoding
>   Big5
> 
>   
>   
> Set Character Encoding
>action
>   
>
>
> However, newly compiled JSPs give the following internal servlet error:
>
> org.apache.jasper.JasperException: File "/tags/struts-html" not found
>  at
>
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:214
> )
>  at
>
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174
> )
>  at
>
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(Js
> pParseEventListener.java:1162)
>  at
>
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseE
> ventListener.java:758)
>  at
>
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLi
> stener.java:121)
>  at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
>  at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
>  at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
>  at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
>  at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:21
> 3)
> ...
>
>
> I'm using struts nightly build 20020306.
>
> Thank you
> Tea Yu



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