Re: dynamic forwards

2001-09-27 Thread Gregor Rayman

lisa ward [EMAIL PROTECTED]

 Hi again,

 The values in your hash map have been hardcoded in, which works fine.  But
 what do I if I do not know what the user's selection will be in advance.
 Take for instance, if I have a set of checkboxes on my page, I would like
to
 be able to initialize the map with the values that the user has selected.
 Or am I just missing the point here?

Hold on. You have to have all necessary information, when you are generating
the link. It does not matter, whether the keys in the map are hardcoded or
determined during the runtime. Important is that you are creating the link
on the server side, before the user clicks on any checkboxes.

If you want to use user's input, you can do it when serving the next page.
You can then generate the map in an Action and generate the link for the
next displayed page (so you will know all paramaters in advance, since
the checkboxes have been submitted already)

Or your Action can use the checkboxes to determine what to do or to
determine where to forward to. You don't need to use constant strings
in findForward.

Another possibility would be using JavaScript on the client, but since
many browsers have JavaScript disabled, you should not rely on it.

--
gR


 Please explain further and thank you very much for your patience.

 Thanks
 Lisa





 From: Gregor Rayman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: lisa ward [EMAIL PROTECTED]
 Subject: Re: dynamic forwards
 Date: Wed, 26 Sep 2001 20:55:34 +0200
 
 lisa ward [EMAIL PROTECTED] wrote:
 
   Another quick question.  How would I be able to initialize the
hashMap.
 the
   problem Im facing is that when I use a forward the submit is not
called
 so
   the values are not initialized in my bean.
 
 Here an quick and dirty example. (Dirty beacuse it uses scriplte. Custom
 tag
 would be somehow more apprpriate.)
 
 %
HashMap linkParams = new HashMap(); // create the map
linkParams.put(areaId, a); // set the values
linkParams.put(aspectId, b);
pageContext.setAttribute(linkParams, linkParams); // make the map an
 attribute of page
 %
 
 html:link page=/deleteaspect.do name=linkParams
bean:message key=button.delete/
 /html:link
 
 The generated URL will be: .../deleteaspect.do?areaId=aaspectId=b
 
 The map does not have to be the attribute itself. It can be a property of
 an
 attribute. Then the html:link tag would look like this:
 
 html:link page=/deleteaspect.do name=linkAttribute
 property=propertyName
 
 --
 gR
 
 
 
 


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





Tomcat 4 and JNDI Lookup ?

2001-09-27 Thread emmanuel.boudrant

Hello,

I've got an exception when a make this:

Initial context = new InitialContext();



javax.naming.NoInitialContextException: Cannot
instantiate class:
org.apache.naming.java.javaURLContextFactory. 
Root exception is java.lang.ClassCastException:
org.apache.naming.java.javaURLContextFactory at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at 
javax.naming.InitialContext.init(InitialContext.java:226)
at
javax.naming.InitialContext.(InitialContext.java:202)
at 
TestEnv.doGet(TestEnv.java:67) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:439)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardContextValve.java:215)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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.StandardContext.invoke(StandardContext.java:2366)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Unknown 
Source)


Is it a Tomcat4 bug ?

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



How-To : html:messages

2001-09-27 Thread Michael Mok

Hi All

Thought I would like to share the following example code that demonstrate
how to use the html:messages tag.

Following from the email Dirk wrote.

In your action class you will have...

ActionMessages messages=new ActionMessages();
 messages.add(ActionMessages.GLOBAL_MESSAGE,new
ActionMessage(login.succesful.key));
 saveMessages(request,messages);

In your JSP

html:messages id=messageid header=login.successful.header
footer=login.successful.footer message=true
bean:write name=messageid/
/html:messages

Regards

Michael Mok


-Message d'origine-
De: storck [mailto:[EMAIL PROTECTED]]
Date: lundi 24 septembre 2001 10:07
À: User Struts (E-Mail)
Objet: User-messages from Action-Class to JSP


Hi,

maybe I asked something realy stupid, but how I display user-messages like
login successfull on my JSP-Page wich comes from my Action-Class. I know
that I have to use something like that:
ActionMessages messages=new ActionMessages();
 messages.add(ActionMessages.GLOBAL_MESSAGE,new
ActionMessage(login.succesful.key));
 saveMessages(request,messages);

But how do I display that message now on my JSP-Page.

