Re: relative path in forward?

2002-11-15 Thread Gemes Tibor
2002. november 15. 04:24 d¨¢tummal Doug Dates ezt ¨ªrtad:
 Hi:

 I have a small question. It seems that there is no related discussion on
 the web.

 My questions: can I use relative path(without /) in forward in
 struts-config.xml? For example: can I use  forward name=logon
 path=logon.do/ instead of using forward name=logon
 path=/logon.do/? Notice: there is no / before logon.do in the first
 forward. I appreciate your help.

There is no reason to use a forward without the leading slash. It is a 
module-relative (or context-relative) path, and if you omit it you will be 
forwarded to http://myhost/myContextlogin.do. 

I think you are trying to solve the wrong problem. Please describe the reason 
for what are you trying to do this, and I'm sure we can come up with some 
better alternative.

Hth,

Tib

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[FRIDAY] shakespearean insults

2002-11-15 Thread Gemes Tibor
http://www.pangloss.com/seidel/Shaker/index.html

Tib

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[FRIDAY] airplane homes

2002-11-15 Thread Gemes Tibor
I am looking for a new job because I cannot afford (yet) the new home I've 
choosen. :)

http://www.airplanehomes.com/

Tib


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: October 2002 Download Counts

2002-11-15 Thread Gemes Tibor
2002. november 15. 08:15 dátummal Craig R. McClanahan ezt írtad:
 Thank you all for your support, and use, of Struts!!!

You can thank it to yourselves, Great Code-Wizards.
Or Code-Sorcerers? Or code-SOURCE-rers? :)



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Visually Developing Struts Pages

2002-11-15 Thread Vilya Harvey
Wow, thanks Craig! I'll check this out.

   http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html

Vil.
--
Vilya Harvey, Consultant
[EMAIL PROTECTED] / digital steps /
(W) +44 (0)1483 469 480  
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

--Disclaimer--

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to access ActionErrors from within FormAction

2002-11-15 Thread Markus Pedratscher \(WebBS\)
Hi,
I'm fairly new to struts and I'm having the following problem.

I want to display an error message in an js alert box. My understanding is
that I can't do that with /errors because if wraps the error.header and
.error.footer around each message and does not have an attribute to disable
this behavior.

Therefore what I want to do is to get the message from
application.properties and then store it in the form bean. The problem is
that I can't figure out which class/method to use to read the message from
application.properties (from within my formAction). I'm looking for
something like this:

String messageText = messageContext.getMessage(messageKey);

Can anyone help?
Thanks
Markus


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Tiles referencing actions.

2002-11-15 Thread ROSSEL Olivier
I have made an action LoginState that redirects either to  IsLogged.jsp if
a user
has logged in my application, or to IsNotLogged.jsp if the user is a guest.

Now I would like to use tiles for my applciation and provide in the upper
right
part of my pages, the output of this LoginState.

I have made my HTML template, the upper right part is referenced by the name
loginBox.

But when I want to tiles:put the output of the LoginState action into the
loginBox :

tiles:insert page=/pages/MainLayout.jsp flush=true
 tiles:put name=title value=/pages/Title.jsp/
 tiles:put name=loginBox value=/LoginState.do/
/tiles:insert

, nothing appears.

My question:
is it possible to have tiles:put to display the output of an action, instead
of just the output of a 
(statically-referenced) jsp.



---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Client-side Caching???

2002-11-15 Thread Jon Ferguson
I think I agree with you Andrew.  Especially since web-applications often
are targeted at a sub-group of users and may carry a stipulation of using a
limited range of browsers and setup...

Having said that.. the solid MVC architecture in struts can sometimes make
me forget I'm programming on the server :-)

Cheers,
Jon

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 13, 2002 10:13 AM
Subject: RE: Client-side Caching???


 A lot of web developers suffer from dhtmlaphobia and wont dare use any
form
 of client side scripting lest it alienate their users who run lynx or
 netscrap4.x...
 ;-)

 (Although to be fair there are still quite a few of the later around. You
 will also probably hear the excuse that people switch off JavaScript. I
 reckon such users deserve all they get (or more to the point dont
get(though
 Im sure they dont miss the advertising popups)))

 Certainly tab effects can be done easily in both ie5 and netscrap6 using
 styles and script  - despite the many many bugs in ns6 in this area...

 -Original Message-
 From: Savantraj, Chennamakal Subramanian [mailto:Savant.Rcs;ap.sony.com]
 Sent: Wednesday, November 13, 2002 17:59
 To: 'Struts Users Mailing List'
 Subject: RE: Client-side Caching???


 Why can't you try pure DHTML solutions for providing this kind of effects.
 Of course you may have to sacrifice cross browser compatibility some
times.
 Just making some hide and show mechanism you can simulate Tab effect
easily.


 -Original Message-
 From: Jon Ferguson [mailto:ferguson;ieee.org]
 Sent: Wednesday, November 13, 2002 5:49 PM
 To: Struts Users Mailing List
 Subject: Re: Client-side Caching???


 Hi Eelco,

 I'm using tiles to create tabbed panes: | A | B  C | etc...

 The user can select any pane to view other aspects of the application..
much
 like you would do in swing.  SO the traversing IS inside the application.
 Also I put an Apply button on each page then store the page state in a
 session on the server.  So the following works flawlessly:

 1)user edits A
 2)user applies A (changes are viewed)
 3)user selects the B tab - showing the B page
 4)user selects the A tab - showing the changed A page.

 But because nothing happens on the server without the apply.. the scenario
 does Not work if you leave out step 2.

 A software engineer wouldn't expect it too.. but a user would - especially
 coming from using a GUI app.

 The nature of the program requires as few clicks as possible.. and a lot
of
 information.. It's not really a workflow that I can see cause It's not
 sequential..

 The only way I can see solving this is to use JavaScript to capture edited
 but un-applied form data behind the scenes.  Or reworking the application
in
 someway to enforce the apply.

 The former feels like an enhancement on the Struts form tags.. which I'm
 willing to investigate if I'm not barking up the wrong tree!

 Cheers,
 Jon
 - Original Message -
 From: [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, November 12, 2002 9:06 AM
 Subject: RE: Client-side Caching???


 
  Jon,
 
  How does the client jump to page B? If this is done outside the scope of
  your application (e.g. by selecting a bookmark) there is really not much
  that can be done about it (I wouldn't speak about an HTML limitation,
but
  rather about a user limitation). If it's done inside the scope of your
  application (e.g. a button, tab or link you provided), you could easily
  submit the form to the server (without really applying the changes) and
  keep the form in your session, for the next time the client selects page
 A.
 
  Regards, Eelco
 
 
 
 
 
James Mitchell
[EMAIL PROTECTED]  To:  Jon Ferguson
 [EMAIL PROTECTED]
 cc:  Struts Users
 Mailing List [EMAIL PROTECTED]
11-11-2002 13:19 Subject: RE: Client-side
 Caching???
Please respond to
Struts Users Mailing
List
 
 
 
 
 
  Hi Jon,
 
  This really belongs on the struts-users mailing list.  If you are not
  already subscribed, you should do so.  I'm sending a copy there for
 further
  discussion.
 
 
  James Mitchell
  Software Engineer/Struts Evangelist
  http://www.open-tools.org
 
  If you were plowing a field, which would you rather use? Two strong
oxen
  or
  1024 chickens?
  - Seymour Cray (1925-1996), father of supercomputing
 
 
   -Original Message-
   From: Jon Ferguson [mailto:ferguson;ieee.org]
   Sent: Monday, November 11, 2002 6:46 AM
   To: Struts Developers List
   Subject: Client-side Caching???
  
  
   Greetings all,
  
   A web-application issue I'm trying to solve:
  
   Assume you have a complex web-app that requires links and input
between
   several web-forms.  The user can jump around.. and to make the
  application
   

Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Zsolt Koppany
Hi,

what is struts-menu? Where can I find more info about it?

Zsolt

On Thursday 14 November 2002 23:30, Karr, David wrote:
 I noticed the same problem when I tried this casually a couple of days ago.
  I haven't had the chance to get any more detailed information, or debug
 it.  I'm using Tomcat 4.1.12.
 

  -Original Message-
  From: Jeff Born [mailto:jborn;gr.com]
  
  Sounds interesting to me also.  I am using Struts 1.1b2... The readme
  included in the file is actually an almost exact version of 
  the message I
  found using google (There was a huge thread in Dynamic select 
  menu in JSP on
  when not to post) That prior post in struts-dev just 
  refered to struts
  0.5, so it was an old post.
   
  Given all that; In the StrutsMenu-1.1.zip in the 
  StrutsMenu-1.1\webapps
  directory is a file called struts-menu.war.  I hoped I would 
  be able to
  deploy this to Tomcat and have it just work.  It didn't.
   
  I also found reference to basebeans, so I went there and they 
  get the same
  error message as when I deploy it to Tomcat 4.1.
   
   
  
  -Original Message- 
  From: Eddie Bush [mailto:ekbush;swbell.net] 
  Sent: Thu 11/14/2002 5:06 PM 
  To: Struts Users Mailing List 
  Cc: 
  Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1
  
  
  
  That's odd.  The README in the 1.1 version says it 
  requires Struts
  1.1.
   Perhaps you downloaded the wrong archive?
  
  http://sourceforge.net/projects/struts-menu/
  http://sourceforge.net/project/showfiles.php?group_id=48726
  
  I haven't used it - just downloaded it because it sounded
  interesting.
   The version I got said it required 1.1.
  
  Jeff Born wrote:
  
 
  snip/
  
  I found a message in struts-dev about struts-menu, but 
 
  seems rather
  old
 
  refers to Struts 0.5.  From that though I believe I 
 
  need to load the
 
  menu-config.xml via an Extended Action Servlet.  So 
 
  far I've had no
  luck
 
  doing this.
  
  snip/
  
  Thanks,
  
  jb
  
  -Original Message-
  From: V. Cekvenich [mailto:vicc;users.sourceforge.net]
  Subject: Re: Dynamic select menu in JSP
  
  
  Regarding menus, I use struts - menu from sourceforge.
  You can see struts menu runing at baseBeans.com live.
  .V
  
 
  --
  Eddie Bush
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
  
  
  
  


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[FRIDAY] Top 10 things likely to be overheard from a Klingon Programmer

2002-11-15 Thread Andrew Hill
10. Specifications are for the weak and timid!

9. You question the worthiness of my code? I should kill you where you
stand!

8. Indentation?! - I will show you how to indent when I indent your skull!

7. What is this talk of 'release'? Klingons do not make software 'releases'.
Our software 'escapes' leaving a bloody trail of designers and quality
assurance people in its wake.

6. Klingon function calls do not have 'parameters' - they have 'arguments' -
and they ALWAYS WIN THEM.

5. Debugging? Klingons do not debug. Our software does not coddle the weak.

4. A TRUE Klingon Warrior does not comment on his code!
Klingon software does NOT have BUGS. It has FEATURES, and those features are
too sophisticated for a Romulan pig like you to understand.

3. You cannot truly appreciate Dilbert unless you've read it in the original
Klingon.

2. Our users will know fear and cower before our software!

1. Ship it! Ship it and let them flee like the dogs they are!


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




enter disable

2002-11-15 Thread Gus Delgado
How can I disable the htm:text tag so that nothing will happen when the 
use hits the enter key. The way it works right now everytime you hit the 
enter key in a text field it tries to submit the request.  any flags 
that need to be turn off?

thanks
gus


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



RE: enter disable

2002-11-15 Thread Miguel Angel Mulero Martinez
This is JavaScript code. I don't know how, but search information about it.

Regards,
Miguel

-Mensaje original-
De: Gus Delgado [mailto:gdelgado;oceanobjects.com]
Enviado el: viernes, 15 de noviembre de 2002 13:06
Para: Struts Users Mailing List
Asunto: enter disable


How can I disable the htm:text tag so that nothing will happen when the
use hits the enter key. The way it works right now everytime you hit the
enter key in a text field it tries to submit the request.  any flags
that need to be turn off?

thanks
gus


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Building the view

2002-11-15 Thread Krishnakumar N
Hi,
A newbie question on struts.

The way a view is built using struts is as follows (I think!). After
the action class processes the input and makes business logic method
invocations on the model layer (say session beans or business delegates), it
needs to fetch the data required for the next view and populate some value
objects . The view then accesses these objects (thru html:text, bean:write
tags etc) to create the html output.

The problems I see with this is that the action class becomes
extremely cluttered with the logic for fetching and populating the value
objects, especially when there are multiple 'commands' the action class is
designed to process ('sort', 'edit', 'save' etc) and there are several
forwards out of the action with different views.

(I can see that the question of where to take the data from becomes
a problem when there are validation errors. In this case, the view has to
take the data from the ActionForm and not from the model. But this is a
lesser problem than the above mentioned problem of action class complexity,
I think.)

Isn't it better that the view populates itself from the model via
system state beans.These can be simple beans which query the model layer for
the values required by the view. This way, the action class need not be
modified, if the view is changed to add a new display-only field, for
example. Struts does not seem to support this since we cannot take the data
from one bean (system state beans) and submit via another (ActionForm bean).

Cheers,
Krishna

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: enter disable

2002-11-15 Thread Gemes Tibor
2002. november 15. 13:06 dátummal Gus Delgado ezt írtad:
 How can I disable the htm:text tag so that nothing will happen when the
 use hits the enter key. The way it works right now everytime you hit the
 enter key in a text field it tries to submit the request.  any flags
 that need to be turn off?

delete the submit button, put on a button which submits the form onClick.
This way you workaround the default (which is rather handy on the other hand)

Tib


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: nested:iterate in an included page

2002-11-15 Thread Arron Bates
 I did not have any nested tags in the top page so I added one and
 now my code looks like this:
 
 (Your example referenced nested:property and I assume you meant
 nested:nest)

That'd be the one... :)


 I am still getting the null reference on the first nested tag in the
 included jsp.  I am using Struts 1.1B2.

1.1 is what we need.


 I must admit to not totally understanding your explanation of what
 property to reference in the nested parent tag

Doesn't really matter, but a parent nested tag (root, iterate, nest etc)
put the reference to the root bean and the current nested property into
the request object. This is so included pages can get a reference to the
root bean the the correct nested property by fetching it back out of the
request object.


 -- I am referencing my
 form object (which is, in fact, the parent I want).  I am also still a
 bit confused on whether I need a nested root tag or not.

This is where I have to apologise. You'll need an empty (no properties
are set at all) nested:root tag in the included page, this will then
look to the request object for the bean/property reference.

Sorry about the hassle.

If you have any trouble, rather than wait for replies from the list to
run over the start of the tutorial I wrote about nesting through
includes to make a tree structure...


http://www.keyboardmonkey.com/pilotlight

...and click on the first link in the JSP Reursion  TREES tutorial.


Arron.


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Trouble with DynaActionForm and indexed properties

2002-11-15 Thread Jim Krygowski
Hi Christoph,

Your problem sounds similar to an issue I'm having with an ActionForm and an
indexed property.  I only encountered the problem after upgrading a working
application to JDK 1.4.1.  Which JDK are you using?



 -Original Message-
 From: Christoph Kulla [mailto:chriskul;gmx.net]
 Sent: Thursday, November 14, 2002 4:39 PM
 To: [EMAIL PROTECTED]
 Subject: Trouble with DynaActionForm and indexed properties


 Hi,

 I'm getting an exception when using DynaActionForm and indexed properties.

 My form is:

 form-bean name=myForm type=org.apache.struts.action.DynaActionForm
  form-property name=username type=java.lang.String /
  form-property name=password type=java.lang.String /
  form-property name=number type=java.lang.String initial=1 /
  form-property name=name type=java.lang.String[] /
 /form-bean

 Part of my jsp is:

 html:text property=name[0] size=16/
 html:text property=name[1] size=16/

 When submitting the form I get the ArrayIndexOutOfBoundsException (see
 below). I guess the String array isn't initialized properly in the form
 bean. Any ideas?

 Btw, I refer to struts 1.1-b2.

 Regards

 Christoph

 javax.servlet.ServletException: BeanUtils.populate
  at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
  at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestP
 rocessor.java:779)
  at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor
 .java:246)
  at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
  at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
pplicationFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
onFilterChain.java:193)
  at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Mon
 itorFilter.java:223)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
