Re: DynaActionForms

2003-10-14 Thread balaji

- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 6:47 PM
Subject: RE: DynaActionForms


> I'm not sure what you mean when you ask "what view technology".
>
> You can find ListUtils here:
>
http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect
> ions/ListUtils.html
>
> I've rendered these lists using a variety of 
> components - checkboxes, multiboxes, select lists, text, hidden, etc...
>
> I admit, I had a hard time getting my head around how to use indexed
> properties
> and dynamically generated fields but they work. You will most likely have
to
> subclass the DynaActionForm and override the reset().
>
> Heres a link to using indexed properties:
> http://jakarta.apache.org/struts/faqs/indexedprops.html
>
> Let me know if I answered your question.
>
> robert
>
> > -Original Message-
> > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 8:12 AM
> > To: Struts Users Mailing List
> > Subject: RE: DynaActionForms
> >
> >
> > Interesting idea.  My other choice is to stick a map in a standard
action
> > form.  What view technology are you using with these lists?
> >
> > Edgar
> >
> > > -Original Message-
> > > From: Robert Taylor [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, October 13, 2003 4:07 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: DynaActionForms
> > >
> > >
> > > Edgar, have you thought about using indexed properties together with
> > > ListUtils.lazylist()
> > > with DynaActionForms.
> > >
> > > I've successfully used them with DynaActionForms where my
> > > fields are completely dynamic.
> > >
> > > Just a thought.
> > >
> > > robert
> > >
> > >
> > > > -Original Message-
> > > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 13, 2003 4:39 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: DynaActionForms
> > > >
> > > >
> > > > Thanks for the input.  I did some more research and I think I
> > > > understand the forms a little better.
> > > >
> > > > The following code will create a DynaActionForm with one
> > > String field:
> > > >
> > > > FormBeanConfig formBean = new FormBeanConfig();
> > > > FormPropertyConfig fpc = null;
> > > >
> > > > fpc = new FormPropertyConfig();
> > > > fpc.setName("testField1");
> > > > fpc.setType(java.lang.String.class.getName());
> > > > fpc.setInitial("testField1Value");
> > > >
> > > > formBean.addFormPropertyConfig(fpc);
> > > >
> > > >
> > > formBean.setType(org.apache.struts.action.DynaActionForm.class
> > > .getName());
> > > > formBean.freeze();
> > > >
> > > > DynaActionFormClass dFC =
> > > > DynaActionFormClass.createDynaActionFormClass(formBean);
> > > > DynaActionForm dynaForm = (DynaActionForm)
> > > dFC.newInstance();
> > > >
> > > >
> > > > I think I know the answer already (my apologies), but will
> > > this code
> > > > break with new releases of struts.
> > > >
> > > > Thanks
> > > >
> > > > Edgar
> > > >
> > > > > -Original Message-
> > > > > From: Nick [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 13, 2003 2:41 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Re: DynaActionForms
> > > > >
> > > > >
> > > > > I do not believe that you can do dynamically add fields to a
> > > > > DynaForm, as the config is frozen at app startup.  Might
> > > work with
> > > > > an internal HashMap though.
> > > > >
> > > > > On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
> > > > > > I'm assuming that he meant create a new property that is
> > > > > not already
> > > > > > defined in the struts-config. In which case I think your
> > > > > reply would
> > > > > > fail with an property not found type exception. :-/
> > > > > > One way around this is to have a Hashmap within the
> > > > > hashmapped dynaform.
> > > > > > That will allow you to do something like:
> > > > > >
> > > > > > Hashmap myDynaproperties =
> > > > > (Hashmap)myDynaform.get("dynaProperties");
> > > > > > myDynaproperties.set("foo", bar);
> > > > > > Etc.
> > > > > >
> > > > > > Another possibility (although I havent tried it) is to operate
> > > > > > directly on the map.
> > > > > >
> > > > > > myDynaproperties.getMap().put("foo", bar);
> > > > > >
> > > > > > -Tim
> > > > > >
> > > > > > -Original Message-
> > > > > > From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, October 13, 2003 3:21 PM
> > > > > > To: 'Struts Users Mailing List'
> > > > > > Subject: RE: DynaActionForms
> > > > > >
> > > > > >
> > > > > > yourdynaform.set("propertyname",propertyvalue);
> > > > > >
> > > > > > > -Mensaje original-
> > > > > > > De: Edgar P Dollin [mailto:[EMAIL PROTECTED] Enviado el:
> > > > > > > lunes, 13 de octubre de 2003 19:35
> > > > > > > Para: Struts Users Mailing List
> > > > > > > Asunto: DynaActionForms
> > > > > > >
> > > > > > >
> > > > > > > I have an application with configu

Help on Struts- Tiles Tab

2003-10-14 Thread Lim Huat Heng
To anyone who may advise:
  I have written the following in my tiles-defs.xml and I am using Tomcat 5.0.9 with 
Struts 1.0x.
  
 http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>

  
  




  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  

  


  
  


When I try to run my jsp page, I found that the tabList is null. Could anyone 
advise what has been wrong and how should I resolve this problem? Thanks in advance.


Re: Converting to Struts, where to put Servlet init() code?

2003-10-14 Thread Kris Schneider
As usual, lots of ways to skin that cat. You could just leave it in a 
separate servlet and have its  value precede the Struts 
servlet. You could also use a Struts PlugIn. If you're using a Servlet 
2.3 container, you could use a ServletContextListener.

As for the handler object, a Servlet 2.3 container would allow you to 
use a Filter. Another possibility would be to extend RequestProcessor 
with a class that implements processPreprocess.

If the setup and request authentication don't depend on any Struts 
classes, I'd opt for the ServletContextListener and Filter approach.

Wendy Smoak wrote:

I'm converting an existing webapp to Struts.  I have some code in a
Servlet init() method, and I don't immediately see where I should put
it.  This is an authentication/authorization webapp, and the code in
question sets up an authentication handler object to be used by every
subsequent request.
What's guaranteed to get executed before the Action code?  (I'm almost
thinking Filter, and to put the object in Application scope, but I'm not
sure yet.)
Any advice?
--
Kris Schneider 
D.O.Tech   


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


RE: Converting to Struts, where to put Servlet init() code?

2003-10-14 Thread Edgar P Dollin
I have done authentication filters and they work very nicely with struts.

Edgar

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 6:43 PM
> To: [EMAIL PROTECTED]
> Subject: Converting to Struts, where to put Servlet init() code?
> 
> 
> 
> I'm converting an existing webapp to Struts.  I have some 
> code in a Servlet init() method, and I don't immediately see 
> where I should put it.  This is an 
> authentication/authorization webapp, and the code in question 
> sets up an authentication handler object to be used by every 
> subsequent request.
> 
> What's guaranteed to get executed before the Action code?  
> (I'm almost thinking Filter, and to put the object in 
> Application scope, but I'm not sure yet.)
> 
> Any advice?
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM 
> 

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



RE: Basic tag library question

2003-10-14 Thread Edgar P Dollin
Use the HTML:TEXT with readonly="true/false".  The true or false can be
rendered either with a JSP expression or JSTL.

Edgar

> -Original Message-
> From: Jacob Wilson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 7:01 PM
> To: [EMAIL PROTECTED]
> Subject: Basic tag library question
> 
> 
> Hi...
>  
> Is there any tld that is available to handle my  type=image> apart from the struts html tld???
>  
> I need to make the image disabled or enabled based on the 
> security level that I will be getting from DB...
>  
> I know we can do this thru the struts html tag lib werein we 
> can set the default attribute to either true or false!! Was 
> wondering whether there are any other taglibs... I checked 
> the input tag lib from jakarta, they do not have it for image!!!
>  
> Let me know and also please correct me if I had mentioned 
> anything wrong above...
>  
> Thanks.
> -Jacob.
> 
> 
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> 

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



Re: ezmlm response

2003-10-14 Thread Mary Remillard
Hi I'm new to Struts and Tiles and I'm having a problem getting 
the Action class to be instantiated and it's execute method
called when I use a tile definition under certain circumstances. 
I need the execute method called in both cases since I need to 
prepopulate the form

Case that works
---
When tile definition is processed using link action in a jsp




I see this in the log that /common/customerDetail is processed
by org.apache.struts.tiles.TileRequestProcess as definition
'.layout.customerDetail'. It then goes on to look up the ActionBean,
look up the Action instance for the class and calls that Action
instances execute() method. Which is exactly what I want.

Case that doesn't work
--
But when the tile definition is processed using the ActionForward
returned from  Action.execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)

I see in the log that it's just inserting the page and not looking
up the Action instance class and calling the execute method:

2003-10-14 17:01:27,366 [Thread-4] DEBUG 
org.apache.struts.taglib.tiles.InsertTag  
- insert page='/common/customerList.jsp'.

How can I get the execute method to be called in the 2nd case? Thanks
for the help.


tile definition xml snippet



  
  
  
  
  
  
   


  
  
  
  
  
   


  
  
  
  
   


 struts-config.xml file snippet























layout.jsp snippet for using definition






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



Re: Bean:write to c:out conversion for something in .properties file

2003-10-14 Thread Kris Schneider
Wendy Smoak wrote:

Okay, apparently I can't read.  It was a  tag, not a
 tag!  Since  WAS ported to Struts-EL, I
assume that there is something you can do with  that you
cannot do with . What would that be?
The biggest difference is that  is hooked into the 
internals of Struts. I'm guessing this is most evident when switching 
modules. However, I've hacked a quick JSTLSwitchAction that seems to 
keep the default JSTL localization context in sync with module changes.

I'm trying to use as many JSTL tags as possible, and I generally use the
Struts-EL README.txt file to tell me what I should use.  In this case,
the README.txt file would have led me to use the Struts-EL tag when
there is an equivalent JSTL tag.
I'm not entirely conviced that I even _need_ to put labels in a
.properties file.  Is i18n the only reason to do so?  I'm 99.9% sure
this webapp will *never* need to be displayed in other than English.
One other reason would be the added level of indirection. In other 
words, it keeps string literals out of your code/page. Even for a single 
language, you may want to change the actual text represented by a key. 
If that text needs to appear in more than one place, it's a lot easier 
to just modify the property file.

--
Kris Schneider 
D.O.Tech   


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


Difficulty getting html:message tag to work.

2003-10-14 Thread Matt & Toni Willis
Hi,
 
I'm using Struts 1.1, and am attempting to utilize the new
ActionMessages class with the  tag.
 
I have the following code in my Action class:
 
actionMessages.add("message", new
ActionMessage("error.systemAuthentication.failure"));
  saveMessages(request, actionMessages);
 
 
 
With the corresponding tags in my jsp:
 



 
 
No message is being rendered in the html page though.
 
I think I'm definitely misunderstanding the concept behing both
ActionMessages and htmL:message.
 
 
Thanks in advance:
 
Matt
 


RE: Bean:write to c:out conversion for something in .properties file

2003-10-14 Thread Wendy Smoak

Okay, apparently I can't read.  It was a  tag, not a
 tag!  Since  WAS ported to Struts-EL, I
assume that there is something you can do with  that you
cannot do with . What would that be?

I'm trying to use as many JSTL tags as possible, and I generally use the
Struts-EL README.txt file to tell me what I should use.  In this case,
the README.txt file would have led me to use the Struts-EL tag when
there is an equivalent JSTL tag.

I'm not entirely conviced that I even _need_ to put labels in a
.properties file.  Is i18n the only reason to do so?  I'm 99.9% sure
this webapp will *never* need to be displayed in other than English.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 4:36 PM
To: Struts Users Mailing List
Subject: Re: Bean:write to c:out conversion for something in .properties
file


Put the following in web.xml:


 
javax.servlet.jsp.jstl.fmt.localizationContext
   ApplicationResources


and then use:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>



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



Re: Basic question about the struts sample application

2003-10-14 Thread Xiuyu Zhang
Sorry that I misunderstand your question.  I thought
logoff.do in mapping to index.jsp according to the
struts-config.xml.  I did not know it will be
forwarded to logon.jsp.

Katelyn
--- Julien Martin <[EMAIL PROTECTED]> wrote:
> Hello Katelyn,
> I have disabled the local forward and it is now the
> *global* forward that is
> being used ( path="/logoff.do"/>).  My question is how
> does the application know that "logoff.do" is mapped
> to the "logon.jsp"
> page?
> Julien.
> 
> - Original Message -
> From: "Xiuyu Zhang" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 12:26 AM
> Subject: Re: Basic question about the struts sample
> application
> 
> 
> > The mapping are handled in the struts-config.xml
> file.
> >  If you take a look at the  tag, you
> > will find the action's path.  Inside the 
> tag,
> > you will find a  tag; hence, the
> /logoff.do
> > knows who to forward to.
> >
> > Hope this help.
> >
> > katelyn
> > --- Julien Martin <[EMAIL PROTECTED]>
> wrote:
> > > Hello,
> > >
> > > I am going through the struts sample application
> > > (struts-example.war) and I
> > > am trying to understand the firtst global
> forward.
> > > Here it is:
> > >
> > > ***
> > >  > > path="/logoff.do"/>
> > > ***
> > >
> > > How does the application knows that "logoff.do"
> is
> > > mapped to the logon.jsp
> > > page?
> > >
> > > Can anyone answer this question please?
> > >
> > > Thanks in advance,
> > >
> > > Julien.
> > >
> > > - Original Message -
> > > From: "Christian Bollmeyer"
> > > <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List"
> > > <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 14, 2003 11:19 PM
> > > Subject: Re: IDE
> > >
> > >
> > > > Am Dienstag, 14. Oktober 2003 16:43 schrieb
> Duncan
> > > Mills:
> > > >
> > > > Oracle JDev 10g has quickly become my favorite
> > > Struts IDE,
> > > > even running under Linux quite alright at home
> > > though this is
> > > > not a supported platform yet. That is, if you
> > > steer clear from
> > > > the Metal L&F and can live with the fact that
> 10g
> > > always
> > > > forgets the browser command line (even if you
> > > manually
> > > > edit the configuration file, don't remember
> how
> > > it's called
> > > > now). Otherwise, it's great, and considering
> > > Struts support,
> > > > it's something like Struts Studio++, though I
> > > usually don't
> > > > use the integrated modelers and do the UML
> work
> > > with
> > > > Poseidon UML 2.0 at home. Still, probably the
> best
> > > > allround Java IDE around.
> > > >
> > > > Considering 'free': in my understanding, JDev
> is
> > > free
> > > > for download (well...) and using it for an
> > > unlimited
> > > > evaluation period. For production use, you
> must
> > > > license it. That's ok, I think. Comes the
> price
> > > tag:
> > > > IIRC, JDev 9i was sold for $ 995, including
> > > support.
> > > > How will it be with 10g in this direction? Not
> > > that
> > > > I'm directly affected, as we're Oracle
> Alliance
> > > > partners and get the whole range of Oracle
> > > > software anyway, but the price tag for the
> final
> > > > version of 10g would still be interesting.
> > > Generally,
> > > > it really would be helpful if Oracle could
> just
> > > say:
> > > > using our products costs this per named user
> > > > and that per CPU, and you get an x% rebate for
> > > > ASFU licenses. But if Oracle says 'free', it
> > > should
> > > > really be 'free' in the common understanding
> of
> > > the
> > > > term, and not: free to download (never got
> charged
> > > > for just downloading anything, IIRC) and
> > > evaluation.
> > > > So better say: JDev costs $ , but we grant
> > > > you a free, unlimited evalutation license
> period.
> > > > This way round :-)
> > > >
> > > > Finally, I'll misuse the list for some
> > > JDev-related
> > > > problem I couldn't find any solution for
> neither
> > > at
> > > > OTN nor by consulting orionserver.com (noting
> > > > that OTN searches are our last resort, as even
> > > > UltraSearch seems to be always presenting
> > > > the *least* relevant topics first, with a
> special
> > > > knack for early 8.1.5 documentation). The
> > > > problem is that we are currently porting a
> > > > subproject from Sun ONE to JDev. Everything
> > > > went well, but we still have a Bean factory
> that's
> > > > accessed via JNDI. The general idea is that
> > > > my developers should be able to to not just
> > > > write their code in JDev, but also make use
> > > > of its 'Run' or 'Debug' features. This means,
> > > > everything has to run in the integrated OC4J
> > > > container, of course.  So my question is:
> > > > how do you tell OC4J about additional
> > > > JNDI resources available that are not
> > > > DataSources (in Sun ONE | Tomcat, you do
> > > > this via server.xml). We already found out
> that
> > > > -oc4j-app.xml seems to b

path="http://URL"?????

2003-10-14 Thread Mick Knutson
Can I add a path statement that has a fully qualified URL in it?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



logic:iterate tag with html:select

2003-10-14 Thread Xiuyu Zhang
Hi all,

I am try it to do a list in the action class and pass
it to a jsp page as the html:select options.  I am
using Strut 1.0.

in the action class, I do this:


ArrayList codes = new ArrayList();
codes.add("--select one--");

request.setAttribute("CODES", codes);

in jsp, I try to do:








submit  
 


I got the following errors:

Compilation of
'C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_hesm_dir_hesm\jsp_servlet\__hospitalsearch.java'
failed:


C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_hesm_dir_hesm\jsp_servlet\__hospitalsearch.java:319:
cannot resolve symbol
probably occurred due to an error in
/hospitalsearch.jsp line 52:




Full compiler error(s):
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_hesm_dir_hesm\jsp_servlet\__hospitalsearch.java:319:
cannot resolve symbol
symbol  : method setValue (java.lang.Object)
location: class
org.apache.struts.taglib.html.OptionTag
 
_html_option0.setValue(code.get(ctr.intValue())); //[
/hospitalsearch.jsp; Line: 52]
   ^