ANOTHER question: With html:errors/ I write out all errors at that page
but how can I write a special error at a special place on a JSP-Page. I have
something in mind like a formular with different input-fields and if the
user submits that formular with a wrong or with more wrong fields a
error-message should apear under that wrong field!

Thanks 



++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du système : [EMAIL PROTECTED]   |
|  - |
| Ce message confirme que le courrier a passé le contrôle|
| antivirus du relais de messagerie Internet avec succés.|
++




Re: Dual-list UI

2001-09-27 Thread Peter Pilgrim


the best solution is to use JavaScript to move items from
select list to select list on the client side.

Look at the configuration option in I think, http://my.netscape.com/
to what they do over there.
--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: [EMAIL PROTECTED] (Eric Rizzo) on 26/09/2001 14:19 AST

Has anyone come up with a good way to implement a dual-list interface using
Struts?  I mean a UI where there are two lists, a source and a destination, and
buttons to move items between them.  Obviously, the lists would be created with
html:select tags, and the source list can be populated with html:option[s]
tags.  The big problem I see is how to get the destination list contents into
the form bean when the form is submitted.  The Action is not interested in what
is selected in the list, but instead the list's entire contents.


--CUT--


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Re: Application Resource reload.

2001-09-27 Thread Peter Pilgrim



Yes look in struts-config.xml for the answer. There should be a reload action
unless you deleted it. Type in the URL in to your browser

`http://localhost:8080/web-app/admin/reload.do'

Bookmark it!
--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Mark Gordon [EMAIL PROTECTED] on 26/09/2001 14:32 MST

Is it possible to reload the applicationresource.properties file without
restarting the web server/servlet container?

Is it possible to reload the struts-config.xml?

-CUT-



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Remember selection in selection list

2001-09-27 Thread Heinz

Could anyone please help me with the following problem.
I have a formular with amoung other input fields the following two fields:
A selection list (java:ComboBox) that looks like that:
html:select property=hkd
option value=YYes
option value=NNo
/html:select

and a textarea like that:
  textarea name=select_txt cols=70 rows=10 
wrap=physical/textarea

Problem: If an error is detected  when validating the form, the page is 
forwarded to itsself showing the error messages on top using 
html:errors/ tag in the jsp page.
Below the error messages is the form where all input fields are filled 
with the values entered without the textareas and the comboboxes. 
These fields are reset.
How can I manage it that the textarea is filled with the text previous 
entered and the ComboBoxes are pre-selected with the previous selected 
values.

Thanks, Heinz.






Re: Remember selection in selection list

2001-09-27 Thread chiji nwankwo

Hi,
This how I have done it and seems to work for me. I am checking for a flag in my reset method before I reset the fields and I havealso specified that the scope of the action that is used by the action form set to session. I hope this makes sense.
config file extract:
action path="/selectLastMatch" 
type="actions.SelectLastMatchAction" 
name="lastMatchForm"
input="/lastMatch.jsp"
scope="session" 
/action

extract from the reset method in action form subclass:
if( action.equals( VideoLoungeConstants.RESET ) )
{ 
this.attackAction = Constants.NONE; // String value
this.defenceAction = Constants.NONE;
this.incident = Constants.NONE; 
}





extract from jsp page:
html:form action="/selectLastMatch" focus="attackAction" 
html:select property="attackAction"
html:options property="value" collection="attackActionsList" /
/html:select 
/html:form


Chiji
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Remember selection in selection list 
Date: Thu, 27 Sep 2001 11:32:06 +0100 
MIME-Version: 1.0 
Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id MHotMailBD7C3D5600CA400438D2407D851407960; Thu, 27 Sep 2001 02:33:10 -0700 
Received: (qmail 70997 invoked by uid 500); 27 Sep 2001 09:32:28 - 
Received: (qmail 70990 invoked from network); 27 Sep 2001 09:32:27 - 
Received: from smtp3.lix.aon.at (195.3.86.156) by daedalus.apache.org with SMTP; 27 Sep 2001 09:32:27 - 
Received: from sts.at ([213.33.83.142])by smtp3.lix.aon.at (Build 98 8.9.3/NT-8.9.3) with ESMTP id LAA08782for <[EMAIL PROTECTED]>; Thu, 27 Sep 2001 11:34:12 +0200 
From struts-user-return-17856-cn081 Thu, 27 Sep 2001 02:34:44 -0700 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
Precedence: bulk 
list-help: 
list-unsubscribe: 
list-post: 
Delivered-To: mailing list [EMAIL PROTECTED] 
Message-ID: [EMAIL PROTECTED] 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 
X-Accept-Language: en-us 
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
 
Could anyone please help me with the following problem. 
I have a formular with amoung other input fields the following two 
fields: 
A selection list (java:ComboBox) that looks like that: 
 
 Yes 
 No 
 
 
and a textarea like that: 
 wrap=physical 
 
Problem: If an error is detected when validating the form, the page 
is 
forwarded to itsself showing the error messages on top using 
 tag in the jsp page. 
Below the error messages is the form where all input fields are 
filled 
with the values entered without the textareas and the "comboboxes". 
These fields are reset. 
How can I manage it that the textarea is filled with the text 
previous 
entered and the "ComboBoxes" are pre-selected with the previous 
selected 
values. 
 
Thanks, Heinz. 
 
 
 
Get your FREE download of MSN Explorer at http://explorer.msn.com


RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS

2001-09-27 Thread Oscar Trigueiros


I am developing one App and i have the aspiration to deploy to
several media WEB+WAP+OTHER
Does someone has one idea one the best problem solution?

Best Regards
 Oscar Trigueiros




RE: Application Resource reload.

2001-09-27 Thread iwanek

Hello,

 `http://localhost:8080/web-app/admin/reload.do'