pplicationFilterChain.java:213)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
onFilterChain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.java:243)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.java:190)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:566)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
 icatorBase.java:475)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
 lve.java:246)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(Moni
 torValve.java:142)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
 e.java:180)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:566)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
 cherValve.java:170)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
 e.java:170)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:564)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
 Valve.java:174)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
 

enter enable [WAS: RE: enter disable]

2002-11-15 Thread Andrew Hill
Funnily enough I have the opposite problem.
I have a form that now uses a button or sometimes a link instead of a
submitButton to submit the form as it needs to do some stuff in javascript
prior to submission (including playing silly buggers with the forms action
property!).
This works fine except that in dropping the submit in favour of a plain
button Ive lost the 'submit on enter' behaviour.
How might I get it back while still being able to do my js stuff when the
user submits the form - including via 'enter'.?

-Original Message-
From: Gemes Tibor [mailto:gemes;regens.hu]
Sent: Friday, November 15, 2002 20:28
To: Struts Users Mailing List
Subject: Re: enter disable


2002. november 15. 13:06 dátummal Gus Delgado ezt írtad:
 How can I disable the htm:text tag so that nothing will happen when the
 use hits the enter key. The way it works right now everytime you hit the
 enter key in a text field it tries to submit the request.  any flags
 that need to be turn off?

delete the submit button, put on a button which submits the form onClick.
This way you workaround the default (which is rather handy on the other
hand)

Tib


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Reinhard Spisser
struts-menu.sourceforge.net

The Description says:
Web menuing framework for JSP and Struts based applications. Menus can
be defined in an XML file and displayed through the use of JSP tags.
Support for dynamic javascript menus is included.

Reinhard

Il ven, 2002-11-15 alle 12:07, Zsolt Koppany ha scritto:
 Hi,
 
 what is struts-menu? Where can I find more info about it?
 
 Zsolt
 
 On Thursday 14 November 2002 23:30, Karr, David wrote:
  I noticed the same problem when I tried this casually a couple of days ago.
   I haven't had the chance to get any more detailed information, or debug
  it.  I'm using Tomcat 4.1.12.
 
 
   -Original Message-
   From: Jeff Born [mailto:jborn;gr.com]
   
   Sounds interesting to me also.  I am using Struts 1.1b2... The readme
   included in the file is actually an almost exact version of 
   the message I
   found using google (There was a huge thread in Dynamic select 
   menu in JSP on
   when not to post) That prior post in struts-dev just 
   refered to struts
   0.5, so it was an old post.

   Given all that; In the StrutsMenu-1.1.zip in the 
   StrutsMenu-1.1\webapps
   directory is a file called struts-menu.war.  I hoped I would 
   be able to
   deploy this to Tomcat and have it just work.  It didn't.

   I also found reference to basebeans, so I went there and they 
   get the same
   error message as when I deploy it to Tomcat 4.1.


   
 -Original Message- 
 From: Eddie Bush [mailto:ekbush;swbell.net] 
 Sent: Thu 11/14/2002 5:06 PM 
 To: Struts Users Mailing List 
 Cc: 
 Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1
 
 
   
 That's odd.  The README in the 1.1 version says it 
   requires Struts
   1.1.
  Perhaps you downloaded the wrong archive?
 
 http://sourceforge.net/projects/struts-menu/
 http://sourceforge.net/project/showfiles.php?group_id=48726
 
 I haven't used it - just downloaded it because it sounded
   interesting.
  The version I got said it required 1.1.
 
 Jeff Born wrote:
 
  
 snip/
 
 I found a message in struts-dev about struts-menu, but 
  
   seems rather
   old
  
 refers to Struts 0.5.  From that though I believe I 
  
   need to load the
  
 menu-config.xml via an Extended Action Servlet.  So 
  
   far I've had no
   luck
  
 doing this.
 
 snip/
 
 Thanks,
 
 jb
 
 -Original Message-
 From: V. Cekvenich [mailto:vicc;users.sourceforge.net]
 Subject: Re: Dynamic select menu in JSP
 
 
 Regarding menus, I use struts - menu from sourceforge.
 You can see struts menu runing at baseBeans.com live.
 .V
 
  
 --
 Eddie Bush
 
 
 
 
 --
 To unsubscribe, e-mail:
   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
   mailto:struts-user-help;jakarta.apache.org
 
 
   
   
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
 



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Struts 1.1 and StrutsTestCase

2002-11-15 Thread Jorge Martins
Just tested with the nightly build of struts (20021114) and the CVS HEAD
version of StrutsTestCase...

Got the behaviour I had experienced with Struts 1.1-b2 (but the dynamic
validators are now working!)

In the test method at some point I make a call to
'verifyForward(Sucesso)' which is mapped as follows:

action ...
  forward name=Sucesso path=/index.do/
/action

This mapping is defined within a sub-application named 'docente', so it
seems Struts is handling well the request, but StrutsTestCase isn't
dealing with the sub-application prefix...

An excerpt from the test's result is below:

Testcase: testSuccessfulCriarSitio took 2,907 sec
FAILED
was expecting '/index.do' but received '/docente/index.do'
junit.framework.AssertionFailedError: was expecting '/index.do' but
received '/docente/index.do'
at servletunit.struts.Common.verifyForwardPath(Common.java:171)
at
servletunit.struts.MockStrutsTestCase.verifyForward(MockStrutsTestCase.j
ava:465)
...

If anyone can shed some light over this issue...

Thanks,
Jorge

 

   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge



-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net] 
Sent: sexta-feira, 15 de Novembro de 2002 1:38
To: Struts Users Mailing List
Subject: Re: Struts 1.1 and StrutsTestCase


Jorge Martins wrote:

Hi,
I'm using a nightly build of struts (20021101) and can't get the 
StrutsTestCase unit testing framework to work for sub-applications...

I think this has been fixed in more recent nightly builds - try a more 
recent one, please.

I've tried using struts 1.1-b2 and the the tests work partially 
(forwards verification doesn't deal with forwards defined within an 
action in a sub-application), but the Struts Dynamic Validator doesn't 
seem to work properly...

Does anyone have these problems? Is there any way of using Dynamic 
Validators in struts 1.1-b2?

It's conceivable that the problems you are experiencing are causing this

other aberrant behavior.  Try a more recent nightly and report back, 
please.

Thanks in advance,
Jorge


-- 
Eddie Bush



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: enter enable [WAS: RE: enter disable]

2002-11-15 Thread Gemes Tibor
2002. november 15. 13:40 dátummal Andrew Hill ezt írtad:
 Funnily enough I have the opposite problem.
 I have a form that now uses a button or sometimes a link instead of a
 submitButton to submit the form as it needs to do some stuff in javascript
 prior to submission (including playing silly buggers with the forms action
 property!).
 This works fine except that in dropping the submit in favour of a plain
 button Ive lost the 'submit on enter' behaviour.
 How might I get it back while still being able to do my js stuff when the
 user submits the form - including via 'enter'.?

You should provide a submit button in this case, 
and onClick you do the stuff you'd like to, and if everything went well, 
return true. In this case the form will be submitted. 

I do usually 

html:submit onclick=return confirm('are you sure?');
bean:message key=prompt.submit/
/html:submt



Hth

Tib

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: enter enable [WAS: RE: enter disable]

2002-11-15 Thread Andrew Hill
Ah - so I switch it back to a submit button and register an onSubmit
handler.
Thanks. :-)

-Original Message-
From: Arron Bates [mailto:struts-user;keyboardmonkey.com]
Sent: Friday, November 15, 2002 20:44
To: [EMAIL PROTECTED]
Subject: Re: enter enable [WAS: RE: enter disable]


err...

The onSubmit handler in your form tag.
Before the form is sent at all, this will be called whether you've hit
enter and image submit or whatever.

Return false from this script, then it will not process the form at all.
Return true, and it will play like normal.


Arron.

On Fri, 2002-11-15 at 23:40, Andrew Hill wrote:
 Funnily enough I have the opposite problem.
 I have a form that now uses a button or sometimes a link instead of a
 submitButton to submit the form as it needs to do some stuff in javascript
 prior to submission (including playing silly buggers with the forms action
 property!).
 This works fine except that in dropping the submit in favour of a plain
 button Ive lost the 'submit on enter' behaviour.
 How might I get it back while still being able to do my js stuff when the
 user submits the form - including via 'enter'.?

 -Original Message-
 From: Gemes Tibor [mailto:gemes;regens.hu]
 Sent: Friday, November 15, 2002 20:28
 To: Struts Users Mailing List
 Subject: Re: enter disable


 2002. november 15. 13:06 dátummal Gus Delgado ezt írtad:
  How can I disable the htm:text tag so that nothing will happen when the
  use hits the enter key. The way it works right now everytime you hit the
  enter key in a text field it tries to submit the request.  any flags
  that need to be turn off?

 delete the submit button, put on a button which submits the form onClick.
 This way you workaround the default (which is rather handy on the other
 hand)

 Tib


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: stylesheets with jsp's under WEB-INF?

2002-11-15 Thread Jarnot Voytek Contr AU HQ/SC
why not use

link rel=stylesheet href=html:rewrite page=/style.css/
type=text/css

That works for me regardless of where the jsp is located (mine happen to be
under WEB-INF as well)

-Original Message-
From: Wendy Smoak [mailto:Wendy.Smoak;asu.edu]
Sent: Thursday, November 14, 2002 8:27 PM
To: [EMAIL PROTECTED]
Subject: stylesheets with jsp's under WEB-INF?



I asked about this on comp.lang.java.programmer, and the response was,
basically, Don't do that.  So, since Struts is the reason I'm putting my
jsp's under WEB-INF, can anyone here help with this dilemma?

Would it be better to move the jsp's back above WEB-INF and put in a Filter
to stop people accessing them directly?  (Not quite sure _how_ yet but if
that's the answer I'll figure it out!)

[Tomcat 4.1.14, Struts 1.1 nightly]

I can't get my jsp's that are stored under WEB-INF/jsp to see my
stylesheet.

The jsp lives in:
/path/to/tomcat/webapps/dev/WEB-INF/jsp/contact.jsp
(They are under WEB-INF to keep people from getting to them without going
through the Struts action controller.)

I don't really need to hide my stylesheet, so it can live in:
/path/to/tomcat/webapps/dev/css/style.css

With all the style stuff directly in the jsp, it was working fine. But since
I want to use this stylesheet with all of my jsp's, I'd like to store it
separately.
I've tried both:
LINK REL=stylesheet TYPE=text/css HREF=css/style.css TITLE=Style /
LINK REL=stylesheet TYPE=text/css HREF=/css/style.css TITLE=Style/

As well as putting style.css right beside contact.jsp and using
HREF=style.css

I'm sure I just haven't hit on the right combination of where to put it and
what LINK tag to use. Can someone enlighten me?

Thanks in advance,

--
Wendy in Chander, AZ



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Who knows the name of my FormBean?

2002-11-15 Thread Andreas Langmann
Hello,

the FormBean Name is accessed via tiles:getAsString name=formName/
in the layout_content.jsp.

But it is not available in the tiles

is there a way to do this?

I need it for a logic:iterate tag:

logic:iterate id=bg
  type=Gen_bg_Fb
  name=%= formName %
  property=bgListe

(I have an FormBean containing the Property bgListe, an array of
Gen_bg_Fb)

tia

Andreas
-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: How to access ActionErrors from within FormAction

2002-11-15 Thread edgar
Why is this an issue?  Just to put any error.header or error.footer in
the properties file.

If you must, the following will get you the list of errors:

 ActionErrors ae = (ActionErrors)
request.getAttribute(Action.ERROR_KEY);

Edgar

-Original Message-
From: Markus Pedratscher (WebBS) [mailto:markp;webbs.tv] 
Sent: Friday, November 15, 2002 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: How to access ActionErrors from within FormAction


Hi,
I'm fairly new to struts and I'm having the following problem.

I want to display an error message in an js alert box. My understanding
is that I can't do that with /errors because if wraps the error.header
and .error.footer around each message and does not have an attribute to
disable this behavior.

Therefore what I want to do is to get the message from
application.properties and then store it in the form bean. The problem
is that I can't figure out which class/method to use to read the message
from application.properties (from within my formAction). I'm looking for
something like this:

String messageText = messageContext.getMessage(messageKey);

Can anyone help?
Thanks
Markus


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: nested:iterate in an included page

2002-11-15 Thread Drew Zimber

hey arron and chris,

Good stuff on this nested tag issue.   When you say you need struts 1.1
instead of 1.1 b2, are you referring to just grabbing one of the nightly
builds or something else.  Hook me up brother!!!

dz

-Original Message-
From: Arron Bates [mailto:struts-user;keyboardmonkey.com]
Sent: Friday, November 15, 2002 7:28 AM
To: Struts Users Mailing List
Subject: RE: nested:iterate in an included page


 I did not have any nested tags in the top page so I added one and
 now my code looks like this:

 (Your example referenced nested:property and I assume you meant
 nested:nest)

That'd be the one... :)


 I am still getting the null reference on the first nested tag in the
 included jsp.  I am using Struts 1.1B2.

1.1 is what we need.


 I must admit to not totally understanding your explanation of what
 property to reference in the nested parent tag

Doesn't really matter, but a parent nested tag (root, iterate, nest etc)
put the reference to the root bean and the current nested property into
the request object. This is so included pages can get a reference to the
root bean the the correct nested property by fetching it back out of the
request object.


 -- I am referencing my
 form object (which is, in fact, the parent I want).  I am also still a
 bit confused on whether I need a nested root tag or not.

This is where I have to apologise. You'll need an empty (no properties
are set at all) nested:root tag in the included page, this will then
look to the request object for the bean/property reference.

Sorry about the hassle.

If you have any trouble, rather than wait for replies from the list to
run over the start of the tutorial I wrote about nesting through
includes to make a tree structure...


http://www.keyboardmonkey.com/pilotlight

...and click on the first link in the JSP Reursion  TREES tutorial.


Arron.


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-15 Thread Khalid Aslan
 --- Peter A. J. Pilgrim
[EMAIL PROTECTED] wrote:  Davide
Bruzzone wrote:
  Khalid,
 
 It's real pity that the banks have had to let go a
 lot of good
 people. In the UK at least they had the money and
 sometimes the
 innovation to persue the latest technologies. Last
 year I got
 my last employer to look seriously at open source
 and I had
 to influence not to re-invent their own MVC
 implementation.
 This is how I got into bed, so to speak, with
 Struts. 

Peter

You are absolutely right. The big financial
institution in the city do have the money and
the where-with-it-all to invest in a new technologies.
I dont necessarily want another banking job at all.
I am happy to look for another vertical sector.
Are you saying that only big banks want to develop 
J2EE applications? I might possibly believe it.
I have looked at the job sites today and apparently
only the investment banks are offering J2EE jobs.

 The money
 is there but no one wants the responsibility to
 employ the
 wrong guy. So therefore the list of required skills
 is
 stringent and bloody tough, and if you don't have
 it,
 then you don't have it. I am sure it is the very
 same in
 the USA too.
 

I did a similar persuasion exercise at my last place.
Open source is taking a hold, but moving very slowly.
It is all about saving money and I think a lot of
the managers are finally getting convinced about
running Linux server rather Sun Solaris boxes.
It is just too bad I had leave to see the horizon.
As for me I think that I will have to look beyond core
J2EE
development maybe go back to even RMI and Applet
programming which would be horrible just to make
ends meet.

Hey! May be we can swap leads off-line. What
do you think?

/Khalid/


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Fw: Problem deploying war with Struts: org.apache.struts.util.PropertyMessageResources

2002-11-15 Thread Roser Gestfil
 I'm trying to run a web application using struts. when I deploy the .war in
 JBoss deploy directory, the next error messages appear:
 
 org.apache.struts.util.PropertyMessageResources INFO: Initializing,
 config='org.apache.struts.util.LocalStrings', returnNull=true
org.apache.struts.util.PropertyMessageResources INFO: Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
 
 When I call my jsp page, my form not appear and for each struct tag That I
 call in the form I obtain the error:
 
 org.apache.struts.util.PropertyMessageResources INFO: Initializing,
 config='org.apache.struts.util.LocalStrings', returnNull=true
 
 I'm using Struts 1.1.b2, JBoss+Jetty 3.0.3. Can anybody help me? I'm doing
 anything in wrong way.
 ROSER
 
 



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Using Javascript submit(), how can I tell what did the submit in an action?

