Transforming xml with xsl in custom tag

2001-08-29 Thread Pulkka Kari

Hi all,

I have the following problem:
I have a jsp-page that imports all the struts taglib tlds and contains a
call to a custom taglib (). This tag receives data
from the db as xml and transforms it with a xsl. The output of the
transformation contains struts -tags. Unfortunately these tags
never get parsed to html. Of course I could transform the data straight to
html but then I would lose the validation benefits etc of struts? What am I
doing wrong? Is this feasible at all?

Here is a part of the xsl:
http://www.w3.org/1999/XSL/Transform";>


  











This is the output I get in the browser:






NOK1VEW197
NOK1VEW199




This is what I'd like to achieve (eventually):






NOK1VEW197
NOK1VEW199




TIA,
Kari
---
Kari Pulkka
IT/EvliNet Development
Evli Securities Plc
Aleksanterinkatu 19 A, P.O. Box 1081
FIN-00100 Helsinki, Finland

Tel.   +358 (0)9 4766 9241
GSM +358 (0)40 548 4019
Fax  +358 (0)9 4766 9352
http://www.evli.net
mailto:[EMAIL PROTECTED]


This e-mail is for the intended recipient only and it may contain
confidential, proprietary and/or legally privileged information. If you have
received it in error, please immediately notify the sender by a return
e-mail and delete it from your system and destroy possible hard copies. You
must not use, disclose, distribute, print or copy any part of this message
if you are not the intended recipient. Any opinions expressed in this e-mail
are those of the sender and do not necessarily reflect the opinions of the
Evli Group. Evli Group reserves the right to monitor all e-mail
communications through its networks.






calling form bean method

2001-08-29 Thread Ali Ozoren



Hi 
all,
 
I have 
a method that returns a String in the form bean. How can I call it from within 
the JSP page that uses that bean? Couldn't find a way to refer to the underlying 
form bean..
Thanks,
--a


RE: Select tag

2001-08-29 Thread SUHAS G. KULKARNI

check this 
I think u have to change the select tag a bit  -



-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Select tag


Hi all

How do I disply a desired value, while populating the select tag?
I'm using the tag like this...





It is showing me the dropdown box with the values in collection 'grouptype'
but the requirement is to show the specific value while screen is displayed.

Sandeep mahajan

 





Select tag

2001-08-29 Thread s k m

Hi all

How do I disply a desired value, while populating the select tag?
I'm using the tag like this...





It is showing me the dropdown box with the values in collection 'grouptype' but the 
requirement is to show the specific value while screen is displayed.

Sandeep mahajan

 






Re: Dynamic Form Beans?

2001-08-29 Thread martin . cooper

On the input side, it sounds like what you want is a map that is basically a
copy of the map usually used internally by the servlet container to
represent parameters. If you don't mind having copies in the map of what's
also in any explicit form bean fields, you could just use this at the top of
the reset() method in your form bean (or a base class).

HashMap map = new HashMap(); // Actually, this would be an instance
variable
for (Enumeration e = request.getParameterNames(); e.hasMoreElements();)
{
String name = (String)e.nextElement();
map.put(name, request.getParameterValues(name));
}

The output side is a little different because the Struts tags are set up to
look only for explicit fields. There's been at least one proposal for
changing that, though.

However, this is what I refer to as an "uncontrolled" dynamic form bean.
More interesting would be a "controlled" dynamic form bean, where the valid
fields are actually controlled externally, rather than being at the whim of
the request (or other code). But then, that's a bunch more work. :-)

--
Martin Cooper