This surely is useful, but the original struts-conifg.xml
has a little comment over it saying this should be protected
by some security measure in an real application.

Now I wonder how it can be done. Any ideas?

-- kazumi



Re: dynamic forwards

2001-09-27 Thread lisa ward


In your message you said:

so you will know all paramaters in advance, since the checkboxes have been 
submitted already.

But since Im using a html:link (forward) instead of a submit, at which point 
do I initialize the selected checkbox values in my hash map.

Thanks
Lisa

From: Gregor Rayman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: dynamic forwards
Date: Thu, 27 Sep 2001 09:27:10 +0200

lisa ward [EMAIL PROTECTED]

  Hi again,
 
  The values in your hash map have been hardcoded in, which works fine.  
But
  what do I if I do not know what the user's selection will be in advance.
  Take for instance, if I have a set of checkboxes on my page, I would 
like
to
  be able to initialize the map with the values that the user has 
selected.
  Or am I just missing the point here?

Hold on. You have to have all necessary information, when you are 
generating
the link. It does not matter, whether the keys in the map are hardcoded or
determined during the runtime. Important is that you are creating the link
on the server side, before the user clicks on any checkboxes.

If you want to use user's input, you can do it when serving the next page.
You can then generate the map in an Action and generate the link for the
next displayed page (so you will know all paramaters in advance, since
the checkboxes have been submitted already)

Or your Action can use the checkboxes to determine what to do or to
determine where to forward to. You don't need to use constant strings
in findForward.

Another possibility would be using JavaScript on the client, but since
many browsers have JavaScript disabled, you should not rely on it.

--
gR

 
  Please explain further and thank you very much for your patience.
 
  Thanks
  Lisa



 
 
  From: Gregor Rayman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  CC: lisa ward [EMAIL PROTECTED]
  Subject: Re: dynamic forwards
  Date: Wed, 26 Sep 2001 20:55:34 +0200
  
  lisa ward [EMAIL PROTECTED] wrote:
  
Another quick question.  How would I be able to initialize the
hashMap.
  the
problem Im facing is that when I use a forward the submit is not
called
  so
the values are not initialized in my bean.
  
  Here an quick and dirty example. (Dirty beacuse it uses scriplte. 
Custom
  tag
  would be somehow more apprpriate.)
  
  %
 HashMap linkParams = new HashMap(); // create the map
 linkParams.put(areaId, a); // set the values
 linkParams.put(aspectId, b);
 pageContext.setAttribute(linkParams, linkParams); // make the map 
an
  attribute of page
  %
  
  html:link page=/deleteaspect.do name=linkParams
 bean:message key=button.delete/
  /html:link
  
  The generated URL will be: .../deleteaspect.do?areaId=aaspectId=b
  
  The map does not have to be the attribute itself. It can be a property 
of
  an
  attribute. Then the html:link tag would look like this:
  
  html:link page=/deleteaspect.do name=linkAttribute
  property=propertyName
  
  --
  gR
  
  
  
  
 
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS

2001-09-27 Thread Michael Breion

You should consider just using XML for your content, and create one XSL
style sheet per  media (one for web, one for wap, etc ...)

Use this and the XSLTransformation will do the rest and display your App
correctly on each media :-)

Michael

- Original Message -
From: Oscar Trigueiros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 11:49 AM
Subject: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS



 I am developing one App and i have the aspiration to deploy to
 several media WEB+WAP+OTHER
 Does someone has one idea one the best problem solution?

 Best Regards
  Oscar Trigueiros





Re: dynamic forwards

2001-09-27 Thread Gregor Rayman

lisa ward [EMAIL PROTECTED] wrote:

 In your message you said:

 so you will know all paramaters in advance, since the checkboxes have been
 submitted already.

 But since Im using a html:link (forward) instead of a submit, at which point
 do I initialize the selected checkbox values in my hash map.

You cannot. What are you talking about is dynamics which happens in the
browser.
There you can use JavaScript to create dynamic link. When you want to use
standard HTML form way to send parameters to the server, you have to do it
with submit. You can use a href=javascript:forms[0].submit(); to make
link, which submits. (I am not sure, whether the syntax above is ok)

--
gR




Re: prefix matching for an action

2001-09-27 Thread lisa ward

I am or should I say, have been trying to find a solution to this problem.  
I have a set of dynamically generated forwards with differing attributes 
that make up the query string for the forward.  Do your actions bypass your 
action form and go to the action class directly and if they do how do you 
initialize the properties in your action form class?  I know I should be 
trying to solve your problem, but maybe we could help each other out on this 
one seeing that we have the same problem.

Thanks
Lisa.