1 error



Do you know how can I make it right?

Thanks,
katlyn


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



IMPORTANT: internationalize large chunks of text/HTML

2003-10-14 Thread Mick Knutson
I have posted this before, and I still am trying to understand the best way
to approach this.

I have 100% of my labels in a Resource bundle currently. But I also have
larger pages of text (1-2 pages at a time), that I need to be
internationalized just like my labels. I am wondering what the best way to
do this is?
I just want to know what other people are doing that is easy on maintenance.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



Converting to Struts, where to put Servlet init() code?

2003-10-14 Thread Wendy Smoak

I'm converting an existing webapp to Struts.  I have some code in a
Servlet init() method, and I don't immediately see where I should put
it.  This is an authentication/authorization webapp, and the code in
question sets up an authentication handler object to be used by every
subsequent request.

What's guaranteed to get executed before the Action code?  (I'm almost
thinking Filter, and to put the object in Application scope, but I'm not
sure yet.)

Any advice?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

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



Basic tag library question

2003-10-14 Thread Jacob Wilson
Hi...
 
Is there any tld that is available to handle my  apart from the 
struts html tld???
 
I need to make the image disabled or enabled based on the security level that I will 
be getting from DB...
 
I know we can do this thru the struts html tag lib werein we can set the default 
attribute to either true or false!! Was wondering whether there are any other 
taglibs... I checked the input tag lib from jakarta, they do not have it for image!!!
 
Let me know and also please correct me if I had mentioned anything wrong above...
 
Thanks.
-Jacob.


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: IDE

2003-10-14 Thread Martin Gainty
http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-j2ca.html

viel Glueck

-Martin
- Original Message - 
From: "Christian Bollmeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 5:19 PM
Subject: Re: IDE


> Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan Mills:
> 
> Oracle JDev 10g has quickly become my favorite Struts IDE,
> even running under Linux quite alright at home though this is
> not a supported platform yet. That is, if you steer clear from
> the Metal L&F and can live with the fact that 10g always
> forgets the browser command line (even if you manually
> edit the configuration file, don't remember how it's called
> now). Otherwise, it's great, and considering Struts support,
> it's something like Struts Studio++, though I usually don't
> use the integrated modelers and do the UML work with
> Poseidon UML 2.0 at home. Still, probably the best
> allround Java IDE around.
> 
> Considering 'free': in my understanding, JDev is free
> for download (well...) and using it for an unlimited
> evaluation period. For production use, you must
> license it. That's ok, I think. Comes the price tag:
> IIRC, JDev 9i was sold for $ 995, including support.
> How will it be with 10g in this direction? Not that
> I'm directly affected, as we're Oracle Alliance
> partners and get the whole range of Oracle
> software anyway, but the price tag for the final
> version of 10g would still be interesting. Generally,
> it really would be helpful if Oracle could just say:
> using our products costs this per named user
> and that per CPU, and you get an x% rebate for
> ASFU licenses. But if Oracle says 'free', it should
> really be 'free' in the common understanding of the
> term, and not: free to download (never got charged
> for just downloading anything, IIRC) and evaluation.
> So better say: JDev costs $ , but we grant
> you a free, unlimited evalutation license period.
> This way round :-)  
> 
> Finally, I'll misuse the list for some JDev-related
> problem I couldn't find any solution for neither at
> OTN nor by consulting orionserver.com (noting
> that OTN searches are our last resort, as even
> UltraSearch seems to be always presenting
> the *least* relevant topics first, with a special
> knack for early 8.1.5 documentation). The
> problem is that we are currently porting a
> subproject from Sun ONE to JDev. Everything
> went well, but we still have a Bean factory that's
> accessed via JNDI. The general idea is that
> my developers should be able to to not just
> write their code in JDev, but also make use
> of its 'Run' or 'Debug' features. This means,
> everything has to run in the integrated OC4J
> container, of course.  So my question is:
> how do you tell OC4J about additional
> JNDI resources available that are not 
> DataSources (in Sun ONE | Tomcat, you do
> this via server.xml). We already found out that 
> -oc4j-app.xml seems to be part
> of the solution, but adding the fitting
>  entries there only led to
> 'type unknown' JNDI errors in the JSP stack
> trace. Yes, we even added everything feasible
> to /lib and system classpath. Do you possibly
> know a solution? Currently, the application
> still runs in Tomcat, and we debug it via
> log4j, ie. the 'old way'. Did cost us 3 
> man-days already, btw.
> 
> -- Chris
> 
> > Depends on your interpretation of the word open in this context, if 
> > it's "Free to download and evaluate" then try Oracle JDeveloper 10g
> > Preview release http://otn.oracle.com/products/jdev
> > If the definition is "Product that I will never, ever, ever have to
> > pay for" then ignore this.
> >
> > Regards
> >
> > Duncan Mills
> > - Original Message -
> > From: "virupaksha" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 14, 2003 9:48 AM
> > Subject: IDE
> >
> >
> > Dear All,
> >
> > I am working on struts using exadel struts studio,
> > Can any one know other open IDE for struts ..?
> > especially for designing View(Drag & drop approach..?)
> >
> > let me know please..
> >
> > Regards,
> > viru
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Bean:write to c:out conversion for something in .properties file

2003-10-14 Thread Kris Schneider
Put the following in web.xml:


  javax.servlet.jsp.jstl.fmt.localizationContext
  ApplicationResources

and then use:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>



Wendy Smoak wrote:

The struts-example webapp has the following in logon.jsp:
   :
The message comes from ApplicationResources.properties.  The README file
for Struts-El says that  is replaced by .  How do I
write out something in the .properties file?
I looked at bean-write.jsp in the strutsel-exercise-taglib webapp, but
did not see an example of this.
I'm working with the 10/14 nightly build.  Has anyone done an EL version
of struts-example?  

I don't have i18n issues, I can just as well hard-code the labels, but I
thought I'd try to follow more best practices this time around.
--
Kris Schneider 
D.O.Tech   


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


Bean:write to c:out conversion for something in .properties file

2003-10-14 Thread Wendy Smoak

The struts-example webapp has the following in logon.jsp:
   :

The message comes from ApplicationResources.properties.  The README file
for Struts-El says that  is replaced by .  How do I
write out something in the .properties file?

I looked at bean-write.jsp in the strutsel-exercise-taglib webapp, but
did not see an example of this.

I'm working with the 10/14 nightly build.  Has anyone done an EL version
of struts-example?  

I don't have i18n issues, I can just as well hard-code the labels, but I
thought I'd try to follow more best practices this time around.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

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



Basic question about the struts sample application

2003-10-14 Thread Julien Martin
Hello Katelyn,
I have disabled the local forward and it is now the *global* forward that is
being used ().  My question is how
does the application know that "logoff.do" is mapped to the "logon.jsp"
page?
Julien.

- Original Message -
From: "Xiuyu Zhang" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 12:26 AM
Subject: Re: Basic question about the struts sample application


> The mapping are handled in the struts-config.xml file.
>  If you take a look at the  tag, you
> will find the action's path.  Inside the  tag,
> you will find a  tag; hence, the /logoff.do
> knows who to forward to.
>
> Hope this help.
>
> katelyn
> --- Julien Martin <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am going through the struts sample application
> > (struts-example.war) and I
> > am trying to understand the firtst global forward.
> > Here it is:
> >
> > ***
> >  > path="/logoff.do"/>
> > ***
> >
> > How does the application knows that "logoff.do" is
> > mapped to the logon.jsp
> > page?
> >
> > Can anyone answer this question please?
> >
> > Thanks in advance,
> >
> > Julien.
> >
> > - Original Message -
> > From: "Christian Bollmeyer"
> > <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 14, 2003 11:19 PM
> > Subject: Re: IDE
> >
> >
> > > Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan
> > Mills:
> > >
> > > Oracle JDev 10g has quickly become my favorite
> > Struts IDE,
> > > even running under Linux quite alright at home
> > though this is
> > > not a supported platform yet. That is, if you
> > steer clear from
> > > the Metal L&F and can live with the fact that 10g
> > always
> > > forgets the browser command line (even if you
> > manually
> > > edit the configuration file, don't remember how
> > it's called
> > > now). Otherwise, it's great, and considering
> > Struts support,
> > > it's something like Struts Studio++, though I
> > usually don't
> > > use the integrated modelers and do the UML work
> > with
> > > Poseidon UML 2.0 at home. Still, probably the best
> > > allround Java IDE around.
> > >
> > > Considering 'free': in my understanding, JDev is
> > free
> > > for download (well...) and using it for an
> > unlimited
> > > evaluation period. For production use, you must
> > > license it. That's ok, I think. Comes the price
> > tag:
> > > IIRC, JDev 9i was sold for $ 995, including
> > support.
> > > How will it be with 10g in this direction? Not
> > that
> > > I'm directly affected, as we're Oracle Alliance
> > > partners and get the whole range of Oracle
> > > software anyway, but the price tag for the final
> > > version of 10g would still be interesting.
> > Generally,
> > > it really would be helpful if Oracle could just
> > say:
> > > using our products costs this per named user
> > > and that per CPU, and you get an x% rebate for
> > > ASFU licenses. But if Oracle says 'free', it
> > should
> > > really be 'free' in the common understanding of
> > the
> > > term, and not: free to download (never got charged
> > > for just downloading anything, IIRC) and
> > evaluation.
> > > So better say: JDev costs $ , but we grant
> > > you a free, unlimited evalutation license period.
> > > This way round :-)
> > >
> > > Finally, I'll misuse the list for some
> > JDev-related
> > > problem I couldn't find any solution for neither
> > at
> > > OTN nor by consulting orionserver.com (noting
> > > that OTN searches are our last resort, as even
> > > UltraSearch seems to be always presenting
> > > the *least* relevant topics first, with a special
> > > knack for early 8.1.5 documentation). The
> > > problem is that we are currently porting a
> > > subproject from Sun ONE to JDev. Everything
> > > went well, but we still have a Bean factory that's
> > > accessed via JNDI. The general idea is that
> > > my developers should be able to to not just
> > > write their code in JDev, but also make use
> > > of its 'Run' or 'Debug' features. This means,
> > > everything has to run in the integrated OC4J
> > > container, of course.  So my question is:
> > > how do you tell OC4J about additional
> > > JNDI resources available that are not
> > > DataSources (in Sun ONE | Tomcat, you do
> > > this via server.xml). We already found out that
> > > -oc4j-app.xml seems to be part
> > > of the solution, but adding the fitting
> > >  entries there only led to
> > > 'type unknown' JNDI errors in the JSP stack
> > > trace. Yes, we even added everything feasible
> > > to /lib and system classpath. Do you possibly
> > > know a solution? Currently, the application
> > > still runs in Tomcat, and we debug it via
> > > log4j, ie. the 'old way'. Did cost us 3
> > > man-days already, btw.
> > >
> > > -- Chris
> > >
> > > > Depends on your interpretation of the word open
> > in this context, if
> > > > it's "Free to download and evaluate" then 

Re: Basic question about the struts sample application

2003-10-14 Thread Xiuyu Zhang
The mapping are handled in the struts-config.xml file.
 If you take a look at the  tag, you
will find the action's path.  Inside the  tag,
you will find a  tag; hence, the /logoff.do
knows who to forward to.

Hope this help.

katelyn
--- Julien Martin <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am going through the struts sample application
> (struts-example.war) and I
> am trying to understand the firtst global forward. 
> Here it is:
> 
> ***
>  path="/logoff.do"/>
> ***
> 
> How does the application knows that "logoff.do" is
> mapped to the logon.jsp
> page?
> 
> Can anyone answer this question please?
> 
> Thanks in advance,
> 
> Julien.
> 
> - Original Message -
> From: "Christian Bollmeyer"
> <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, October 14, 2003 11:19 PM
> Subject: Re: IDE
> 
> 
> > Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan
> Mills:
> >
> > Oracle JDev 10g has quickly become my favorite
> Struts IDE,
> > even running under Linux quite alright at home
> though this is
> > not a supported platform yet. That is, if you
> steer clear from
> > the Metal L&F and can live with the fact that 10g
> always
> > forgets the browser command line (even if you
> manually
> > edit the configuration file, don't remember how
> it's called
> > now). Otherwise, it's great, and considering
> Struts support,
> > it's something like Struts Studio++, though I
> usually don't
> > use the integrated modelers and do the UML work
> with
> > Poseidon UML 2.0 at home. Still, probably the best
> > allround Java IDE around.
> >
> > Considering 'free': in my understanding, JDev is
> free
> > for download (well...) and using it for an
> unlimited
> > evaluation period. For production use, you must
> > license it. That's ok, I think. Comes the price
> tag:
> > IIRC, JDev 9i was sold for $ 995, including
> support.
> > How will it be with 10g in this direction? Not
> that
> > I'm directly affected, as we're Oracle Alliance
> > partners and get the whole range of Oracle
> > software anyway, but the price tag for the final
> > version of 10g would still be interesting.
> Generally,
> > it really would be helpful if Oracle could just
> say:
> > using our products costs this per named user
> > and that per CPU, and you get an x% rebate for
> > ASFU licenses. But if Oracle says 'free', it
> should
> > really be 'free' in the common understanding of
> the
> > term, and not: free to download (never got charged
> > for just downloading anything, IIRC) and
> evaluation.
> > So better say: JDev costs $ , but we grant
> > you a free, unlimited evalutation license period.
> > This way round :-)
> >
> > Finally, I'll misuse the list for some
> JDev-related
> > problem I couldn't find any solution for neither
> at
> > OTN nor by consulting orionserver.com (noting
> > that OTN searches are our last resort, as even
> > UltraSearch seems to be always presenting
> > the *least* relevant topics first, with a special
> > knack for early 8.1.5 documentation). The
> > problem is that we are currently porting a
> > subproject from Sun ONE to JDev. Everything
> > went well, but we still have a Bean factory that's
> > accessed via JNDI. The general idea is that
> > my developers should be able to to not just
> > write their code in JDev, but also make use
> > of its 'Run' or 'Debug' features. This means,
> > everything has to run in the integrated OC4J
> > container, of course.  So my question is:
> > how do you tell OC4J about additional
> > JNDI resources available that are not
> > DataSources (in Sun ONE | Tomcat, you do
> > this via server.xml). We already found out that
> > -oc4j-app.xml seems to be part
> > of the solution, but adding the fitting
> >  entries there only led to
> > 'type unknown' JNDI errors in the JSP stack
> > trace. Yes, we even added everything feasible
> > to /lib and system classpath. Do you possibly
> > know a solution? Currently, the application
> > still runs in Tomcat, and we debug it via
> > log4j, ie. the 'old way'. Did cost us 3
> > man-days already, btw.
> >
> > -- Chris
> >
> > > Depends on your interpretation of the word open
> in this context, if
> > > it's "Free to download and evaluate" then try
> Oracle JDeveloper 10g
> > > Preview release
> http://otn.oracle.com/products/jdev
> > > If the definition is "Product that I will never,
> ever, ever have to
> > > pay for" then ignore this.
> > >
> > > Regards
> > >
> > > Duncan Mills
> > > - Original Message -
> > > From: "virupaksha" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 14, 2003 9:48 AM
> > > Subject: IDE
> > >
> > >
> > > Dear All,
> > >
> > > I am working on struts using exadel struts
> studio,
> > > Can any one know other open IDE for struts ..?
> > > especially for designing View(Drag & drop
> approach..?)
> > >
> > > let me know please..
> > >
>

Basic question about the struts sample application

2003-10-14 Thread Julien Martin
Hello,