2002-11-15 Thread Jörgen Lundberg
You can make the onChange call a JS-function.

Maybe this is what David suggested in 3) below...
Anyway, attached is an example.

 / Jörgen


-Original Message-
From: Karr, David [mailto:david.karr;attws.com] 
Sent: den 14 november 2002 17:30
To: Struts Users Mailing List
Subject: RE: Using Javascript submit(), how can I tell what did the
submit in an action?


I see several strategies for this:

1. Design your page and your Action so you don't need to know.  Your
request parameters will indicate the current settings.  This will allow
your page to work even if javascript is disabled (an unfortunate
consideration).

2. Put each drop down into its own form.

3. Make the onchange handler also use dhtml to set the value of a hidden
field.

 -Original Message-
 From: Ryan Cornia [mailto:RCORNIA;utah.gov]
 Sent: Thursday, November 14, 2002 8:25 AM
 To: w
 Subject: Using Javascript submit(), how can I tell what did the submit
 in an action?
 
 
 I have a form with multiple drop downs that do a Javascript submit()
 when they are changed. (This is so that they can change other drop
 downs.) The problem is that once I get into the action, how can I tell
 which drop down's onchange event caused the submit? I can't find any
 request parameters that are set.
 
 Any ideas?
 
 Thanks,
 Ryan


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


RE: How to access ActionErrors from within FormAction

2002-11-15 Thread Markus Pedratscher \(WebBS\)
The problem is that if I want to display the error in a Javascript 'alert'
box
I don't want the html header and footer, I just want the message.

The problem with this is to get the error text *only*. The only way I've
found is
to use

String error = RequestUtils.message(pageContext,
org.apache.struts.action.MESSAGE,
org.apache.struts.action.LOCALE,
errors.login.detailsInvalid);

That works fine in a jsp but I don't want this logic in my jsp and
I can't access pageContext from within the Action.

Does anyone know how to get the error text (access application.properties)
from within an Action.

Thanks for your help,
Markus

-Original Message-
From: edgar [mailto:edgar;blue-moose.net]
Sent: Friday, November 15, 2002 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: How to access ActionErrors from within FormAction


Why is this an issue?  Just to put any error.header or error.footer in
the properties file.

If you must, the following will get you the list of errors:

 ActionErrors ae = (ActionErrors)
request.getAttribute(Action.ERROR_KEY);

Edgar

-Original Message-
From: Markus Pedratscher (WebBS) [mailto:markp;webbs.tv]
Sent: Friday, November 15, 2002 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: How to access ActionErrors from within FormAction


Hi,
I'm fairly new to struts and I'm having the following problem.

I want to display an error message in an js alert box. My understanding
is that I can't do that with /errors because if wraps the error.header
and .error.footer around each message and does not have an attribute to
disable this behavior.

Therefore what I want to do is to get the message from
application.properties and then store it in the form bean. The problem
is that I can't figure out which class/method to use to read the message
from application.properties (from within my formAction). I'm looking for
something like this:

String messageText = messageContext.getMessage(messageKey);

Can anyone help?
Thanks
Markus


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Using Javascript submit(), how can I tell what did the submit in an action?

2002-11-15 Thread Jörgen Lundberg
Hmm, something happened to my attachment...
I'll just post the code here then

 / Jörgen

pre for emailclients that read html
-8-8---
html
head
script language=JavaScript
function whichDropDown(dropDown) {
   alert(changed:  + dropDown);
   document.thaForm.changedDropDown.value = dropdDown;
   //submit();   
}
/script
/head
body
input type=hidden name=changedDropDown value=
form action=POST name=thaForm

select name=firstSelect onChange=self.whichDropDown(this.name);
option value=1One/option
option value=2Two/option
/select

select name=sectondSelect onChange=self.whichDropDown(this.name);
option value=3Three/option
option value=4Four/option
/select

/form
/body
/html

-8-8---
/pre

-Original Message-
From: Jörgen Lundberg [mailto:jorgen.lundberg;home.se] 
Sent: den 15 november 2002 14:45
To: [EMAIL PROTECTED]
Subject: RE: Using Javascript submit(), how can I tell what did the
submit in an action?


You can make the onChange call a JS-function.

Maybe this is what David suggested in 3) below...
Anyway, attached is an example.

 / Jörgen


-Original Message-
From: Karr, David [mailto:david.karr;attws.com] 
Sent: den 14 november 2002 17:30
To: Struts Users Mailing List
Subject: RE: Using Javascript submit(), how can I tell what did the
submit in an action?


I see several strategies for this:

1. Design your page and your Action so you don't need to know.  Your
request parameters will indicate the current settings.  This will allow
your page to work even if javascript is disabled (an unfortunate
consideration).

2. Put each drop down into its own form.

3. Make the onchange handler also use dhtml to set the value of a hidden
field.

 -Original Message-
 From: Ryan Cornia [mailto:RCORNIA;utah.gov]
 Sent: Thursday, November 14, 2002 8:25 AM
 To: w
 Subject: Using Javascript submit(), how can I tell what did the submit

 in an action?
 
 
 I have a form with multiple drop downs that do a Javascript submit() 
 when they are changed. (This is so that they can change other drop
 downs.) The problem is that once I get into the action, how can I tell

 which drop down's onchange event caused the submit? I can't find any

 request parameters that are set.
 
 Any ideas?
 
 Thanks,
 Ryan



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [FRIDAY] Top 10 things likely to be overheard from a Klingon Programmer

2002-11-15 Thread Sri Sankaran
LOL!

EEGAD!  I am part Klingon


 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com] 
 Sent: Friday, November 15, 2002 6:33 AM
 To: Struts
 Subject: [FRIDAY] Top 10 things likely to be overheard from a 
 Klingon Programmer 
 
 
 10. Specifications are for the weak and timid!
 
 9. You question the worthiness of my code? I should kill you 
 where you stand!
 
 8. Indentation?! - I will show you how to indent when I 
 indent your skull!
 
 7. What is this talk of 'release'? Klingons do not make 
 software 'releases'. Our software 'escapes' leaving a bloody 
 trail of designers and quality assurance people in its wake.
 
 6. Klingon function calls do not have 'parameters' - they 
 have 'arguments' - and they ALWAYS WIN THEM.
 
 5. Debugging? Klingons do not debug. Our software does not 
 coddle the weak.
 
 4. A TRUE Klingon Warrior does not comment on his code!
 Klingon software does NOT have BUGS. It has FEATURES, and 
 those features are too sophisticated for a Romulan pig like 
 you to understand.
 
 3. You cannot truly appreciate Dilbert unless you've read it 
 in the original Klingon.
 
 2. Our users will know fear and cower before our software!
 
 1. Ship it! Ship it and let them flee like the dogs they are!
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:struts-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Struts 1.1 and StrutsTestCase

2002-11-15 Thread Kevin . Bedell



While I am do not know the  exact problem, I have seen similar problems
recently.

They generally have been related to recent changes in the core Struts
ActionServlet for detection and tracking of modules.

It may be that recent changes in how Struts detects and tracks modules have
not been reflected in the most recent StrutsTestCase.

To resolve this I would recommend reviewing the current source for
servletunit.struts.Common.verifyForwardPath.java  and compare it's
evaluation of the forward path to how the ActionServlet currently tracks
it.

Sorry to not have more -

Kevin

http://www.strutskickstart.com






Jorge Martins [EMAIL PROTECTED] on 11/15/2002 07:46:12 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: Struts 1.1 and StrutsTestCase


Just tested with the nightly build of struts (20021114) and the CVS HEAD
version of StrutsTestCase...

Got the behaviour I had experienced with Struts 1.1-b2 (but the dynamic
validators are now working!)

In the test method at some point I make a call to
'verifyForward(Sucesso)' which is mapped as follows:

action ...
  forward name=Sucesso path=/index.do/
/action

This mapping is defined within a sub-application named 'docente', so it
seems Struts is handling well the request, but StrutsTestCase isn't
dealing with the sub-application prefix...

An excerpt from the test's result is below:

Testcase: testSuccessfulCriarSitio took 2,907 sec
 FAILED
was expecting '/index.do' but received '/docente/index.do'
junit.framework.AssertionFailedError: was expecting '/index.do' but
received '/docente/index.do'
 at servletunit.struts.Common.verifyForwardPath(Common.java:171)
 at
servletunit.struts.MockStrutsTestCase.verifyForward(MockStrutsTestCase.j
ava:465)
...

If anyone can shed some light over this issue...

Thanks,
 Jorge



   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge



-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net]
Sent: sexta-feira, 15 de Novembro de 2002 1:38
To: Struts Users Mailing List
Subject: Re: Struts 1.1 and StrutsTestCase


Jorge Martins wrote:

Hi,
I'm using a nightly build of struts (20021101) and can't get the
StrutsTestCase unit testing framework to work for sub-applications...

I think this has been fixed in more recent nightly builds - try a more
recent one, please.

I've tried using struts 1.1-b2 and the the tests work partially
(forwards verification doesn't deal with forwards defined within an
action in a sub-application), but the Struts Dynamic Validator doesn't
seem to work properly...

Does anyone have these problems? Is there any way of using Dynamic
Validators in struts 1.1-b2?

It's conceivable that the problems you are experiencing are causing this

other aberrant behavior.  Try a more recent nightly and report back,
please.

Thanks in advance,
Jorge


--
Eddie Bush



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: ArrayList disappeared in ActionForm

2002-11-15 Thread Sri Sankaran
Intermixed...

 -Original Message-
 From: Míguel Ángel Mulero Martínez 
 [mailto:miguel-angel.mulero;mad.tecsidel.es] 
 Sent: Friday, November 15, 2002 2:03 AM
 To: Lista Struts
 Subject: ArrayList disappeared in ActionForm
 
 
 Hi all! I've got a little problem with Struts 1.0.2.
 
 I've got an ActionForm with two objects: one for save the 
 values of a HTML form, and an ArrayList with Strings to print 
 in the HTML form.

I don't follow.  Why do you need separate objects for display and for capture.  That  
is the purpose of the ActionForm.

 
 The HTML form inits well, reading the values (object and 
 ArrayList) from the ActionForm created in an Action before. 
 When I press the submit button, the reset function is called 
 and afterwards the object is updated with the new values. My 
 problem is that if I read the ArrayList, it is null.

How do the objects in your ActionForm map to your ArrayList.  Need to see some code.  
Send appropriate sections of your JSP, form-bean (ActionForm) and Action class.

 
 I use the log4j, and the constructor of the ActionForm isn't 
 called. The set for the ArrayList isn't called too.
 
 Where is my ArrayList? Why it's null?
 
 Thanks to all!
 
 Miguel
 

Sri

 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:struts-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-15 Thread Davide Bruzzone
I have seen a lot of newspaper adverts with
improve your CV guaranteed for £100. I would go to a graduate
recruitment fair if indeed you are recent graduate (2nd jobber).
Obviously that precludes me, but going to proper professional
consultant can work wonders. Fortunately most financial city
instituations put that sort of thing together for the employees
that are getting the boot, at least to politically soften
the wounds. You would be well advised to seek their help,
because any help helps just that little bit.

Yes. My former employer sent us to just such a class (It was optional, but
as you said, if its available, take it), and in my case it helped *a lot*.
Mind you, the only reason it helped a lot was that the instructor a) gave a
crap, b) had been through two layoffs himself, and c) was really good at
what he did. The other career consultant to whom I was assigned (he was
supposed to review my resume, etc.) was absolutely useless. I don't know if
its possible, but before parting with any money, try to determine what
you're actually going to get in return. The quality does vary.

Dave

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Jeff Born
In the example it is configured as a Plugin.  It just doesn't work right off
the shelve.  Given enough time I should be able to figure it out, but time is
something I don't have a lot of, so I'm looking for some pointers in getting
rid of the exception The menu repository could not be found.  Once I get a
working example I should have no problem configuring for my own needs.
 
jb

-Original Message- 
From: Reinhard Spisser [mailto:reinhard.spisser;gruppotc.com] 
Sent: Fri 11/15/2002 2:39 AM 
To: Struts Users Mailing List 
Cc: 
Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1



Struts-menu requires 1.1 of struts; you need to configure it as a
plugin.

Struts-menu is a very interesting plugin, it saved us a lot of work
in
handling menus.



Reinhard




Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread V. Cekvenich
Can I send you a sample of a working config tmrw?
I have many things to do today.

.V

Jeff Born wrote:

In the example it is configured as a Plugin.  It just doesn't work right off
the shelve.  Given enough time I should be able to figure it out, but time is
something I don't have a lot of, so I'm looking for some pointers in getting
rid of the exception The menu repository could not be found.  Once I get a
working example I should have no problem configuring for my own needs.
 
jb

-Original Message- 
From: Reinhard Spisser [mailto:reinhard.spisser;gruppotc.com] 
Sent: Fri 11/15/2002 2:39 AM 
To: Struts Users Mailing List 
Cc: 
Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1



	Struts-menu requires 1.1 of struts; you need to configure it as a
	plugin.
	
	Struts-menu is a very interesting plugin, it saved us a lot of work
in
	handling menus.
	
	
	
	Reinhard





--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: ArrayList disappeared in ActionForm

2002-11-15 Thread shirishchandra . sakhare
Hi,
I didnt understand your problem very well.But some points U should know.

 I use the log4j, and the constructor of the ActionForm isn't 
 called. The set for the ArrayList isn't called too.

Struts uuses Class.forName() .newInstance() to instantiate new form objects.
So the default constructor will be called in this case.So Any lists etc u need 
to set must Be initialised in the default constructor.

-Original Message-
From: Sri.Sankaran [mailto:Sri.Sankaran;sas.com]
Sent: Friday, November 15, 2002 3:18 PM
To: struts-user
Subject: RE: ArrayList disappeared in ActionForm


Intermixed...

 -Original Message-
 From: Míguel Ángel Mulero Martínez 
 [mailto:miguel-angel.mulero;mad.tecsidel.es] 
 Sent: Friday, November 15, 2002 2:03 AM
 To: Lista Struts
 Subject: ArrayList disappeared in ActionForm
 
 
 Hi all! I've got a little problem with Struts 1.0.2.
 
 I've got an ActionForm with two objects: one for save the 
 values of a HTML form, and an ArrayList with Strings to print 
 in the HTML form.

I don't follow.  Why do you need separate objects for display and for capture.  
That  is the purpose of the ActionForm.

 
 The HTML form inits well, reading the values (object and 
 ArrayList) from the ActionForm created in an Action before. 
 When I press the submit button, the reset function is called 
 and afterwards the object is updated with the new values. My 
 problem is that if I read the ArrayList, it is null.

How do the objects in your ActionForm map to your ArrayList.  Need to see some 
code.  Send appropriate sections of your JSP, form-bean (ActionForm) and Action 
class.

 
 I use the log4j, and the constructor of the ActionForm isn't 
 called. The set for the ArrayList isn't called too.
 
 Where is my ArrayList? Why it's null?
 
 Thanks to all!
 
 Miguel
 

Sri

 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:struts-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Dynamically Created Forms

2002-11-15 Thread Abu Daniel
Hi,

I have a page where forms are created dynamically with values from 
the database.
Each of the forms have similar components, but that page itself 
has multiple forms.
Is there any way to create such a page using Struts?

Thanks,
Abu Daniel
__
Give your Company an email address like
ravi  ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



Adobe GoLive 6 and struts HTML tag

2002-11-15 Thread david chan
Hi,
 I have a project which use Struts HTML tag a lot in
JSP pages (I use Websphere studio for JSP development)
and the web team is using Adobe GoLive to make these
JSP pages looks nice.
 But how can I configure the adobe GoLive to work with
Struts HTML tag? I don't want the web team to spend
sometime to learn Struts HTML tag. I hope they can
just work on the JSP pages and can preview it from
GoLive after their add pics/rearrange fields etc...
 Any advice on this kind of approach?

Thanks.
David
 

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Tiles referencing actions.

2002-11-15 Thread ROSSEL Olivier
 But when I want to tiles:put the output of the LoginState 
 action into the
 loginBox :
 
 tiles:insert page=/pages/MainLayout.jsp flush=true
  tiles:put name=title value=/pages/Title.jsp/
  tiles:put name=loginBox value=/LoginState.do/
 /tiles:insert
 
 , nothing appears.
 
 My question:
 is it possible to have tiles:put to display the output of an 
 action, instead
 of just the output of a 
 (statically-referenced) jsp.