From: Jeff Boortz [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: prefix matching for an action
Date: Wed, 26 Sep 2001 16:43:26 -0700 (PDT)

I am trying to achieve the following:

struts-config
   action-mappings
 action path=/myAction/*
type=com.company.action.MyAction /
   /action-mappings
/struts-config

Essentially, I would like for a URL such as

http://www.company.com/app/myAction/filename

to trigger my action (assume in this example that the
ActionServlet is mapped to /app/* in the web.xml
file).  I would like filename to be dynamic, so that
a user could essentially download the action's dynamic
responses with meaningful filenames.

To the best of my knowledge, Struts does not support
this.  The best workaround I have found is to make
this action the default action:

action path=doesn't matter
type=com.company.action.MyAction unknown=true /

But I really don't want to have to do that, especially
since I will want to have many such action classes.

It looks like I should be able to extend some class
(ActionMapping?) in order to enable such a feature.
But I am not sure what steps to follow.

Has anyone encountered a similar challenge?

Thanks
JB

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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: dynamic forwards

2001-09-27 Thread lisa ward

Thanks,

I will try this, who knows maybe I have barking up the wrong tree and just 
trying to be too smart.


From: Gregor Rayman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: dynamic forwards
Date: Thu, 27 Sep 2001 12:29:44 +0200

lisa ward [EMAIL PROTECTED] wrote:

  In your message you said:
 
  so you will know all paramaters in advance, since the checkboxes have 
been
  submitted already.
 
  But since Im using a html:link (forward) instead of a submit, at which 
point
  do I initialize the selected checkbox values in my hash map.

You cannot. What are you talking about is dynamics which happens in the
browser.
There you can use JavaScript to create dynamic link. When you want to use
standard HTML form way to send parameters to the server, you have to do it
with submit. You can use a href=javascript:forms[0].submit(); to make
link, which submits. (I am not sure, whether the syntax above is ok)

--
gR



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS

2001-09-27 Thread Oscar Trigueiros

Hi Michael:
 Thanks for starting this conversation i belive that we are
 for a real hot subject.
 
 I have used xml transformations with Cocoon before and i haven't
 become one supporter of this aproch. Because it increase the skills
 demands on the programer staff and does not have much gain with it,
 you always have to create one new xsl file per media plus the transfor
mecanism
 but with jsp is just one file and no new tecnology skill.  
 I was thinking one someting more simpler like having several jsp one
 per media and having some smart technique based of using the right jsp
 based on http header User-Agent introspection. 


Best Regards
 Oscar Trigueiros



-Original Message-
From: Michael Breion [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 27 de Setembro de 2001 11:31
To: [EMAIL PROTECTED]
Subject: Re: RFC on the best aproche to develop one APP for
WEB+WAP+OTHER MEDIAS


You should consider just using XML for your content, and create one XSL
style sheet per  media (one for web, one for wap, etc ...)

Use this and the XSLTransformation will do the rest and display your App
correctly on each media :-)

Michael

- Original Message -
From: Oscar Trigueiros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 11:49 AM
Subject: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS



 I am developing one App and i have the aspiration to deploy to
 several media WEB+WAP+OTHER
 Does someone has one idea one the best problem solution?

 Best Regards
  Oscar Trigueiros




Re: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS

2001-09-27 Thread Michael Breion

you can use the technology u prefer... But I still recommend the XSL,
because with your jsp approach, u'll have 3 jsp (like 3 XSL sheet), but when
ur data change, u'll change ur 3 jsp, when I will only change my xml file to
redistribute all things well :) ... :)

I think it's the best thing to do, if ur content is to change often (like
every week, or something)

And I don t think this demands much skills to the programmer, cause I learnt
those technology in just weeks...and it reaaly helped me :)

Regards,
Michael
- Original Message -
From: Oscar Trigueiros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 12:54 PM
Subject: RE: RFC on the best aproche to develop one APP for WEB+WAP+OTHER
MEDIAS


 Hi Michael:
  Thanks for starting this conversation i belive that we are
  for a real hot subject.

  I have used xml transformations with Cocoon before and i haven't
  become one supporter of this aproch. Because it increase the skills
  demands on the programer staff and does not have much gain with it,
  you always have to create one new xsl file per media plus the transfor
 mecanism
  but with jsp is just one file and no new tecnology skill.
  I was thinking one someting more simpler like having several jsp one
  per media and having some smart technique based of using the right jsp
  based on http header User-Agent introspection.


 Best Regards
  Oscar Trigueiros



 -Original Message-
 From: Michael Breion [mailto:[EMAIL PROTECTED]]
 Sent: quinta-feira, 27 de Setembro de 2001 11:31
 To: [EMAIL PROTECTED]
 Subject: Re: RFC on the best aproche to develop one APP for
 WEB+WAP+OTHER MEDIAS


 You should consider just using XML for your content, and create one XSL
 style sheet per  media (one for web, one for wap, etc ...)

 Use this and the XSLTransformation will do the rest and display your App
 correctly on each media :-)

 Michael

 - Original Message -
 From: Oscar Trigueiros [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 27, 2001 11:49 AM
 Subject: RFC on the best aproche to develop one APP for WEB+WAP+OTHER
MEDIAS


 
  I am developing one App and i have the aspiration to deploy to
  several media WEB+WAP+OTHER
  Does someone has one idea one the best problem solution?
 
  Best Regards
   Oscar Trigueiros
 




Problem : Recursive elements in Digester

2001-09-27 Thread Sundar Shanmugasundaram



Hi 
All,

I have the following 
xml file :
XYZ
 
sections section id = 
"1"displayNameFirstSec/displayNamesection 
id = 
"1.1"displayNameFirstsub/displayNametableRef 
id="Master"/section 
id="1.1.1"  
displayNameFirstsub11/displayName 
tableRef 
id="Master11"//section/sectionsection 
id = 
"1.2"displayNameFirstsub2/displayNametableRef 
id="Master2"/section 
id="1.2.1"  
displayNameFirstsub3/displayName 
tableRef 
id="Master3"//section/section 
/section section id = 
"2"displayNameSecondSec/displayNametableRef 
id="Wood Finishes"/ /section 
/sections
/XYZ



I use the 
following methods :
 
digester.addObjectCreate("XYZ/sections/section", "Section"); 
Cat.debug("adding sections"); 
digester.addSetProperties("XYZ/sections/section"); 
digester.addSetNext("XYZ/sections/section", "addSection");


 
digester.addObjectCreate("*/section", "Section"); 
Cat.debug("adding sub sections"); 
digester.addSetProperties("*/section"); 
digester.addSetNext("*/section", "addSubSection");


I am not getting the 
desired results. If I include the first one, I am 
getting
section 1 and 
2. But If I use both I am getting no output.
I want to go through 
this section tag one by one. Sometimes it 
goes straight 
intoinnermost node ( if i use */section only ).
Can you please 
provide me a sample code how to achieve this?

thanks,
sundar.


Re: Tomcat 4 and JNDI Lookup ?

2001-09-27 Thread SUPRIYA MISRA

No-it is a LDAP error.


From: emmanuel.boudrant [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and JNDI Lookup ?
Date: Thu, 27 Sep 2001 09:49:36 +0200 (CEST)

Hello,

I've got an exception when a make this:

Initial context = new InitialContext();

 

javax.naming.NoInitialContextException: Cannot
instantiate class:
org.apache.naming.java.javaURLContextFactory.
Root exception is java.lang.ClassCastException:
org.apache.naming.java.javaURLContextFactory at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at
javax.naming.InitialContext.init(InitialContext.java:226)
at
javax.naming.InitialContext.(InitialContext.java:202)
at
TestEnv.doGet(TestEnv.java:67) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:439)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardContextValve.java:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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.StandardContext.invoke(StandardContext.java:2366)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardEngineValve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Unknown
Source)