I am going through the struts sample application (struts-example.war) and I
am trying to understand the firtst global forward.  Here it is:

***

***

How does the application knows that "logoff.do" is mapped to the logon.jsp
page?

Can anyone answer this question please?

Thanks in advance,

Julien.

- Original Message -
From: "Christian Bollmeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 11:19 PM
Subject: Re: IDE


> Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan Mills:
>
> Oracle JDev 10g has quickly become my favorite Struts IDE,
> even running under Linux quite alright at home though this is
> not a supported platform yet. That is, if you steer clear from
> the Metal L&F and can live with the fact that 10g always
> forgets the browser command line (even if you manually
> edit the configuration file, don't remember how it's called
> now). Otherwise, it's great, and considering Struts support,
> it's something like Struts Studio++, though I usually don't
> use the integrated modelers and do the UML work with
> Poseidon UML 2.0 at home. Still, probably the best
> allround Java IDE around.
>
> Considering 'free': in my understanding, JDev is free
> for download (well...) and using it for an unlimited
> evaluation period. For production use, you must
> license it. That's ok, I think. Comes the price tag:
> IIRC, JDev 9i was sold for $ 995, including support.
> How will it be with 10g in this direction? Not that
> I'm directly affected, as we're Oracle Alliance
> partners and get the whole range of Oracle
> software anyway, but the price tag for the final
> version of 10g would still be interesting. Generally,
> it really would be helpful if Oracle could just say:
> using our products costs this per named user
> and that per CPU, and you get an x% rebate for
> ASFU licenses. But if Oracle says 'free', it should
> really be 'free' in the common understanding of the
> term, and not: free to download (never got charged
> for just downloading anything, IIRC) and evaluation.
> So better say: JDev costs $ , but we grant
> you a free, unlimited evalutation license period.
> This way round :-)
>
> Finally, I'll misuse the list for some JDev-related
> problem I couldn't find any solution for neither at
> OTN nor by consulting orionserver.com (noting
> that OTN searches are our last resort, as even
> UltraSearch seems to be always presenting
> the *least* relevant topics first, with a special
> knack for early 8.1.5 documentation). The
> problem is that we are currently porting a
> subproject from Sun ONE to JDev. Everything
> went well, but we still have a Bean factory that's
> accessed via JNDI. The general idea is that
> my developers should be able to to not just
> write their code in JDev, but also make use
> of its 'Run' or 'Debug' features. This means,
> everything has to run in the integrated OC4J
> container, of course.  So my question is:
> how do you tell OC4J about additional
> JNDI resources available that are not
> DataSources (in Sun ONE | Tomcat, you do
> this via server.xml). We already found out that
> -oc4j-app.xml seems to be part
> of the solution, but adding the fitting
>  entries there only led to
> 'type unknown' JNDI errors in the JSP stack
> trace. Yes, we even added everything feasible
> to /lib and system classpath. Do you possibly
> know a solution? Currently, the application
> still runs in Tomcat, and we debug it via
> log4j, ie. the 'old way'. Did cost us 3
> man-days already, btw.
>
> -- Chris
>
> > Depends on your interpretation of the word open in this context, if
> > it's "Free to download and evaluate" then try Oracle JDeveloper 10g
> > Preview release http://otn.oracle.com/products/jdev
> > If the definition is "Product that I will never, ever, ever have to
> > pay for" then ignore this.
> >
> > Regards
> >
> > Duncan Mills
> > - Original Message -
> > From: "virupaksha" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 14, 2003 9:48 AM
> > Subject: IDE
> >
> >
> > Dear All,
> >
> > I am working on struts using exadel struts studio,
> > Can any one know other open IDE for struts ..?
> > especially for designing View(Drag & drop approach..?)
> >
> > let me know please..
> >
> > Regards,
> > viru
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: IDE

2003-10-14 Thread Christian Bollmeyer
Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan Mills:

Oracle JDev 10g has quickly become my favorite Struts IDE,
even running under Linux quite alright at home though this is
not a supported platform yet. That is, if you steer clear from
the Metal L&F and can live with the fact that 10g always
forgets the browser command line (even if you manually
edit the configuration file, don't remember how it's called
now). Otherwise, it's great, and considering Struts support,
it's something like Struts Studio++, though I usually don't
use the integrated modelers and do the UML work with
Poseidon UML 2.0 at home. Still, probably the best
allround Java IDE around.

Considering 'free': in my understanding, JDev is free
for download (well...) and using it for an unlimited
evaluation period. For production use, you must
license it. That's ok, I think. Comes the price tag:
IIRC, JDev 9i was sold for $ 995, including support.
How will it be with 10g in this direction? Not that
I'm directly affected, as we're Oracle Alliance
partners and get the whole range of Oracle
software anyway, but the price tag for the final
version of 10g would still be interesting. Generally,
it really would be helpful if Oracle could just say:
using our products costs this per named user
and that per CPU, and you get an x% rebate for
ASFU licenses. But if Oracle says 'free', it should
really be 'free' in the common understanding of the
term, and not: free to download (never got charged
for just downloading anything, IIRC) and evaluation.
So better say: JDev costs $ , but we grant
you a free, unlimited evalutation license period.
This way round :-)  

Finally, I'll misuse the list for some JDev-related
problem I couldn't find any solution for neither at
OTN nor by consulting orionserver.com (noting
that OTN searches are our last resort, as even
UltraSearch seems to be always presenting
the *least* relevant topics first, with a special
knack for early 8.1.5 documentation). The
problem is that we are currently porting a
subproject from Sun ONE to JDev. Everything
went well, but we still have a Bean factory that's
accessed via JNDI. The general idea is that
my developers should be able to to not just
write their code in JDev, but also make use
of its 'Run' or 'Debug' features. This means,
everything has to run in the integrated OC4J
container, of course.  So my question is:
how do you tell OC4J about additional
JNDI resources available that are not 
DataSources (in Sun ONE | Tomcat, you do
this via server.xml). We already found out that 
-oc4j-app.xml seems to be part
of the solution, but adding the fitting
 entries there only led to
'type unknown' JNDI errors in the JSP stack
trace. Yes, we even added everything feasible
to /lib and system classpath. Do you possibly
know a solution? Currently, the application
still runs in Tomcat, and we debug it via
log4j, ie. the 'old way'. Did cost us 3 
man-days already, btw.

-- Chris

> Depends on your interpretation of the word open in this context, if 
> it's "Free to download and evaluate" then try Oracle JDeveloper 10g
> Preview release http://otn.oracle.com/products/jdev
> If the definition is "Product that I will never, ever, ever have to
> pay for" then ignore this.
>
> Regards
>
> Duncan Mills
> - Original Message -
> From: "virupaksha" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 14, 2003 9:48 AM
> Subject: IDE
>
>
> Dear All,
>
> I am working on struts using exadel struts studio,
> Can any one know other open IDE for struts ..?
> especially for designing View(Drag & drop approach..?)
>
> let me know please..
>
> Regards,
> viru
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Indexed Properties examples?

2003-10-14 Thread Karr, David
Try changing the property value reference in your JSP to reference
"awardIndexed" instead of "AwardIndexed".  That might help, but I'm not
certain.