- Original Message -
From: "John Townsend" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "'Luis Olivares'"
<[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:19 PM
Subject: RE: Dynamic Form Beans?


> The one idea that I had was to create a new subclass of ActionForm
> called ActionDataForm. This form would have get and put methods that use
> keys instead of the usual pattern of numerous getters/setters.
>
>
> For the process of saving form data, we could add a new override to
> RequestUtils.processPopulate(..) which would take an ActionDataForm
> instead of an ActionForm as its form instance. Then we would implement
> this method to use get and put with keys instead of getters/setters.
>
> One problem: I don't know how the populate works from the other side
> (meaning when you want to prepopulate a form based on the contents of a
> JavaBean in the session, etc.). I imagine that logic is contained in the
> HTML tag libraries or some other tag library.
>
> I guess what I am wondering is that since a number of people have run
> into this and needed a solution I assumed that there might already be a
> solution to this problem. If not, maybe we can find a solution and then
> submit a patch to Struts for 1.1 or something.
>
> Anyone else have any thoughts on this?
>
> -- John Townsend
>
> PS. One thing I just thought of: I wonder if there is a JavaBeans
> solution to this problem? If there is, that might be a better way to go.
>
>
> -Original Message-
> From: Luis Olivares [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Dynamic Form Beans?
>
> I have the same 'problem'.
>
> I would like to be able to create a form dynamically depending on the
> structure of a table (I used to do this with 'plain' JSP).
> Any ideas?
>
> Regards.
>Luis Olivares.
>[EMAIL PROTECTED]
>--
>   "Intelligence is the ability to avoid doing
>work, yet getting the work done"
>   --Linus Torvalds--
>
> - Original Message -
> From: "John Townsend" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 12:54 PM
> Subject: Dynamic Form Beans?
>
>
> > I am working on a project where is would be nice to have the ability
> to
> > define a dynamic form bean (i.e. a form bean where the fields are
> > defined at runtime). The most obvious (but perhaps not the best)
> > solution to this problem would be if the ActionServlet could handle
> > saving data in a form bean that was a hashtable.
> >
> > Has someone else run into this problem and come up with a solution?
> >
> > Thanks,
> > -- John Townsend
> >
>





Connection Pool

2001-08-29 Thread java_san

Hi Gurus,

1. Can someone let me know the steps involved in setting up a connection
pool in struts config files?

2. Also a small snippet of code on how to use it from a action servlet. Is
it as easy as getting  a ref. to a connection pool using JNDI.

Your help is highly appreciated.

Sanjay




NEW Commercial Struts-powered website

2001-08-29 Thread Don Elliott

Just appending to the forum to announce a new Struts-based application that
we've just launched into production for a Customer last week -
http://www.redgalleon.com

It's a Melbourne (Australia) based ASP service that matches member's defined
preference/permission profiles for restaurants, sporting events,
theatre/cinema, etc. to offers that are entered by vendors - these
preferences can be very detailed down to cuisine (for restaurants), location
(general selection or distance-from-point) and days / times.  Once matched,
the site will pro-actively email or SMS a notification to the member.
Vendors are notified of bookings via logging on to the site, email, Fax (via
an email-to-fax gateway) or SMS.

This has been a work in progress over around 6 months and is using the 1.0b2
struts release.  It's not a 'pure' MVC architecture - a lot of the promo
pages are done as straight JSPs with some HTML, but from logon downwards it
uses struts/MVC all the way.  The site is in production on a Slackware Linux
web server connected via JDBC to a Sun E450 Box running Oracle.

The site has just been launched in the last week and we are getting around
15,000 hits a day, however we expect much more once we start promoting it to
the Mass Media.

Further Struts commerical development is on the way - I've also designed and
am constructing an eRecruitment application (http://www.i4-talent.com) with
a different company that uses a similar architecture to the above site and
will be launched within the next few months.  This ASP service will allow
Recruitment Managers to template job ads, place these ads to their own web
site and several other job boards and then track all applications through to
the offer process - it's got a lot of smarts built in to code experience,
skills, etc. so that a %age fit to a job can be calculated.  It also allows
each company using it to define their own hiring workflow, making it as
complex or as simple as they require...

Will notify the forum again when this one goes live..

Regards,
Don Elliott
Melbourne, Australia - the world's leading software development city :)

CRM Software Pty Ltd   -> [EMAIL PROTECTED]
i4 Pty Ltd -> [EMAIL PROTECTED]




RE: Tomcat4.0 Contexts

2001-08-29 Thread Mark Bennett

Hey Calvin,
I know this is old, but did you ever managed to resolve it.  I think I am
having exactly the same problem.  The struts examples which worked with 3.2
don't with 4.0.  They say that the root cause has something to do with a
noClassDefnFound error when looking for a SAXParserException or something
like that.  The error message can be seen on my server at
http://26.64.133.82:8080/struts-example.  If you could let me know I would
really appreciate it as I am about to roll back to Tomcat 3.2.  Thanks man!

-Mark Bennett
Computer Science III
University of Alberta

-Original Message-
From: Calvin Lau [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2001 2:09 AM
To: [EMAIL PROTECTED]
Subject: Tomcat4.0 Contexts

Does anyone have an example of a Tomcat4.0 server.xml
that uses Contexts?  I want to run an application that
has it's root outside of Tomcat's root directory but
keep getting XML parse errors for some reason.  It was
all working fine on Tomcat3.2.

Any good resource on Tomcat4.0 would also be good.  I
haven't been able to find anything relevant.

Thanks,

Calvin

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Re: Struts behind the scene

2001-08-29 Thread Shelly Dhiman

Thanks

Shelly

malcolm davis wrote:
> 
> To be more exact, JSP's are pre-compiled into a
> special servlet source (java files).  The servlets
> are compiled into classes.
> 
> There exist mechanism for pre-compiling the JSP to classes,
> before the first user request is received.
> 
> You can find these special servlet .java files in the
> tomcat/work/ directory.
> 
> There is no rendering mechanism per-say.  In the end,
> the JSP/Java files write information using JspWriter
> class that subclasses from java.io.Writer.
> 
> To me, a JSP is just another view of a Servlet, without
> all the ugly print statements.  The reason this is important,
> is that you can do all those things that servlets can do, well sort of.
> 
>   > -Original Message-
>   > From: Greg Reddin [mailto:[EMAIL PROTECTED]]
>   > Sent: Wednesday, August 29, 2001 2:00 PM
>   > Subject: RE: Struts behind the scene
>   >
>   >
>   > Shelly,
>   >
>   > I'm not sure I fully understand the question, but I'll give it a shot.
>   >
>   > Struts does not generate anything.  You write the JSP's that Struts
>   > uses.  When your JSP pages are invoked the first time, the web container
>   > (i.e. Tomcat, etc.) compiles the JSP's and renders them.  That's why it
>   > is slow the first time.
>   >
>   > Hope that helps.
>   > > -Original Message-
>   > > From: [EMAIL PROTECTED] at INTERNET
>   > > [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+
>   > > 20INTERNET
>   > > @alltel.com]
>   > > Sent: Wednesday, August 29, 2001 2:27 PM
>   > > To: [EMAIL PROTECTED] at INTERNET
>   > > Subject: Struts behind the scene
>   > >
>   > >
>   > > Hi,
>   > >
>   > > Could somebody explain me how struts work behind the scenes. The
>   > > particular case being there is template, content and the renderer.
>   > >
>   > > So does it create precompiled jsps or how does it work coz the very
>   > > first time you render a page it's very slow
>   > >
>   > >
>   > >
>   > > Shelly
>   > >



RE: Struts behind the scene

2001-08-29 Thread malcolm davis

To be more exact, JSP's are pre-compiled into a
special servlet source (java files).  The servlets
are compiled into classes.

There exist mechanism for pre-compiling the JSP to classes,
before the first user request is received.

You can find these special servlet .java files in the
tomcat/work/ directory.

There is no rendering mechanism per-say.  In the end,
the JSP/Java files write information using JspWriter
class that subclasses from java.io.Writer.


To me, a JSP is just another view of a Servlet, without
all the ugly print statements.  The reason this is important,
is that you can do all those things that servlets can do, well sort of.

  > -Original Message-
  > From: Greg Reddin [mailto:[EMAIL PROTECTED]]
  > Sent: Wednesday, August 29, 2001 2:00 PM
  > Subject: RE: Struts behind the scene
  >
  >
  > Shelly,
  >
  > I'm not sure I fully understand the question, but I'll give it a shot.
  >
  > Struts does not generate anything.  You write the JSP's that Struts
  > uses.  When your JSP pages are invoked the first time, the web container
  > (i.e. Tomcat, etc.) compiles the JSP's and renders them.  That's why it
  > is slow the first time.
  >
  > Hope that helps.
  > > -Original Message-
  > > From: [EMAIL PROTECTED] at INTERNET
  > > [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+
  > > 20INTERNET
  > > @alltel.com]
  > > Sent: Wednesday, August 29, 2001 2:27 PM
  > > To: [EMAIL PROTECTED] at INTERNET
  > > Subject: Struts behind the scene
  > >
  > >
  > > Hi,
  > >
  > > Could somebody explain me how struts work behind the scenes. The
  > > particular case being there is template, content and the renderer.
  > >
  > > So does it create precompiled jsps or how does it work coz the very
  > > first time you render a page it's very slow
  > >
  > >
  > >
  > > Shelly
  > >




Re: How to handle an ActionForward to a page with an anchor?

2001-08-29 Thread martin . cooper

Take a look at the 'anchor' attribute on the  tag. If you use
that for your Add link, I believe it will do what you want.

--
Martin Cooper


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 2:02 PM
Subject: How to handle an ActionForward to a page with an anchor?


> All,
>
> I have a page with a control which allows the user to add items to a
vector
> on a bean.  Basically it is a company form with an Add Subsidiary button.
> Each time the user presses "Add", the vector on the company formbean
> receives the new element.  However, when the page reloads, I want the
> browser to scroll to the subsidiaries region of the page.  In order to do
> this, I would like to place an anchor tag at that place on the page, then
> have Struts place the #subsidiary anchor in the URL.   If there is a
better
> way to do this, please let me know...
>
> Is there a Struts 1.0 feature that will help me do this?  If there is not
a
> Struts 1.0 feature that will help, is there a planned feature in the
Struts
> 1.1 release that will help?
>
> Thanks,
> Brian
>





Re: Struts behind the scene

2001-08-29 Thread Ted Husted

This might help 

http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html

The template library basically nests the JSP include feature. For more
about Java ServerPages, see 

http://husted.com/about/struts/links.htm#jsp

Shelly Dhiman wrote:
> 
> Hi,
> 
> Could somebody explain me how struts work behind the scenes. The
> particular case being there is template, content and the renderer.
> 
> So does it create precompiled jsps or how does it work coz the very
> first time you render a page it's very slow
> 
> Shelly



Re: Performance, Reflection, and Object Creation vs. Cacheing(was: Barracuda talk)

2001-08-29 Thread Calvin Yu

On Tue, 2001-08-28 at 00:02, Bryan Field-Elliot wrote:

> 
> Also, you go on to say 'ditto for objection creation", and that it's 
> "more expensive to cache an object than recreate it". Where are you 
> getting this information? It goes against the design considerations of 
> virtually every "highly optimized" Java system I've seen, including EJB 
> which goes to EXTREME lengths to reuse rather than recreate. You see the 
> same pattern with JSP custom tags (nowadays they are pooled), and you 
> even see the same thing in the Servlet spec design (which is to have one 
> multithreaded instance of the servlet class, rather than one per user 
> which would make more logical sense).

Object creation is rather fast, but that doesn't mean caching is always
frowned upon.  Caching for performance at the enterprise level is really
to reduce object initialization rather than object creation.  The
problem with EJBs, Tags, and Servlets is that they potentially do a lot
of up front initialization.  All three has to at least read an XML to
load some kind of deployment information, and then there are resources
(db, networking) that can be allocated by containers or developers.
Struts objects generally don't a lot of object initialization, therefore
isn't necessarily a really good candidate for caching.


Calvin




RE: Tomcat 4.0b7 and struts-example webapp

2001-08-29 Thread Thinh Doan

I got this same error running under Jrun.  Look into web.xml and make sure
struts stuff is there (tlds etc..)

T.

-Original Message-
From: Ian Kallen <[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 4:17 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0b7 and struts-example webapp



IIRC, the struts-example from struts 1.0 was happy with most of the recent
Tomcat 3.2.x releases but with 4.0b7, it's not picking up the
ApplicationResources.properties file.  yes, it's in
/struts-example/WEB-INF/classes/org/apache/struts/webapp/example/Application
Resources.properties
and web.xml has:
action
org.apache.struts.action.ActionServlet

  application

org.apache.struts.webapp.example.ApplicationResources

right out of the war file...

This is the error:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

So what's up?  Is there something extra to setup the classpaths inside
webapps under Tomcat 4.0?

cheers,
-Ian

--
Ian Kallen <[EMAIL PROTECTED]> | AIM: iankallen





Re: Struts behind the scene

2001-08-29 Thread Shelly Dhiman

Hi,

I meant like when we invoke a jsp page that is using a template to
render itself, does it then take the template, insert the relevant stuff
into the template and then what?

Actually i'm confused too. Lets say i have a template A, renderer jsp B
and a content page say C,

SO are these all put together into a precompiled jsp which is then
compiled and rendered or how does it all work

Thanks
Shelly

Greg Reddin wrote:
> 
> Shelly,
> 
> I'm not sure I fully understand the question, but I'll give it a shot.
> 
> Struts does not generate anything.  You write the JSP's that Struts
> uses.  When your JSP pages are invoked the first time, the web container
> (i.e. Tomcat, etc.) compiles the JSP's and renders them.  That's why it
> is slow the first time.
> 
> Hope that helps.
> > -Original Message-
> > From: [EMAIL PROTECTED] at INTERNET
> > [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+
> > 20INTERNET
> > @alltel.com]
> > Sent: Wednesday, August 29, 2001 2:27 PM
> > To: [EMAIL PROTECTED] at INTERNET
> > Subject: Struts behind the scene
> >
> >
> > Hi,
> >
> > Could somebody explain me how struts work behind the scenes. The
> > particular case being there is template, content and the renderer.
> >
> > So does it create precompiled jsps or how does it work coz the very
> > first time you render a page it's very slow
> >
> >
> >
> > Shelly
> >



Tomcat 4.0b7 and struts-example webapp

2001-08-29 Thread Ian Kallen <[EMAIL PROTECTED]>


IIRC, the struts-example from struts 1.0 was happy with most of the recent
Tomcat 3.2.x releases but with 4.0b7, it's not picking up the
ApplicationResources.properties file.  yes, it's in
/struts-example/WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.properties
and web.xml has:
action
org.apache.struts.action.ActionServlet

  application

org.apache.struts.webapp.example.ApplicationResources

right out of the war file...

This is the error:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

So what's up?  Is there something extra to setup the classpaths inside
webapps under Tomcat 4.0?

cheers,
-Ian

--
Ian Kallen <[EMAIL PROTECTED]> | AIM: iankallen




test for presence of struts.action.MESSAGE

2001-08-29 Thread Thinh Doan

Please explain the following lines that came from index.jsp of the struts
example app.  Specifically what is it checking?  Is it
ApplicationResources.properties?


  
ERROR:  Application resources not loaded -- check servlet container
logs for error messages.
  


Thanks,

Thinh




RE: Struts behind the scene

2001-08-29 Thread Greg Reddin

Shelly,

I'm not sure I fully understand the question, but I'll give it a shot.

Struts does not generate anything.  You write the JSP's that Struts
uses.  When your JSP pages are invoked the first time, the web container
(i.e. Tomcat, etc.) compiles the JSP's and renders them.  That's why it
is slow the first time.

Hope that helps.
> -Original Message-
> From: [EMAIL PROTECTED] at INTERNET
> [mailto:IMCEACCMAIL-struts-user+40jakarta+2Eapache+2Eorg+20at+
> 20INTERNET
> @alltel.com]
> Sent: Wednesday, August 29, 2001 2:27 PM
> To: [EMAIL PROTECTED] at INTERNET
> Subject: Struts behind the scene
>
>
> Hi,
>
> Could somebody explain me how struts work behind the scenes. The
> particular case being there is template, content and the renderer.
>
> So does it create precompiled jsps or how does it work coz the very
> first time you render a page it's very slow
>
>
>
> Shelly
>



How to handle an ActionForward to a page with an anchor?

2001-08-29 Thread Brian . Duchouquette

All,

I have a page with a control which allows the user to add items to a vector
on a bean.  Basically it is a company form with an Add Subsidiary button.
Each time the user presses "Add", the vector on the company formbean
receives the new element.  However, when the page reloads, I want the
browser to scroll to the subsidiaries region of the page.  In order to do
this, I would like to place an anchor tag at that place on the page, then
have Struts place the #subsidiary anchor in the URL.   If there is a better
way to do this, please let me know...

Is there a Struts 1.0 feature that will help me do this?  If there is not a
Struts 1.0 feature that will help, is there a planned feature in the Struts
1.1 release that will help?

Thanks,
Brian




Re: Tag Libaries, No ID attribute

2001-08-29 Thread Luis Olivares

What about the TITLE attribute? (I know its not quite important, but it
could be cool to be able to use it). :)

Regards.

   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--


- Original Message -
From: "David Corbin" <[EMAIL PROTECTED]>
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 1:33 PM
Subject: Tag Libaries, No ID attribute


> Is there a particular reason that that the Struts Tag Libraries don't
> support (according to the doc) an ID attribute which gets translated
> directly into the HTML?  Mostly I'm talking about the  family, but
> it is a general question.




RE: Question about html:link

2001-08-29 Thread Nathan Coast

<%
String str = "javascript:doSummlkjsdf(" + myVar + ");
%>



-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 8:30 PM
To: [EMAIL PROTECTED]
Subject: Question about html:link


Hi,

how can I pass a javascript function to a link tag?

My present tag is


The value of A_NUMBER is found in a bean via workrequest.number.

Thanks for the help.

Alex



=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions!"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: welcome file in web.xml with pre-compiled jsp's? - tomcat bug!!

2001-08-29 Thread dhay



Just for your information - turns out this is a bug in Tomcat!

I submitted it (Bug No 3309) and they propose to fix it, maybe by 3.3.1.  At the
moment, work around is to stick an uncompiled version in directory, or to use
javascript to perform a forward in a regular html page to your pre-compiled jsp.

Cheers,

Dave






STRANGE: session.invalidate() is not invalidating the session

2001-08-29 Thread Shamdasani Nimmi-ANS004

Hi,

I noticed a peculiar thing. In my application I have a logout link on pages. This link 
control goes to 'Logout' action where I  clean up the session variables and then 
invalidate the session with:

session.invalidate();

and this class forwards it to Logout.jsp which just has the goodbye message.

I have noticed that at this point if I keep going back with the back key of my browser 
to the point where jsessionid is part of the URL, i.e.,

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D453


and do the browser refresh here then I can go back into the application without having 
to log in again. It is as if the session is still alive.

All the screens(incl. the above URL point) going backwards from Logout.jsp do show the 
page expired message but doing refresh on the above URL screen only brings back the 
application

Could someone please explain this to me? Has anyone else seen this?

BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0 too)

TIA.

-Nimmi




Re: Dynamic Form Beans?

2001-08-29 Thread Sastry Varanasi

I have the same problem too, and I'm sure there are many more like us. I 
believe this is a problem struts has not addressed yet. Fortunately, they 
are working on Dynamic form generation feature for struts1.1. I don't know 
when it is going to be ready!!

Here is a work-around: Make your JSPs without using FormBeans (you should 
have your won Java classes to dynamically generate the form), and extract 
input parameters from request in your action and stuff them into a 
Hashtable for further processing. However, someone should clarify if this 
approach violates struts recommended architecture.

I would definitely like to see a better solution. I have posted similar 
questions earlier on this topic, but I have got no response.

Sastry.

At 01:27 PM 8/29/2001 -0500, you wrote:
>I have the same 'problem'.
>
>I would like to be able to create a form dynamically depending on the
>structure of a table (I used to do this with 'plain' JSP).
>Any ideas?
>
>Regards.
>Luis Olivares.
>[EMAIL PROTECTED]
>--
>   "Intelligence is the ability to avoid doing
>work, yet getting the work done"
>   --Linus Torvalds--
>
>- Original Message -
>From: "John Townsend" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 29, 2001 12:54 PM
>Subject: Dynamic Form Beans?
>
>
> > I am working on a project where is would be nice to have the ability to
> > define a dynamic form bean (i.e. a form bean where the fields are
> > defined at runtime). The most obvious (but perhaps not the best)
> > solution to this problem would be if the ActionServlet could handle
> > saving data in a form bean that was a hashtable.
> >
> > Has someone else run into this problem and come up with a solution?
> >
> > Thanks,
> > -- John Townsend
> >


Sastry Varanasi
Tel : 408-526-6278
INSMBU, Cisco Systems





Re: Local Forward with Parameters Causes Exception

2001-08-29 Thread Thomas Quas


Thanks Martin. Gee, finally I have to get my hands dirty on XML ;-)


[EMAIL PROTECTED] wrote:
> 
> The parser doesn't know what you want, it only knows what it sees. :-) In
> this case, it had started parsing an XML entity reference - something like
> & - and found a parse failure for the reference because it expected to
> see &sortBy; instead of &sortBy=. That is, it expected a semicolon, but what
> it got was an equals.
> 
> --
> Martin Cooper
> 
> - Original Message -
> From: "Thomas Quas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 28, 2001 10:42 PM
> Subject: Re: Local Forward with Parameters Causes Exception
> 
> >
> > Thanks all,
> >
> > problem solved. I'm still puzzled, however, about the message in the
> > parser exception that told me to use semicolons. Where does this come
> > from, and shouldn't/can't this be changed to be more expressive?
> >
> >
> > Thanks again, tom
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Not with " but with & like this:
> > >
> > >  > >
> > >
> path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > >
> > > --
> > > Martin Cooper
> > >
> > > - Original Message -
> > > From: "Eung-ju Park" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, August 26, 2001 4:56 AM
> > > Subject: Re: Local Forward with Parameters Causes Exception
> > >
> > > > replace '&' with '"'
> > > >
> > > > - Original Message -
> > > > From: "Thomas Quas" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Sunday, August 26, 2001 4:44 PM
> > > > Subject: Local Forward with Parameters Causes Exception
> > > >
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I ran into the following problem: I want to specify a local forward
> that
> > > > > represents an action URL. The action requires parameters that I want
> to
> > > > > pass
> > > > > in common HTTP fashion, namely
> > > > >
> > > > > /product.do?action=list&sortBy=date&order=desc
> > > > >
> > > > >
> > > > > Therefore, I have an entry in struts-confix.xml that looks like
> this:
> > > > >
> > > > >  > > > > type="tquas.bogus.servlet.ProductActions"
> > > > > parameter="action"
> > > > > name="productForm"
> > > > > scope="request"
> > > > > unknown="false"
> > > > > validate="true">
> > > > >  > > > >
> > > > > path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > > > > 
> > > > >
> > > > > where ProductActions is a subclass of DispatchAction containing an
> > > > > implementation of method list().
> > > > >
> > > > > The problem is that the XML parser throws an exception, basically
> > > > > telling me
> > > > > that ampersands are not allowed in this URI:
> > > > >
> > > > > org.xml.sax.SAXParseException: Next character must be ";"
> terminating
> > > > > reference to entity "sortBy".
> > > > > at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
> > > > > at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
> > > > > at
> org.apache.crimson.parser.Parser2.nextChar(Parser2.java:2951)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:715)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1375)
> > > > > at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > > at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > > at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
> > > > > at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
> > > > > at
> > > > >
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > > > at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > > >
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > > > at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
> > > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
> > > > > at
> org.apache.struts.digester.Digester.parse(Digester.java:755)
> > > > > at
> > > > >
> > > >
> > >
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> > > > > at
> > > > > org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> > > > > at
> javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > > > [snip]
> > > > >