Is it a Tomcat4 bug ?

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: RFC on the best aproche to develop one APP for WEB+WAP+OTHER MEDIAS

2001-09-27 Thread Oscar Trigueiros

But if you change the data format you also have to change the xsl.
Well i my case the data format will not chage often.
How do you consider the use of custome taglib's provided by Struts and
you own and the use of xslt transformations.

-Original Message-
From: Michael Breion [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 27 de Setembro de 2001 12:36
To: [EMAIL PROTECTED]
Subject: Re: RFC on the best aproche to develop one APP for
WEB+WAP+OTHER MEDIAS


you can use the technology u prefer... But I still recommend the XSL,
because with your jsp approach, u'll have 3 jsp (like 3 XSL sheet), but when
ur data change, u'll change ur 3 jsp, when I will only change my xml file to
redistribute all things well :) ... :)

I think it's the best thing to do, if ur content is to change often (like
every week, or something)

And I don t think this demands much skills to the programmer, cause I learnt
those technology in just weeks...and it reaaly helped me :)

Regards,
Michael
- Original Message -
From: Oscar Trigueiros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 12:54 PM
Subject: RE: RFC on the best aproche to develop one APP for WEB+WAP+OTHER
MEDIAS


 Hi Michael:
  Thanks for starting this conversation i belive that we are
  for a real hot subject.

  I have used xml transformations with Cocoon before and i haven't
  become one supporter of this aproch. Because it increase the skills
  demands on the programer staff and does not have much gain with it,
  you always have to create one new xsl file per media plus the transfor
 mecanism
  but with jsp is just one file and no new tecnology skill.
  I was thinking one someting more simpler like having several jsp one
  per media and having some smart technique based of using the right jsp
  based on http header User-Agent introspection.


 Best Regards
  Oscar Trigueiros



 -Original Message-
 From: Michael Breion [mailto:[EMAIL PROTECTED]]
 Sent: quinta-feira, 27 de Setembro de 2001 11:31
 To: [EMAIL PROTECTED]
 Subject: Re: RFC on the best aproche to develop one APP for
 WEB+WAP+OTHER MEDIAS


 You should consider just using XML for your content, and create one XSL
 style sheet per  media (one for web, one for wap, etc ...)

 Use this and the XSLTransformation will do the rest and display your App
 correctly on each media :-)

 Michael

 - Original Message -
 From: Oscar Trigueiros [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 27, 2001 11:49 AM
 Subject: RFC on the best aproche to develop one APP for WEB+WAP+OTHER
MEDIAS


 
  I am developing one App and i have the aspiration to deploy to
  several media WEB+WAP+OTHER
  Does someone has one idea one the best problem solution?
 
  Best Regards
   Oscar Trigueiros
 



Re: Hiring Struts guru

2001-09-27 Thread Maurício Santiago de Castro

I am not exactaly a guru, but I've been working with it for 6
months in a project here. I am working at Algorithmics Incorporated
Brazil. This is a canadian financial risk company with offices all over
the world, but as said, it is not a strict
technological company.

I have a lot of experience in UNIX system administration, non
graphical Java and C++.
If you'll ever need to configure a CISCO or Cyclades router
I will also be able to do that, but don't ask me to.
I am 32 years old,  married and I have a one year old boy.

I know it's a long shot and a long distance application form,
but I wanted to try. I intend to move from Brazil or Rio de Janeiro in
the next 6 months to one year.

I've been to San Jose once, in my way from LA to San Francisco
and I liked it. At least I think I did, it was only one day in downtown.

Maurício Santiago de Castro
[EMAIL PROTECTED]

Shahid Ahmed wrote:

 Hi,
 My group has an immediate opening for someone with demonstrable
 technical skills/expertise in Struts framework.
 Location is San Jose, California, USA.

 If you are interested and has solid experience, please contact me.

 cheers,
 shahid




form error

2001-09-27 Thread Aurélie Lucet - Atlog

Hi,

I have a classic form in a jsp page (form:form), with a form bean and an
action mapping declared in my struts-config.xml, but when I validate this
form, I have an error :
Error: 400
Location: /ufop/relations/ficheClient/clients.do
Invalid path /relations/ficheClient/clients was requested
I have other forms in other pages, declared exactly in the same way, but
only this one have a problem... ?
Does anyone knows where this error come from ?

Here is the code if you want to read it:
in my form :
form:form action=clients.do...form:submit value=OK //form:form
in struts-config.xml:
form-beans
  form-bean name=listeClientsForm type=lists.listeClientsForm/
/form-beans
action-mappings
   action path=/clients type=lists.listeClientsAction
name=listeClientsForm
   forward name=success
path=/relations/ficheClient/clientSelection.jsp /
   forward name=erreur path=erreur.jsp /
  /action
/action-mappings

Thank you very much !
regards,

Aurélie Lucet
[EMAIL PROTECTED]
Assistante Ingénieur
Atelier de développement ATLOG
2 ter rue Jules Siefried
79000 NIORT
http://www.atlog.fr/




Tiles Newbie - tutorial problem

2001-09-27 Thread Nathan Coast

Hi, I've downloaded the tiles install from

http://www.lifl.fr/~dumoulin/tiles/tiles.zip

I deployed the tiles-doc.war in weblogic and the index page displayed fine. 
However, when I clicked on the Tutorial Live examples link:
http://localhost:7001/tiles-doc/tutorial/index.jsp

I get this error:

Thu Sep 27 14:15:13 BST 2001  [Exception in:/tutorial/common/header.jsp] (line 
1): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': For 
tag 'messages', cannot load extra info class 
'com.wintecinc.struts.taglib.html.MessagesTei' 
weblogic.servlet.jsp.JspException: (line 1): Error in using tag library 
uri='/WEB-INF/struts-html.tld' prefix='html': For tag 'messages', cannot load 
extra info class 'com.wintecinc.struts.taglib.html.MessagesTei' at 
weblogic.servlet.jsp.StandardTagLib.tld_jspException(StandardTagLib.java:901) at 
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:949) at 
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:926) at 
weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:207) at 
weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145) at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4174) at 
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4015) at
.
..
...