I answer to me:
yes you can reference to a Struts action from a tile.
But this action must not forward to a result page via a redirection
(: forward ... redirect=true will make the tile to display nothing.)

So my question is: why?
Having redirect=true in the forward of an action is quite
good. But it is incompatible with tiles, which are also quite good.

Is it a feature?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Latest thoughts on role based authentication and authorization

2002-11-15 Thread John Bigboote
I've done some searching in the Struts mailing list
archive and on the usual suspect sites regarding
role based security.  But, I wanted to get an in the
trenches view of how others accomplish this.  Any
comments, concerns, suggestions, etc. from Struts
users about how they implement this?

I grabbed the struts-security example from Ted
Husted's site.  Any other ideas?

TIA

John

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




struts workflow

2002-11-15 Thread Diego Campodonico
Hi,

Anyone has implementing an workflow engine or workflow application with
struts?

I want to do a web application with a workflow engine?
thanks
DIego





--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[Declarative Exceptions] Advice needed.

2002-11-15 Thread Jeff_Mychasiw
Greetings:
I am using 1.1b2

I am just starting the process of dealing the exception handling in our
project.

I am plowing through Ted's and Chuck books and have several questions.

We have come up with  these requirements:
1 - All exceptions must be logged. ( we are using log4j directly, not
commons logging).
2 - All exceptions thrown by data retrieval methods will display an error
page. ( ie, all methods in Page LoadActions).
3 - All exceptions that perform a business function will generate a success
or failure message on the original calling page.


From what I see so far it appears that I can deal with this with my own
ExceptionHandler and possibly two subclasses
such as:
PageLoadExceptionHandler
UseCaseExceptionHandler

Questions:
1 - How can I deal with un-planned exceptions (programmer error) as such
stray null pointers and such.
  Can I declare a global Exception for the type java.lang.Exception
where this will be called if all else fails?

2 -  I can see how to pass in a message key but how do I pass in message
key arguments {0},{1} ect .

3 - Does this approach sound ok or does it expose my inexperience to the
struts community :-) ?

*** We are doing much of this now ( and we like how the pages work) but it
is all in try/catch statements in the actions

Any advice would be appreciated

Jeff


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Dynamic Forward

2002-11-15 Thread David Bolsover

Hi all

I have a problem with a dynamic forward - can anyone assist?

The url of the forward is generated by:

StringBuffer sb = new StringBuffer();
sb.append(http://www.someurl/actionpath?;);
sb.append(customer= + customer.getName());
sb.append(address= + customer.getAddress());

etc..

ActionForward forward = mapping.findForward(success);
forward.setPath(sb.toString);
forward.setRedirect(true);
mapping.addForward(forward);

return forward;


The forward above works fine - but - the receiving URL requires that newlines in
the address part of the forward have to be encoded with #10; - with the above
scheme this does not seem to be possible - any ideas?



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: logic not picking session

2002-11-15 Thread Sri Sankaran
From your original message, it is not clear *what* is not working.

Assuming it is the bean:write, based on your last message, what is the value of 
WebConstants.REPORT_ID.  To be consistent, try coding your bean:write as

bean:write name=%=WebConstants.REPORT_ID%
property=reportID/

Sri

-Original Message-
From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in] 
Sent: Thursday, November 14, 2002 11:16 PM
To: 'Struts Users Mailing List'
Subject: RE: logic not picking session


Hi,
   No. Actually the bean is a different bean. NoDataForm is this

public final class NoDataForm extends ActionForm {
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request){
ActionErrors errors = new ActionErrors();
return errors;
}
} // and validate=false

I don't have any data. So I am just forwarding after setting a bean in the session.

bean:write name=reportid property=reportID/
Mohan  logic:greaterThan name=reportid property=reportID
value=19
Mohan  /logic:greaterThan

//-Action is this-
ReportIdentifierBean reportBean = 
( ReportIdentifierBean
)request.getSession().getAttribute( WebConstants.REPORT_ID );
if( reportBean == null) {
reportBean = new ReportIdentifierBean();
reportBean.setReportID( report );
request.getSession().setAttribute(
WebConstants.REPORT_ID, reportBean ); 
}
else{
reportBean.setReportID( report );
request.getSession().setAttribute(
WebConstants.REPORT_ID, reportBean); 
}
//-Action is this-

Thanks,
Mohan

-Original Message-
From: [EMAIL PROTECTED] [mailto:dmkarr;earthlink.net]
Sent: Friday, November 15, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: logic not picking session


 Mohan == Mohan Radhakrishnan [EMAIL PROTECTED] writes:

Mohan Hi,
MohanI am sure I am doing something wrong here.

Mohan  bean:write name=reportid property=reportID/
Mohan  logic:greaterThan name=reportid property=reportID
value=19
Mohan  /logic:greaterThan

Mohan Now if I put a bean in the session with the proper getter method, the tag
Mohan above should pick up.

Mohan Now my action sets the proper value in the bean ( it even prints it after
Mohan setting it ) and forwards to a jsp.
Mohan Is something missing here ?
Mohan The action is this.
Mohan !-- Generic forward --
Mohan actionpath=/generic
Mohan type=com.hcl.smartmanage.web.action.GenericForwardAction
Mohanname=noDataForm
Mohan validate=false
Mohanscope=session
Mohanforward name=REPORTER
path=/reports/report.jsp/
Mohan/action

I'm going to guess you set the reportID attribute of your noDataForm object.  If 
so, you need to change the tags to this:

bean:write name=noDataForm property=reportID/
logic:greaterThan name=noDataForm property=reportID value=19
/logic:greaterThan

If that's the wrong guess, we need to see your Action and ActionForm.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP



--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Disabling jsessionid parameter in Struts forms

2002-11-15 Thread Tom Wadzinski

 This is so easy to implement yourself it barely even bears discussing.

 Create an abstract Action super-class, check to see if cookies are
 enabled, and if they aren't, block access and give the user an error
 message to that effect.  You could have written it in the time you
 composed this email.
What you describe doesn't answer my question.  It only solves half of
the problem.  Struts still calls encodeURL (or encodeRedirectURL) which
will put the session id in the URL on at least the first call of the
session, because it is not yet known if the user has cookies enabled or
not.  So, looking at the referer exploit, any 3rd party banner ad
providers on the first page of a struts-enbabled site will be given the
jsessionid, even if the site designers used the solution you describe.

Also, I could swear that I'm seeing the jsessionid crop up on the URL on
pages after the first page even with cookies enabled in the client.  I
suppose this is the fault of my app server, which is implementing
HttpServletResponse.encodeURL.  Perhaps others are seeing this as well.

...
 From Craig:
 Session ids in cookies are no more secure than session ids in URLs --
they
 are just as susceptible to snooping even though they are not
physically
 visible.  If attacks via session id are an important issue for you,
you
 should be using SSL instead.
Using SSL to avoid session id attacks is not sufficient.  The two
scenarios I described are unique to jsessionid on the URL, and are
exploitable using SSL or not.  They can't happen if the jsessionid never
shows up on the URL.  So, the snooping scenario you describe is a
separate matter.  Sure, if a malicious 3rd party can sniff the packets,
and you are not using SSL, you are in trouble.  


With today's browser usage and site design practices, I personally feel
that the value of encodeURL's rewriting as an overall concept is
outweighed by the security implications that are unique to session id
URL rewriting.  Sure, I can probably find a way around it if my app
server supports it or I minimize it in my application, by why should
site designers be forced to do that by default.  I think many would take
security over compatibility, or at least be given the choice.  As a
Struts advocate, I'd like to see Struts embraced by more site
developers, so I wasn't exactly looking for a one-off solution.  


Tom
 


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Disabling jsessionid parameter in Struts forms

2002-11-15 Thread edgar
Your first issue is less of a concern since if you are kicking the user,
just invalidate() the session and who cares if they get the session id.

Your second issue is a little more important, INMHO, yes, the first
screen after the session is established shows the jsessionid NMW in the
address.  

I have wondered about it but so far have no answers (except to forward
to a bogus jsp with a javascript timeout, which submits to the next page
so the jsessionid is on the visible for the smalles amount of time).

Edgar

-Original Message-
From: Tom Wadzinski [mailto:twadzins;yahoo.com] 
Sent: Friday, November 15, 2002 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Disabling jsessionid parameter in Struts forms



 This is so easy to implement yourself it barely even bears discussing.

 Create an abstract Action super-class, check to see if cookies are 
 enabled, and if they aren't, block access and give the user an error 
 message to that effect.  You could have written it in the time you 
 composed this email.
What you describe doesn't answer my question.  It only solves half of
the problem.  Struts still calls encodeURL (or encodeRedirectURL) which
will put the session id in the URL on at least the first call of the
session, because it is not yet known if the user has cookies enabled or
not.  So, looking at the referer exploit, any 3rd party banner ad
providers on the first page of a struts-enbabled site will be given the
jsessionid, even if the site designers used the solution you describe.

Also, I could swear that I'm seeing the jsessionid crop up on the URL on
pages after the first page even with cookies enabled in the client.  I
suppose this is the fault of my app server, which is implementing
HttpServletResponse.encodeURL.  Perhaps others are seeing this as well.

...
 From Craig:
 Session ids in cookies are no more secure than session ids in URLs --
they
 are just as susceptible to snooping even though they are not
physically
 visible.  If attacks via session id are an important issue for you,
you
 should be using SSL instead.
Using SSL to avoid session id attacks is not sufficient.  The two
scenarios I described are unique to jsessionid on the URL, and are
exploitable using SSL or not.  They can't happen if the jsessionid never
shows up on the URL.  So, the snooping scenario you describe is a
separate matter.  Sure, if a malicious 3rd party can sniff the packets,
and you are not using SSL, you are in trouble.  


With today's browser usage and site design practices, I personally feel
that the value of encodeURL's rewriting as an overall concept is
outweighed by the security implications that are unique to session id
URL rewriting.  Sure, I can probably find a way around it if my app
server supports it or I minimize it in my application, by why should
site designers be forced to do that by default.  I think many would take
security over compatibility, or at least be given the choice.  As a
Struts advocate, I'd like to see Struts embraced by more site
developers, so I wasn't exactly looking for a one-off solution.  


Tom
 


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Disabling jsessionid parameter in Struts forms

2002-11-15 Thread David Graham
I don't understand what the problem is here.  Someone has suggested that you 
detect if the user has cookies and if not, don't allow them in and 
invalidate their session.  This seems reasonable to me.  I don't believe 
Struts should bend over backwards to support this when it's so trivial to 
implement.  Make a parent action for all other actions and put the code 
there, or put a filter in front of all your pages that detects this.

David






From: Tom Wadzinski [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Disabling jsessionid parameter in Struts forms
Date: Fri, 15 Nov 2002 10:54:58 -0500


 This is so easy to implement yourself it barely even bears discussing.

 Create an abstract Action super-class, check to see if cookies are
 enabled, and if they aren't, block access and give the user an error
 message to that effect.  You could have written it in the time you
 composed this email.
What you describe doesn't answer my question.  It only solves half of
the problem.  Struts still calls encodeURL (or encodeRedirectURL) which
will put the session id in the URL on at least the first call of the
session, because it is not yet known if the user has cookies enabled or
not.  So, looking at the referer exploit, any 3rd party banner ad
providers on the first page of a struts-enbabled site will be given the
jsessionid, even if the site designers used the solution you describe.

Also, I could swear that I'm seeing the jsessionid crop up on the URL on
pages after the first page even with cookies enabled in the client.  I
suppose this is the fault of my app server, which is implementing
HttpServletResponse.encodeURL.  Perhaps others are seeing this as well.

...
 From Craig:
 Session ids in cookies are no more secure than session ids in URLs --
they
 are just as susceptible to snooping even though they are not
physically
 visible.  If attacks via session id are an important issue for you,
you
 should be using SSL instead.
Using SSL to avoid session id attacks is not sufficient.  The two
scenarios I described are unique to jsessionid on the URL, and are
exploitable using SSL or not.  They can't happen if the jsessionid never
shows up on the URL.  So, the snooping scenario you describe is a
separate matter.  Sure, if a malicious 3rd party can sniff the packets,
and you are not using SSL, you are in trouble.


With today's browser usage and site design practices, I personally feel
that the value of encodeURL's rewriting as an overall concept is
outweighed by the security implications that are unique to session id
URL rewriting.  Sure, I can probably find a way around it if my app
server supports it or I minimize it in my application, by why should
site designers be forced to do that by default.  I think many would take
security over compatibility, or at least be given the choice.  As a
Struts advocate, I'd like to see Struts embraced by more site
developers, so I wasn't exactly looking for a one-off solution.


Tom



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



Re: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1

2002-11-15 Thread Robert Leland
Jim Krygowski wrote:

That leads me to believe that something funny is happening to my ActionForm
somewhere in the Struts code.  Has anyone else seen this?? I have three
developers who came across this error independently so I have to imagine
that some of you out there bumped into it too when you moved up to JDK
1.4.1.



If you can package your code into a --bare-- minimal cactus/junit test
that can reproduce the problem then you'll be
able to get other eyes on the problem.

Also including your Introspection code that worked correctly would help.

And just for fun did it work with Struts 1.0.2 ?
If it does work correctly then it might be usefull to determine
which version of BeanUtil it was broken in.

But again file a bug report with a small junit test that demonstrates
the problem.

-Rob


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




struts 1.1 : setInput ?

2002-11-15 Thread aduprat . struts
Hi all.

We were using struts 1.0 and doing something like this : 
//If error occurs : go on tabbed pane where it is raised.
if (errors.size() != 0) {
mapping.setInput(INPUT_INFORMATIONS);
return errors;
}

It was working well in struts 1.0.

My problem is that uin struts 1.1 when i'm using the same instruction to 
programmaticaly change my input i've got this exception : 

java.lang.IllegalStateException: Configuration is frozen
at org.apache.struts.config.ActionConfig.setInput(ActionConfig.java:206)
at 
fr.unedic.simulationcalcul.produits.assurance.are.navigation.strut.liquidation.cod07.AjoutDemandeForm.validate(AjoutDemandeForm.java:337)


What is the good way?

Help me please, i'm trying to migrate in struts 1.1
Thanks in advance.

Alexandre Duprat.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[OT]Need magic incantation

2002-11-15 Thread Sri Sankaran
I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar file that 
contains the missing class.  I've even tried -- in desperation -- putting the jar 
file in Tomcat's bin common/lib and server/lib directories to no avail.

The kicker is that I can successfully run a command-line application  -- that 
exercises the same business logic -- using the classpath used by Tomcat.

I know it could be any bunch of things -- but do you have any recommendations?

Sri



Putting request parameter into page context

2002-11-15 Thread Michael Lee
This seems like it would be so simple yet I can't get it to work
I've tried all kinds of combinations of bean:define...
bean:define id=startRow name=startRow type=java.lang.Integer/
I want to take the request parameter startRow and put it in a page object startRow
startRow is in the request (URL.com/someaction.jsp?startRow=10).
thanks,
Mike


Re: [OT]Need magic incantation

2002-11-15 Thread Kevin . Bedell




Can you re-phrase your question in terms of the classloader diagram at this page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

That is, identify which classloaders your jar file should be visible to (system, 
shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar
file that contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib
directories to no avail.

The kicker is that I can successfully run a command-line application  --
that exercises the same business logic -- using the classpath used by
Tomcat.

I know it could be any bunch of things -- but do you have any
recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1

2002-11-15 Thread Kevin . Bedell



I've seen some Index out of bounds errors recently that have had to do with
parsing of URI's to determine which module is being accessed.

Can you try making your app the 'default web application' for your
container (i.e., not in a module) and see if this solves the problem? Also,
since this processing had changed a number of times in recent nightly
builds, it may be worth either checking the 1.1b2 release or a more recent
nightly build - depending on which version you're using.

But I also really like Rob's suggestion below - isolating a JUnit/Cactus
test that can create the problem would isolate it pretty quickly.

Best of luck -

Kevin




Robert Leland [EMAIL PROTECTED] on 11/15/2002 11:35:02 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Re: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1


Jim Krygowski wrote:
 That leads me to believe that something funny is happening to my
ActionForm
 somewhere in the Struts code.  Has anyone else seen this?? I have three
 developers who came across this error independently so I have to imagine
 that some of you out there bumped into it too when you moved up to JDK
 1.4.1.


If you can package your code into a --bare-- minimal cactus/junit test
that can reproduce the problem then you'll be
able to get other eyes on the problem.

Also including your Introspection code that worked correctly would help.

And just for fun did it work with Struts 1.0.2 ?
If it does work correctly then it might be usefull to determine
which version of BeanUtil it was broken in.

But again file a bug report with a small junit test that demonstrates
the problem.

-Rob


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Struts 1.1 and StrutsTestCase

2002-11-15 Thread Jorge Martins
Thanks for the prompt info!...

Unfortunately I don't have a lot of time to sift through the
ActionServlet's code :P
As far as I've gone through StrutsTestCase doesn't seem to bother
appending the module prefix to the expected path, but I might be wrong,
not having an in dept knowledge of Struts internals...

As anyone else experienced these problems? Are there any known
solutions? Any workarounds? I'm kind of in a hurry... If I can't get
StrutsTestCase to work with Struts modules I'll be forced to revert to a
single default module.

TIA,
Jorge


 

   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge



-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com] 
Sent: sexta-feira, 15 de Novembro de 2002 14:07
To: Struts Users Mailing List
Subject: RE: Struts 1.1 and StrutsTestCase





While I am do not know the  exact problem, I have seen similar problems
recently.

They generally have been related to recent changes in the core Struts
ActionServlet for detection and tracking of modules.

It may be that recent changes in how Struts detects and tracks modules
have not been reflected in the most recent StrutsTestCase.

To resolve this I would recommend reviewing the current source for
servletunit.struts.Common.verifyForwardPath.java  and compare it's
evaluation of the forward path to how the ActionServlet currently tracks
it.

Sorry to not have more -

Kevin

http://www.strutskickstart.com






Jorge Martins [EMAIL PROTECTED] on 11/15/2002 07:46:12 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: Struts 1.1 and StrutsTestCase


Just tested with the nightly build of struts (20021114) and the CVS HEAD
version of StrutsTestCase...

Got the behaviour I had experienced with Struts 1.1-b2 (but the dynamic
validators are now working!)

In the test method at some point I make a call to
'verifyForward(Sucesso)' which is mapped as follows:

action ...
  forward name=Sucesso path=/index.do/
/action

This mapping is defined within a sub-application named 'docente', so it
seems Struts is handling well the request, but StrutsTestCase isn't
dealing with the sub-application prefix...

An excerpt from the test's result is below:

Testcase: testSuccessfulCriarSitio took 2,907 sec
 FAILED
was expecting '/index.do' but received '/docente/index.do'
junit.framework.AssertionFailedError: was expecting '/index.do' but
received '/docente/index.do'  at
servletunit.struts.Common.verifyForwardPath(Common.java:171)
 at
servletunit.struts.MockStrutsTestCase.verifyForward(MockStrutsTestCase.j
ava:465)
...

If anyone can shed some light over this issue...

Thanks,
 Jorge



   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge



-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net]
Sent: sexta-feira, 15 de Novembro de 2002 1:38
To: Struts Users Mailing List
Subject: Re: Struts 1.1 and StrutsTestCase