Question about html:link

2001-08-29 Thread Alex Colic

Hi,

how can I pass a javascript function to a link tag?

My present tag is


The value of A_NUMBER is found in a bean via workrequest.number.

Thanks for the help.

Alex



=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions!"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Help: Cannot find bean BEAN in scope null

2001-08-29 Thread Thomas Quas


Gary,

it usually happens to me when I close the  too early, meaning
there are some 's or others floating around after I did
.


Hope this helps, tom


Gary Kephart wrote:
> 
> I get this message in the log file:
> 
> Cannot find bean org.apache.struts.taglib.html.BEAN in scope null
> 
> Does anyone know why this happened and how to fix it?
> 
> Thanks,
>   Gary
> --
> Gary Kephart   | Basis 100
> Software Engineer  | 4 Park Plaza, Suite 800
> [EMAIL PROTECTED]  | Irvine, CA 92614
> (949) 852-8600x262 | http://www.basis100.com
> 
> This communication is intended only for the use of the individual or
> entity to whom/which it is addressed, and information contained in this
> communication is privileged and confidential.  If the receiver of this
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> 
> prohibited.  If you have received this communication in error, please
> notify us at the above telephone number (so that we may correct our
> internal records) and delete this communication without making a copy of
> 
> it.  Thank you.

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Thanks to all that helped me out.