Any ideas?

Cheers Nathan




Workflow Control and Action Reuse (newbie)

2001-09-27 Thread Michael Baldwin

I just started looking at struts 4 days ago, so please  bear with me...

This question really gets into workflow management.

I have a certain action that would be reused frequently across my site.
I want to route to that action from many other actions and then return
both control and information back to the calling action.  i.e., Actions
A,B,C and D transfer control to Action x.  Once x has done its work, I
need for x to route control back to A, B, C or D appropriately and to
provide some new request information that was gathered during Action x
to these Actions A,B,C or D.  The problem is that actions A,B,C and D
all have different interfaces on their beans so it might be a little
challenging to have 'x' simply know which methods on bean A,B,C or D to
use. I think I might want to use a mediator to handle the interactions
between the beans for A,B,C,D and X

i.e. action flow control works like this...
A -- x
B -- x
C -- x
D -- x


It seems to me that one way to do this is to:
1. Have A, B, C or D place a Mediator-pattern object in the request
2. Have A,B,C and D forward ( redirect the request) to action x.
3. Action x would look for the Mediator object under a certain key and
would use the mediator to access information from bean A,B,C or D while
x does its work.
4. When x finishes, it would then update the mediator which would update
the original Bean used by A,B,C or D
5. Finally, x would ask the mediator for the message that would be
needed to restart the original action and would redirect the user back
there.

Has anyone else tried to solve this problem differently? similarly? more
or less happily?

thanks,
--Michael







Re: Use an image for submit button

2001-09-27 Thread Eric Rizzo