Jorge Martins wrote:

Hi,
I'm using a nightly build of struts (20021101) and can't get the 
StrutsTestCase unit testing framework to work for sub-applications...

I think this has been fixed in more recent nightly builds - try a more
recent one, please.

I've tried using struts 1.1-b2 and the the tests work partially 
(forwards verification doesn't deal with forwards defined within an 
action in a sub-application), but the Struts Dynamic Validator doesn't 
seem to work properly...

Does anyone have these problems? Is there any way of using Dynamic 
Validators in struts 1.1-b2?

It's conceivable that the problems you are experiencing are causing this

other aberrant behavior.  Try a more recent nightly and report back,
please.

Thanks in advance,
Jorge


--
Eddie Bush



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org








---
This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from disclosure.  If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify the sender and erase this e-mail
message immediately.

---



--
To unsubscribe, e-mail:

RE: [OT]Need magic incantation

2002-11-15 Thread Sri Sankaran
Alright.  

What I have tried is to place the jar so that it is available to any of the common, 
shared or the webapp-specific classloaders. In other words, I've placed it in 
CATALINA_HOME/common/lib re-start  test then placed it in CATALINA_HOME/shared/lib 
re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com] 
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

That is, identify which classloaders your jar file should be visible to (system, 
shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar file that 
contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib directories to no 
avail.

The kicker is that I can successfully run a command-line application  -- that 
exercises the same business logic -- using the classpath used by Tomcat.

I know it could be any bunch of things -- but do you have any recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use of the 
individual or entity to which it is addressed and may contain information that is 
privileged, proprietary , confidential and exempt from disclosure.  If you are not the 
intended recipient, you are notified that any dissemination, distribution or copying 
of this communication is strictly prohibited.  If you have received this communication 
in error, please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation

2002-11-15 Thread David Graham
Do you have struts.jar on the tomcat classpath?  That may be causing the 
problem.  You should always put struts.jar in /WEB-INF/lib of each app that 
uses it.  Your business logic jars should go in /WEB-INF/lib as well.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT]Need magic incantation
Date: Fri, 15 Nov 2002 12:04:06 -0500

Alright.

What I have tried is to place the jar so that it is available to any of the 
common, shared or the webapp-specific classloaders. In other words, I've 
placed it in CATALINA_HOME/common/lib re-start  test then placed it in 
CATALINA_HOME/shared/lib re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this 
page?

  
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

That is, identify which classloaders your jar file should be visible to 
(system, shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar 
file that contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib 
directories to no avail.

The kicker is that I can successfully run a command-line application  -- 
that exercises the same business logic -- using the classpath used by 
Tomcat.

I know it could be any bunch of things -- but do you have any 
recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use 
of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure.  If you are not the intended recipient, you are notified that 
any dissemination, distribution or copying of this communication is 
strictly prohibited.  If you have received this communication in error, 
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



ActionForm manipulation within an Action

2002-11-15 Thread Jorge Martins
Hi,
 
Is there a way to set an attribute in an ActionForm received by an
Action and having that change propagated when I 'findForward()' to
another Action?
 
Thanks
  Jorge

 

   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: stylesheets with jsp's under WEB-INF?

2002-11-15 Thread Wendy Smoak
Craig wrote:
 You're perfectly free to leave your stylesheet where it is (in the css
 subdirectory under your webapp), as long as you use an appropriate
 relative URL:
  LINK REL=stylesheet TYPE=text/css HREF=../../css/style.css
TITLE=style /

This doesn't work.  My version included here in case I missed something:
LINK rel=stylesheet type=text/css href=../../css/style.css /

This does work (thanks Jeff  Jarnot):
LINK rel=stylesheet type=text/css href=html-el:rewrite
page='/css/style.css'/
It turns into:
LINK rel=stylesheet type=text/css href=/dev/css/style.css

 NOTE -- the exact same issue will apply to any img element in your JSP
 page where you're trying to use a relative URL to an image in the same
 directory.  That fails for the same reason as retrieving the stylesheet
 fails, because the image is retrieved by the client with a separate
 request.

Bingo! This is next problem I ran into.  Again, the ../../ to back up out of
the WEB-INF directory is not working.  No matter what path I put in the
styles that have images (background image, buttons) the client browser
cannot load them.  (I can tell when it sees the stylsheet because of some
bold text and alignment that the styles control.  But no images, ever.)

Images live in:  /dev/images/

I've tried variations of:
body { background: url(../../images/gray.jpg); }

The only thing that works is hard-coding the context:
body { background: url(/dev/images/gray.jpg); }

I guess I could put the styles in jsp code and use the rewrite tag!

So for now, I've got:
style  !-- %include file=../../css/style.css % -- /style
Which pulls the styles into each page directly.  At least I don't have to
maintain them everywhere, but they do have to go over the wire with every
page view.  I still want to get this to work with an external style sheet,
thinking that the browser will cache it.

Anyway, I know this isn't strictly Struts-related, but I appreciate the
help.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Re: Putting request parameter into page context

2002-11-15 Thread hotmail
I've used scriptlets - but probably not what you're looking for !

% String eventId = (String)request.getParameter(id); %
a href=../viewEvent.do?id=%= eventId %View Event/a

- Original Message -
From: Michael Lee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 15, 2002 10:49 AM
Subject: Putting request parameter into page context


This seems like it would be so simple yet I can't get it to work
I've tried all kinds of combinations of bean:define...
bean:define id=startRow name=startRow type=java.lang.Integer/
I want to take the request parameter startRow and put it in a page object
startRow
startRow is in the request (URL.com/someaction.jsp?startRow=10).
thanks,
Mike

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
Of course, this happens all the time in add/edit forms.  Any change to the 
form in the first action will be seen by the action it forwards to as long 
as both actions are setup to use the same form bean in struts-config.xml.

David






From: Jorge Martins [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Mailinglist' [EMAIL PROTECTED]
Subject: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 17:20:57 -

Hi,

Is there a way to set an attribute in an ActionForm received by an
Action and having that change propagated when I 'findForward()' to
another Action?

Thanks
  Jorge



   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge




--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



RE: [OT]Need magic incantation

2002-11-15 Thread Sri Sankaran
Typically, during development, I have all jars my application needs (application 
specific, struts, jdbc drivers etc) in WEB-INF/lib.  I am only resorting to the 
skulduggery described below in desperation.  Everything my application needs *is* in 
WEB-INF/lib.  I am moving only this one jar that contains the missing class around 
in an effort to get *any* classloader to pick it up.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Friday, November 15, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT]Need magic incantation


Do you have struts.jar on the tomcat classpath?  That may be causing the 
problem.  You should always put struts.jar in /WEB-INF/lib of each app that 
uses it.  Your business logic jars should go in /WEB-INF/lib as well.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT]Need magic incantation
Date: Fri, 15 Nov 2002 12:04:06 -0500

Alright.

What I have tried is to place the jar so that it is available to any of 
the
common, shared or the webapp-specific classloaders. In other words, I've 
placed it in CATALINA_HOME/common/lib re-start  test then placed it in 
CATALINA_HOME/shared/lib re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at 
this
page?

   
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

That is, identify which classloaders your jar file should be visible to
(system, shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
[EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 
4.1.12
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the 
jar
file that contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib 
directories to no avail.

The kicker is that I can successfully run a command-line application  
--
that exercises the same business logic -- using the classpath used by 
Tomcat.

I know it could be any bunch of things -- but do you have any
recommendations?

Sri






---

This e-mail message (including attachments, if any) is intended for the use 
of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure.  If you are not the intended recipient, you are notified that 
any dissemination, distribution or copying of this communication is 
strictly prohibited.  If you have received this communication in error, 
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation

2002-11-15 Thread Kevin . Bedell




Gee -

According to the Tomcat site, a webapp looks in all of these places in the order 
listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if you're
using a Windows OS classes can be located even if they have upper case in
their directory paths. But when running in an APP server, case sensitivity
will keep the class from being found. In your jar file, are there any upper
case letters in any of the directory names? It might be worth reviewing the
offending jar file structure to make sure there are no issues (though
you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the jar
file whereit is visible.

Can you see other classes or properties files in that particular jar file?

Silly question - do you have the package and class names correct? Might be
worth double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of the
common, shared or the webapp-specific classloaders. In other words, I've
placed it in CATALINA_HOME/common/lib re-start  test then placed it in
CATALINA_HOME/shared/lib re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this
page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


That is, identify which classloaders your jar file should be visible to
(system, shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar
file that contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib
directories to no avail.

The kicker is that I can successfully run a command-line application  --
that exercises the same business logic -- using the classpath used by
Tomcat.

I know it could be any bunch of things -- but do you have any
recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: ActionForm manipulation within an Action

2002-11-15 Thread Sri Sankaran
...and the form bean is of session scope.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Friday, November 15, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm manipulation within an Action


Of course, this happens all the time in add/edit forms.  Any change to the 
form in the first action will be seen by the action it forwards to as long 
as both actions are setup to use the same form bean in struts-config.xml.

David






From: Jorge Martins [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Mailinglist' [EMAIL PROTECTED]
Subject: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 17:20:57 -

Hi,

Is there a way to set an attribute in an ActionForm received by an 
Action and having that change propagated when I 'findForward()' to 
another Action?

Thanks
   Jorge



inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge




--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




bean:page ... into a String variable

2002-11-15 Thread Zsolt Koppany
Hi,

how can I specify that bean:page... restores the value into a String 
variable?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Putting request parameter into page context

2002-11-15 Thread Kris Schneider
bean:parameter id=startRow name=startRow/

Quoting Michael Lee [EMAIL PROTECTED]:

 This seems like it would be so simple yet I can't get it to work
 I've tried all kinds of combinations of bean:define...
 bean:define id=startRow name=startRow type=java.lang.Integer/
 I want to take the request parameter startRow and put it in a page object
 startRow
 startRow is in the request (URL.com/someaction.jsp?startRow=10).
 thanks,
 Mike


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
The form bean can be in the request scope as long as you're forwarding to 
the next resource and NOT redirecting.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 12:47:51 -0500

...and the form bean is of session scope.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Friday, November 15, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm manipulation within an Action


Of course, this happens all the time in add/edit forms.  Any change to the
form in the first action will be seen by the action it forwards to as long
as both actions are setup to use the same form bean in struts-config.xml.

David






From: Jorge Martins [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Mailinglist' [EMAIL PROTECTED]
Subject: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 17:20:57 -

Hi,

Is there a way to set an attribute in an ActionForm received by an
Action and having that change propagated when I 'findForward()' to
another Action?

Thanks
   Jorge



inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge




--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



Re: Trouble with DynaActionForm and indexed properties

2002-11-15 Thread Christoph Kulla
Hi Jim,

I'm using 1.3.02 and 1.4.1. Both show the same error. Is my code supposed to work? Do I use the indexed property the
right way?

Regards

Christoph

Jim Krygowski schrieb:

Hi Christoph,

Your problem sounds similar to an issue I'm having with an ActionForm and an
indexed property.  I only encountered the problem after upgrading a working
application to JDK 1.4.1.  Which JDK are you using?





-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: Thursday, November 14, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: Trouble with DynaActionForm and indexed properties


Hi,

I'm getting an exception when using DynaActionForm and indexed properties.

My form is:

form-bean name=myForm type=org.apache.struts.action.DynaActionForm
form-property name=username type=java.lang.String /
form-property name=password type=java.lang.String /
form-property name=number type=java.lang.String initial=1 /
form-property name=name type=java.lang.String[] /
/form-bean

Part of my jsp is:

html:text property=name[0] size=16/
html:text property=name[1] size=16/

When submitting the form I get the ArrayIndexOutOfBoundsException (see
below). I guess the String array isn't initialized properly in the form
bean. Any ideas?

Btw, I refer to struts 1.1-b2.

Regards

Christoph

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestP
rocessor.java:779)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:246)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A


pplicationFilterChain.java:247)


at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati


onFilterChain.java:193)


at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Mon
itorFilter.java:223)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A


pplicationFilterChain.java:213)


at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati


onFilterChain.java:193)


at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
erValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardConte
xtValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
icatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
lve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(Moni
torValve.java:142)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
e.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
cherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
e.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
Valve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at

RE: [OT]Need magic incantation

2002-11-15 Thread Sri Sankaran
Checked out everything you suggested.  Everything's on the up-and-up.  The case is 
right.  The package is right.  I have even go to the extent of unzipping the jar file 
in the appropriate classes directory to no avail.

Thanks for the help.

The search continueswhat a way to end the week :(

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com] 
Sent: Friday, November 15, 2002 12:46 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation






Gee -