2001-08-29 Thread Alex Colic

Hi,

A big thanks to all that replied and tried to help me get the nightly build working 
with Tomcat.
Although I was unsuccessful, I really do appreciate all the advice.

I tried getting the nightly build of struts to work with Tomcat 3.2, 3.2.3, 4 but no 
luck. I
rebuilt my applications to use version 1 of Struts. If it weren't for that iterate tag 
I would
never have gone to a nightly build. I can't wait until the next version of Struts is 
out. 

Great work to the Struts team they have come out with an excellent product.

Alex

=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions!"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Struts behind the scene

2001-08-29 Thread Shelly Dhiman

Hi,

Could somebody explain me how struts work behind the scenes. The
particular case being there is template, content and the renderer. 

So does it create precompiled jsps or how does it work coz the very
first time you render a page it's very slow



Shelly



RE: how do I snoop responses

2001-08-29 Thread "Paradis, André"

Just install activeperl for windows

http://aspn.activestate.com/ASPN/Downloads/ActivePerl/

then open up a dos box and type 

perl http.pl



-Original Message-
From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: how do I snoop responses


Thanks Martin and Andre.  I don't suppose there's something in Java or
runs 
as a straight app on my machine (Win 98).  I'm really bad at PERL and
worse 
with Python. Tom