Thinh Doan wrote:

 I'd like to replace the following with an image instead of a button:
   html:submit property=submit value=Login
 styleClass=verdanaCAPCopy/


I just learned this the other day myself.  For some reason, an input 
type=image ... will submit the form when clicked.  So just use the Struts tag 
html:image page=relativePathToImageFile ... in your JSP.

Also noted that someone posted yesterday the following that might be an alternative:

 You can use a href=javascript:forms[0].submit(); to make
 link, which submits. (I am not sure, whether the syntax above is ok)
 


HTH,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




RE: WML version of Struts?

2001-09-27 Thread Matt Parker


I'm currently in the process of deciding whether or not Struts would be
too heavyweight for the current application I'm developing. If I do
decide to do it, I would most certainly write it for struts, as I have
used struts on a previous html project, and liked it a lot.

Thanks,

Matt

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 4:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WML version of Struts?


Have a look around the struts website. It's already listed. 
http://jakarta.apache.org/struts/todo-1.1.html 

It doesn't have a volunteer yet, so it is a way off. If you are going to
do it anyway, maybe you should discuss it with the maintainers and write
it for struts.

Cheers, 

Brett 


-Original Message- 
From: Matt Parker [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 27 September 2001 2:09 AM 
To: [EMAIL PROTECTED] 
Subject: WML version of Struts? 


Hi there, 
Are there any plans to incorporate WML support into Struts? 
Is it simply a matter of wrapping the WML tags like Struts currently 
does for HTML? 
TIA, 
Matt 



Window-to-Window reference?

2001-09-27 Thread Antonio Lourinho

Hi,

I know this isn't an html nor javascript mailling list, but as i am using
Struts at the moment here it goes anyway:

i have a page (let's call it MainPage) which contains a form that´s
submitted to a Struts action. One of it's fields is
filled by opening a new browser window (javascript) that displays a list of
possible values for that field. The problem
is that after the field value is chosen, i am not being able of finding a
way to refresh the MainPage view (with the new value) automatically. Does
anybody know a way of doing this (besides having a refresh button in the
MainPage)?

Thanks in advance,

Antonio - Portugal


_
  INTERNET MAIL FOOTER 
A presente mensagem pode conter informação considerada confidencial.
Se o receptor desta mensagem não for o destinatário indicado, fica
expressamente proibido de copiar ou endereçar a mensagem a terceiros.
Em tal situação, o receptor deverá destruir a presente mensagem e por
gentileza informar o emissor de tal facto.
-
Privileged or confidential information may be contained in this
message. If you are not the addressee indicated in this message, you
may not copy or deliver this message to anyone. In such case, you
should destroy this message and kindly notify the sender by reply
email.
-




RE: Use an image for submit button

2001-09-27 Thread Thinh Doan

Thanks Eric  Marcelo.  I tried html:image... and it seems to work fine.
I used a href=javascript:document.forms[0].submit(); a lot in the past
(for img rollover) but thought to try the Struts way.

Thinh

-Original Message-
From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Use an image for submit button


Thinh Doan wrote:

 I'd like to replace the following with an image instead of a button:
   html:submit property=submit value=Login
 styleClass=verdanaCAPCopy/


I just learned this the other day myself.  For some reason, an input
type=image ... will submit the form when clicked.  So just use the Struts
tag
html:image page=relativePathToImageFile ... in your JSP.

Also noted that someone posted yesterday the following that might be an
alternative:

 You can use a href=javascript:forms[0].submit(); to make
 link, which submits. (I am not sure, whether the syntax above is ok)



HTH,
Eric
--
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.





Using Poolman without JNDI

2001-09-27 Thread Dragomir Nikolov

Hello,
I am trying to use the Poolman for JDBC connection for the struts
application I am developing.
I have set up everything needed to run the Poolman. Initially it
runs ok. Connection is retrieved successfully using the
   DataSource dataSource = PoolMan.findDataSource(geniedb);

geniedb is the jndi name of my database defined in the poolman.xml
When I try to execute a query, the resulting ResultSet is empty
(although it should not be empty).
The same poolman.xml deployed into the Poolman web application works
just fine and the same query returns the appropriate data..
According to the poolman usersguide this way of retrieving a DataSource
should work without JNDI.

I am using tomcat 3.2.2, poolman 2.0.4 and mm.mysql-2.0.4.
Does anyone have ever experienced such problems?

Greetings Dragomir Nikolov