According to the Tomcat site, a webapp looks in all of these places in the order 
listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above) $CATALINA_HOME/common/classes 
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if you're using a 
Windows OS classes can be located even if they have upper case in their directory 
paths. But when running in an APP server, case sensitivity will keep the class from 
being found. In your jar file, are there any upper case letters in any of the 
directory names? It might be worth reviewing the offending jar file structure to make 
sure there are no issues (though you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the jar file 
whereit is visible.

Can you see other classes or properties files in that particular jar file?

Silly question - do you have the package and class names correct? Might be worth 
double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of the common, 
shared or the webapp-specific classloaders. In other words, I've placed it in 
CATALINA_HOME/common/lib re-start  test then placed it in CATALINA_HOME/shared/lib 
re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


That is, identify which classloaders your jar file should be visible to (system, 
shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar file that 
contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib directories to no 
avail.

The kicker is that I can successfully run a command-line application  -- that 
exercises the same business logic -- using the classpath used by Tomcat.

I know it could be any bunch of things -- but do you have any recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use of the 
individual or entity to which it is addressed and may contain information that is 
privileged, proprietary , confidential and exempt from disclosure.  If you are not the 
intended recipient, you are notified that any dissemination, distribution or copying 
of this communication is strictly prohibited.  If you have received this communication 
in error, please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:  mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:  mailto:struts-user-help;jakarta.apache.org







---
This e-mail message (including attachments, if any) is intended for the use of the 
individual or entity to which it is addressed and may contain information that is 
privileged, proprietary , confidential and exempt from disclosure.  If you are not the 
intended recipient, you are 

RE: ActionForm manipulation within an Action

2002-11-15 Thread Sri Sankaran
Right you areshould have read your message a little better.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Friday, November 15, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action


The form bean can be in the request scope as long as you're forwarding to 
the next resource and NOT redirecting.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 12:47:51 -0500

...and the form bean is of session scope.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Friday, November 15, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm manipulation within an Action


Of course, this happens all the time in add/edit forms.  Any change to 
the form in the first action will be seen by the action it forwards to 
as long as both actions are setup to use the same form bean in 
struts-config.xml.

David






 From: Jorge Martins [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Mailinglist' [EMAIL PROTECTED]
 Subject: ActionForm manipulation within an Action
 Date: Fri, 15 Nov 2002 17:20:57 -
 
 Hi,
 
 Is there a way to set an attribute in an ActionForm received by an 
 Action and having that change propagated when I 'findForward()' to 
 another Action?
 
 Thanks
Jorge
 
 
 
 inesc-id   Jorge Martins  | [EMAIL PROTECTED]
 lisboaSoftware Engineering Group |
 http://www.esw.inesc-id.pt/~jorge
 
 
 
 
 --
 To unsubscribe, e-mail: 
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation

2002-11-15 Thread shakeel . mahate


Hi Sri,

Is your class public?

-Shakeel




|-
|(Embedded|
|image moved  |
|to file: |
|pic05836.pcx)|
| |
|-
  |
  |Sri Sankaran [EMAIL PROTECTED]   |
  |11/15/2002 01:20 PM |
  |



Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Shakeel Mahate/USTRA/ABB)
Subject:  RE: [OT]Need magic incantation

Security Level:? Internal



Checked out everything you suggested.  Everything's on the up-and-up.
The case is right.  The package is right.  I have even go to the extent
of unzipping the jar file in the appropriate classes directory to no
avail.

Thanks for the help.

The search continueswhat a way to end the week :(

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 12:46 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation






Gee -

According to the Tomcat site, a webapp looks in all of these places in
the order listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes $CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if
you're using a Windows OS classes can be located even if they have upper
case in their directory paths. But when running in an APP server, case
sensitivity will keep the class from being found. In your jar file, are
there any upper case letters in any of the directory names? It might be
worth reviewing the offending jar file structure to make sure there are
no issues (though you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the
jar file whereit is visible.

Can you see other classes or properties files in that particular jar
file?

Silly question - do you have the package and class names correct? Might
be worth double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of
the common, shared or the webapp-specific classloaders. In other words,
I've placed it in CATALINA_HOME/common/lib re-start  test then placed
it in CATALINA_HOME/shared/lib re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at
this page?


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


That is, identify which classloaders your jar file should be visible to
(system, shared, webapp, etc.) based on the directories you've put it
in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the
jar file that contains the missing class.  I've even tried -- in
desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib
directories to no avail.

The kicker is that I can successfully run a command-line application  --
that exercises the same business logic -- using the classpath used by
Tomcat.

I know it could be any bunch of things -- but do you have any
recommendations?

Sri






---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from disclosure.  If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify the sender and erase this e-mail
message immediately.
---




--
To unsubscribe, e-mail:   

How can I set a value into the Form class assigned to the current form?

2002-11-15 Thread Zsolt Koppany
Hi,

how can I set the values of Form class assigned to current form from JSP?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation [Friday alert!]

2002-11-15 Thread Kevin . Bedell




Here's the solution:

 - Look around the case to your PC. You should find a power switch.

 - Turn the switch to the off position (sometimes shown as a 0).

 - Put your coat on.

- Get your keys and wallet. Walk to your car.

 - Drive to nearest pub. The bartender there will provide you with your
next instructions.

K.





Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 01:20:20 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Checked out everything you suggested.  Everything's on the up-and-up.  The
case is right.  The package is right.  I have even go to the extent of
unzipping the jar file in the appropriate classes directory to no avail.

Thanks for the help.

The search continueswhat a way to end the week :(

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 12:46 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation






Gee -

According to the Tomcat site, a webapp looks in all of these places in the
order listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes $CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if you're
using a Windows OS classes can be located even if they have upper case in
their directory paths. But when running in an APP server, case sensitivity
will keep the class from being found. In your jar file, are there any upper
case letters in any of the directory names? It might be worth reviewing the
offending jar file structure to make sure there are no issues (though
you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the jar
file whereit is visible.

Can you see other classes or properties files in that particular jar file?

Silly question - do you have the package and class names correct? Might be
worth double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of the
common, shared or the webapp-specific classloaders. In other words, I've
placed it in CATALINA_HOME/common/lib re-start  test then placed it in
CATALINA_HOME/shared/lib re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this
page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html



That is, identify which classloaders your jar file should be visible to
(system, shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12
and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar
file that contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib
directories to no avail.

The kicker is that I can successfully run a command-line application  --
that exercises the same business logic -- using the classpath used by
Tomcat.

I know it could be any bunch of things -- but do you have any
recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional 

Re: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-15 Thread Peter A. J. Pilgrim
Khalid Aslan wrote:

Peter

You are absolutely right. The big financial
institution in the city do have the money and
the where-with-it-all to invest in a new technologies.
I dont necessarily want another banking job at all.
I am happy to look for another vertical sector.
Are you saying that only big banks want to develop 
J2EE applications? I might possibly believe it.
I have looked at the job sites today and apparently
only the investment banks are offering J2EE jobs.

Hi Khalid

Worst still the same jobs are appearing up to three times
a day on the same job server. Here an example for an
Integration Development Manager

http://www.it.jobserve.com/jobserve/JobDetail.asp?jobid=B2491F3D8FB8CA06

http://www.it.jobserve.com/jobserve/JobDetail.asp?jobid=372CB244A66D4378

http://www.it.jobserve.com/jobserve/JobDetail.asp?jobid=D508EBCBB03B763E

Notice the same different servlet parameter parameter value jobid
all reference to exact same job specification from the
agency E-volution Recruitment Solution Ltd. So what the hell.
It's bloody mad, I tell you.


I did a similar persuasion exercise at my last place.
Open source is taking a hold, but moving very slowly.
It is all about saving money and I think a lot of
the managers are finally getting convinced about
running Linux server rather Sun Solaris boxes.
It is just too bad I had leave to see the horizon.
As for me I think that I will have to look beyond core
J2EE
development maybe go back to even RMI and Applet
programming which would be horrible just to make
ends meet.


Well hang on to horses yet. What goes around usually comes back
around at some point in the future. Eventually the developers
will become the senior developers, and the senior developers
become the project leaders and lead architects. So remember
this depressing experience and learn from it, treat it
like pinch of salt.


Hey! May be we can swap leads off-line. What
do you think?


Yeh, why not? No problems.
--
Peter Pilgrim
ServerSide Java Specialist

My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Trouble with DynaActionForm and indexed properties

2002-11-15 Thread Daniel Haynes
There is a bug relating to indexed properties in 1.1 b2, which I believe was
either fixed or posted about August 22, 2002. Try using a later build of
struts.

Dan

-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: 15 November 2002 18:17
To: Struts Users Mailing List
Subject: Re: Trouble with DynaActionForm and indexed properties


Hi Jim,

I'm using 1.3.02 and 1.4.1. Both show the same error. Is my code supposed to
work? Do I use the indexed property the
right way?

Regards

Christoph

Jim Krygowski schrieb:
 Hi Christoph,
 
 Your problem sounds similar to an issue I'm having with an ActionForm and
an
 indexed property.  I only encountered the problem after upgrading a
working
 application to JDK 1.4.1.  Which JDK are you using?
 
 
 
 
-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: Thursday, November 14, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: Trouble with DynaActionForm and indexed properties


Hi,

I'm getting an exception when using DynaActionForm and indexed properties.

My form is:

form-bean name=myForm type=org.apache.struts.action.DynaActionForm
 form-property name=username type=java.lang.String /
 form-property name=password type=java.lang.String /
 form-property name=number type=java.lang.String initial=1 /
 form-property name=name type=java.lang.String[] /
/form-bean

Part of my jsp is:

html:text property=name[0] size=16/
html:text property=name[1] size=16/

When submitting the form I get the ArrayIndexOutOfBoundsException (see
below). I guess the String array isn't initialized properly in the form
bean. Any ideas?

Btw, I refer to struts 1.1-b2.

Regards

Christoph

javax.servlet.ServletException: BeanUtils.populate
 at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestP
rocessor.java:779)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:246)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
 at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 
 pplicationFilterChain.java:247)
 
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 
 onFilterChain.java:193)
 
 at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Mon
itorFilter.java:223)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 
 pplicationFilterChain.java:213)
 
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 
 onFilterChain.java:193)
 
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
erValve.java:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardConte
xtValve.java:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
icatorBase.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
lve.java:246)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(Moni
torValve.java:142)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
e.java:180)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
cherValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
e.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
 

RE: [OT]Need magic incantation [Friday alert!]

2002-11-15 Thread Sri Sankaran
D'oh!  Why didn't I think of that

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com] 
Sent: Friday, November 15, 2002 1:42 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation [Friday alert!]






Here's the solution:

 - Look around the case to your PC. You should find a power switch.

 - Turn the switch to the off position (sometimes shown as a 0).

 - Put your coat on.

- Get your keys and wallet. Walk to your car.

 - Drive to nearest pub. The bartender there will provide you with your next 
instructions.

K.





Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 01:20:20 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Checked out everything you suggested.  Everything's on the up-and-up.  The case is 
right.  The package is right.  I have even go to the extent of unzipping the jar file 
in the appropriate classes directory to no avail.

Thanks for the help.

The search continueswhat a way to end the week :(

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 12:46 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation






Gee -

According to the Tomcat site, a webapp looks in all of these places in the order 
listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above) $CATALINA_HOME/common/classes 
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if you're using a 
Windows OS classes can be located even if they have upper case in their directory 
paths. But when running in an APP server, case sensitivity will keep the class from 
being found. In your jar file, are there any upper case letters in any of the 
directory names? It might be worth reviewing the offending jar file structure to make 
sure there are no issues (though you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the jar file 
whereit is visible.

Can you see other classes or properties files in that particular jar file?

Silly question - do you have the package and class names correct? Might be worth 
double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of the common, 
shared or the webapp-specific classloaders. In other words, I've placed it in 
CATALINA_HOME/common/lib re-start  test then placed it in CATALINA_HOME/shared/lib 
re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this page?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html



That is, identify which classloaders your jar file should be visible to (system, 
shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar file that 
contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib directories to no 
avail.

The kicker is that I can successfully run a command-line application  -- that 
exercises the same business logic -- using the classpath used by Tomcat.

I know it could be any bunch of things -- but do you have any recommendations?

Sri






---
This e-mail message (including attachments, if any) is intended for the use of the 
individual or entity to which it is addressed and may contain information that is 
privileged, proprietary , confidential and exempt from disclosure.  If you are not the 
intended recipient, you are notified that any dissemination, distribution or copying 
of this communication is strictly prohibited.  If you have received 

RE: ActionForm manipulation within an Action

2002-11-15 Thread Jorge Martins
Well, I had tried it before just like you are saying...

Two actions use the same ActionForm (a DynaValidatorForm defined with
request scope).
The first Action sets a property in the ActionForm and forwards to
another Action (using a local forward name=... path=.../ -- with
no redirect=true this should be forwarding, right?!). The problem is the
second Action received the ActionForm without the property set...

Due to time constraints I had to resort to an ugly bypass to the
ActionForms by setting an attribute directly in the request (in the
first Action) and verifying the existence of the attribute (in the
second Action).

Any thoughts on why this wasn't working?

Thanks,
  jorge

 

   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge


The form bean can be in the request scope as long as you're forwarding
to 
the next resource and NOT redirecting.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 12:47:51 -0500

...and the form bean is of session scope.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Friday, November 15, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm manipulation within an Action


Of course, this happens all the time in add/edit forms.  Any change to
the form in the first action will be seen by the action it forwards to 
as long as both actions are setup to use the same form bean in 
struts-config.xml.

David






 From: Jorge Martins [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: 'Struts Mailinglist' [EMAIL PROTECTED]
 Subject: ActionForm manipulation within an Action
 Date: Fri, 15 Nov 2002 17:20:57 -
 
 Hi,
 
 Is there a way to set an attribute in an ActionForm received by an
 Action and having that change propagated when I 'findForward()' to 
 another Action?
 
 Thanks
Jorge
 
 

___
_
 inesc-id   Jorge Martins  |
[EMAIL PROTECTED]
 lisboaSoftware Engineering Group |
 http://www.esw.inesc-id.pt/~jorge
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation

2002-11-15 Thread Xavier Combelle

Maybe you should check if the class you are look for is really in the jar 
by using an unzip tool.

 -Message d'origine-
 De : Sri Sankaran [mailto:Sri.Sankaran;sas.com]
 Envoye : vendredi 15 novembre 2002 17:42
 A : Struts-User
 Objet : [OT]Need magic incantation
 
 
 I'm being stymied by a classpath issue that occurs both on Tomcat 
 4.1.12 and JRun 3.1.
 
 I get a ClassNotFoundException while the classpath clearly 
 displays the jar file that contains the missing class.  I've 
 even tried -- in desperation -- putting the jar file in Tomcat's 
 bin common/lib and server/lib directories to no avail.
 
 The kicker is that I can successfully run a command-line 
 application  -- that exercises the same business logic -- using 
 the classpath used by Tomcat.
 
 I know it could be any bunch of things -- but do you have any 
 recommendations?
 
 Sri
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-15 Thread Peter A. J. Pilgrim
Khalid Aslan wrote:

Hey! May be we can swap leads off-line. What
do you think?

/Khalid/


1) Khalid

Have you ever try to contact any of the Java User Groups?

``http://servlet.java.sun.com/jugs/europe/gbr''

2) All Jobbers

Worth trying out  JUGs on the Sun site for networking contact me thinks.
--
Peter Pilgrim
ServerSide Java Specialist

My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Trouble with DynaActionForm and indexed properties

2002-11-15 Thread Christoph Kulla
Hi,

I already tried this with yesterdays build. Same result.
I'll check struts bugzilla archive.

Christoph

Daniel Haynes schrieb:

There is a bug relating to indexed properties in 1.1 b2, which I believe was
either fixed or posted about August 22, 2002. Try using a later build of
struts.

Dan

-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: 15 November 2002 18:17
To: Struts Users Mailing List
Subject: Re: Trouble with DynaActionForm and indexed properties


Hi Jim,

I'm using 1.3.02 and 1.4.1. Both show the same error. Is my code supposed to
work? Do I use the indexed property the
right way?

Regards

Christoph

Jim Krygowski schrieb:


Hi Christoph,

Your problem sounds similar to an issue I'm having with an ActionForm and


an


indexed property.  I only encountered the problem after upgrading a


working


application to JDK 1.4.1.  Which JDK are you using?






-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: Thursday, November 14, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: Trouble with DynaActionForm and indexed properties


Hi,

I'm getting an exception when using DynaActionForm and indexed properties.

My form is:

form-bean name=myForm type=org.apache.struts.action.DynaActionForm
   form-property name=username type=java.lang.String /
   form-property name=password type=java.lang.String /
   form-property name=number type=java.lang.String initial=1 /
   form-property name=name type=java.lang.String[] /
/form-bean

Part of my jsp is:

html:text property=name[0] size=16/
html:text property=name[1] size=16/

When submitting the form I get the ArrayIndexOutOfBoundsException (see
below). I guess the String array isn't initialized properly in the form
bean. Any ideas?

Btw, I refer to struts 1.1-b2.

Regards

Christoph

javax.servlet.ServletException: BeanUtils.populate
   at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
   at
org.apache.struts.action.RequestProcessor.processPopulate(RequestP
rocessor.java:779)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:246)
   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A