At 10:37 AM 8/29/01 -0700, you wrote:
>I don't recall if this has the level of detail you're looking for (it's
been
>a while since I used it), but you could take a look at WebDebug:
>
>http://www.cyberclip.com/webdebug/
>
>--
>Martin Cooper
>
>
>- Original Message -
>From: "Tom Tibbetts" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 29, 2001 9:43 AM
>Subject: how do I snoop responses
>
>
> > I know this is not a Struts question, but I'm looking for a (free)
tool
> > where I can enter in my URL in order to snoop HttpServletResponses
so I
>can
> > look at the MIME headers.  Any help would be appreciated.  Thanks
> >




RE: Dynamic Form Beans?

2001-08-29 Thread John Townsend

The one idea that I had was to create a new subclass of ActionForm
called ActionDataForm. This form would have get and put methods that use
keys instead of the usual pattern of numerous getters/setters. 
 

For the process of saving form data, we could add a new override to
RequestUtils.processPopulate(..) which would take an ActionDataForm
instead of an ActionForm as its form instance. Then we would implement
this method to use get and put with keys instead of getters/setters.

One problem: I don't know how the populate works from the other side
(meaning when you want to prepopulate a form based on the contents of a
JavaBean in the session, etc.). I imagine that logic is contained in the
HTML tag libraries or some other tag library.

I guess what I am wondering is that since a number of people have run
into this and needed a solution I assumed that there might already be a
solution to this problem. If not, maybe we can find a solution and then
submit a patch to Struts for 1.1 or something.

Anyone else have any thoughts on this?

-- John Townsend

PS. One thing I just thought of: I wonder if there is a JavaBeans
solution to this problem? If there is, that might be a better way to go.