> -Original Message-
> From: Michael Blair [mailto:[EMAIL PROTECTED] 
> 
> I am still trying to get this to work. I simply want to 
> display records in
> table format in a browser and be able to change the data, do 
> a submit and
> have access to the changes back in the action. Currently I am 
> getting :
> "HTTP ERROR: 500 No getter method for property 
> AwardIndexed[0].safAwardCode
> of bean awards"
> 
> If I can offer anymore info, please ask. Also, if anyone has a working
> example of this I would love to see the snippets of the jsp, 
> formbean and
> any other relevant parts.
> 
> Mike
> 
> Here are some snippets.
> .jsp -
>  id="awards"
> scope="session" indexId="ctr">
>
>
> 
> form bean -
>   private ArrayList awards;
>  public void setAwardIndexed(int index, AwardMasView ob){
>   System.out.println("setAward");
>   this.awards.set(index, ob);
>  }
> 
>  public AwardMasView getAwardIndexed(int index){
>   System.out.println("getAward");
>   return (AwardMasView)this.awards.get(index);
>  }

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



Re: Multiple select and string arrays [solved]

2003-10-14 Thread Matt Raible
Nevermind, I was appending the request parameters in a filter even when
posting - causing a duplication in request parameters.  I changed my filter
to only do this on a "get" and everything seems to be fixed.

Matt


On 10/14/03 2:05 PM, "Matt Raible" <[EMAIL PROTECTED]> wrote:

> I have an  and String[]
> getters/setters/variables in my Form.  For some reason, the selected value
> is passed through twice, meaning that if we select "1" in the , "1,
> 1" gets passed in.  Has anyone seen this behavior.  It's highly likely that
> this is a result of a filter we're using, but just wanted to put a probe out
> in case it's not.  Back to investigating
> 
> Matt
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: validator

2003-10-14 Thread Joe at Team345

You have to play around with it a bit.  Try something like this:


 
  
 
datePattern
MM/dd/
   


Last your form name that this field declaration is in better be "user" else
the "user.date" is incorrect.  Also your use of "users.userDate" is
different from what I do.  I just include the name of the property on the
form.  So if your Form name is "user" (not "User" or "users") then you can
just put "userDate" there.

hth

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: validator
>
>
> Hello all:
>
> I'm having problems using the Validator plugin to check a date field.
>
> In the form i have a simple textbox and I'm using the following
> validation:
>
>   
>
>
>   datePattern
>   MM/dd/
>  
>   
>
>
> On submit I get the error: "datePattern has no properties".
> I traced down the error to a line of code where de length of the
> variables is tested:
>   if(datePattern.lenght>0){
>
>
> This code is generated by Validator so I don't know what to do about it.
>
> Any ideas?
>
>
>
> Thanks in advanced.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



AW: validator

2003-10-14 Thread Matthias Wessendorf
Hi,

Use this

  datePatternStrict 
  dd.MM. 
  

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 14. Oktober 2003 21:59
An: [EMAIL PROTECTED]
Betreff: validator


Hello all:

I'm having problems using the Validator plugin to check a date field.

In the form i have a simple textbox and I'm using the following
validation:


 
 
datePattern
MM/dd/
 
 


On submit I get the error: "datePattern has no properties".
I traced down the error to a line of code where de length of the
variables is tested: 
  if(datePattern.lenght>0){


This code is generated by Validator so I don't know what to do about it.

Any ideas?



Thanks in advanced.



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


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



Multiple select and string arrays

2003-10-14 Thread Matt Raible
I have an  and String[]
getters/setters/variables in my Form.  For some reason, the selected value
is passed through twice, meaning that if we select "1" in the , "1,
1" gets passed in.  Has anyone seen this behavior.  It's highly likely that
this is a result of a filter we're using, but just wanted to put a probe out
in case it's not.  Back to investigating

Matt


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



validator

2003-10-14 Thread [EMAIL PROTECTED]
Hello all:

I'm having problems using the Validator plugin to check a date field.

In the form i have a simple textbox and I'm using the following validation:


 
 
datePattern
MM/dd/
 
 


On submit I get the error: "datePattern has no properties".
I traced down the error to a line of code where de length of the variables is tested: 
  if(datePattern.lenght>0){


This code is generated by Validator so I don't know what to do about it.

Any ideas?



Thanks in advanced.



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



RE: Request Scope Lifetime & Propagation

2003-10-14 Thread Wiebe de Jong
If you are using Validator, you could use a multi-page form.
http://jakarta.apache.org/struts/api/org/apache/struts/validator/ValidatorFo
rm.html

IMHO, one of the major gains of ValidatorForm over ActionForm is the 'page'
attribute, which will enable you to use one form over multiple pages.

Wiebe
http://frontierj.blogspot.com 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: Request Scope Lifetime & Propagation

Hello,

Is there anyway to propagate data from request to request? That is I
have some data used in one request (which renders a JSP) which I want
included into the next request. The data in question is in the request
scope and is not really appropriate for the session scope (since they
would have to be cleaned-up if a user begins the request chain again).

Any suggestions that avoid writing the data to the query string?

TIA

John Pitchko
Programmer/Analyst
Downstream Marketing Systems - e-Business Group
Shell Canada Limited




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



Re: Request Scope Lifetime & Propagation

2003-10-14 Thread David Graham

--- [EMAIL PROTECTED] wrote:
> Hello,
> 
> Is there anyway to propagate data from request to request? That is I
> have some data used in one request (which renders a JSP) which I want
> included into the next request. The data in question is in the request
> scope and is not really appropriate for the session scope (since they
> would have to be cleaned-up if a user begins the request chain again).
> 
> Any suggestions that avoid writing the data to the query string?

Hidden form fields.

David

> 
> TIA
> 
> John Pitchko
> Programmer/Analyst
> Downstream Marketing Systems - e-Business Group
> Shell Canada Limited
> 
> 
> > -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Request Scope Lifetime & Propagation

2003-10-14 Thread John . Pitchko


BDY.RTF
Description: RTF file
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Accessing Application Ressources

2003-10-14 Thread Kris Schneider
Doesn't MessageResourcesConfig.getParameter give you the bundle basename? So, if
you're in an action, you could do:

ModuleConfig moduleConfig = mapping.getModuleConfig();
MessageResourcesConfig messageConfig =
moduleConfig.findMessageResourcesConfig(Globals.MESSAGES_KEY);
String bundleBasename = messageConfig.getParameter();

Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:

> Todor Sergueev Petkov wrote:
> 
> > Hello,
> > does anybody know how, from a Struts Action class I can
> > access the name of the Application Ressources file defined inside
> > web.xml. Or is there a simpler way to access directly the properties, 
> > one by one from the properties file?
> 
> 
> To find out the *name* of the application resources file, you would have 
> to parse the struts-config.xml file yourself, looking for the 
> appropriate  element.  To access the actual entries, 
> an instance of MessageResources containing them is stored as a servlet 
> context attribute under the "key" that you specify (the default is 
> "org.apache.struts.action.MESSAGE").  The standard MessageResources 
> implementation class does not offer an iterator over the message keys, 
> but you could subclass it fairly easily and add such a method.
> 
> >
> > Thanks,
> > Todor
> 
> 
> Craig

-- 
Kris Schneider 
D.O.Tech   

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



RE: ugly ugly ugly [SOLVED]

2003-10-14 Thread Fenderbosch, Eric
Yeah...
Changed it to that about 10 minutes after posting. :o

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 13:04
To: Struts Users Mailing List
Subject: RE: ugly ugly ugly [SOLVED]



--- "Fenderbosch, Eric" <[EMAIL PROTECTED]> wrote:
> I finally got it to work like this:
> 
> 
>   
> 

Why are you using  and ?  Wouldn't this work:


   


David

> 
> -Original Message-
> From: Fenderbosch, Eric 
> Sent: Monday, October 13, 2003 12:05
> To: Struts Users Mailing List
> Subject: RE: ugly ugly ugly
> 
> 
> I'm not getting the parameter substitution to work correctly.
> Resource:
> message.benefits=The FedEx Custom Critical Shipping
> Toolkit enables you to:
> I've tried two different methods to perform the substitution.
> 
> 
>   "/>
> 
> 
> and
> 
> 
>   
> 
> 
>   
> 
> 
> But both end up creating a URL like:
> https://localhost:7002/track/tiles/{0}
> 
> If I hard code it like this
> 
>   
> 
> it works fine, so I know the param substitution itself is working, just
> not the substitution from the resource file.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



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



html radio tag, value attribute, special characters < > "

2003-10-14 Thread Chen, Haiwei (H.)
We noticed that a string value containing html sensitive characters, such as < > & " 
etc., is not filtered / escaped for html:radio tag (the value of the radio input). 
This cause the resulting html page to break, as in the following browser view -

[radio box here] " checked="checked"> Blue

User should see this - 

[radio box here] Blue

After looking at the taglib source code, we know that HiddenTag, OptionsTag, 
TextareaTag, TextTag, etc, do escape the special characters, using 
ResponseUtils.filter method.

However, RadioTag, CheckboxTag do not.

Is this something that the future Struts releases could fix / support?

Thanks.

Haiwei

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



RE: ugly ugly ugly [SOLVED]

2003-10-14 Thread David Graham

--- "Fenderbosch, Eric" <[EMAIL PROTECTED]> wrote:
> I finally got it to work like this:
> 
> 
>   
> 

Why are you using  and ?  Wouldn't this work:


   


David

> 
> -Original Message-
> From: Fenderbosch, Eric 
> Sent: Monday, October 13, 2003 12:05
> To: Struts Users Mailing List
> Subject: RE: ugly ugly ugly
> 
> 
> I'm not getting the parameter substitution to work correctly.
> Resource:
> message.benefits=The FedEx Custom Critical Shipping
> Toolkit enables you to:
> I've tried two different methods to perform the substitution.
> 
> 
>   "/>
> 
> 
> and
> 
> 
>   
> 
> 
>   
> 
> 
> But both end up creating a URL like:
> https://localhost:7002/track/tiles/{0}
> 
> If I hard code it like this
> 
>   
> 
> it works fine, so I know the param substitution itself is working, just
> not the substitution from the resource file.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: passing html:link tag to bean:message tag

2003-10-14 Thread Craig R. McClanahan
Paul McCulloch wrote:

fmt:message is pretty much a drop in replacement for bean:message. I don't
know about JSP 1.1 - I've got a *feeling* it's 1.2 only, but you'd better do
some research.
 

JSTL 1.0 works with JSP 1.2 containers only, such as Tomcat 4.x.

JSTL 1.1 (upcoming) works with JSP 2.0 containers only, such as Tomcat 5.x.

Craig



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


hashtable newbie question

2003-10-14 Thread Peng, Meimin
Hi, 
I want to define a bean name called "myBean" which contains "view"
hashtable. 
How can I approach it in jsp file? 
like this?

??


Thanks in advance.
--Zoe

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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



Re: ActionForm

2003-10-14 Thread Barry Volpe
You an ActionForm or a DynaActionForm

Barry
- Original Message - 
From: "Mariano García" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 9:18 AM
Subject: ActionForm


> Hi all,
>
> I have a jsp page with a form, so I want to fill dinamically this form.
> I have a action which generates form data
> (request.setAttribute("devices", devicesList)).
>
> In my struts-config.xml I have this:
>  type="myapp.action.EditConnectionAction"
> name=""
> scope="request"
> validate="false">
>  path="/app/connection.jsp" />
>  path="/app/errorConnection.jsp" />
>
> In my jsp page I have this:
> 
> [...]
> 
> 
> 
> 
> 
> [...]
> 
>
> Do I need a ActionForm? Or only I need this in order to fill my form?
>
> Thanks a lot,
> Mariano.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



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



Re: Accessing Application Ressources

2003-10-14 Thread Craig R. McClanahan
Todor Sergueev Petkov wrote:

Hello,
does anybody know how, from a Struts Action class I can
access the name of the Application Ressources file defined inside
web.xml. Or is there a simpler way to access directly the properties, 
one by one from the properties file?


To find out the *name* of the application resources file, you would have 
to parse the struts-config.xml file yourself, looking for the 
appropriate  element.  To access the actual entries, 
an instance of MessageResources containing them is stored as a servlet 
context attribute under the "key" that you specify (the default is 
"org.apache.struts.action.MESSAGE").  The standard MessageResources 
implementation class does not offer an iterator over the message keys, 
but you could subclass it fairly easily and add such a method.

Thanks,
Todor


Craig



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


RE: ugly ugly ugly [SOLVED]

2003-10-14 Thread Fenderbosch, Eric
I finally got it to work like this:


  


-Original Message-
From: Fenderbosch, Eric 
Sent: Monday, October 13, 2003 12:05
To: Struts Users Mailing List
Subject: RE: ugly ugly ugly


I'm not getting the parameter substitution to work correctly.
Resource:
message.benefits=The FedEx Custom Critical Shipping 
Toolkit enables you to:
I've tried two different methods to perform the substitution.


  "/>


and


  


  


But both end up creating a URL like:
https://localhost:7002/track/tiles/{0}

If I hard code it like this

  

it works fine, so I know the param substitution itself is working, just not the 
substitution from the resource file.

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



ActionForm

2003-10-14 Thread Mariano García
Hi all,

I have a jsp page with a form, so I want to fill dinamically this form.
I have a action which generates form data
(request.setAttribute("devices", devicesList)).

In my struts-config.xml I have this:




In my jsp page I have this:

[...]





[...]


Do I need a ActionForm? Or only I need this in order to fill my form?

Thanks a lot,
Mariano.



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



Indexed Properties examples?

2003-10-14 Thread Michael Blair
I am still trying to get this to work. I simply want to display records in
table format in a browser and be able to change the data, do a submit and
have access to the changes back in the action. Currently I am getting :
"HTTP ERROR: 500 No getter method for property AwardIndexed[0].safAwardCode
of bean awards"

If I can offer anymore info, please ask. Also, if anyone has a working
example of this I would love to see the snippets of the jsp, formbean and
any other relevant parts.

Mike

Here are some snippets.
.jsp -

   
   

form bean -
  private ArrayList awards;
 public void setAwardIndexed(int index, AwardMasView ob){
  System.out.println("setAward");
  this.awards.set(index, ob);
 }

 public AwardMasView getAwardIndexed(int index){
  System.out.println("getAward");
  return (AwardMasView)this.awards.get(index);
 }


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



RE: [Poll] Action Form data types

2003-10-14 Thread Trieu, Danny
#1

Danny Trieu 
Internet Business Group 
Downey Savings and Loan Association, F.A. 
[EMAIL PROTECTED]
(949) 509-4564

"The beginning of knowledge is the discovery of something we do not
understand."
- Frank Herbert (1920-1986)




-Original Message-
From: Daniel Haynes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 1:37 AM
To: Struts Users Mailing List
Subject: RE: [Poll] Action Form data types


#1

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 20:37
To: [EMAIL PROTECTED]
Cc: Green, Matt
Subject: [Poll] Action Form data types

Here's my weekly(ish) question:
For the purposes of this discussion, ActionForms also mean DynaActionForms
and the like...
Where does everyone cast their (String) request parameters to the 'proper'
datatype?

#1  My ActionForms only have Strings, I manually cast stuff somewhere else.
#2  My ActionForms only have Strings, I let (BeanUtils, JDBC,...) cast stuff
for me somewhere else.
#3  My ActionForms have java Datatypes, I let Struts(yeah, beanutils, I
know) cast stuff for me.
#4  I use strings for everything, I don't need to cast.

-
This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.


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


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


This message and any attachments are for the intended recipient(s) only and may 
contain privileged, confidential and/or proprietary information about Downey Savings 
or its customers, which Downey Savings does not intend to disclose to the public. If 
you received this message by mistake, please notify the sender by reply e-mail and 
delete the message and attachments.

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



RE: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
fmt:message is pretty much a drop in replacement for bean:message. I don't
know about JSP 1.1 - I've got a *feeling* it's 1.2 only, but you'd better do
some research.

You can achieve the same with the struts tags:









But it's a bit messier.

Paul

-Original Message-
From: david chan [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 16:17
To: Struts Users Mailing List
Subject: RE: passing html:link tag to bean:message tag


I am new to JSTL, it seems very nice, but has two
questions about JSTL:

Does JSTL compatiable with Struts 1.1, for example the
fmt:message, will it get same local as bean:message in
same context?

Also does the JSTL works on Webshere 4.x ? (Servlet
2.2 and JSP 1.1 only I think).

Thanks.
David


--- Paul McCulloch <[EMAIL PROTECTED]>
wrote:
> Use the jstl:
>
> 
>   
>   email us
>   
> 
>
> You probably want the text of the link to come from
> the resources as well:
>
> 
>   
>   
>   
>   
>   
> 
>
> Paul
>
> -Original Message-
> From: david chan [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2003 15:34
> To: Struts Users Mailing List
> Subject: passing html:link tag to bean:message tag
>
>
> Hi,
>  I am trying to do like this:
>
> 
>
> I am hoping the final cancel message will has the
> "email us" link that is link to the email action.
>
> But of course this doesn't work because bean treat
> the
> arg0 as a string only.
>
> how can I do something like this?
>
> Thanks.
> David
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained
> in this message. If you are not the addressee
> indicated in this message (or responsible for
> delivery of the message to such person), you may not
> copy or deliver this message to anyone. In such
> case, you should destroy this message, and notify us
> immediately. If you or your employer does not
> consent to Internet email messages of this kind,
> please advise us immediately. Opinions, conclusions
> and other information expressed in this message are
> not given or endorsed by my Company or employer
> unless otherwise indicated by an authorised
> representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent
> computer viruses from being transmitted via
> electronic mail attachments we cannot guarantee that
> attachments do not contain computer virus code.  You
> are therefore strongly advised to undertake anti
> virus checks prior to accessing the attachment to
> this electronic mail.  Axios Systems Ltd grants no
> warranties regarding performance use or quality of
> any attachment and undertakes no liability for loss
> or damage howsoever caused.
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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

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



Re: Passing parameters between forms

2003-10-14 Thread Susan Bradeen
Hi Shyam, 

If you change 
to 

OR

 if you just add 

does it work?

Susan Bradeen

On 10/13/2003 08:27:41 PM Shyam A wrote:

> Hi,
> 
> I have a scenario where I need to pass parameters
> between forms.i.e, I have two forms, Form A and Form B
> with the same attribute "foo". The value of "foo" is
> set in Form A. Also, I have a link from the JSP page
> corresponding to Form A to the action corresponding to
> Form B,i.e,
> 
> In form A, I have
> 
> 
> 
> ...
> 
> 
> 
> 
> 
> 
> I'm unable to access the foo property in Action B
> class using
> String foo = ((Form B) form).getFoo() as "foo" is not
> in scope.
> 
> I know I can save the "foo" attribute into session in
> Action A class and access it in Action B, or set the
> scope of Form A to session in struts-config and access
> Form A from Action B.
> 
> Is there a better way to do this?
> 
> Any help/suggestions would be greatly appreciated.
> 
> Thanks,
> Shyam
> 
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Help needed using struts with database and sessions

2003-10-14 Thread Jeroen Breedveld
Hi all, 

I'm creating a webapp using struts and a database. The jsp pages access
(for read and write) a resource object in a custom ActionForm like this:

 (causes setName() to be called on
the resource object when submitting form)
 (causes
getOwner() to called on resource object when jsp is loaded)

All calls to the methods in the resource object need to be called during
a database transaction because the resource object itself accesses the
database to retrieve or set data. I don't want to open and close a
session for every call on the resource object, ideally I want one
session to opened when the jsp loads and several calls are made to the
resource object consecutively. This session would have to be closed as
soon as the jsp is finished loading. And I want a session to be openend
when a form in the jsp is submitted so that new data can be stored in
the database. This session would have to be closed as soon as the jsp is
finished submitting the form data. 

Does anybody has an idea how I can somehow couple the jsp session with
my database session or maybe there is an event-listener that I can use
to start and stop database session when struts is accessing the
ActionForm? Any help is welcome.

Thanks and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

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



RE: passing html:link tag to bean:message tag

2003-10-14 Thread david chan
I am new to JSTL, it seems very nice, but has two
questions about JSTL:

Does JSTL compatiable with Struts 1.1, for example the
fmt:message, will it get same local as bean:message in
same context?

Also does the JSTL works on Webshere 4.x ? (Servlet
2.2 and JSP 1.1 only I think).

Thanks.
David


--- Paul McCulloch <[EMAIL PROTECTED]>
wrote:
> Use the jstl:
> 
> 
>   
>   email us
>   
> 
> 
> You probably want the text of the link to come from
> the resources as well:
> 
> 
>   
>   
>   
>   
>   
> 
> 
> Paul
> 
> -Original Message-
> From: david chan [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2003 15:34
> To: Struts Users Mailing List
> Subject: passing html:link tag to bean:message tag
> 
> 
> Hi,
>  I am trying to do like this:
> 
> 
> 
> I am hoping the final cancel message will has the
> "email us" link that is link to the email action. 
> 
> But of course this doesn't work because bean treat
> the
> arg0 as a string only.
> 
> how can I do something like this?
> 
> Thanks.
> David
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained
> in this message. If you are not the addressee
> indicated in this message (or responsible for
> delivery of the message to such person), you may not
> copy or deliver this message to anyone. In such
> case, you should destroy this message, and notify us
> immediately. If you or your employer does not
> consent to Internet email messages of this kind,
> please advise us immediately. Opinions, conclusions
> and other information expressed in this message are
> not given or endorsed by my Company or employer
> unless otherwise indicated by an authorised
> representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent
> computer viruses from being transmitted via
> electronic mail attachments we cannot guarantee that
> attachments do not contain computer virus code.  You
> are therefore strongly advised to undertake anti
> virus checks prior to accessing the attachment to
> this electronic mail.  Axios Systems Ltd grants no
> warranties regarding performance use or quality of
> any attachment and undertakes no liability for loss
> or damage howsoever caused.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Actions and

2003-10-14 Thread Sonam Belbase
Hi,

I have an actionA whose success should display jspA using properties from
formA. These
properties were set in actionA.

Once the user is done with jspA, they click on a submit button and it should
go
to actionB, which has it's own form bean formB and  display jspB on success.

jspA looks like:




 
 
 





Because I want the submit button in jspA to invoke actionB, I set
actionB as the action associated with the form.

Problem is, once I do that, jspA now uses formB's properties.

How can I get jspA to use formA, but on submit to forward to
actionB and be able to use formA's properties?

Thanks,
SB

--
NOTICE: If received in error, please destroy and notify sender.  Sender does
not waive confidentiality or privilege, and use is prohibited.



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



RE: DynaActionForms

2003-10-14 Thread Robert Taylor
I tend to use DynaActionForms exclusively because they are easy 
to create (declarative). I haven't had a need to use non "Dyna"
ActionForms.

robert

> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 10:15 AM
> To: Struts Users Mailing List
> Subject: RE: DynaActionForms
> 
> 
> My question was regarding, JSTL, Velocity, etc.  I prefer the 
> standard tags
> with the nested extensions and standard JSP expressions (I can 
> read the JSP
> after I walk away for a week), which is probably what I will end 
> up doing.  
> 
> Yes, you answered my question.
> 
> I don't use reset, if I can help it.  BTW, since you are really putting a
> collection in a form, do you really need to use a DynaForm?
> 
> Thanks
> 
> Edgar
> 
> > -Original Message-
> > From: Robert Taylor [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, October 14, 2003 8:18 AM
> > To: Struts Users Mailing List
> > Subject: RE: DynaActionForms
> > 
> > 
> > I'm not sure what you mean when you ask "what view technology".
> > 
> > You can find ListUtils here: 
> > http://jakarta.apache.org/commons/collections/api/org/apache/c
> > ommons/collect
> > ions/ListUtils.html
> > 
> > I've rendered these lists using a variety of  
> > components - checkboxes, multiboxes, select lists, text, 
> > hidden, etc...
> > 
> > I admit, I had a hard time getting my head around how to use 
> > indexed properties and dynamically generated fields but they 
> > work. You will most likely have to subclass the 
> > DynaActionForm and override the reset().
> > 
> > Heres a link to using indexed properties: 
> > http://jakarta.apache.org/struts/faqs/indexedprops.html
> > 
> > Let me know if I answered your question.
> > 
> > robert
> > 
> > > -Original Message-
> > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, October 14, 2003 8:12 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: DynaActionForms
> > >
> > >
> > > Interesting idea.  My other choice is to stick a map in a standard 
> > > action form.  What view technology are you using with these lists?
> > >
> > > Edgar
> > >
> > > > -Original Message-
> > > > From: Robert Taylor [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 13, 2003 4:07 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: DynaActionForms
> > > >
> > > >
> > > > Edgar, have you thought about using indexed properties 
> > together with
> > > > ListUtils.lazylist()
> > > > with DynaActionForms.
> > > >
> > > > I've successfully used them with DynaActionForms where my 
> > fields are 
> > > > completely dynamic.
> > > >
> > > > Just a thought.
> > > >
> > > > robert
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 13, 2003 4:39 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: DynaActionForms
> > > > >
> > > > >
> > > > > Thanks for the input.  I did some more research and I think I 
> > > > > understand the forms a little better.
> > > > >
> > > > > The following code will create a DynaActionForm with one
> > > > String field:
> > > > >
> > > > >   FormBeanConfig formBean = new FormBeanConfig();
> > > > >   FormPropertyConfig fpc = null;
> > > > >
> > > > >   fpc = new FormPropertyConfig();
> > > > >   fpc.setName("testField1");
> > > > >   fpc.setType(java.lang.String.class.getName());
> > > > >   fpc.setInitial("testField1Value");
> > > > >
> > > > >   formBean.addFormPropertyConfig(fpc);
> > > > >
> > > > >
> > > > formBean.setType(org.apache.struts.action.DynaActionForm.class
> > > > .getName());
> > > > >   formBean.freeze();
> > > > >
> > > > >   DynaActionFormClass dFC = 
> > > > > DynaActionFormClass.createDynaActionFormClass(formBean);
> > > > >   DynaActionForm dynaForm = (DynaActionForm)
> > > > dFC.newInstance();
> > > > >
> > > > >
> > > > > I think I know the answer already (my apologies), but will
> > > > this code
> > > > > break with new releases of struts.
> > > > >
> > > > > Thanks
> > > > >
> > > > > Edgar
> > > > >
> > > > > > -Original Message-
> > > > > > From: Nick [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, October 13, 2003 2:41 PM
> > > > > > To: Struts Users Mailing List
> > > > > > Subject: Re: DynaActionForms
> > > > > >
> > > > > >
> > > > > > I do not believe that you can do dynamically add fields to a 
> > > > > > DynaForm, as the config is frozen at app startup.  Might
> > > > work with
> > > > > > an internal HashMap though.
> > > > > >
> > > > > > On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
> > > > > > > I'm assuming that he meant create a new property that is
> > > > > > not already
> > > > > > > defined in the struts-config. In which case I think your
> > > > > > reply would
> > > > > > > fail with an property not found type exception. :

Re: IDE

2003-10-14 Thread Duncan Mills
Depends on your interpretation of the word open in this context, if  it's
"Free to download and evaluate" then try Oracle JDeveloper 10g Preview
release http://otn.oracle.com/products/jdev
If the definition is "Product that I will never, ever, ever have to pay for"
then ignore this.

Regards

Duncan Mills
- Original Message - 
From: "virupaksha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 9:48 AM
Subject: IDE


Dear All,

I am working on struts using exadel struts studio,
Can any one know other open IDE for struts ..?
especially for designing View(Drag & drop approach..?)

let me know please..

Regards,
viru


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



RE: passing html:link tag to bean:message tag

2003-10-14 Thread Paul McCulloch
Use the jstl:



email us



You probably want the text of the link to come from the resources as well:









Paul

-Original Message-
From: david chan [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 15:34
To: Struts Users Mailing List
Subject: passing html:link tag to bean:message tag


Hi,
 I am trying to do like this:



I am hoping the final cancel message will has the
"email us" link that is link to the email action. 

But of course this doesn't work because bean treat the
arg0 as a string only.

how can I do something like this?

Thanks.
David

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



passing html:link tag to bean:message tag

2003-10-14 Thread david chan
Hi,
 I am trying to do like this:



I am hoping the final cancel message will has the
"email us" link that is link to the email action. 

But of course this doesn't work because bean treat the
arg0 as a string only.

how can I do something like this?

Thanks.
David

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Urgent: username case insensitive for j_security_check?

2003-10-14 Thread Mick Knutson
Currently I am just using the JBoss framework, and have not done my own.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 7:27 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


> Mick,
> it depends on your login framework. Are you using a tomcat realm or have
> you rolled your own? If you are using a JDBC realm with a database, you
> could change the query to make the conversion, for instance.
>
>
> Adam
>
> On 10/14/2003 04:06 PM Mick Knutson wrote:
> > The issues is that I have seen the users that will be on my system. and
they
> > are already adding "TheUserFromOhio" as a username etc... Now I can
always
> > change everything to lower case when they register. But then I still
have
> > the issue about the login.
> > And many of my users are Mac users, so I seem to have heaps of
JavaScript
> > issues.
> >
> >
> > ---
> > Thanks
> > Mick Knutson
> >
> > The world is a playground...Play Hard, Play Smart.
> > Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert
&
> > Contact System" can help you Play Smart.
> >
> > +00 1 (708) 570-2772 Fax
> > MSN: mickknutson
> > ICQ: 316498480
> > ICQ URL: http://wwp.icq.com/316498480
> >
> > ---
> >
> > - Original Message - 
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 14, 2003 12:53 AM
> > Subject: Re: Urgent: username case insensitive for j_security_check?
> >
> >
> >
> >>On 10/14/2003 06:06 AM Mick Knutson wrote:
> >>
> >>>I guess I never thought about this, but all my usernames have not been
> >
> > entered in a case insensitive fashion. I can easily enough fix this in
the
> > Action Class to make everything lowercase, but how do I do this with the
> > j_security_check form?
> >
> >>>I also need a solution that does not rely on JavaScript. Maybe I can
use
> >
> > a filter?
> >
> >>Hi Mick,
> >>a filter won't work. You won't be able to put anything between the
> >>browser submit and the container-managed authentication - it's
> >>completely tomcat and allows no programmatic interference. Can't you
> >>convert your user names with a script or something?
>
>
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Passing parameters between forms

2003-10-14 Thread Joe at Team345
This approach might work for a small system, but I would not encourage it
for a large business app.  If I follow you correctly, this assumes that
subsequent pages will be served by the same container.  This is infrequently
(at least in systems I've seen) the case...

> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 10:19 AM
> To: 'Shyam A'; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Passing parameters between forms
>
>
> My preference is to emulate the session functionality in your own classes,
> i.e. publish / subscribe.  Stick a static map in your class and
> use a unique
> key generated from objects both threads are aware of to index the object,
> then you can pull it out when you need to.  Synchronize if you need to as
> well.
>
> I like this better because then you can run junit tests w/o worring about
> the container.
>
> Edgar
>
> > -Original Message-
> > From: Shyam A [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 8:39 AM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Passing parameters between forms
> >
> >
> > Carey,
> >
> > Thanks for your mail. I knew about the option you
> > suggested and mentioned it in my mail.
> >
> > quote:
> >
> > I know I can save the "foo" attribute into session in
> > Action A class and access it in Action B, or set the
> > scope of Form A to session in struts-config and access
> > Form A from Action B.
> >
> > unquote:
> >
> > However, the disadvantage of this option is that I
> > need to use session scope for the forms, which I would
> > like to avoid.
> >
> > I also know it is possible to pass the form attribute
> > as a request parameter as follows:
> >
> > 
> >
> > But, this allows the user to see the parameters being
> > passed. I would rather use buttons for the link and
> > post the form.
> >
> > Do you have any suggestions/comments?
> >
> > Thanks,
> > Shyam
> >
> >
> > --- Carey Nation <[EMAIL PROTECTED]> wrote:
> > > I have some vague memory (perhaps completely wrong)
> > > that the forms are
> > > stored wherever they are stored using the names that
> > > you specify in
> > > struts-config.  It may not be the nicest way to do
> > > this, but I'm pretty sure
> > > that, given session scope on your forms, you can do
> > > something like
> > > (FormA)forma = session.getAttribute("FormA");
> > >
> > > HTH,
> > > Carey
> > >
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: [Slightly OT] Where/how to start?

2003-10-14 Thread Brian McSweeney
I reckon you should try to read the source code of a good open source
j2ee app. Furthermore, J2EE is big - there's a lot of stuff you could
use. 
I would recommend sticking to standards. Struts is good for this, so why

not look at the struts examples that come with the struts download.
Another large part of J2EE is ejb etc. There is quite a lot to learn
there, so a good example of a project that puts it all together is 

http://sourceforge.net/projects/xpetstore

This uses more standards that you'll probably have to learn,

For example

Ant - your project build system
Junit - for testing
Xdoclet - for code generation
Struts - for your web mvc part

Learning all these by reading how someone else did it is far, far easier
than trying yourself from scratch.

Hth,
Brian


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: 14 October 2003 14:07
To: Struts Users Mailing List
Subject: RE: [Slightly OT] Where/how to start?

and you may want to subscribe to other lists that are more J2EE-centric,
like [EMAIL PROTECTED]

Mark

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:53 AM
To: 'Struts Users Mailing List'
Subject: RE: [Slightly OT] Where/how to start?


Here's what I did at my last job: I was mostly a C, JAM, Oracle
developer
but wanted to learn Java and J2EE. Try to find an approach that will let
you
learn J2EE while benefiting the company in some way.

Let your managers know that you want to learn the technology. They'll
know
that you aren't content just doing the same old thing every day, and
they
might start to look for training opportunities, whether it is sending
you to
class or putting you on newer J2EE projects.

Another way is to take a few hours each week learning a new technology
and
incorporating that into some sort of prototype that your company might
be
interested in. Take an existing application and prototype a Java/J2EE
version of it. Show it off to your managers, then move on and do some
more
prototypes. Even if it doesn't go into production, you have built real
applications in a real work environment.



-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 6:27 PM
To: [EMAIL PROTECTED]
Subject: [Slightly OT] Where/how to start?


Hi all,

I have a strong Perl/CGI background, but my JSP/Servlet/J2EE experience
is related only to what I did in college. My job entails C development,
but I really want to get more into this J2EE stuff.  It's so much more
enjoyable than this C work I am doing, but I can't seem to get my foot
in the door.  In looking for a J2EE development job, I keep hearing
that I need more experience, which is perfectly understandable.   But,
I can't get experience without getting a job doing it first.  My
question is, how do I get my foot in the door so I can split my boring
job and do what I really want to do?  Do I need to go full tilt and get
a certification or something like that?  Any ideas would be most
helpful.  Even more helpful would be a J2EE job in the Chicago area
where I could develop my professional career in this area.

Thanks very much!


Best Regards,
Andy


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



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


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



Re: Urgent: username case insensitive for j_security_check?

2003-10-14 Thread Adam Hardy
Mick,
it depends on your login framework. Are you using a tomcat realm or have 
you rolled your own? If you are using a JDBC realm with a database, you 
could change the query to make the conversion, for instance.

Adam

On 10/14/2003 04:06 PM Mick Knutson wrote:
The issues is that I have seen the users that will be on my system. and they
are already adding "TheUserFromOhio" as a username etc... Now I can always
change everything to lower case when they register. But then I still have
the issue about the login.
And many of my users are Mac users, so I seem to have heaps of JavaScript
issues.
---
Thanks
Mick Knutson
The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.
+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480
---

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 12:53 AM
Subject: Re: Urgent: username case insensitive for j_security_check?



On 10/14/2003 06:06 AM Mick Knutson wrote:

I guess I never thought about this, but all my usernames have not been
entered in a case insensitive fashion. I can easily enough fix this in the
Action Class to make everything lowercase, but how do I do this with the
j_security_check form?
I also need a solution that does not rely on JavaScript. Maybe I can use
a filter?

Hi Mick,
a filter won't work. You won't be able to put anything between the
browser submit and the container-managed authentication - it's
completely tomcat and allows no programmatic interference. Can't you
convert your user names with a script or something?


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Passing parameters between forms

2003-10-14 Thread Edgar P Dollin
My preference is to emulate the session functionality in your own classes,
i.e. publish / subscribe.  Stick a static map in your class and use a unique
key generated from objects both threads are aware of to index the object,
then you can pull it out when you need to.  Synchronize if you need to as
well.

I like this better because then you can run junit tests w/o worring about
the container.

Edgar

> -Original Message-
> From: Shyam A [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 8:39 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Passing parameters between forms
> 
> 
> Carey,
> 
> Thanks for your mail. I knew about the option you
> suggested and mentioned it in my mail.
> 
> quote:
> 
> I know I can save the "foo" attribute into session in
> Action A class and access it in Action B, or set the
> scope of Form A to session in struts-config and access
> Form A from Action B.
> 
> unquote:
> 
> However, the disadvantage of this option is that I
> need to use session scope for the forms, which I would
> like to avoid.
> 
> I also know it is possible to pass the form attribute
> as a request parameter as follows:
> 
> 
> 
> But, this allows the user to see the parameters being
> passed. I would rather use buttons for the link and
> post the form.
> 
> Do you have any suggestions/comments?
> 
> Thanks,
> Shyam
> 
> 
> --- Carey Nation <[EMAIL PROTECTED]> wrote:
> > I have some vague memory (perhaps completely wrong)
> > that the forms are
> > stored wherever they are stored using the names that
> > you specify in
> > struts-config.  It may not be the nicest way to do
> > this, but I'm pretty sure
> > that, given session scope on your forms, you can do
> > something like
> > (FormA)forma = session.getAttribute("FormA");
> > 
> > HTH,
> > Carey
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search 
http://shopping.yahoo.com

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



Re: OT: Managing Modifications to Struts

2003-10-14 Thread David Graham

--- Greg Reddin <[EMAIL PROTECTED]> wrote:
> I've only submitted a very small amount of code to this group so I'm 
> preaching to the choir :-)
> 
> But, now that I'm learning, there are only a few reasons why I would not
> 
> submit code back to the community:
> 
> 1) The code was written under a non-disclosure agreement and I am not 
> permitted to give it away.  In this case I would probably rewrite the 
> code in my own time and submit it, then tell my boss "Hey look.  There's
> 
> an open source solution for exactly what we're trying to do."
> 
> 2) I'm too embarassed to submit the code because people will see it and 
> laugh.  As I try to humble myself more, this becomes less of an issue 
> because I find that I get help more than I get flamed, and if I get 
> flamed it's usually because I deserve it (i.e. I've been lazy or done 
> something stupid).
> 
> 3) I can't imagine it will be useful to anyone else.  In this case I've 
> usually created something that's either not really useful to myself or 
> is useful, but I could use some help in making it useful.
> 
> The bottom line is, there are very few good reasons to not submit code 
> to the community.  If you do submit, you don't have to worry about 
> upgrades and multiple code paths and whatnot.  Plus you get excellent 
> bug fixes and support.
> 
> But the real answer to your question is that there's little reason to 
> modify Struts.  Struts has so many extension points that I don't think I
> 
> would ever need to modify it.  It's real easy to subclass 
> RequestProcessor and screw a lot of things up.

FYI, the RequestProcessor hasn't met the needs of many extenders for
various reasons discussed on the struts-dev list.  A Commons Chain project
is in the works that Struts will leverage in a future release to make it
far easier to customize the request processing pipeline.  Contributions
are welcome!

David

> 
> But, in the event that you find yourself modifying the code and there's 
> no way out upgrades will be a problem.  Having done this before there 
> was a Request Processor, the best advice I can give is keep track of 
> every bit of code you change and try to do it with diff/patch tools, so 
> as much of it as possible can be automated.
> 
> Sorry to give such a long response without any good answers.
> 
> Derek Richardson wrote:
> > I am interested in how developers and organizations that modify Struts
> for their own use manage the upgrade process. Of course, one technique
> is to give your modifications back to the project so that they become
> part of the next release. But what if you don't?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: DynaActionForms

2003-10-14 Thread Edgar P Dollin
My question was regarding, JSTL, Velocity, etc.  I prefer the standard tags
with the nested extensions and standard JSP expressions (I can read the JSP
after I walk away for a week), which is probably what I will end up doing.  

Yes, you answered my question.

I don't use reset, if I can help it.  BTW, since you are really putting a
collection in a form, do you really need to use a DynaForm?

Thanks

Edgar

> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 8:18 AM
> To: Struts Users Mailing List
> Subject: RE: DynaActionForms
> 
> 
> I'm not sure what you mean when you ask "what view technology".
> 
> You can find ListUtils here: 
> http://jakarta.apache.org/commons/collections/api/org/apache/c
> ommons/collect
> ions/ListUtils.html
> 
> I've rendered these lists using a variety of  
> components - checkboxes, multiboxes, select lists, text, 
> hidden, etc...
> 
> I admit, I had a hard time getting my head around how to use 
> indexed properties and dynamically generated fields but they 
> work. You will most likely have to subclass the 
> DynaActionForm and override the reset().
> 
> Heres a link to using indexed properties: 
> http://jakarta.apache.org/struts/faqs/indexedprops.html
> 
> Let me know if I answered your question.
> 
> robert
> 
> > -Original Message-
> > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 8:12 AM
> > To: Struts Users Mailing List
> > Subject: RE: DynaActionForms
> >
> >
> > Interesting idea.  My other choice is to stick a map in a standard 
> > action form.  What view technology are you using with these lists?
> >
> > Edgar
> >
> > > -Original Message-
> > > From: Robert Taylor [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, October 13, 2003 4:07 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: DynaActionForms
> > >
> > >
> > > Edgar, have you thought about using indexed properties 
> together with
> > > ListUtils.lazylist()
> > > with DynaActionForms.
> > >
> > > I've successfully used them with DynaActionForms where my 
> fields are 
> > > completely dynamic.
> > >
> > > Just a thought.
> > >
> > > robert
> > >
> > >
> > > > -Original Message-
> > > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 13, 2003 4:39 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: DynaActionForms
> > > >
> > > >
> > > > Thanks for the input.  I did some more research and I think I 
> > > > understand the forms a little better.
> > > >
> > > > The following code will create a DynaActionForm with one
> > > String field:
> > > >
> > > > FormBeanConfig formBean = new FormBeanConfig();
> > > > FormPropertyConfig fpc = null;
> > > >
> > > > fpc = new FormPropertyConfig();
> > > > fpc.setName("testField1");
> > > > fpc.setType(java.lang.String.class.getName());
> > > > fpc.setInitial("testField1Value");
> > > >
> > > > formBean.addFormPropertyConfig(fpc);
> > > >
> > > >
> > > formBean.setType(org.apache.struts.action.DynaActionForm.class
> > > .getName());
> > > > formBean.freeze();
> > > >
> > > > DynaActionFormClass dFC = 
> > > > DynaActionFormClass.createDynaActionFormClass(formBean);
> > > > DynaActionForm dynaForm = (DynaActionForm)
> > > dFC.newInstance();
> > > >
> > > >
> > > > I think I know the answer already (my apologies), but will
> > > this code
> > > > break with new releases of struts.
> > > >
> > > > Thanks
> > > >
> > > > Edgar
> > > >
> > > > > -Original Message-
> > > > > From: Nick [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 13, 2003 2:41 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Re: DynaActionForms
> > > > >
> > > > >
> > > > > I do not believe that you can do dynamically add fields to a 
> > > > > DynaForm, as the config is frozen at app startup.  Might
> > > work with
> > > > > an internal HashMap though.
> > > > >
> > > > > On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
> > > > > > I'm assuming that he meant create a new property that is
> > > > > not already
> > > > > > defined in the struts-config. In which case I think your
> > > > > reply would
> > > > > > fail with an property not found type exception. :-/ One way 
> > > > > > around this is to have a Hashmap within the
> > > > > hashmapped dynaform.
> > > > > > That will allow you to do something like:
> > > > > >
> > > > > > Hashmap myDynaproperties =
> > > > > (Hashmap)myDynaform.get("dynaProperties");
> > > > > > myDynaproperties.set("foo", bar);
> > > > > > Etc.
> > > > > >
> > > > > > Another possibility (although I havent tried it) is 
> to operate 
> > > > > > directly on the map.
> > > > > >
> > > > > > myDynaproperties.getMap().put("foo", bar);
> > > > > >
> > > > > > -Tim
> > > > > >
> > > > > > -Original Message-
> > > > > >

RE: [Slightly OT] Where/how to start?

2003-10-14 Thread Mark Galbreath
and you may want to subscribe to other lists that are more J2EE-centric,
like [EMAIL PROTECTED]

Mark

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:53 AM
To: 'Struts Users Mailing List'
Subject: RE: [Slightly OT] Where/how to start?


Here's what I did at my last job: I was mostly a C, JAM, Oracle developer
but wanted to learn Java and J2EE. Try to find an approach that will let you
learn J2EE while benefiting the company in some way.

Let your managers know that you want to learn the technology. They'll know
that you aren't content just doing the same old thing every day, and they
might start to look for training opportunities, whether it is sending you to
class or putting you on newer J2EE projects.

Another way is to take a few hours each week learning a new technology and
incorporating that into some sort of prototype that your company might be
interested in. Take an existing application and prototype a Java/J2EE
version of it. Show it off to your managers, then move on and do some more
prototypes. Even if it doesn't go into production, you have built real
applications in a real work environment.



-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 6:27 PM
To: [EMAIL PROTECTED]
Subject: [Slightly OT] Where/how to start?


Hi all,

I have a strong Perl/CGI background, but my JSP/Servlet/J2EE experience
is related only to what I did in college. My job entails C development,
but I really want to get more into this J2EE stuff.  It's so much more
enjoyable than this C work I am doing, but I can't seem to get my foot
in the door.  In looking for a J2EE development job, I keep hearing
that I need more experience, which is perfectly understandable.   But,
I can't get experience without getting a job doing it first.  My
question is, how do I get my foot in the door so I can split my boring
job and do what I really want to do?  Do I need to go full tilt and get
a certification or something like that?  Any ideas would be most
helpful.  Even more helpful would be a J2EE job in the Chicago area
where I could develop my professional career in this area.

Thanks very much!


Best Regards,
Andy


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



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



Re: Urgent: username case insensitive for j_security_check?

2003-10-14 Thread Mick Knutson
The issues is that I have seen the users that will be on my system. and they
are already adding "TheUserFromOhio" as a username etc... Now I can always
change everything to lower case when they register. But then I still have
the issue about the login.
And many of my users are Mac users, so I seem to have heaps of JavaScript
issues.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 12:53 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


> On 10/14/2003 06:06 AM Mick Knutson wrote:
> > I guess I never thought about this, but all my usernames have not been
entered in a case insensitive fashion. I can easily enough fix this in the
Action Class to make everything lowercase, but how do I do this with the
j_security_check form?
> > I also need a solution that does not rely on JavaScript. Maybe I can use
a filter?
> >
>
> Hi Mick,
> a filter won't work. You won't be able to put anything between the
> browser submit and the container-managed authentication - it's
> completely tomcat and allows no programmatic interference. Can't you
> convert your user names with a script or something?
>
> Adam
>
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: DynaActionForms

2003-10-14 Thread Edgar P Dollin
Doesn't this answer require an [OT] designation.

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 7:03 AM
> To: Struts Users Mailing List
> Subject: RE: DynaActionForms
> 
> 
> Yes.
> 
> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 13, 2003 1:35 PM
> 
> ...I would like to populate the (DynaAction)forms myself.
> 
> Does anyone have any experience with how this behaves in struts?
> 
> 

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



Re: OT: Managing Modifications to Struts

2003-10-14 Thread Greg Reddin
I've only submitted a very small amount of code to this group so I'm 
preaching to the choir :-)

But, now that I'm learning, there are only a few reasons why I would not 
submit code back to the community:

1) The code was written under a non-disclosure agreement and I am not 
permitted to give it away.  In this case I would probably rewrite the 
code in my own time and submit it, then tell my boss "Hey look.  There's 
an open source solution for exactly what we're trying to do."

2) I'm too embarassed to submit the code because people will see it and 
laugh.  As I try to humble myself more, this becomes less of an issue 
because I find that I get help more than I get flamed, and if I get 
flamed it's usually because I deserve it (i.e. I've been lazy or done 
something stupid).

3) I can't imagine it will be useful to anyone else.  In this case I've 
usually created something that's either not really useful to myself or 
is useful, but I could use some help in making it useful.

The bottom line is, there are very few good reasons to not submit code 
to the community.  If you do submit, you don't have to worry about 
upgrades and multiple code paths and whatnot.  Plus you get excellent 
bug fixes and support.

But the real answer to your question is that there's little reason to 
modify Struts.  Struts has so many extension points that I don't think I 
would ever need to modify it.  It's real easy to subclass 
RequestProcessor and screw a lot of things up.

But, in the event that you find yourself modifying the code and there's 
no way out upgrades will be a problem.  Having done this before there 
was a Request Processor, the best advice I can give is keep track of 
every bit of code you change and try to do it with diff/patch tools, so 
as much of it as possible can be automated.

Sorry to give such a long response without any good answers.

Derek Richardson wrote:
I am interested in how developers and organizations that modify Struts for their own use manage the upgrade process. Of course, one technique is to give your modifications back to the project so that they become part of the next release. But what if you don't?


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


Re: [REPOST] Best Practice Question - html links

2003-10-14 Thread Kris Schneider
If you're using a JSP 1.2 container, JSTL can help out a bit. It doesn't look
like you need an HTML form for any of this, you're constructing a bunch of links
that will issue GETs to the action mapped to "/changePage". As long as that
mapping uses a (Struts) form with a property called "pageName", it should work.

struts-config:


  




JSP:

<%@ page pageEncoding="UTF-8" %>

<%@ taglib prefix="c"uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"; %>






  


  

  
"
 border="0">
  
  ...


  

  "
   border="0">

  
  ...

  


  


Quoting Joanne L Corless <[EMAIL PROTECTED]>:

> I know this may seem a little rude but no-one picked up on my question and
> I really could use some help with this
> 
> Regards
> Joanne Corless
> 
> - Forwarded by Joanne L Corless/UK/CSC on 14/10/03 13:36 -
>  
>   
>   Joanne L Corless   
>   
>   /UK/CSC  To: 
> [EMAIL PROTECTED]   
>   
>cc:   
>   
>   13/10/03 17:12   Subject: Best Practice
> Question re: html links   
>  
>   
>  
>   
> 
> 
> 
> Hi,
> 
> I am implementing a struts application with menu lists which need to be
> dynamic based on a user role hierarchy, i.e not a simple user role = menu
> list. Therefore I cannot set up menu lists in the tile definitions file as
> they are
> 
> I hold the menu list in a database which I am accessing via an EJB and
> returning to the session using a vector of DAO object 's which contain the
> basic information about each menu item, i.e name, link,type (we have
> different types of links some open a pop-up window, others run an inline
> java applet)
> 
> Currently I am using standard Java scriptlets to access the vector and
> print it out in the JSP tile page example below:
> 
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/struts/tiles" prefix="tiles" %>
> <%@ taglib uri="/struts/logic" prefix="logic" %>
> <%@ taglib uri="/struts/bean" prefix="bean" %>
> <%@ taglib uri="/struts/html" prefix="html" %>
> <%@ page import="com.csc.ebilling.ejb.common.MenuItemDAO" %>
> <%
>  String commonImagePath= request.getContextPath()
> +"/presentation/DEFAULT/images";
>  String currentPageName = (String)session.getAttribute
> ("currentPageName");
>  java.util.Vector topMenu = (java.util.Vector) session.getAttribute
> ("topMenu");
> %>
> 
> 
> 
> 
> <%
>   for (int i=0;i // pageContext.setAttribute("topMenuItem", topMenuItem,
> PageContext.PAGE_SCOPE);
> MenuItemDAO topMenuItem = (MenuItemDAO) topMenu.get(i);
> if (topMenuItem.getMenuItemName().equals(currentPageName))
> {
> %>
>   
>   border="0">
>
>  ="tabselected" nowrap style="background-repeat: repeat-x;">
> <%=topMenuItem.getMenuItemName()%>
> 
>   
>  ="0">
>
> <%
> }
> else
> {
> %>
>   
>
>  border="0">
>
>   
>="tabunselected" nowrap style="background-repeat: repeat-x;">
>
> <%=topMenuItem.getMenuItemName
> ()%>
>
>  
>   
>   
>  border="0">
> 
>   
> 
> <%
>  }
>   }
> %>
> 
> 
> 
> 
> 
> I realise that this is not best practice and I should be using the tag-libs
> but I'm struggling to make the tag-libs work, I'm also confused about
> whether this tile needs to be inside a form as I am not actually submitting
> anything (as in a Login page), however I do need to pass a pageName
> parameter into the request.
> 
> The above example does work (sort of) however I am unable to extract the
> pageName parameter in my action class as it keeps returning null
> 
> I would really appreciate some pointers as I thought I had struts figured
> but I now realise I've gone wrong somewhere along the line
> 
> Regards
> 
> Joanne Corless
> 
> CSC Computer Sciences Limited
> (   Office +44 (0)1772 318025
> ( Mobile +44 (0)7767 656588
> * email [EMAIL PROTECTED]
> 
> 
> Based at: CSC, Alliance House, Library Road, Chorley, Lancs, PR6 7EN
> CSC Computer Sciences Limited: Registered in England, No. 963578.
> Register

RE: [Slightly OT] Where/how to start?

2003-10-14 Thread Nicholson, Robb
Here's what I did at my last job: I was mostly a C, JAM, Oracle developer
but wanted to learn Java and J2EE. Try to find an approach that will let you
learn J2EE while benefiting the company in some way. 

Let your managers know that you want to learn the technology. They'll know
that you aren't content just doing the same old thing every day, and they
might start to look for training opportunities, whether it is sending you to
class or putting you on newer J2EE projects.

Another way is to take a few hours each week learning a new technology and
incorporating that into some sort of prototype that your company might be
interested in. Take an existing application and prototype a Java/J2EE
version of it. Show it off to your managers, then move on and do some more
prototypes. Even if it doesn't go into production, you have built real
applications in a real work environment.



-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 6:27 PM
To: [EMAIL PROTECTED]
Subject: [Slightly OT] Where/how to start?


Hi all,

I have a strong Perl/CGI background, but my JSP/Servlet/J2EE experience
is related only to what I did in college. My job entails C development,
but I really want to get more into this J2EE stuff.  It's so much more
enjoyable than this C work I am doing, but I can't seem to get my foot
in the door.  In looking for a J2EE development job, I keep hearing
that I need more experience, which is perfectly understandable.   But,
I can't get experience without getting a job doing it first.  My
question is, how do I get my foot in the door so I can split my boring
job and do what I really want to do?  Do I need to go full tilt and get
a certification or something like that?  Any ideas would be most
helpful.  Even more helpful would be a J2EE job in the Chicago area
where I could develop my professional career in this area.

Thanks very much!


Best Regards,
Andy


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


RE: Passing parameters between forms

2003-10-14 Thread Shyam A
Carey,

Thanks for your mail. I knew about the option you
suggested and mentioned it in my mail.

quote:

I know I can save the "foo" attribute into session in
Action A class and access it in Action B, or set the
scope of Form A to session in struts-config and access
Form A from Action B.

unquote:

However, the disadvantage of this option is that I
need to use session scope for the forms, which I would
like to avoid.

I also know it is possible to pass the form attribute
as a request parameter as follows:



But, this allows the user to see the parameters being
passed. I would rather use buttons for the link and
post the form.

Do you have any suggestions/comments?

Thanks,
Shyam


--- Carey Nation <[EMAIL PROTECTED]> wrote:
> I have some vague memory (perhaps completely wrong)
> that the forms are
> stored wherever they are stored using the names that
> you specify in
> struts-config.  It may not be the nicest way to do
> this, but I'm pretty sure
> that, given session scope on your forms, you can do
> something like
> (FormA)forma = session.getAttribute("FormA");
> 
> HTH,
> Carey
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof


create a scripting variable "agencyIds" and a page scope bean "agencyIds". This 
created vector is empty.

<%  agencyIds= MyUtils.getAgencyIds();   %>

chags the object referenced by the scripting variable, but not the page scoped bean.

You should use something like this, assuming populateAgencyIds(List) adds items to an 
existing List :

<% MyUtils.populateAgencyIds(agencyIds); %>

Nico.



- Original Message - 
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 3:18 PM
Subject: Re: URGENT: html:options


> hi!
> thanks for the reply.
> doesn't the jsp import statement followed by the usebean ie,
> %@ page import="MyUtils" %>
> 
> introduce the agencyIds into page scope.
> also with the example you gave me should
> >
> > > label="label"
> > value="value" />
> >
> shouldn't the value of collections be items, since that is the key you used.
> 
> thanks
> cheers
> ajay
> 
> 
> >From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: URGENT: html:options
> >Date: Tue, 14 Oct 2003 15:11:57 +0200
> >
> >collection attribute of  tag is used to set the name of a 
> >bean (in some scope) that is a collection of the
> >items off the select-box.
> >
> >You need to put your Vector into page or request scope to use this tag:
> >
> ><%
> > request.setAttribute("items", agencyIds);
> >%>
> >
> >
> > > label="label"
> > value="value" />
> >
> >
> >Nico.
> >
> >
> >- Original Message -
> >From: "ajay brar" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, October 14, 2003 2:53 PM
> >Subject: RE: URGENT: html:options
> >
> >
> > > hi!
> > >
> > > >I think your collection needs to implement the List interface (use an
> > > >ArrayList instead of a vector)
> > > but a vector implements the List interface, or so says the api
> > > any other ideas
> > >
> > >
> > >
> > > >
> > > >-Original Message-
> > > >From: ajay brar [mailto:[EMAIL PROTECTED]
> > > >Sent: 14 October 2003 12:45
> > > >To: [EMAIL PROTECTED]
> > > >Subject: URGENT: html:options
> > > >
> > > >hi!
> > > >i'm getting a problem with my html:options
> > > >what i have is a MyUtils class with a method to retrieve a list of 
> >agency
> > > >id's from the database
> > > >class MyUtils
> > > >{
> > > >//gets agencyIds creates LabelValueBeans and chucks them into a 
> >Vector
> > > >  public static Vector getAgencyIds()
> > > >}
> > > >
> > > >in my jsp page i had
> > > ><%@ page import="MyUtils" %>
> > > >
> > > ><%  agencyIds= MyUtils.getAgencyIds();   %>
> > > >i then had
> > > >
> > > >> > >labelProperty="label" />
> > > >
> > > >
> > > >this gave me an error, setCollection(java.lang.String) cannot be 
> >applied to
> > > >java.util.Vector
> > > >this was a compiler error.
> > > >
> > > >i tried doing,
> > > >changed MyUtils to
> > > >class MyUtils
> > > >{
> > > >private Vector agencyIds=new Vector();
> > > >//gets agencyIds creates LabelValueBeans and chucks them into a 
> >Vector
> > > >  public Vector getAgencyIds()
> > > >}
> > > ><%@ page import="MyUtils" %>
> > > >
> > > >
> > > >> > >label="label"
> > > >value="value" />
> > > >
> > > >
> > > >this gave me an error saying it couldn't find bean agencyId in any 
> >scope.
> > > >
> > > >could someone please help.
> > > >
> > > >thanks
> > > >cheers
> > > >ajay
> > > >
> > > >_
> > > >ninemsn Premium transforms your e-mail with colours, photos and 
> >animated
> > > >text. Click here  http://ninemsn.com.au/premium/landing.asp
> > > >
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > > _
> > > E-mail just got a whole lot better. New ninemsn Premium. Click here
> > > http://ninemsn.com.au/premium/landing.asp
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Get less junk mail with ninemsn Premium. Click here  
> http://ninemsn.com.au/premium/landing.asp
> 
> 
> -
> To un

Re: URGENT: html:options

2003-10-14 Thread ajay brar
hi!
thanks for the reply.
doesn't the jsp import statement followed by the usebean ie,
%@ page import="MyUtils" %>

introduce the agencyIds into page scope.
also with the example you gave me should

   

shouldn't the value of collections be items, since that is the key you used.

thanks
cheers
ajay

From: "Nicolas De Loof" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: URGENT: html:options
Date: Tue, 14 Oct 2003 15:11:57 +0200
collection attribute of  tag is used to set the name of a 
bean (in some scope) that is a collection of the
items off the select-box.

You need to put your Vector into page or request scope to use this tag:

<%
request.setAttribute("items", agencyIds);
%>

   

Nico.

- Original Message -
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 2:53 PM
Subject: RE: URGENT: html:options
> hi!
>
> >I think your collection needs to implement the List interface (use an
> >ArrayList instead of a vector)
> but a vector implements the List interface, or so says the api
> any other ideas
>
>
>
> >
> >-Original Message-
> >From: ajay brar [mailto:[EMAIL PROTECTED]
> >Sent: 14 October 2003 12:45
> >To: [EMAIL PROTECTED]
> >Subject: URGENT: html:options
> >
> >hi!
> >i'm getting a problem with my html:options
> >what i have is a MyUtils class with a method to retrieve a list of 
agency
> >id's from the database
> >class MyUtils
> >{
> >//gets agencyIds creates LabelValueBeans and chucks them into a 
Vector
> >  public static Vector getAgencyIds()
> >}
> >
> >in my jsp page i had
> ><%@ page import="MyUtils" %>
> >
> ><%  agencyIds= MyUtils.getAgencyIds();   %>
> >i then had
> >
> >   
> >labelProperty="label" />
> >
> >
> >this gave me an error, setCollection(java.lang.String) cannot be 
applied to
> >java.util.Vector
> >this was a compiler error.
> >
> >i tried doing,
> >changed MyUtils to
> >class MyUtils
> >{
> >private Vector agencyIds=new Vector();
> >//gets agencyIds creates LabelValueBeans and chucks them into a 
Vector
> >  public Vector getAgencyIds()
> >}
> ><%@ page import="MyUtils" %>
> >
> >
> >   
> >label="label"
> >value="value" />
> >
> >
> >this gave me an error saying it couldn't find bean agencyId in any 
scope.
> >
> >could someone please help.
> >
> >thanks
> >cheers
> >ajay
> >
> >_
> >ninemsn Premium transforms your e-mail with colours, photos and 
animated
> >text. Click here  http://ninemsn.com.au/premium/landing.asp
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> E-mail just got a whole lot better. New ninemsn Premium. Click here
> http://ninemsn.com.au/premium/landing.asp
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get less junk mail with ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp

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


RE: DynaActionForms

2003-10-14 Thread Robert Taylor
I'm not sure what you mean when you ask "what view technology".

You can find ListUtils here:
http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect
ions/ListUtils.html

I've rendered these lists using a variety of 
components - checkboxes, multiboxes, select lists, text, hidden, etc...

I admit, I had a hard time getting my head around how to use indexed
properties
and dynamically generated fields but they work. You will most likely have to
subclass the DynaActionForm and override the reset().

Heres a link to using indexed properties:
http://jakarta.apache.org/struts/faqs/indexedprops.html

Let me know if I answered your question.

robert

> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 8:12 AM
> To: Struts Users Mailing List
> Subject: RE: DynaActionForms
>
>
> Interesting idea.  My other choice is to stick a map in a standard action
> form.  What view technology are you using with these lists?
>
> Edgar
>
> > -Original Message-
> > From: Robert Taylor [mailto:[EMAIL PROTECTED]
> > Sent: Monday, October 13, 2003 4:07 PM
> > To: Struts Users Mailing List
> > Subject: RE: DynaActionForms
> >
> >
> > Edgar, have you thought about using indexed properties together with
> > ListUtils.lazylist()
> > with DynaActionForms.
> >
> > I've successfully used them with DynaActionForms where my
> > fields are completely dynamic.
> >
> > Just a thought.
> >
> > robert
> >
> >
> > > -Original Message-
> > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, October 13, 2003 4:39 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: DynaActionForms
> > >
> > >
> > > Thanks for the input.  I did some more research and I think I
> > > understand the forms a little better.
> > >
> > > The following code will create a DynaActionForm with one
> > String field:
> > >
> > >   FormBeanConfig formBean = new FormBeanConfig();
> > >   FormPropertyConfig fpc = null;
> > >
> > >   fpc = new FormPropertyConfig();
> > >   fpc.setName("testField1");
> > >   fpc.setType(java.lang.String.class.getName());
> > >   fpc.setInitial("testField1Value");
> > >
> > >   formBean.addFormPropertyConfig(fpc);
> > >
> > >
> > formBean.setType(org.apache.struts.action.DynaActionForm.class
> > .getName());
> > >   formBean.freeze();
> > >
> > >   DynaActionFormClass dFC =
> > > DynaActionFormClass.createDynaActionFormClass(formBean);
> > >   DynaActionForm dynaForm = (DynaActionForm)
> > dFC.newInstance();
> > >
> > >
> > > I think I know the answer already (my apologies), but will
> > this code
> > > break with new releases of struts.
> > >
> > > Thanks
> > >
> > > Edgar
> > >
> > > > -Original Message-
> > > > From: Nick [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 13, 2003 2:41 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Re: DynaActionForms
> > > >
> > > >
> > > > I do not believe that you can do dynamically add fields to a
> > > > DynaForm, as the config is frozen at app startup.  Might
> > work with
> > > > an internal HashMap though.
> > > >
> > > > On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
> > > > > I'm assuming that he meant create a new property that is
> > > > not already
> > > > > defined in the struts-config. In which case I think your
> > > > reply would
> > > > > fail with an property not found type exception. :-/
> > > > > One way around this is to have a Hashmap within the
> > > > hashmapped dynaform.
> > > > > That will allow you to do something like:
> > > > >
> > > > > Hashmap myDynaproperties =
> > > > (Hashmap)myDynaform.get("dynaProperties");
> > > > > myDynaproperties.set("foo", bar);
> > > > > Etc.
> > > > >
> > > > > Another possibility (although I havent tried it) is to operate
> > > > > directly on the map.
> > > > >
> > > > > myDynaproperties.getMap().put("foo", bar);
> > > > >
> > > > > -Tim
> > > > >
> > > > > -Original Message-
> > > > > From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 13, 2003 3:21 PM
> > > > > To: 'Struts Users Mailing List'
> > > > > Subject: RE: DynaActionForms
> > > > >
> > > > >
> > > > > yourdynaform.set("propertyname",propertyvalue);
> > > > >
> > > > > > -Mensaje original-
> > > > > > De: Edgar P Dollin [mailto:[EMAIL PROTECTED] Enviado el:
> > > > > > lunes, 13 de octubre de 2003 19:35
> > > > > > Para: Struts Users Mailing List
> > > > > > Asunto: DynaActionForms
> > > > > >
> > > > > >
> > > > > > I have an application with configuration files
> > already. Rather
> > > > > > than have struts-config configure DynaForms, I would like to
> > > > > > populate the forms myself.
> > > > > >
> > > > > > Does anyone have any experience with how this behaves
> > in struts?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > Edgar
> > > > > >
> > > > > >
> > > >
> > ---

Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof
collection attribute of  tag is used to set the name of a bean (in some 
scope) that is a collection of the
items off the select-box.

You need to put your Vector into page or request scope to use this tag:

<%
request.setAttribute("items", agencyIds);
%>


   


Nico.


- Original Message - 
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 2:53 PM
Subject: RE: URGENT: html:options


> hi!
>
> >I think your collection needs to implement the List interface (use an
> >ArrayList instead of a vector)
> but a vector implements the List interface, or so says the api
> any other ideas
>
>
>
> >
> >-Original Message-
> >From: ajay brar [mailto:[EMAIL PROTECTED]
> >Sent: 14 October 2003 12:45
> >To: [EMAIL PROTECTED]
> >Subject: URGENT: html:options
> >
> >hi!
> >i'm getting a problem with my html:options
> >what i have is a MyUtils class with a method to retrieve a list of agency
> >id's from the database
> >class MyUtils
> >{
> >//gets agencyIds creates LabelValueBeans and chucks them into a Vector
> >  public static Vector getAgencyIds()
> >}
> >
> >in my jsp page i had
> ><%@ page import="MyUtils" %>
> >
> ><%  agencyIds= MyUtils.getAgencyIds();   %>
> >i then had
> >
> >>labelProperty="label" />
> >
> >
> >this gave me an error, setCollection(java.lang.String) cannot be applied to
> >java.util.Vector
> >this was a compiler error.
> >
> >i tried doing,
> >changed MyUtils to
> >class MyUtils
> >{
> >private Vector agencyIds=new Vector();
> >//gets agencyIds creates LabelValueBeans and chucks them into a Vector
> >  public Vector getAgencyIds()
> >}
> ><%@ page import="MyUtils" %>
> >
> >
> >>label="label"
> >value="value" />
> >
> >
> >this gave me an error saying it couldn't find bean agencyId in any scope.
> >
> >could someone please help.
> >
> >thanks
> >cheers
> >ajay
> >
> >_
> >ninemsn Premium transforms your e-mail with colours, photos and animated
> >text. Click here  http://ninemsn.com.au/premium/landing.asp
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> E-mail just got a whole lot better. New ninemsn Premium. Click here
> http://ninemsn.com.au/premium/landing.asp
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: [OT] Forum solutions

2003-10-14 Thread Robert Taylor
Thanks Sandra, I'll take a look.

robert

> -Original Message-
> From: Sandra Cann [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 13, 2003 10:05 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Forum solutions
> 
> 
> Robert 
> 
> No need to roll your own. Please also have a look at eForum which is open
> source (www.jcorporate.com). Its license is an apache style 
> license (not GPL
> :)). Its been around as long as Jive and has about 37,000 downloads. Its
> Struts and Express based. The most recent version has search capabilities
> using Lucene. 
> 
> Sandra
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



[REPOST] Best Practice Question - html links

2003-10-14 Thread Joanne L Corless
I know this may seem a little rude but no-one picked up on my question and
I really could use some help with this

Regards
Joanne Corless

- Forwarded by Joanne L Corless/UK/CSC on 14/10/03 13:36 -
   
 
  Joanne L Corless 
 
  /UK/CSC  To:  [EMAIL PROTECTED]  

   cc: 
 
  13/10/03 17:12   Subject: Best Practice Question re: 
html links   
   
 
   
 



Hi,

I am implementing a struts application with menu lists which need to be
dynamic based on a user role hierarchy, i.e not a simple user role = menu
list. Therefore I cannot set up menu lists in the tile definitions file as
they are

I hold the menu list in a database which I am accessing via an EJB and
returning to the session using a vector of DAO object 's which contain the
basic information about each menu item, i.e name, link,type (we have
different types of links some open a pop-up window, others run an inline
java applet)

Currently I am using standard Java scriptlets to access the vector and
print it out in the JSP tile page example below:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts/tiles" prefix="tiles" %>
<%@ taglib uri="/struts/logic" prefix="logic" %>
<%@ taglib uri="/struts/bean" prefix="bean" %>
<%@ taglib uri="/struts/html" prefix="html" %>
<%@ page import="com.csc.ebilling.ejb.common.MenuItemDAO" %>
<%
 String commonImagePath= request.getContextPath()
+"/presentation/DEFAULT/images";
 String currentPageName = (String)session.getAttribute
("currentPageName");
 java.util.Vector topMenu = (java.util.Vector) session.getAttribute
("topMenu");
%>




<%
  for (int i=0;i
  
 
   

<%=topMenuItem.getMenuItemName()%>

  

   
<%
}
else
{
%>
  
   

   
  
  
   
<%=topMenuItem.getMenuItemName
()%>
   
 
  
  


  

<%
 }
  }
%>





I realise that this is not best practice and I should be using the tag-libs
but I'm struggling to make the tag-libs work, I'm also confused about
whether this tile needs to be inside a form as I am not actually submitting
anything (as in a Login page), however I do need to pass a pageName
parameter into the request.

The above example does work (sort of) however I am unable to extract the
pageName parameter in my action class as it keeps returning null

I would really appreciate some pointers as I thought I had struts figured
but I now realise I've gone wrong somewhere along the line

Regards

Joanne Corless

CSC Computer Sciences Limited
(   Office +44 (0)1772 318025
( Mobile +44 (0)7767 656588
* email [EMAIL PROTECTED]


Based at: CSC, Alliance House, Library Road, Chorley, Lancs, PR6 7EN
CSC Computer Sciences Limited: Registered in England, No. 963578.
Registered office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
GU11 1PZ.




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.







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



RE: URGENT: html:options

2003-10-14 Thread ajay brar
hi!

I think your collection needs to implement the List interface (use an
ArrayList instead of a vector)
but a vector implements the List interface, or so says the api
any other ideas


-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:45
To: [EMAIL PROTECTED]
Subject: URGENT: html:options
hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
   //gets agencyIds creates LabelValueBeans and chucks them into a Vector
 public static Vector getAgencyIds()
}
in my jsp page i had
<%@ page import="MyUtils" %>

<%  agencyIds= MyUtils.getAgencyIds();   %>
i then had

  

this gave me an error, setCollection(java.lang.String) cannot be applied to
java.util.Vector
this was a compiler error.
i tried doing,
changed MyUtils to
class MyUtils
{
   private Vector agencyIds=new Vector();
   //gets agencyIds creates LabelValueBeans and chucks them into a Vector
 public Vector getAgencyIds()
}
<%@ page import="MyUtils" %>


  
value="value" />


this gave me an error saying it couldn't find bean agencyId in any scope.

could someone please help.

thanks
cheers
ajay
_
ninemsn Premium transforms your e-mail with colours, photos and animated
text. Click here  http://ninemsn.com.au/premium/landing.asp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
E-mail just got a whole lot better. New ninemsn Premium. Click here 
http://ninemsn.com.au/premium/landing.asp

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


[OT] JavaPro 2003 Readers Choice Awards

2003-10-14 Thread Mark Galbreath
These topics come up often enough that I thought this might help some people
and/or spark some discussion:

CategoryProduct
--
IDE Borland JBuilder

Development Suites  Eclipse Consortium Eclipse

Modeling Tools  Borland Together

Testing Tools   Eric Gamma and Kent Beck's JUnit

Web Services DevelopmentSun Microsystems Web Services Developer Pack

Visual Bean/Components  BEA WebLogic Workshop
Oracle 9i Business Intelligence Beans

Reporting Tools Crystal Decisions Crystal Reports

Graphics Tools  Apache Batik SVG Toolkit

J2EE Application ServersBEA WebLogic Server

Messaging Tools IBM WebSphere MQ Series

EAI IBM WebSphere Studio Application Developer
Integration Edition

Optimization/Profiling  Borland Optimizeit Suite

Data Access Oracle 9iAS Toplink

JVM Sun Microsystems JVMs



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



User authentication and Intranet single sign on

2003-10-14 Thread Robert Lamping
Dear all,

For our Struts application we are looking for a single sign on solution.
(Sign on in the network, NOT single-sign on in Tomcat)
With much interest I followed the thread about user-authentication by
Caroline Jen, Gregg and finally the examples of Matt Raible.

I tried the code and it works. We use FORM based authentication now and this
is a good alternative when testing authorization in our web application for
user with different authorization.
We are using Tomcat (Jakarta-Tomcat 4.1.27 with hotfix 22096). and defined a
realm to our user, user roles database. 

For the production environment we are looking for the following:
Users login into the network with their own username and password. I am
looking for a way to grab this username and authenticate this user "under
water" in Tomcat or using some other means, e.g. a filter, using the realm
"user/userroles-database"
 
The result should be that the user only gets a login denied screen when he
is not authorized. 

What is the easiest way to do this? 

Another approach:
We tried to use jcifs, but then the FORM based authentication of the
container does not work. 
When using jcifs, the request.isUserInRole() does not work. Does someone has
example code to solve this?

Hope you can help.

Kind regards,

Robert Lamping






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



Re: java.net.URL

2003-10-14 Thread ian_d_stewart


As far as I can tell, there is no easy way to do this.

In theory, you could provide your own URLStreamHandlerFactory, that sets an
appropriate timeout on the underlying Socket, then pass it in to the URL
constructor, but this would be a non-trivial solution.


HTH,
Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
[EMAIL PROTECTED]
(614) 244-2564




"Stefan Trcko" <[EMAIL PROTECTED]> on 10/14/2003 06:02:49 AM

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

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:  java.net.URL



Hello

I'm using java.net.URL to get content from other web site.
The problem is when this url address which I want to open (openConnection
())
is very slow. When this happens I want that some kind of time out exception
is thrown
(and the content of this other web site on my site is not shown).
How to check that the url cannot be open in for example 2 seconds (and
after this 2 second throw an time out exception)

Regards
Stefan




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









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


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



RE: [SOLVED] Drop down boxes

2003-10-14 Thread Paul McCulloch
How about some javascript (to call submit()) on the onchange event of the
dropdown?

Paul

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:42
To: Struts Users Mailing List
Subject: [SOLVED] Drop down boxes




Todor Sergueev Petkov wrote:
> Hello every body,
> any suggestions on the following :
> 
> 1. I use a drop down box associated with a Struts LookupDispatchAction.
> 2. I Have another textfield form associated with the same action on the 
> same page.
> 3. I would like when users selects something in the drop down box the 
> text field to be updated with the selection from the ddb- > a.k.a the 
> page has to be redisplayed...
> 
> Anyone has done something similar before?
> 
> Thanks, Todor
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> .
> 


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: DynaActionForms

2003-10-14 Thread Edgar P Dollin
Interesting idea.  My other choice is to stick a map in a standard action
form.  What view technology are you using with these lists?

Edgar

> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 13, 2003 4:07 PM
> To: Struts Users Mailing List
> Subject: RE: DynaActionForms
> 
> 
> Edgar, have you thought about using indexed properties together with
> ListUtils.lazylist()
> with DynaActionForms.
> 
> I've successfully used them with DynaActionForms where my 
> fields are completely dynamic.
> 
> Just a thought.
> 
> robert
> 
> 
> > -Original Message-
> > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > Sent: Monday, October 13, 2003 4:39 PM
> > To: Struts Users Mailing List
> > Subject: RE: DynaActionForms
> >
> >
> > Thanks for the input.  I did some more research and I think I 
> > understand the forms a little better.
> >
> > The following code will create a DynaActionForm with one 
> String field:
> >
> > FormBeanConfig formBean = new FormBeanConfig();
> > FormPropertyConfig fpc = null;
> >
> > fpc = new FormPropertyConfig();
> > fpc.setName("testField1");
> > fpc.setType(java.lang.String.class.getName());
> > fpc.setInitial("testField1Value");
> >
> > formBean.addFormPropertyConfig(fpc);
> >
> > 
> formBean.setType(org.apache.struts.action.DynaActionForm.class
> .getName());
> > formBean.freeze();
> >
> > DynaActionFormClass dFC = 
> > DynaActionFormClass.createDynaActionFormClass(formBean);
> > DynaActionForm dynaForm = (DynaActionForm) 
> dFC.newInstance();
> >
> >
> > I think I know the answer already (my apologies), but will 
> this code 
> > break with new releases of struts.
> >
> > Thanks
> >
> > Edgar
> >
> > > -Original Message-
> > > From: Nick [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, October 13, 2003 2:41 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: DynaActionForms
> > >
> > >
> > > I do not believe that you can do dynamically add fields to a 
> > > DynaForm, as the config is frozen at app startup.  Might 
> work with 
> > > an internal HashMap though.
> > >
> > > On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
> > > > I'm assuming that he meant create a new property that is
> > > not already
> > > > defined in the struts-config. In which case I think your
> > > reply would
> > > > fail with an property not found type exception. :-/
> > > > One way around this is to have a Hashmap within the
> > > hashmapped dynaform.
> > > > That will allow you to do something like:
> > > >
> > > > Hashmap myDynaproperties =
> > > (Hashmap)myDynaform.get("dynaProperties");
> > > > myDynaproperties.set("foo", bar);
> > > > Etc.
> > > >
> > > > Another possibility (although I havent tried it) is to operate 
> > > > directly on the map.
> > > >
> > > > myDynaproperties.getMap().put("foo", bar);
> > > >
> > > > -Tim
> > > >
> > > > -Original Message-
> > > > From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 13, 2003 3:21 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: DynaActionForms
> > > >
> > > >
> > > > yourdynaform.set("propertyname",propertyvalue);
> > > >
> > > > > -Mensaje original-
> > > > > De: Edgar P Dollin [mailto:[EMAIL PROTECTED] Enviado el: 
> > > > > lunes, 13 de octubre de 2003 19:35
> > > > > Para: Struts Users Mailing List
> > > > > Asunto: DynaActionForms
> > > > >
> > > > >
> > > > > I have an application with configuration files 
> already. Rather 
> > > > > than have struts-config configure DynaForms, I would like to 
> > > > > populate the forms myself.
> > > > >
> > > > > Does anyone have any experience with how this behaves 
> in struts?
> > > > >
> > > > > Thanks
> > > > >
> > > > > Edgar
> > > > >
> > > > >
> > > 
> 
> > > > > -
> > > > > To unsubscribe, e-mail: 
> > > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > 
> 
> > > -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > 
> 
> > > -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> > > > [EMAIL PROTECTED]
> > >
> > > --
> > > Nick Heudecker
> > > SystemMobile, Inc.
> > > Email: [EMAIL PROTECTED]
> > > Web: http://www.systemmobile.com
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 

-
To unsubscribe, e-mail:

Re: news.basebeans.com problem

2003-10-14 Thread Vic Cekvenic
It works fine.
Outlook?
Try removing the newsgroup server and adding it again.
.V
Sudip Kumar Bhattacharya(HOTPOP) wrote:

Hi

I have been using Outlook Express to connect to the news.basebeans.com to
download the struts newsgroup mails. For the last few days, it is giving
some errors. Is the group down or what?
The exact error message while polling for mails is :

Your 'Struts' folder was not polled for its unread count.  Account:
'news.basebeans.com', Server: 'news.basebeans.com', Protocol: NNTP, Port:
119, Secure(SSL): No, Error Number: 0x800CCC14
The exact error message while resetting the list for the newsgroup is :
Configuration:
   Account: news.basebeans.com
   Server: news.basebeans.com
   User name: [EMAIL PROTECTED]
   Protocol: NNTP
   Port: 119
   Secure(SSL): 0
   Code: 800ccc0e
Is there any other free news server that hosts the struts newsgroup?

Sudip


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


RE: [Poll] Action Form data types

2003-10-14 Thread Edgar P Dollin
None of the above.  I use java data types but use getters and setters in the
ActionForm to perform the casting and any other manipulations necessary.

Edgar

> 
> Mainguy, Mike wrote:
> > Here's my weekly(ish) question:
> > For the purposes of this discussion, ActionForms also mean 
> > DynaActionForms and the like... Where does everyone cast their 
> > (String) request parameters to the 'proper' datatype?
> > 
> > #1  My ActionForms only have Strings, I manually cast stuff 
> somewhere 
> > else. #2  My ActionForms only have Strings, I let (BeanUtils, 
> > JDBC,...) cast stuff for me somewhere else. #3  My ActionForms have 
> > java Datatypes, I let Struts(yeah, beanutils, I
> > know) cast stuff for me.
> > #4  I use strings for everything, I don't need to cast.
> > 
> > -
> > This message and its contents (to include attachments) are the 
> > property of Kmart Corporation (Kmart) and may contain 
> confidential and 
> > proprietary information. You are hereby notified that any 
> disclosure, 
> > copying, or distribution of this message, or the taking of 
> any action 
> > based on information contained herein is strictly prohibited. 
> > Unauthorized use of information contained herein may subject you to 
> > civil and criminal prosecution and penalties. If you are not the 
> > intended recipient, you should delete this message immediately.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 

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



RE: DynaActionForms

2003-10-14 Thread Mark Galbreath
Yes.

-Original Message-
From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 1:35 PM

...I would like to populate the (DynaAction)forms myself.

Does anyone have any experience with how this behaves in struts?


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



RE: URGENT: html:options

2003-10-14 Thread Daniel Haynes
I think your collection needs to implement the List interface (use an
ArrayList instead of a vector)

-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:45
To: [EMAIL PROTECTED]
Subject: URGENT: html:options

hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
   //gets agencyIds creates LabelValueBeans and chucks them into a Vector
 public static Vector getAgencyIds()
}

in my jsp page i had
<%@ page import="MyUtils" %>

<%  agencyIds= MyUtils.getAgencyIds();   %>
i then had

  


this gave me an error, setCollection(java.lang.String) cannot be applied to
java.util.Vector
this was a compiler error.

i tried doing,
changed MyUtils to
class MyUtils
{
   private Vector agencyIds=new Vector();
   //gets agencyIds creates LabelValueBeans and chucks them into a Vector
 public Vector getAgencyIds()
}
<%@ page import="MyUtils" %>


  


this gave me an error saying it couldn't find bean agencyId in any scope.

could someone please help.

thanks
cheers
ajay

_
ninemsn Premium transforms your e-mail with colours, photos and animated
text. Click here  http://ninemsn.com.au/premium/landing.asp


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


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



Re: AW: Accessing Application Ressources

2003-10-14 Thread Todor Sergueev Petkov
Thanks a lot Frank

Otto, Frank wrote:
Hello Todor,

you can access directly:

MessageResources resources = 
   (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);

resource.getMessage(locale, "property.key");

Regards,

Frank



-Ursprungliche Nachricht-
Von: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 14. Oktober 2003 13:41
An: Struts Users Mailing List
Betreff: Accessing Application Ressources
Hello,
	does anybody know how, from a Struts Action class I can
access the name of the Application Ressources file defined inside
web.xml. Or is there a simpler way to access directly the properties, 
one by one from the properties file?

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



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


AW: Accessing Application Ressources

2003-10-14 Thread Otto, Frank
Hello Todor,

you can access directly:

MessageResources resources = 
   (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);

resource.getMessage(locale, "property.key");

Regards,

Frank



-Ursprungliche Nachricht-
Von: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 14. Oktober 2003 13:41
An: Struts Users Mailing List
Betreff: Accessing Application Ressources


Hello,
does anybody know how, from a Struts Action class I can
access the name of the Application Ressources file defined inside
web.xml. Or is there a simpler way to access directly the properties, 
one by one from the properties file?

Thanks,
Todor


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

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



URGENT: html:options

2003-10-14 Thread ajay brar
hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency 
id's from the database
class MyUtils
{
  //gets agencyIds creates LabelValueBeans and chucks them into a Vector
public static Vector getAgencyIds()
}

in my jsp page i had
<%@ page import="MyUtils" %>

<%  agencyIds= MyUtils.getAgencyIds();   %>
i then had

 

this gave me an error, setCollection(java.lang.String) cannot be applied to 
java.util.Vector
this was a compiler error.

i tried doing,
changed MyUtils to
class MyUtils
{
  private Vector agencyIds=new Vector();
  //gets agencyIds creates LabelValueBeans and chucks them into a Vector
public Vector getAgencyIds()
}
<%@ page import="MyUtils" %>


 


this gave me an error saying it couldn't find bean agencyId in any scope.

could someone please help.

thanks
cheers
ajay
_
ninemsn Premium transforms your e-mail with colours, photos and animated 
text. Click here  http://ninemsn.com.au/premium/landing.asp

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


RE: html:hidden, disabled attribute

2003-10-14 Thread Chen, Haiwei (H.)
Thanks for your response. We have a need to include a hidden tag in the
form; but sometime we want the hidden tag to be disabled so its value will
not be posted to the server. 

I have filed a bug report. The problem will be fixed in the future Struts
releases.

-Original Message-
From: Robert Lamping [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 6:38 PM
To: Struts Users Mailing List
Subject: RE: html:hidden, disabled attribute


Haiwei,

The purpose of the hidden tag is to keep the property and its value in the
dataset of the form. And you will use it, when you don't want to expose the
value to the user.
Whereas the disabled attribute will exclude the property from the dataset in
the request. 

For your information. When you would have a unique value for the item
presented on the screen and you use , then
you will find out
that the property for this unique value is not in your request. With the
normal getters and setters, your unique value now gets blanked. "". And gone
is your unique code.

Hence, the hidden tag and the disabled attribute are more or less mutually
exclusive.

Kind regards,

Robert Lamping


-Original Message-
From: Chen, Haiwei (H.) [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 5:36 PM
To: Struts Users Mailing List (E-mail)
Subject: html:hidden, disabled attribute


Does anyone know whether future Struts release will support the "disabled"
attribute for the  tag? 

For some reason, it is not supported in the Struts 1.1. Does anyone know the
reason behind that?

Thanks.

Haiwei

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

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

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



[SOLVED] Drop down boxes

2003-10-14 Thread Todor Sergueev Petkov


Todor Sergueev Petkov wrote:
Hello every body,
any suggestions on the following :
1. I use a drop down box associated with a Struts LookupDispatchAction.
2. I Have another textfield form associated with the same action on the 
same page.
3. I would like when users selects something in the drop down box the 
text field to be updated with the selection from the ddb- > a.k.a the 
page has to be redisplayed...

Anyone has done something similar before?

Thanks, Todor

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



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


Accessing Application Ressources

2003-10-14 Thread Todor Sergueev Petkov
Hello,
	does anybody know how, from a Struts Action class I can
access the name of the Application Ressources file defined inside
web.xml. Or is there a simpler way to access directly the properties, 
one by one from the properties file?

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


java.lang.IllegalArgumentException: No bean specified

2003-10-14 Thread Deepak



Hi,
    Submission of a page after using 
browser back button results in "java.lang.IllegalArgumentException: No bean 

specified" error. Initially I thought may be the 
form is not in the session, so I put a check in 
the corresponding action class. But 
the exception is 
thrown before the control reaches my action class. Any solution to this 
problem ?
 
StackTrace:
---
java.lang.IllegalArgumentException: No bean specified
	at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
	at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

---
 
thanks 'n' regards
deepak


Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:43 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:42 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:43 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:43 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:43 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:42 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:42 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:42 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



Returned mail: User unknown

2003-10-14 Thread Mail Delivery Subsystem
The original message was received at Tue, 14 Oct 2003 03:34:42 0800

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to :
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown


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



java.net.URL

2003-10-14 Thread Stefan Trcko
Hello

I'm using java.net.URL to get content from other web site.
The problem is when this url address which I want to open (openConnection())
is very slow. When this happens I want that some kind of time out exception
is thrown
(and the content of this other web site on my site is not shown).
How to check that the url cannot be open in for example 2 seconds (and
after this 2 second throw an time out exception)

Regards
Stefan




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



Re: why is there no attribute "name" for in struts???

2003-10-14 Thread Caroline Lauferon
you have to use StyleId attribute

Caroline

- Original Message -
From: "jagadeesh kumar movva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 11:59 AM
Subject: why is there no attribute "name" for  in struts???


> Hi,
>
> I want to submit a form from a frame, while the button
> I click to submit is in another frame. I am able to do
> this easily using the following code in Model 1
> architecture :
>
> if((parent.frames["frame3"].document.forms["roadinfo"].name)
> == ("roadinfo")){
>
>
parent.frames["frame3"].document.forms["roadinfo"].action="http://localhost:
8080/examples/jsp/mppp_license/Licenses/roadinfoHandler.jsp";
> //
> parent.frames["frame3"].document.forms["roadinfo"].target="_blank";
>
> parent.frames["frame3"].document.forms["roadinfo"].buttonType.value
> = buttonType;
>
> parent.frames["frame3"].document.forms["roadinfo"].submit();
> }
> }
>
> But, I find that in struts, there is no attribute
> called 'name' for . Then how can I identify the
> form which is in the first frame, from the frame in
> which the submit button is present?
>
> Please let me know if there is a way to do this in
> struts.
>
> Thanks
> Jag
>
> 
> Yahoo! India Matrimony: Find your partner online.
> Go to http://yahoo.shaadi.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



  1   2   >