pplicationFilterChain.java:247)



   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati


onFilterChain.java:193)



   at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Mon
itorFilter.java:223)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A


pplicationFilterChain.java:213)



   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati


onFilterChain.java:193)



   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
erValve.java:243)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardConte
xtValve.java:190)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
icatorBase.java:475)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
lve.java:246)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
   at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(Moni
torValve.java:142)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
e.java:180)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
cherValve.java:170)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
e.java:170)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
   at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at

RE: [OT]Need magic incantation [Friday alert!]

2002-11-15 Thread Drew Zimber


one of the most brilliant solutions I've ever come across, you're a true
software engineer! ;)

dz

 Here's the solution:

  - Look around the case to your PC. You should find a power switch.

  - Turn the switch to the off position (sometimes shown as a 0).

  - Put your coat on.

 - Get your keys and wallet. Walk to your car.

  - Drive to nearest pub. The bartender there will provide you with your
 next instructions.

 K.




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Trouble with DynaActionForm and indexed properties

2002-11-15 Thread Daniel Haynes
The bug I was talking about was 11866. Maybe its not related to your
problem.

Dan

-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: 15 November 2002 19:14
To: Struts Users Mailing List
Subject: Re: Trouble with DynaActionForm and indexed properties


Hi,

I already tried this with yesterdays build. Same result.
I'll check struts bugzilla archive.

Christoph

Daniel Haynes schrieb:
 There is a bug relating to indexed properties in 1.1 b2, which I believe
was
 either fixed or posted about August 22, 2002. Try using a later build of
 struts.
 
 Dan
 
 -Original Message-
 From: Christoph Kulla [mailto:chriskul;gmx.net]
 Sent: 15 November 2002 18:17
 To: Struts Users Mailing List
 Subject: Re: Trouble with DynaActionForm and indexed properties
 
 
 Hi Jim,
 
 I'm using 1.3.02 and 1.4.1. Both show the same error. Is my code supposed
to
 work? Do I use the indexed property the
 right way?
 
 Regards
 
 Christoph
 
 Jim Krygowski schrieb:
 
Hi Christoph,

Your problem sounds similar to an issue I'm having with an ActionForm and
 
 an
 
indexed property.  I only encountered the problem after upgrading a
 
 working
 
application to JDK 1.4.1.  Which JDK are you using?





-Original Message-
From: Christoph Kulla [mailto:chriskul;gmx.net]
Sent: Thursday, November 14, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: Trouble with DynaActionForm and indexed properties


Hi,

I'm getting an exception when using DynaActionForm and indexed
properties.

My form is:

form-bean name=myForm type=org.apache.struts.action.DynaActionForm
form-property name=username type=java.lang.String /
form-property name=password type=java.lang.String /
form-property name=number type=java.lang.String initial=1 /
form-property name=name type=java.lang.String[] /
/form-bean

Part of my jsp is:

html:text property=name[0] size=16/
html:text property=name[1] size=16/

When submitting the form I get the ArrayIndexOutOfBoundsException (see
below). I guess the String array isn't initialized properly in the form
bean. Any ideas?

Btw, I refer to struts 1.1-b2.

Regards

Christoph

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestP
rocessor.java:779)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:246)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A

pplicationFilterChain.java:247)


at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati

onFilterChain.java:193)


at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Mon
itorFilter.java:223)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A

pplicationFilterChain.java:213)


at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati

onFilterChain.java:193)


at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
erValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardConte
xtValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
icatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
lve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(Moni
torValve.java:142)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
e.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
ine.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
cherValve.java:170)
at

RE: Visually Developing Struts Pages

2002-11-15 Thread Jim Alemany
I've downloaded and am going to see if it works with DreamweaverMX. I'm not 100% but 
will post if it does. Is anyone currently working on the Dreamweaver CTLX 
extension/servlet pair? MX already supports the insertion of custom tags, I expect a 
revised version would include just the servlet and DWMX config (famous last words).

Jim

-Original Message-
From: Vilya Harvey [mailto:vilya.harvey;digitalsteps.com]
Sent: Friday, November 15, 2002 4:32 AM
To: Struts Users Mailing List
Subject: Re: Visually Developing Struts Pages


Wow, thanks Craig! I'll check this out.

   http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html

Vil.
--
Vilya Harvey, Consultant
[EMAIL PROTECTED] / digital steps /
(W) +44 (0)1483 469 480  
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

--Disclaimer--

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT]Need magic incantation [Friday alert!]

2002-11-15 Thread Craig R. McClanahan


On Fri, 15 Nov 2002, Drew Zimber wrote:

 Date: Fri, 15 Nov 2002 14:16:15 -0500
 From: Drew Zimber [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: [OT]Need magic incantation [Friday alert!]



 one of the most brilliant solutions I've ever come across, you're a true
 software engineer! ;)


A true software engineer leaves out the get your wallet step -- he talks
so much geek to everyone at the bar that they buy him a drink to shut him
up.  :-0

 dz


Craig

  Here's the solution:
 
   - Look around the case to your PC. You should find a power switch.
 
   - Turn the switch to the off position (sometimes shown as a 0).
 
   - Put your coat on.
 
  - Get your keys and wallet. Walk to your car.
 
   - Drive to nearest pub. The bartender there will provide you with your
  next instructions.
 
  K.




 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[OT] Tomcat Class loader (Was RE: [OT]Need magic incantation)

2002-11-15 Thread Sri Sankaran

Fixed!  But I have a following question.  But first the fix...


In displaying the classpath used by Tomcat 4.1.12, I noticed that it was loading 
jre/lib/ext/beaucoup.jar.files.  Since I didn't need any of those jar files, I wiped  
the directory clean.  Everything worked...!

While I am pleased that it works, I am puzzled.  Why did it not work?  I have read the 
Tomcat classloader page a few times now and don't see an answer.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:shakeel.mahate;us.abb.com] 
Sent: Friday, November 15, 2002 1:36 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation




Hi Sri,

Is your class public?

-Shakeel




|-
|(Embedded|
|image moved  |
|to file: |
|pic05836.pcx)|
| |
|-
  |
  |Sri Sankaran [EMAIL PROTECTED]   |
  |11/15/2002 01:20 PM |
  |



Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Shakeel Mahate/USTRA/ABB)
Subject:  RE: [OT]Need magic incantation

Security Level:? Internal



Checked out everything you suggested.  Everything's on the up-and-up. The case is 
right.  The package is right.  I have even go to the extent of unzipping the jar file 
in the appropriate classes directory to no avail.

Thanks for the help.

The search continueswhat a way to end the week :(

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 12:46 PM
To: Struts Users Mailing List
Subject: RE: [OT]Need magic incantation






Gee -

According to the Tomcat site, a webapp looks in all of these places in the order 
listed:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above) $CATALINA_HOME/common/classes 
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

Obviously, you've got this covered.

One issue I've noticed with this is case sensitivity. Sometimes if you're using a 
Windows OS classes can be located even if they have upper case in their directory 
paths. But when running in an APP server, case sensitivity will keep the class from 
being found. In your jar file, are there any upper case letters in any of the 
directory names? It might be worth reviewing the offending jar file structure to make 
sure there are no issues (though you've probably already done this...).

Not sure - it's probably something obvious because you seem to have the jar file 
whereit is visible.

Can you see other classes or properties files in that particular jar file?

Silly question - do you have the package and class names correct? Might be worth 
double checking.

















Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 12:04:06 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [OT]Need magic incantation


Alright.

What I have tried is to place the jar so that it is available to any of the common, 
shared or the webapp-specific classloaders. In other words, I've placed it in 
CATALINA_HOME/common/lib re-start  test then placed it in CATALINA_HOME/shared/lib 
re-start  test

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 15, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT]Need magic incantation






Can you re-phrase your question in terms of the classloader diagram at this page?


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


That is, identify which classloaders your jar file should be visible to (system, 
shared, webapp, etc.) based on the directories you've put it in?







Sri Sankaran [EMAIL PROTECTED] on 11/15/2002 11:41:40 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts-User [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[OT]Need magic incantation


I'm being stymied by a classpath issue that occurs both on Tomcat 4.1.12 and JRun 3.1.

I get a ClassNotFoundException while the classpath clearly displays the jar file that 
contains the missing class.  I've even tried -- in desperation
-- putting the jar file in Tomcat's bin common/lib and server/lib directories to no 
avail.

The kicker is that I can successfully run a command-line application  -- that 
exercises the same business logic -- using the classpath used by Tomcat.

I know it could be any bunch of things -- but do you have any recommendations?

Sri







Small log4j PlugIn-Contribution

2002-11-15 Thread Thomas Nagel
Hi,

I guess more people than I had the problem to use log4j inside a
non log4j enviroment e.g. Caucho Resin.

I wrote a small Struts log4j PlugIn which might be useful to those
who do not want to reinvent the wheel ;-)

The Plug-In is also able to reload configuration after a given sleep time,
because restarting the server on every property file change anoyed me.

Use:

1) put your log4j.properties in your /WEB-INF/ directory.

2) Add the following to your struts-config.xml

plug-in className=Log4jPlugIn 
!-- 
 sleep time, default to 2 minutes 
 sleep time of 0 means no background thread 
--
set-property property=sleepTime value=120 /

!-- where to find the log4j.properties file --
set-property property=logProperties 
  value=/WEB-INF/log4j.properties /
  /plug-in


3) Compile the following and add to your /WEB-INF/classes

- code -

import java.io.File;
import javax.servlet.ServletException;

import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Logger;

import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ApplicationConfig;
import org.apache.struts.action.ActionServlet;

/**
 * Initializes the a href=http://jakarta.apache.org/log4j;log4j/a
 * system with a given log4j.properties file for non - Log4j enviroments,
 * e.g. Caucho Resin.
 * p
 * This class also starts a background thread which checks the modification
 * time of the property file periodically (sleepTime) and updates the 
 * system if necessary.
 * p
 * Default sleep time is 2 minutes, a sleep time of 0 simply means 
 * NO background thread.
 *
 * author  a href=mailto:thomas.nagel;ptv.deThomas Nagel/a
 * version $Revision: 1.1 $ $Date: 2002/11/12 09:23:27 $
 */
public final class Log4jPlugIn implements PlugIn {

// --- members

/** Logger instance to use with this Plugin. */
private Logger log;

/** Path to find the log properties. */
private String _logConfiguration;

/** Which configuration file to use. */
private File _logProperties;

/** When was last time the logging properties where modified. */
private long _lastChange;
  

/**
 * The background thread which updates the log4j if the configuration
 * file has changed.
 */
private ModificationWatcher _modificationWatcher;

/** 
 * How long should the modification thread sleep until
 * it reloads the configuration? Default to 2 minutes
 * (12 milliseconds).
 */
 private long _sleepTime = 12;



// --- constructor

/** Creates a new instance of DatabasePlugIn */
public Log4jPlugIn() {}


// --- methods

/**
 * Initializes the Log4jPlugIn by configuring the log4j system
 * with the given property file.
 *
 * throws ServletException if initialization failes.
 */
public void init(ActionServlet servlet,
ApplicationConfig applicationConfig) throws
ServletException {
try{
_logProperties = 
 new
File(servlet.getServletContext().getRealPath(getLogProperties()));
configureLog4j();
log = Logger.getLogger(getClass().getName());

if(_sleepTime  0 ){
_modificationWatcher = new
Log4jPlugIn.ModificationWatcher();
_modificationWatcher.start();
}
}catch(Exception e){
throw new ServletException(Could not initialize log4j
subsystem, e);
}
log.info(Log4j successfully initialized.);
}


/**
 * Not used but required by interface.
 */
public void destroy() {
log.info(Shutting down log4j system.);
_modificationWatcher.shutdown();
}


/**
 * Configures the log4j system.
 */
private void configureLog4j() throws Exception {
PropertyConfigurator.configure(_logProperties.toURL());
_lastChange  = _logProperties.lastModified();
}


// 
properties

public String getLogProperties() {
return _logConfiguration;
}

public void setLogProperties(String logProperties) {
_logConfiguration = logProperties;
}

public void setSleepTime(String sleepTime) {
_sleepTime = Long.parseLong(sleepTime);
}


// -- inner
classes

/**
 * Background check if the log4j configuration file
 * has changed.
 */
private final class ModificationWatcher extends Thread {
 
protected boolean _done = false;

public void run(){

[OT] Tomcat class loading

2002-11-15 Thread Sri Sankaran

It seems as if the class-loader that loaded a particular class maintains some kind of 
reference to the class.  Any dependent class can be loaded only by this loader or any 
one up the Tomcat hierarchy 
 
 Bootstrap
   |
   System
   |
  Common
/  \
 Catalina Shared
   /  \
 Webapp-1  Webapp-2

So in other words, if Class-A is loaded by the Common classloader and Class-A requires 
Class-B the search will only be conducted by the Bootstrap classloader, the System 
classloader and the Common classloader (in that order).

Is this correct?

Sri



RE: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
I don't use dyna beans so I can't help you there.  Leaving the redirect 
attribute off a forward does mean that you're forwarding unless you've 
changed it globally to do redirects.

David






From: Jorge Martins [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 19:02:59 -

Well, I had tried it before just like you are saying...

Two actions use the same ActionForm (a DynaValidatorForm defined with
request scope).
The first Action sets a property in the ActionForm and forwards to
another Action (using a local forward name=... path=.../ -- with
no redirect=true this should be forwarding, right?!). The problem is the
second Action received the ActionForm without the property set...

Due to time constraints I had to resort to an ugly bypass to the
ActionForms by setting an attribute directly in the request (in the
first Action) and verifying the existence of the attribute (in the
second Action).

Any thoughts on why this wasn't working?

Thanks,
  jorge



   inesc-id   Jorge Martins  | [EMAIL PROTECTED]
lisboaSoftware Engineering Group |
http://www.esw.inesc-id.pt/~jorge


The form bean can be in the request scope as long as you're forwarding
to
the next resource and NOT redirecting.

David






From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: ActionForm manipulation within an Action
Date: Fri, 15 Nov 2002 12:47:51 -0500

...and the form bean is of session scope.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Friday, November 15, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm manipulation within an Action


Of course, this happens all the time in add/edit forms.  Any change to
the form in the first action will be seen by the action it forwards to
as long as both actions are setup to use the same form bean in
struts-config.xml.

David






 From: Jorge Martins [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: 'Struts Mailinglist' [EMAIL PROTECTED]
 Subject: ActionForm manipulation within an Action
 Date: Fri, 15 Nov 2002 17:20:57 -
 
 Hi,
 
 Is there a way to set an attribute in an ActionForm received by an
 Action and having that change propagated when I 'findForward()' to
 another Action?
 
 Thanks
Jorge
 
 

___
_
 inesc-id   Jorge Martins  |
[EMAIL PROTECTED]
 lisboaSoftware Engineering Group |
 http://www.esw.inesc-id.pt/~jorge
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



RE: giving biz classes access to MessageResources?

2002-11-15 Thread edgar
You can get the app.properties as long as you have the request

MessageResources mr = (MessageResources)
pageContext.findAttribute( Action.MESSAGES_KEY );

The MESSAGES_KEY is static so you don't need the action.

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com] 
Sent: Friday, November 15, 2002 2:24 PM
To: 'Struts Users Mailing List'
Subject: giving biz classes access to MessageResources?


I have an organizational question. On my current project, we keep SQL
queries in our App.properties file to allow us to update the queries
without recomiling code. However, this means that (afaik) only the
Action can access the query Strings. So, whenever calls are made to our
dB class, we have to pass the query as a parameter.

Or do we?
The dB is a bunch of static methods (could be a singleton just as
easily). Is there a better way to set this up that allows the dB class
to know about the message resources? Will a call to System.getResource
work here? How are other folks handling this kind of thing?

thx
andy



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Stack overflow error

2002-11-15 Thread Tim Reilly
I'm new to struts, and have just tried getting the error handling / form
validation stuff to work.

I have a form (DocumentForm) submitting to an Action successfully.  I just
tried to flesh out the validate method in the form object, but am now having
an error.

The form submission's working ok, but when there's an error and the validate
method returns ActionError objects, I somehow end up with a recursive /
infinite submission of the page.  Anyone seen this before?  I added a print
statement to Form.validate(), and it's apparant that the form's being
submitted many, many times as I'm seeing submission output in default-err
and default-log, and also a similar number of print statements from my
debugging calls (Called validate method/Found error in title).

In default-err, I get:

11/15 14:34:08 error 
java.lang.StackOverflowError
at jrunx.util.MultiKeyContainer.get(MultiKeyContainer.java:67)
at jrun.servlet.JRunRequest.getParameter(JRunRequest.java:271)
at jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
at jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
snip...400 identical lines deleted... 
at jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)
at jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:169)

and in default-out, I get:

Anyone ever seen this?  If so, any help is much appreciated.

Also, I'm using struts 1.1b2, and my environment is NT/JRun 4.0, and it's
HIGHLY likely that I have something misconfigured somewhere since I'm new to
struts.

Thanks for your help,

-Tim



RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
I'm talking about a generic class outside of the struts architecture that
knows nothing about where the strings are coming from (except that they come
from a properties file). So I don't have knowledge of Action or
MessageResources or pageContext.

-Original Message-
From: edgar [mailto:edgar;blue-moose.net]
Sent: Friday, November 15, 2002 14:50
To: 'Struts Users Mailing List'
Subject: RE: giving biz classes access to MessageResources?


You can get the app.properties as long as you have the request

MessageResources mr = (MessageResources)
pageContext.findAttribute( Action.MESSAGES_KEY );

The MESSAGES_KEY is static so you don't need the action.

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Friday, November 15, 2002 2:24 PM
To: 'Struts Users Mailing List'
Subject: giving biz classes access to MessageResources?


I have an organizational question. On my current project, we keep SQL
queries in our App.properties file to allow us to update the queries
without recomiling code. However, this means that (afaik) only the
Action can access the query Strings. So, whenever calls are made to our
dB class, we have to pass the query as a parameter.

Or do we?
The dB is a bunch of static methods (could be a singleton just as
easily). Is there a better way to set this up that allows the dB class
to know about the message resources? Will a call to System.getResource
work here? How are other folks handling this kind of thing?

thx
andy



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [OT] Tomcat class loading

2002-11-15 Thread Craig R. McClanahan


On Fri, 15 Nov 2002, Sri Sankaran wrote:

 Date: Fri, 15 Nov 2002 14:38:40 -0500
 From: Sri Sankaran [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User [EMAIL PROTECTED]
 Subject: [OT] Tomcat class loading


 It seems as if the class-loader that loaded a particular class maintains some kind 
of reference to the class.  Any dependent class can be loaded only by this loader or 
any one up the Tomcat hierarchy

  Bootstrap
|
System
|
   Common
 /  \
  Catalina Shared
/  \
  Webapp-1  Webapp-2

 So in other words, if Class-A is loaded by the Common classloader and
 Class-A requires Class-B the search will only be conducted by the
 Bootstrap classloader, the System classloader and the Common classloader
 (in that order).


If you are just doing standard Java style instantiations:

  Foo f = new Foo();

then you are correct -- Java looks up but not down.  In fact, there is no
way to go down, because a java.lang.ClassLoader instance has no knowledge
of other class loaders that consider it to be a parent.

However, there is a workaround for the very common scenario that something
in the Common class loader needs to instantiate a class from a webapp (for
example, you want to put struts.jar into common).  There is a Java thing
called a context class loader attached to each request processing
thread, and the app server will generally (required in J2EE 1.4, but
commonly implemented in current servers) store the webapp class loader for
the current webapp there.  Thus, if you want to load class
com.mypackage.MyFoo out of the webapp class loader, you could say:

  // Get reference to the class loader for this webapp
  ClassLoader wacl = Thread.currentThread().getContextClassLoader();

  // Load the desired class from this class loader
  Class fooClass = wacl.loadClass(com.mypackage.MyFoo);

  // Instantiate an instance of this class
  Foo foo = (Foo) fooClass.newInstance();

If you look into the Struts 1.1 method RequestUtils.applicationClass(),
you'll see that it uses this technique.  Because of that, you should -- in
principle -- be able to put struts.jar into the common class loader in
Tomcat, and things should still work.  (There may be some corner cases we
haven't caught yet, but it *should* be possible).

Note that this won't work at all for Struts 1.0, because that code doesn't
use the context class loader.

 Is this correct?

 Sri


Craig



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Jeff Born
I found the problem.  I just replaced all the jar file in the lib directory
of the struts-menu.war with the same jar files from the 1.1b2 struts download
and then the example app starts working.
 
This took me a while and in the end the answer was staring me in the face.
 
My hope with posting the question someone had worked through what I was going
through and would have recongnized it and posted the answer.  As I hope to do
some day.
 
I otherwords I could do without the sarcasm.
 
jb

-Original Message- 
From: V. Cekvenich [mailto:vicc;users.sourceforge.net] 
Sent: Fri 11/15/2002 9:45 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1



Can I send you a sample of a working config tmrw?
I have many things to do today.

.V

Jeff Born wrote:
 In the example it is configured as a Plugin.  It just doesn't work
right off
 the shelve.  Given enough time I should be able to figure it out,
but time is
 something I don't have a lot of, so I'm looking for some pointers
in getting
 rid of the exception The menu repository could not be found.
Once I get a
 working example I should have no problem configuring for my own
needs.
 
 jb





RE: [OT] Tomcat class loading

2002-11-15 Thread Sri Sankaran
Intermixed...

 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org] 
 Sent: Friday, November 15, 2002 2:58 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Tomcat class loading
 
 
 
 
 On Fri, 15 Nov 2002, Sri Sankaran wrote:
 
  Date: Fri, 15 Nov 2002 14:38:40 -0500
  From: Sri Sankaran [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts-User [EMAIL PROTECTED]
  Subject: [OT] Tomcat class loading
 
 
  It seems as if the class-loader that loaded a particular class 
  maintains some kind of reference to the class.  Any dependent class 
  can be loaded only by this loader or any one up the Tomcat hierarchy
 
   Bootstrap
 |
 System
 |
Common
  /  \
   Catalina Shared
 /  \
   Webapp-1  Webapp-2
 
  So in other words, if Class-A is loaded by the Common 
 classloader and 
  Class-A requires Class-B the search will only be conducted by the 
  Bootstrap classloader, the System classloader and the Common 
  classloader (in that order).
 
 
 If you are just doing standard Java style instantiations:
 
   Foo f = new Foo();
 
 then you are correct -- Java looks up but not down.  In fact, 
 there is no way to go down, because a java.lang.ClassLoader 
 instance has no knowledge of other class loaders that 
 consider it to be a parent.

10-4.  What I meant to ask is, is there any association maintained between the loaded 
class and the class loader that loaded it?  

Here's what I saw today in resolving a classpath issue:  
Suppose Foo above is required by a webapp and is loaded by the Shared classloader. 
Now, if Foo references Bar, only the Bootstrap, System, Common and Shared classloaders 
are apparently being queried.  Even though Foo is being used by the webapp.  Is this 
expected behavior?

 
 However, there is a workaround for the very common scenario 
 that something in the Common class loader needs to 
 instantiate a class from a webapp (for example, you want to 
 put struts.jar into common).  There is a Java thing called a 
 context class loader attached to each request processing 
 thread, and the app server will generally (required in J2EE 
 1.4, but commonly implemented in current servers) store the 
 webapp class loader for the current webapp there.  Thus, if 
 you want to load class com.mypackage.MyFoo out of the 
 webapp class loader, you could say:
 
   // Get reference to the class loader for this webapp
   ClassLoader wacl = Thread.currentThread().getContextClassLoader();
 
   // Load the desired class from this class loader
   Class fooClass = wacl.loadClass(com.mypackage.MyFoo);
 
   // Instantiate an instance of this class
   Foo foo = (Foo) fooClass.newInstance();
 
 If you look into the Struts 1.1 method 
 RequestUtils.applicationClass(), you'll see that it uses this 
 technique.  Because of that, you should -- in principle -- be 
 able to put struts.jar into the common class loader in 
 Tomcat, and things should still work.  (There may be some 
 corner cases we haven't caught yet, but it *should* be possible).
 
 Note that this won't work at all for Struts 1.0, because that 
 code doesn't use the context class loader.
 
  Is this correct?
 
  Sri
 
 
 Craig
 
 
Sri

 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:struts-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




PropertyUtils.copyProperties() usage in 1.1-b2

2002-11-15 Thread Brian Topping
Hi all, happy friday (again... :)

I'm trying to figure out what I am doing wrong with
PropertyUtils.copyProperties().  From within my Action, I have:

User user = bean;
DynaActionForm regForm = (DynaActionForm) form;
PropertyUtils.copyProperties(regForm, user);

When I look at what copyProperties is doing, it's getting a
PropertyDescriptor array from getPropertyDescriptors() with the user
bean correctly, then it iteratively tries to see if the regForm has any
of the properties found in the user bean.  But calling
getPropertyDescriptor(regForm, fieldname) seems to be comparing the
(correct) field names from the bean against the *structure* of the
DynaActionForm component (i.e. the multipartRequestHandler, dynaClass,
servlet, etc), instead of the DynaFields that I set up in my
form-bean/.

I don't think nested properties are the answer, and copyProperties() is
supposed to work with DynaBean in the source, destination, both or
neither.  

Any ideas?  The code seems to work fine when the source and destination
are reversed.  I'm using 1.1-b2.

Thanks a bunch,

Brian

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: ActionForm manipulation within an Action

2002-11-15 Thread Brian Topping
... and you aren't using DynaActionForms, which erase your form every
time the controller is called.

-b

 -Original Message-
 From: Sri Sankaran [mailto:Sri.Sankaran;sas.com]
 Sent: Friday, November 15, 2002 12:48 PM
 To: Struts Users Mailing List
 Subject: RE: ActionForm manipulation within an Action
 
 
 ...and the form bean is of session scope.
 
 Sri
 
 -Original Message-
 From: David Graham [mailto:dgraham1980;hotmail.com] 
 Sent: Friday, November 15, 2002 12:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ActionForm manipulation within an Action
 
 
 Of course, this happens all the time in add/edit forms.  Any 
 change to the 
 form in the first action will be seen by the action it 
 forwards to as long 
 as both actions are setup to use the same form bean in 
 struts-config.xml.
 
 David
 
 
 
 
 
 
 From: Jorge Martins [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: 'Struts Mailinglist' [EMAIL PROTECTED]
 Subject: ActionForm manipulation within an Action
 Date: Fri, 15 Nov 2002 17:20:57 -
 
 Hi,
 
 Is there a way to set an attribute in an ActionForm received by an 
 Action and having that change propagated when I 'findForward()' to 
 another Action?
 
 Thanks
Jorge
 
 
 _
 ___
 inesc-id   Jorge Martins  | 
 [EMAIL PROTECTED]
 lisboaSoftware Engineering Group |
 http://www.esw.inesc-id.pt/~jorge
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE* 
 http://join.msn.com/?page=features/virus
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org
 
 


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: struts 1.1 : setInput ?

2002-11-15 Thread Emmanuel Boudrant
Hi,

For some security and integrity reasons, you can't change the struts configuration 
after it was
loaded at startup by ActionServlet. You need to find another solution without changing 
on-the-fly
the configuration.

For more information you can check the Struts 1.1 sources ;)

-emmanuel


 --- [EMAIL PROTECTED] a écrit :  Hi all.
 
 We were using struts 1.0 and doing something like this : 
 //If error occurs : go on tabbed pane where it is raised.
 if (errors.size() != 0) {
 mapping.setInput(INPUT_INFORMATIONS);
 return errors;
 }
 
 It was working well in struts 1.0.
 
 My problem is that uin struts 1.1 when i'm using the same instruction to 
programmaticaly change
 my input i've got this exception : 
 
 java.lang.IllegalStateException: Configuration is frozen
   at org.apache.struts.config.ActionConfig.setInput(ActionConfig.java:206)
   at

fr.unedic.simulationcalcul.produits.assurance.are.navigation.strut.liquidation.cod07.AjoutDemandeForm.validate(AjoutDemandeForm.java:337)
 
 
 What is the good way?
 
 Help me please, i'm trying to migrate in struts 1.1
 Thanks in advance.
 
 Alexandre Duprat.
 
 -
 NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
 Web/Wap : www.netcourrier.com
 Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
 Minitel: 3615 NETCOURRIER (0,15 € TTC/min)
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-15 Thread Davide Bruzzone
You certainly need to be flexible these days too.

Agreed... While I was unemployed, I met a guy who told me he only wanted to
do Linux-based C++ programming. He then wondered aloud why he'd been
unemployed for a year...

Domino apps dev. I hadnt done Java before (though I had been playing with
C/C++ for years - but not in a professional capacity) and had a lot of
learning to do rather quickly, - luckily learning stuff quickly is
something
Im very good at (saved me many times the night before an exam at uni)

IMO, being able to learn new things constantly/quickly, and knowing where to
go and look for the answers to the questions that you don't know the answers
to is an important IT skill.

Dave

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread jzakarian
Jeff,

I just say your message. I am working with WebSphere 40 Application
Server and had to replace xalan and xerces in the WEB-INB\lib directory
for Struts-Menu1.1 to get Struts-Menu1.1 to work.
All the other jar files were fine.

Jack

-Original Message-
From: Jeff Born [mailto:jborn;gr.com] 
Sent: Friday, November 15, 2002 3:05 PM
To: Struts Users Mailing List
Subject: RE: Dynamic select menu in JSP - Struts-Menu1.1

I found the problem.  I just replaced all the jar file in the lib
directory
of the struts-menu.war with the same jar files from the 1.1b2 struts
download
and then the example app starts working.
 
This took me a while and in the end the answer was staring me in the
face.
 
My hope with posting the question someone had worked through what I was
going
through and would have recongnized it and posted the answer.  As I hope
to do
some day.
 
I otherwords I could do without the sarcasm.
 
jb

-Original Message- 
From: V. Cekvenich [mailto:vicc;users.sourceforge.net] 
Sent: Fri 11/15/2002 9:45 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1



Can I send you a sample of a working config tmrw?
I have many things to do today.

.V

Jeff Born wrote:
 In the example it is configured as a Plugin.  It just doesn't
work
right off
 the shelve.  Given enough time I should be able to figure it
out,
but time is
 something I don't have a lot of, so I'm looking for some
pointers
in getting
 rid of the exception The menu repository could not be found.
Once I get a
 working example I should have no problem configuring for my
own
needs.
 
 jb





--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
to answer my own question - yes, using
PropertyResourceBundle.getBundle(appResFile) and i'm guessing if i look
further MessageResources has a static utility method that does this

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Friday, November 15, 2002 14:57
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: giving biz classes access to MessageResources?


I'm talking about a generic class outside of the struts architecture that
knows nothing about where the strings are coming from (except that they come
from a properties file). So I don't have knowledge of Action or
MessageResources or pageContext.

-Original Message-
From: edgar [mailto:edgar;blue-moose.net]
Sent: Friday, November 15, 2002 14:50
To: 'Struts Users Mailing List'
Subject: RE: giving biz classes access to MessageResources?


You can get the app.properties as long as you have the request

MessageResources mr = (MessageResources)
pageContext.findAttribute( Action.MESSAGES_KEY );

The MESSAGES_KEY is static so you don't need the action.

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Friday, November 15, 2002 2:24 PM
To: 'Struts Users Mailing List'
Subject: giving biz classes access to MessageResources?


I have an organizational question. On my current project, we keep SQL
queries in our App.properties file to allow us to update the queries
without recomiling code. However, this means that (afaik) only the
Action can access the query Strings. So, whenever calls are made to our
dB class, we have to pass the query as a parameter.

Or do we?
The dB is a bunch of static methods (could be a singleton just as
easily). Is there a better way to set this up that allows the dB class
to know about the message resources? Will a call to System.getResource
work here? How are other folks handling this kind of thing?

thx
andy



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




  1   2   >