-Original Message-
From: Luis Olivares [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 29, 2001 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Form Beans?

I have the same 'problem'.

I would like to be able to create a form dynamically depending on the
structure of a table (I used to do this with 'plain' JSP).
Any ideas?

Regards.
   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--

- Original Message -
From: "John Townsend" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:54 PM
Subject: Dynamic Form Beans?


> I am working on a project where is would be nice to have the ability
to
> define a dynamic form bean (i.e. a form bean where the fields are
> defined at runtime). The most obvious (but perhaps not the best)
> solution to this problem would be if the ActionServlet could handle
> saving data in a form bean that was a hashtable.
>
> Has someone else run into this problem and come up with a solution?
>
> Thanks,
> -- John Townsend
>




RE: Dynamic Form Beans?

2001-08-29 Thread Thinh Doan

I heard Struts 1.1 will address this issue.  In the mean time, I too am
interested to a working solution.

Thanks,

Thinh

-Original Message-
From: Luis Olivares [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Form Beans?


I have the same 'problem'.

I would like to be able to create a form dynamically depending on the
structure of a table (I used to do this with 'plain' JSP).
Any ideas?

Regards.
   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--

- Original Message -
From: "John Townsend" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:54 PM
Subject: Dynamic Form Beans?


> I am working on a project where is would be nice to have the ability to
> define a dynamic form bean (i.e. a form bean where the fields are
> defined at runtime). The most obvious (but perhaps not the best)
> solution to this problem would be if the ActionServlet could handle
> saving data in a form bean that was a hashtable.
>
> Has someone else run into this problem and come up with a solution?
>
> Thanks,
> -- John Townsend
>




2nd attempt: Unexpected behavior of html:options tag

2001-08-29 Thread Marcel Maré

Why isn't this allowed :

  
 
  

where variantOptions is a property (of type ArrayList) of cartItem.

but this is:

  
  
 
  

IOW if I copy the property into a new bean (with ), I can
access the collection.

The same happens if instead of using "name=cartItem" I want to access a
collection property of the formbean. I need the same workaround.

Marcel Maré

WebToTheMax

T 31(0) 204 100 240
M 31(0) 654 354 479
E [EMAIL PROTECTED]
W http://www.webtothemax.com





Re: how do I snoop responses

2001-08-29 Thread Tom Tibbetts

Thanks Martin and Andre.  I don't suppose there's something in Java or runs 
as a straight app on my machine (Win 98).  I'm really bad at PERL and worse 
with Python. Tom

At 10:37 AM 8/29/01 -0700, you wrote:
>I don't recall if this has the level of detail you're looking for (it's been
>a while since I used it), but you could take a look at WebDebug:
>
>http://www.cyberclip.com/webdebug/
>
>--
>Martin Cooper
>
>
>- Original Message -
>From: "Tom Tibbetts" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 29, 2001 9:43 AM
>Subject: how do I snoop responses
>
>
> > I know this is not a Struts question, but I'm looking for a (free) tool
> > where I can enter in my URL in order to snoop HttpServletResponses so I
>can
> > look at the MIME headers.  Any help would be appreciated.  Thanks
> >




Help: Cannot find bean BEAN in scope null

2001-08-29 Thread Gary Kephart

I get this message in the log file:

Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

Does anyone know why this happened and how to fix it?

Thanks,
  Gary
--
Gary Kephart   | Basis 100
Software Engineer  | 4 Park Plaza, Suite 800
[EMAIL PROTECTED]  | Irvine, CA 92614
(949) 852-8600x262 | http://www.basis100.com

This communication is intended only for the use of the individual or
entity to whom/which it is addressed, and information contained in this
communication is privileged and confidential.  If the receiver of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly

prohibited.  If you have received this communication in error, please
notify us at the above telephone number (so that we may correct our
internal records) and delete this communication without making a copy of

it.  Thank you.




Tag Libaries, No ID attribute

2001-08-29 Thread David Corbin

Is there a particular reason that that the Struts Tag Libraries don't
support (according to the doc) an ID attribute which gets translated
directly into the HTML?  Mostly I'm talking about the  family, but
it is a general question.




RE: sessionId and html:img

2001-08-29 Thread Debasish Ghosh

It doesn't work. Actually I face the same problem for
Struts example application as well. There the image
"Powered By Struts" does not come the first time, but
comes if I hit a Refresh.

Maybe, it has got something to do with the container
(Tomcat 3.2.2). But I need some help URGENTLY !!

Cheers.


--- Jay Patel <[EMAIL PROTECTED]> wrote:
> You may want to try using pageKey instead of srcKey.
> It should not make a
> difference but something to check on!
> 
> 
> Jay Patel
> 972-701-9773
> 972-849-0373 Mobile
> [EMAIL PROTECTED]
>  
> 
> 
> -Original Message-
> From: Debasish Ghosh [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 28, 2001 10:25 PM
> To: [EMAIL PROTECTED]
> Subject: sessionId and html:img
> 
> 
> Hi -
> 
> I am using Struts 1.0 and Tomcat 3.2.2. I am using
> the internationalization
> feature of Struts to render an image as follows :
> 
> 
> 
> The first time the page appears, the image is not
> rendered on screen and if I do a Refresh, then the
> image somes properly. 
> 
> If I do a view source the first time, the tag gets
> translated with a session id attached. The session
> id
> does not come in subsequent requests. 
> 
> I realize that this is due to URL rewriting, but can
> anyone help me out on the problem of image rendering
> the first time the screen is displayed ? However,
> the
> problem does not arise if I turn off the
> internationalization feature and include the gif
> file
> directly with the img tag.
> 
> Please Help !!!
> 
> Regards.
> 
> - Debasish
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Dynamic Form Beans?

2001-08-29 Thread Luis Olivares

I have the same 'problem'.

I would like to be able to create a form dynamically depending on the
structure of a table (I used to do this with 'plain' JSP).
Any ideas?

Regards.
   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--

- Original Message -
From: "John Townsend" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:54 PM
Subject: Dynamic Form Beans?


> I am working on a project where is would be nice to have the ability to
> define a dynamic form bean (i.e. a form bean where the fields are
> defined at runtime). The most obvious (but perhaps not the best)
> solution to this problem would be if the ActionServlet could handle
> saving data in a form bean that was a hashtable.
>
> Has someone else run into this problem and come up with a solution?
>
> Thanks,
> -- John Townsend
>




Action Mapping getAttribute()

2001-08-29 Thread Steven Leija

Does anyone know why I would be retrieving a null when I call
mapping.getAttribute()?
 
I have my formbean named, so the value shouldn't be returning a null.
 
Thanks
 
Steven 
 

 application/ms-tnef


RE: java.io.NotSerializableException: java.util.HashMap

2001-08-29 Thread Barry Glasco

Don't you have work to do:)

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: java.io.NotSerializableException: java.util.HashMap


Are the values in your arraylist Serializable?

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: java.io.NotSerializableException: java.util.HashMap


I am getting the following error on a JSP page that I am using struts
taglibs.
However, I am using Sets and ArrayLists for my  - not a hashmap??

Any ideas?

Thanks,

Matt

[28/Aug/2001 12:29:20:9] error: Exception: SERVLET-IO_exception: IOException
occurred
Exception Stack Trace:
java.io.NotSerializableException: java.util.HashMap$1
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.putMemberValue(U
nknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.saveSession(Unkn
own
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.saveSess
ion(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Dynamic Form Beans?

2001-08-29 Thread John Townsend

I am working on a project where is would be nice to have the ability to
define a dynamic form bean (i.e. a form bean where the fields are
defined at runtime). The most obvious (but perhaps not the best)
solution to this problem would be if the ActionServlet could handle
saving data in a form bean that was a hashtable. 

Has someone else run into this problem and come up with a solution? 

Thanks,
-- John Townsend
 




Re: Real World Struts

2001-08-29 Thread Thomas Quas


Will,

I'm what I would call an intermediate JSP programmer, and switched to
Struts recently. The (one man) project I'm currently working on does not
require modifications in terms of extending the Struts framework with
new factories or the like, but rather focuses on a simple Web interface
and internationalization.

I'm using struts for about two weeks now, and I reached my milestones
fairly quickly. More quickly than if I would have used JSP--which is
what I did before. Struts and its taglibs provide excellent support for
realizing a Web interface rapidly. I also found the mailing list a
valuable resource where I get responses within minutes or hours.

Personally, I found the learning curve not quite as steep as it sounds
when you describe it. It took me two days to get the basic concepts and
realize my first pages. After two weeks I have completed three workflows
containing four pages each--including functional test code using
httpunit. Plus I'm working 4h days...

If your developers have a good understanding of JSP I do not see why
they should have problems with Struts. Au contraire, I found this is an
excellent basis for jumping into Struts since daily work proofed to
require knowledge in both areas. I'm basically using Struts for workflow
issues, form handling & i18n, mixing it with JSP when necessary.


Hope this helps to make the right decision, tom


Will Spies/Towers Perrin wrote:
> 
> We have been dabbling with struts. We have an upcoming project and are
> faced with a decision to use Struts or to continue to use plain old JSP.  I
> understand the long term benefits of struts however I must do a cost
> comparison of using struts as opposed to using JSP. We have developers who
> are familiar with JSP and Java and J2EE. Struts would be the only learning
> curve ( and it's not exactly a small learning curve ). So, I'm wondering if
> anyone has any real world experience that they would like to share
> regarding making this transition. Perhaps with estimating the man hours
> needed to train some number of existing Java developers in Struts and then
> beginning a project building a system with , just as an example, say
> roughly 30 screens. Anyone do anything like this for real recently?

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



RE: java.io.NotSerializableException: java.util.HashMap

2001-08-29 Thread George, Carl

Are the values in your arraylist Serializable?

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: java.io.NotSerializableException: java.util.HashMap


I am getting the following error on a JSP page that I am using struts
taglibs. 
However, I am using Sets and ArrayLists for my  - not a hashmap??

Any ideas?

Thanks,

Matt

[28/Aug/2001 12:29:20:9] error: Exception: SERVLET-IO_exception: IOException
occurred
Exception Stack Trace:
java.io.NotSerializableException: java.util.HashMap$1
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.putMemberValue(U
nknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformNASSession.saveSession(Unkn
own
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.saveSess
ion(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Real World Struts

2001-08-29 Thread Greg.Reddin

> We have developers who are familiar with JSP and Java and J2EE. Struts
would be 
> the only learning curve ( and it's not exactly a small learning curve
). 
> 
I have to disagree with you there.  I began using Struts when I had less
than 6 months experience in Java, and very little experience in JSP or
J2EE.  I found it to be very intuitive and useful very quickly.  Our
team also had little trouble adopting it and understanding it.

We spent about a day or two in full-time training, assigned some work,
and kept mentors available for a few weeks to help tie up loose ends.
After that it took very little time to get people moving.  The doc is
very clear and one can reasonably learn Struts on their own in a fairly
short time. In fact it answers many architectural questions up front,
leaving developers to focus only on the business functionality at hand.
Things like internationalization, error-handling patterns, separation of
logic, etc. are already figured out.  Depending on the size of your app,
if you don't use something like Struts you will eventually find yourself
asking questions like "Should this functionality be in a bean or on the
JSP?", or "What's the best way to pass such and such data from here to
there?" or "How should I display errors?".  Struts offers solutions and
patterns for all those things.  That's my 2 cents.



Web-app_2.2.dtd

2001-08-29 Thread Sureka, Sushil

Hello All,

We are using struts for our application. One of the problem we have
encountered is with the finding of Web-app_2.2.dtd . Seems like the name of
the dtd is hard coded in the ActionServlet java class. During deployment of
the application (using weblogic) the server waits for like 2 minutes or so
before it determines it can not find the dtd since we are running behind the
firewall. We are not sure how can we change this behaviour it so that it
always look for it locally  (instead of  going on internet) and save us all
the wasted time

Sushil






Re: how do I snoop responses

2001-08-29 Thread martin . cooper

I don't recall if this has the level of detail you're looking for (it's been
a while since I used it), but you could take a look at WebDebug:

http://www.cyberclip.com/webdebug/

--
Martin Cooper


- Original Message -
From: "Tom Tibbetts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 9:43 AM
Subject: how do I snoop responses


> I know this is not a Struts question, but I'm looking for a (free) tool
> where I can enter in my URL in order to snoop HttpServletResponses so I
can
> look at the MIME headers.  Any help would be appreciated.  Thanks
>





RE: how do I snoop responses

2001-08-29 Thread "Paradis, André"

Here's a free http sniffer tool in perl.  Works great for me. It listen
to a given port and forward to another port, host while printing http
stuff.

might need some tweeking, read the script.

Andre Paradis

> -Original Message-
> From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: how do I snoop responses
> 
> 
> I know this is not a Struts question, but I'm looking for a 
> (free) tool 
> where I can enter in my URL in order to snoop 
> HttpServletResponses so I can 
> look at the MIME headers.  Any help would be appreciated.  Thanks
> 
> 

 http.pl


Re: Local Forward with Parameters Causes Exception

2001-08-29 Thread martin . cooper

The parser doesn't know what you want, it only knows what it sees. :-) In
this case, it had started parsing an XML entity reference - something like
& - and found a parse failure for the reference because it expected to
see &sortBy; instead of &sortBy=. That is, it expected a semicolon, but what
it got was an equals.

--
Martin Cooper


- Original Message -
From: "Thomas Quas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 10:42 PM
Subject: Re: Local Forward with Parameters Causes Exception


>
> Thanks all,
>
> problem solved. I'm still puzzled, however, about the message in the
> parser exception that told me to use semicolons. Where does this come
> from, and shouldn't/can't this be changed to be more expressive?
>
>
> Thanks again, tom
>
>
> [EMAIL PROTECTED] wrote:
> >
> > Not with " but with & like this:
> >
> >  >
> >
path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> >
> > --
> > Martin Cooper
> >
> > - Original Message -
> > From: "Eung-ju Park" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, August 26, 2001 4:56 AM
> > Subject: Re: Local Forward with Parameters Causes Exception
> >
> > > replace '&' with '"'
> > >
> > > - Original Message -
> > > From: "Thomas Quas" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, August 26, 2001 4:44 PM
> > > Subject: Local Forward with Parameters Causes Exception
> > >
> > >
> > > >
> > > > Hi,
> > > >
> > > > I ran into the following problem: I want to specify a local forward
that
> > > > represents an action URL. The action requires parameters that I want
to
> > > > pass
> > > > in common HTTP fashion, namely
> > > >
> > > > /product.do?action=list&sortBy=date&order=desc
> > > >
> > > >
> > > > Therefore, I have an entry in struts-confix.xml that looks like
this:
> > > >
> > > >  > > > type="tquas.bogus.servlet.ProductActions"
> > > > parameter="action"
> > > > name="productForm"
> > > > scope="request"
> > > > unknown="false"
> > > > validate="true">
> > > >  > > >
> > > > path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > > > 
> > > >
> > > > where ProductActions is a subclass of DispatchAction containing an
> > > > implementation of method list().
> > > >
> > > > The problem is that the XML parser throws an exception, basically
> > > > telling me
> > > > that ampersands are not allowed in this URI:
> > > >
> > > > org.xml.sax.SAXParseException: Next character must be ";"
terminating
> > > > reference to entity "sortBy".
> > > > at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
> > > > at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
> > > > at
org.apache.crimson.parser.Parser2.nextChar(Parser2.java:2951)
> > > > at
> > > > org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:715)
> > > > at
> > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1375)
> > > > at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > at
> > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > at
> > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > at
> > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > at
> > > > org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
> > > > at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
> > > > at
> > > >
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > > at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > >
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > > at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
> > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
> > > > at
org.apache.struts.digester.Digester.parse(Digester.java:755)
> > > > at
> > > >
> > >
> >
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> > > > at
> > > > org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> > > > at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > > [snip]
> > > >
> > > >
> > > > This kind of puzzled me, but I obeyed and replaced the ampersands
with
> > > > semicolons. Now the parser shuts up, but as soon as I hit the
specified
> > > > forward, struts seems to hang in a loop until it produces a
> > > > StackOverflowError
> > > > (details see below).
> > > >
> > > > Can anybody help me with this and tell me how I specifiy a local
forwa

RE: tags

2001-08-29 Thread Nandini Agarwal



Thanks 
so much. This makes thing so much clearer for me.
 

  -Original Message-From: chiji nwankwo 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 29, 2001 2:47 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
tags
  
  Hi,Depending on what you are trying to do or the scale of the applicationyou are building, you can declare the collection within your jsp pageand put it within the pageContext or you can declare it in your Action subclass and put it in the session.  I found the last option to be a neater and better way of doing things.  I think it will be a good idea todeclare / define the collection in the Action subclass, incase you needto populate the list from an external source, such as a database. Example 1 (within jsp page, taken from struts example application - subscription.jsp)<%  java.util.ArrayList list = new java.util.ArrayList();  list.add(new org.apache.struts.webapp.example.LabelValueBean("IMAP Protocol", "imap"));  list.add(new org.apache.struts.webapp.example.LabelValueBean("POP3 Protocol", "pop3"));  pageContext.setAttribute("serverTypes", list);%> other code ..    labelProperty="label"/>  other code ..* The LabelValueBean is a utility class, which is part of the struts example,that creates a bean object.  The object contains label value pairs, as thename implies. Example 2 ( within Action subclass )perform method - declared locally (avoid the use of instance variables in Action class).ArrayList list = new ArrayList();   .. other code ...serverTypes.add( new LabelValueBean( ,  ) );session.setAttribute( "serverTypes", serverTypes ); .. other code ... jsp page. * labelProperty can be omitted if the label and value have the same value. I hope this helps you.Chiji  
  
  >From: Nandini Agarwal <[EMAIL PROTECTED]>
  >Reply-To: [EMAIL PROTECTED] 
  >To: "'[EMAIL PROTECTED]'" 
  <[EMAIL PROTECTED]>
  >Subject: tags 
  >Date: Tue, 28 Aug 2001 15:02:49 -0700 
  >MIME-Version: 1.0 
  >Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP 
  id MHotMailBD55672B0073400438B1407D85140C9A0; Tue, 28 Aug 2001 15:33:15 -0700 
  >Received: (qmail 3917 invoked by uid 500); 28 Aug 2001 22:05:39 
  - 
  >Received: (qmail 3908 invoked from network); 28 Aug 2001 
  22:05:38 - 
  >Received: from freedom.mrstock.com (216.52.133.36) by 
  daedalus.apache.org with SMTP; 28 Aug 2001 22:05:38 - 
  >Received: from office-mail.mrstock.com (office-mail.mrstock.com 
  [63.204.129.19])by freedom.mrstock.com (Postfix) with ESMTP id 57E021B8for 
  <[EMAIL PROTECTED]>; Tue, 28 Aug 2001 17:03:22 -0400 (EDT) 
  >Received: by office-mail.mrstock.com with Internet Mail Service 
  (5.5.2653.19)id ; Tue, 28 Aug 2001 15:02:54 -0700 
  >From struts-user-return-16231-cn081 Tue, 28 Aug 2001 15:34:00 
  -0700 
  >Mailing-List: contact [EMAIL PROTECTED]; run 
  by ezmlm 
  >Precedence: bulk 
  >list-help: 
  >list-unsubscribe: 
  
  >list-post: 
  >Delivered-To: mailing list [EMAIL PROTECTED] 
  >Message-ID: 
  <[EMAIL PROTECTED]>
  >X-Mailer: Internet Mail Service (5.5.2653.19) 
  >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
  > 
  >Hi, 
  >I am new to java, struts, jsp and EJB. And guess what, I need 
  help. 
  > 
  >What, I need to do is substitute the following with the 
  >collection ...> tag. 
  > 
  > 
  > Less than $5,000 
  > Greater than $5,000 
  > Greater than $10,000 
  > Greater than $15,000 
  > Greater than $20,000 
  > Greater than $25,000 
  > Greater than $30,000 
  > Greater than $40,000 
  > Greater than $50,000 
  > Greater than $75,000 
  > Greater than $100,000 
  > Greater than $150,000 
  > Greater than $200,000 
  > Greater than $300,000 
  > Greater than $500,000 
  > Greater than $750,000 
  > Greater than $1,000,000 
  > 
  > 
  > 
  > 
  > 
  >I need help here with some code examples. Also, where do I need 
  to create 
  >the collection (In actionform ?)? 
  > 
  > 
  >Thanks, 
  >Nandini 
  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: java.io.NotSerializableException: java.util.HashMap

2001-08-29 Thread Matt Raible

I figured it out - I was stuffing hashmaps and rowsets into my ActionForms, and
then storing those in the session.  Because of the clustering configuration we
have in iPlanet, this error was being thrown for the reasons you state.

I fixed this my moving any non-serializable components into beans only kept in
the request.

Thanks,

Matt

--- [EMAIL PROTECTED] wrote:
> I don't know what the relationship is between this error and your JSP, but
> it looks like your container is trying to serialize the session for some
> reason. Apparently you have a session attribute which is a HashMap, and it
> doesn't like that because it can't serialize it.
> 
> --
> Martin Cooper
> 
> 
> - Original Message -
> From: "Matt Raible" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 28, 2001 11:30 AM
> Subject: java.io.NotSerializableException: java.util.HashMap
> 
> 
> > I am getting the following error on a JSP page that I am using struts
> taglibs.
> > However, I am using Sets and ArrayLists for my  - not a hashmap??
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Matt
> >
> > [28/Aug/2001 12:29:20:9] error: Exception: SERVLET-IO_exception:
> IOException
> > occurred
> > Exception Stack Trace:
> > java.io.NotSerializableException: java.util.HashMap$1
> > at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
> > at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
> > at
> > java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
> > at
> > java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
> > at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
> > at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
> > at
> >
> com.netscape.server.servlet.platformhttp.PlatformNASSession.putMemberValue(U
> nknown
> > Source)
> > at
> >
> com.netscape.server.servlet.platformhttp.PlatformNASSession.saveSession(Unkn
> own
> > Source)
> > at
> >
> com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.saveSess
> ion(Unknown
> > Source)
> > at
> > com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
> Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> > at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > at java.lang.Thread.run(Thread.java:479)
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> 
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: java.io.NotSerializableException: java.util.HashMap

2001-08-29 Thread martin . cooper

I don't know what the relationship is between this error and your JSP, but
it looks like your container is trying to serialize the session for some
reason. Apparently you have a session attribute which is a HashMap, and it
doesn't like that because it can't serialize it.

--
Martin Cooper


- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 11:30 AM
Subject: java.io.NotSerializableException: java.util.HashMap


> I am getting the following error on a JSP page that I am using struts
taglibs.
> However, I am using Sets and ArrayLists for my  - not a hashmap??
>
> Any ideas?
>
> Thanks,
>
> Matt
>
> [28/Aug/2001 12:29:20:9] error: Exception: SERVLET-IO_exception:
IOException
> occurred
> Exception Stack Trace:
> java.io.NotSerializableException: java.util.HashMap$1
> at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
> at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
> at
> java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
> at
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
> at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
> at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
> at
>
com.netscape.server.servlet.platformhttp.PlatformNASSession.putMemberValue(U
nknown
> Source)
> at
>
com.netscape.server.servlet.platformhttp.PlatformNASSession.saveSession(Unkn
own
> Source)
> at
>
com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.saveSess
ion(Unknown
> Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at java.lang.Thread.run(Thread.java:479)
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/





Re: static text fields on the session or from??

2001-08-29 Thread martin . cooper

I would suggest putting them in the form. That way, the form represents all
the data required for the view, whether modifiable or not, and you don't
have multiple pieces of data scattered around in different places. The data
that isn't in input fields won't be populated back into the form, so there's
no overhead there.

--
Martin Cooper


- Original Message -
From: "viet nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 5:56 PM
Subject: static text fields on the session or from??


> If I need to display a screen which includes both
> editable fields and static text fields, would it be
> better to store the read-only fields on the session
> instead of having them in the form?  Since the values
> of these fields will never change, it seems to defeat
> the purpose of form automatic population if I provide
> them in the form. Any ideas??
>
> Thanks,
> V.
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/





RE: Logic Tags

2001-08-29 Thread Mike Bungay

The problem is fixed I had to change the parameter  to name in the logic
tag..

Thanks

-Original Message-
From: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 12:09 PM
To: '[EMAIL PROTECTED]'
Subject: AW: Logic Tags


do you have 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
in your jsp?



-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:52
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


Yes But i just passed in a string value not a variable because I don't
really care what the value is I just want to check that it's present

-Original Message-
From: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Logic Tags


did you have:

String message = "blabla";
request.setAttribute("success", message);

in your actionBean?


-juraj

-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


I am passing the success (request.setAttribute("success","yes");) parameter
back to the jsp but in the jsp when I try this code: 

 
  
window.open("welcome.jsp", "popupPage", "top=0,left=0,resizable=yes,
status=yes" +   ",width=" + screen.width +
",height=" + screen.height);



the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



Re: struts selection and Javascript onchange question

2001-08-29 Thread Luis Olivares



Hi Robin, Chiji:
 
What I do is to create a Bean (called Option) 
that I will use to store this 
properties:
 
optionGroup  < The group to which our 
option is associated (The Country of the Province/State in our 
case).
optionValue  < The value of the option 
(The Province/State code or whatever you'll store).
optionLabel  < The label the option 
will display (The Name of the Province/State).
 
 
So, In my action, for each Province/State I create 
an Option Object and put it inside a Vector (ie. 'options'), then I 
put the Vector in request scope (session If you like).
 
After setting my Vector 'options' in request, I 
create a Javascript Array in my jsp this 
way (I will use this Javascript Array to fill my 
options later with a javascript function):