Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-10 Thread Markus
> I'm fairly new to Struts, and have been trying to get my simple 
> application to work - using Struts 1.1, Velocity 1.3.1, Velocity 
> Tools 1.1-rc1, and Tomcat 4.1.29. The application (such as it is)
> works as far as presentation and workflow - but _isn't_ working is
> the Validator framework. I've spent the last day mining the web for
> help and haven't been able to progress at all...
> 
> The validator files _are_ being loaded - I see them in the log
> files. And the rules/formset are being parsed - again, I see it in
> the log. However, when the form is submitted on the first page
> (payment.vm) and it goes to the second...no validation takes place.
> No errors are appearing in either the catalina.out or localhost
> log file. I have kicked up the log level to trace and still see
> nothing wrong - other than the validation doesn't seem to happen.
> 
> Any help or suggestions would be GREATLY appreciated - I'm rather
> stuck at the moment. I'm sure its just some silly configuration
> or other error...
> 
> I'm including all the relevant files inline below. 
> 
> Thank you very much
> 
>   Andy Akins
>   
> == web.xml
> 
> 
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
>   CCPAY  
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   2
> 
> 
>   detail
>   2
> 
> 
>   validate
>   true
> 
> 2
>   
>   
> velocity
>   

>
org.apache.velocity.tools.view.servlet.VelocityViewServlet
> 
>   org.apache.velocity.toolbox
>   /WEB-INF/toolbox.xml
> 
> 
>   org.apache.velocity.properties
>   /WEB-INF/velocity.properties
>
>10
>   
>   
> action
> *.do
>   
>   
> velocity
> *.vm
>   
>   
> index.html
>   
> 
> 
> = struts-config.xml
> 
>"-//Apache Software Foundation//DTD Struts Configuration
> 1.1//EN"
>   "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> 
>   
>  type="org.apache.struts.validator.DynaValidatorForm">
>/>
> 
>   
>   
>type="org.apache.struts.actions.ForwardAction"
>   name="paymentForm"
>   validate="false"
>   parameter="/payment.vm"/>
>type="org.apache.struts.actions.ForwardAction"
Hi,
Are you sure that the action is right?
I can't belive!
Kind regarrds,
Markus



>   name="paymentForm"
>   input="/Payment.do"
>   validate="true"
>   parameter="/processing.vm"/>
>   
>   
>   
>value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   
> 
> 
> = validation.xml - I'm using the standard validate-rules.xml
> 
>"-//Apache Software Foundation//DTD Commons Validator Rules
> Configuration 1.0//EN"
>   "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
>   
> 
>depends="required,email">
> 
> 
>   
> 
>   
> 
> 
> = Toolbox.xml
> 
> 
> 
>   
>  link
>  org.apache.velocity.tools.struts.StrutsLinkTool
>   
>   
>  slink
>  org.apache.velocity.tools.struts.SecureLinkTool
>   
>   
>  text
>  org.apache.velocity.tools.struts.MessageTool
>   
>   
>  errors
>  org.apache.velocity.tools.struts.ErrorsTool
>   
>   
>  messages
>  org.apache.velocity.tools.struts.ActionMessagesTool
>   
>   
>  form
>  org.apache.velocity.tools.struts.FormTool
>   
>   
>  tiles
>  org.apache.velocity.tools.struts.TilesTool
>   
>   
>  validator
>  org.apache.velocity.tools.struts.ValidatorTool
>   
> 
> 
> = payment.vm
> 
>   
> CCPAY
> 
> 
>  href="/ccpay/pages/css/tccles.css">
>   
>   
>   #errorMarkup()
> 
>summary="Credit Card Information" width="100%">
>  
>   Fee to be billed to your card
>$
>  value="$!paymentForm.amount" >
>   
> 
>   
>   
> 
>   
> 
> 
> = processing.vm
> 
> 
>   
> Processing 

Re: porting to struts

2004-03-10 Thread Markus
> 
> On 10 Mar 2004, at 12:02, Rajat Pandit wrote:
> 
> > Hello All,
> > we have a product which was built on an inhouse developed controller, 
> > and we are currently planning to port the application on struts. This 
> > application was built on the MVC architecture with a central 
> > controller as the application entry point.
> >
> > for phase I we have to make additional modules for this product and 
> > then later integrate these modules in the new ported application. my 
> > questions are as follows.
> >
> > a. can i build the new modules around ActionServlet so that the 
> > current controller can pass the control to the struts controller when 
> > required.
> 
> You can use servlets and the struts action servlet together yes
> 
> > b. will i be able to access the objects stored in the request, 
> > application or session objects by the current controller frm my action 
> > class?
> 
> Yes.
> 
> > c. will the ActionController be able to load the database 
> > connections/connection pooling (we are using oracle)
> 
> Yes.. Don't make any difference which db you use.
> 
> > d. will there be any performance issues?
> 
> The struts action servlet is an easy way of not getting to bogged down 
> with threads and such like, as the action servlet is one servlet 
> instance.
> 
> >
> > do let me know your views. i need to make a report today and send it 
> > over.
> > thanks a lot in advance for ur time.
> 
> Just bolt struts on to your existing stuff and will work fine (assuming 
> you existing stuff works at the moment).
> 
> One suggestion, why not just try it out?
> 
> >
> > best regards
> > rajat
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
Hi Rajat,
I don't know if it is a good idea to answer all your questions with a
straight yes without knowing your implementation. It could be possible to port your
application to struts but you have to be careful.

Kind regards,

Markus


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



Re: Using Struts with Flash interface

2004-03-05 Thread Markus
Hi 

there is another good example from macromedia:

http://examples.macromedia.com/petmarket/flashstore.html

Kind regards,
Markus

> Oh cool topic, actually i m using flash to display my data. Using
> bean:write
> i construct my custom XML document, and at flash side i use  a script to
> parse the XML into multinode array object, that i can process in my flash
> movie.
> 
> 
> 
> - Original Message - 
> From: "Markus" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 05, 2004 7:53 AM
> Subject: Re: Using Struts with Flash interface
> 
> 
> > Hi
> > maybe this link would be useful:
> > http://www.macromedia.com/devnet/flex/articles/struts.html
> >
> > Kind regards,
> >
> > Markus
> >
> > > Hi,
> > >
> > >
> > >
> > > I am currently using Struts with output to JSP. I want to replace my
> JSP
> > > view with Flash, and am very fuzzy about the approach. Could somebody
> > > throw some pointers into which directions I should proceed.
> > >
> > >
> > >
> > > Here is my understanding and questions so far.
> > >
> > > 1)   XML data is posted from flash. How will the my FORM object
> fit
> > > in this model. How do I process the request data?
> > >
> > > 2)   I need to send XML data in the response (I should probably
> use
> > > some transformation like Castor XML, or JAXB).  How do I accomplish
> this
> > > in Action class.. Any patterns, suggestions ??
> > >
> > >
> > >
> > > Appreciate your time in advance.
> > >
> > >
> > >
> > > -- Nitin
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Using Struts with Flash interface

2004-03-04 Thread Markus
Hi
maybe this link would be useful:
http://www.macromedia.com/devnet/flex/articles/struts.html

Kind regards,

Markus

> Hi,
> 
>  
> 
> I am currently using Struts with output to JSP. I want to replace my JSP
> view with Flash, and am very fuzzy about the approach. Could somebody
> throw some pointers into which directions I should proceed. 
> 
>  
> 
> Here is my understanding and questions so far.
> 
> 1)   XML data is posted from flash. How will the my FORM object fit
> in this model. How do I process the request data?
> 
> 2)   I need to send XML data in the response (I should probably use
> some transformation like Castor XML, or JAXB).  How do I accomplish this
> in Action class.. Any patterns, suggestions ??
> 
>  
> 
> Appreciate your time in advance.
> 
>  
> 
> -- Nitin
> 
> 


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



Re: [OT] JSP or Velocity

2004-02-27 Thread Markus
Hi,
I've used JSTL and velocity. Velocity is fast and a smart way to generate
dynamic pages but  it is not as comfortable as JSTL is. You have to implement
many things which exist in JSTL and other taglibs already. If you use the
macro stuff it will be easier but still a lot work to do.
Kind regards,

Markus
> Howdy
>  
> I am starting to develop an application using struts and have been
> looking round the rest of the Jakarta project and came across the
> Velocity project.
>  
> I was interested to see which which people recommended for a relative
> newbie
>  
> Cheers
>  
> Andrew
> 


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



Setter method signature when using the 'indexed' parameter of 'ht ml:checkbox'

2004-02-10 Thread Markus . Malmqvist
   Hi,

 

I have a checkbox inside a collection which is iterated inside JSP page.
Thus I must index the checkboxes to be able to tell which ones are checked.
However, I have been unable to find out which signature the corresponding
setter method of the actionform should have. I think I have tried all the
obvious ones and more... Could you please help?

 

  --markus

 



RE: Checkboxes inside a list

2004-02-09 Thread Markus . Malmqvist
   Hi,

According to my log printings the setter for the checkbox boolean was never
called even if there was checked checkboxes. Is this caused by the fact that
the setter for the boolean is embedded inside the list and the setter in the
actionform just sets the list? Should the actionform setter do something
else? At least now the actionform setter is not called. 

It is kind of logical actually, the framework should reach into the list and
call the correct setter for each item. Obviously a setter that sets the list
itself does not help at all. It was just that without really thinking about
it writing symmetrical getter and setter seemed logical. Now it feels quite
stupid indeed. I should have read that book further...  :-)

Well, after few trials with different setters I managed to find out that
while you can get a boolean array, it only reports the checkboxes that are
checked, and is thus useless without position info. I am almost sure that
the 'indexed' parameter of the 'html:checkbox' tag would enable position
info. However, I am unable to figure out what signature the corresponding
setter should have. I have several, and none of them is called... Is there
some document that would enlighten me, or could you please help? I would not
like to try to look it up from the sources... Another option would be to use
'multibox' tag instead, as suggested by a person.

I think the ActionForm contents are not relevant now, only the proper
signature for the setter matters. JSP itself seems to be working perfectly.
It generates HTML there checkboxes are differentiated by name, as it should
be in HTML. I could always rip the information straight from the request,
but I would rather use a setter and the form instead.

Sorry about rambling at the beginning, at least you can view my not so
impressive learning process.  :-)

  

  
    

  

  


  --markus


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: 09 February 2004 10:59
To: Struts Users Mailing List
Subject: RE: Checkboxes inside a list

Was that for all the checkboxes - or just the ones that were not ticked?

Can you show us a snippet of the actionform and the generated html?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, 9 February 2004 16:55
To: [EMAIL PROTECTED]
Subject: Checkboxes inside a list


   Hi,

 

Is it possible to have checkboxes inside a list? I tried this and the table
in the JSP was rendered fine and the getters of the list elements were
called correctly. However, after pressing submit the setters were not
called, and thus the checkbox values were not transmitted into the bean.

 

  --markus

 



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



Struts and StrutsStudio

2004-02-09 Thread Markus . Malmqvist
   Hi,

 

Does anyone have experience with StutsStudio
http://www.exadel.com/products_strutsstudio.htm
<http://www.exadel.com/products_strutsstudio.htm> ? I am currently using it
to provide assistance with my first Struts project. I am mainly happy with
it, but I have also had it freezing on me while trying to import the Petshop
example Struts project...

 

  --markus

 



Checkboxes inside a list

2004-02-09 Thread Markus . Malmqvist
   Hi,

 

Is it possible to have checkboxes inside a list? I tried this and the table
in the JSP was rendered fine and the getters of the list elements were
called correctly. However, after pressing submit the setters were not
called, and thus the checkbox values were not transmitted into the bean.

 

  --markus

 



[a little bit OT]struts and velocity

2004-02-05 Thread Markus
Hi 
I've tried to install velocity with struts.
I followed the installation instructions from velocity.
Put velocity-1.3.1.jar and velocity-tools-1.1-beta1.jar in my lib.
copied toolbox.xml and velocity.properties in my WEB-INF
canged web.xml to


 
velocity
   
org.apache.velocity.tools.view.servlet.VelocityViewServlet

toolbox
/WEB-INF/toolbox.xml

10
  
...

velocity
*.vm
  


and I've writen the following velocitypage:



First Velocitypage


#set ($hello="Dies ist meine erste Velocitypage")
$hello
$msg.get("hello")
$msg.exists("hello")




velocityservlet renders $hello but it did not find the message 
the ressources to the messages is right, I've tested it with a JSP

Any suggestions?

Kind regards,
Markus


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



Re: AW: newbie and html:form

2004-02-04 Thread Markus
OK, let's give a try!
The HashMap is stored in the session scope? Is it right?
If so, you can reach it in the whole session, in every action or jsp without
adding it as request parameter.
HTH
Regards,

Markus
> ok, i don´t know if we understand us :)
> 
> I have in a session a HashMap with parameters and i use it in other 
> JSP´s with 
> 
> Link
> 
> myAction.do forwards to a JSP, let´s say Form.jsp. Here is my form
> 
> 
> ...
> and here i need to give in the action of form my params.
> How can i reach it ?
> 
> Tomek
> 
> -Ursprüngliche Nachricht-
> Von: Markus [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 4. Februar 2004 11:48
> An: Struts Users Mailing List
> Betreff: Re: newbie and html:form
> 
> 
> > > Hi experts :),
> > > 
> > > is it possible to add a request parameter to  ?
> > > In  i can add a bean with name="params", but i cannot 
> use 
> > > it
> > > on html:form. 
> > > Is there a trick to add the bean as request parameter ?
> > > Thanks for help
> > > Tomek
> > > 
> > > 
> > Hi,
> > try a hidden field.
> > Regards,
> > 
> > Markus
> Oh sorry I've answered to fast!
> The bean should be stored in the scope.
> And there you will reach it,
> Regards,
> 
> Markus
> 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: newbie and html:form

2004-02-04 Thread Markus
> > Hi experts :),
> > 
> > is it possible to add a request parameter to  ?
> > In  i can add a bean with name="params", but i cannot use 
> > it
> > on html:form. 
> > Is there a trick to add the bean as request parameter ?
> > Thanks for help
> > Tomek
> > 
> > 
> Hi,
> try a hidden field.
> Regards,
> 
> Markus
Oh sorry I've answered to fast!
The bean should be stored in the scope.
And there you will reach it,
Regards,

Markus

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


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



Re: newbie and html:form

2004-02-04 Thread Markus
> Hi experts :),
> 
> is it possible to add a request parameter to  ?
> In  i can add a bean with name="params", but i cannot use 
> it
> on html:form. 
> Is there a trick to add the bean as request parameter ?
> Thanks for help
> Tomek
> 
> 
Hi,
try a hidden field.
Regards,

Markus


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



Modifiable GUI elements inside a collection

2004-02-03 Thread Markus . Malmqvist
  Hi,

 

I have a curious problem. I have a LinkedList which contains records with a
checkbox and some fixed text fields. The value of this checkbox does not
seem to transfer from the browser GUI into server bean. The bean contains
the whole list of elements. All the non-modifiable text fields display
correctly, and if I set the checkbox boolean in the server side the box will
be correctly checked in the browser. Same kind of thing happens with
modifiable text field, information passes from server to browser, but not
from browser to server. I am quite confused, since all seems quite logical,
and it still does not work.

 

  --markus

 



RE: Validator question

2004-01-26 Thread Markus
> Thanks Markus
> Did you write your custom validator?
> I always use DynaValidatorForm and don't want to write custom java beans
> for
> this.
Hi,
No, for this solution you can't use DynaForms. 
 You have to write an ActionForm.

Kind regards,

Markus


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



Re: Validator question

2004-01-26 Thread Markus
> Hi.
> 
> I have a "sum" field that can have different values (money or percent),
> depending on the other field "isPercent".
> I want to validate money and percent type through the mask validator. I am
> not sure , whether I can set two mask validators with different masks on
> the
> same field. Maybe, somebody has solutions for such a problem?
> 
> andriy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
HI,
I've tried to solve something like this, but it fails. In this case I've
written a validate method for this special case and I've called
super.validate(). It is much more easier and faster than try to solve it with 
validwhen or
requierdif (if it is possible!).

Kind regards,

Markus 


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



Re: How to reset the form data?

2004-01-23 Thread markus baumgartner
Maybe you could extend the action for each class you want to display and add
basic methods like loadFormBean, resetFormBean etc into it, and then have
all actions for that class extended that intermediate class

cheers

Markus

- Original Message -
From: "Zhou, Qin (Eric)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 1:24 PM
Subject: How to reset the form data?


> Hi
>
> I create a form bean. I need to reset some fields to default value after
each submit instead of remembering user's input. What's the easy way to do
this?
>
> Thanks
>
> Eric
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: [OT] Struts and its economic efficiency

2004-01-21 Thread Markus
Hi,

maybe you try www.strutskickstart.com/struts.ppt
or google!

Kind regards,
 Markus
> hi,
> 
> okay i figured out, that a PowerPoint-Presentation
> was available on http://www.strutskickstart.com/
> 
> but the link to the presentation, called "Selling Struts to Management"
> is dead: http://www.bkbear.com/struts.ppt
> 
> did anyone know where it is?
> perhaps you mail it to me?
> 
> thanks
> 
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 20, 2004 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] Struts and its economic efficiency
> 
> 
> Hi,
> 
> i am just searching some information about
> the economic efficiency of struts (or more general a
> Model2-Implementation).
> 
> Does anyone know a link to a statistic, 
> where is shown, that model2 is more profitable than
> the old model1 ?
> 
> --
> Matthias Weßendorf
> Email: mailto:[EMAIL PROTECTED]
> URL: http://www.wessendorf.net
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: jsp not rendered

2004-01-12 Thread Markus
Hi,
are you sure that the bean is always in the session or where you have stored
it?
Try to use the present or notEmpty logic tag!

kind regards,

Markus
> When I say the page is not rendered I mean a big white page, with no
> conten
> t at all, is rendered. And the most weird thing is that the problem was
> sol
> ved when I used the following code:
> 
> 
> 
> Nome: 
> Rua: 
> Número: 
> Bairro: 
> Data de nascimento: 
> 
> 
> 
> 
> The code I posted before works perfectly in another jsp which has the same
> purpose (both are forms for searching, with 3 fields for the search. The
> di
> fference is that one searches an object A, and the other object B.both A
> an
> d B implement the same interface...well, I can asure you they are
> practical
> y the same thing).
> About the tags, I can say I just copyied the code from the page where it
> wo
> rks. As I said in the paragraph above, both objects implement the same
> inte
> rface. And the attributes I want to show during this iteration are the
> same
>  for both.
> The problem occurs not only when the Action processes its tasks and
> forward
> s me to the jsp. it happens since the very first access. The page simply
> do
> es not show anything. A huge white sea.No messages.
> 
> thanks for the answer.
> 
> Otávio Augusto
> 
> 
> On Sun, 11 Jan 2004 02:02:25 -0500
> [EMAIL PROTECTED] wrote:
> 
> > Otavio:
> > 
> > When you say the JSP page does not work, what do you mean? Do you get 
> > specific error message?  Which part of the JSP page is NOT rendered 
> > correctly?
> > The JSP snippet you gave below is good.   Usually, the cause of a JSP
> (or
>  
> > HTML for that matter) page not rendered correctly is that the , 
> > ,  HTML tags do not match correctly.  If your page uses nested 
> > HTML tables, you might want to take a look on the tags to make sure they
>  
> > are opened and closed correctly.
> > 
> > Hope this helps.  Keep us posted.
> > 
> > wiwit
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > "Otávio Augusto" <[EMAIL PROTECTED]>
> > 01/11/2004 01:24 AM
> > Please respond to "Struts Users Mailing List"
> > 
> >  
> > To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]
> rg>
> > cc: 
> > Subject:Re: jsp not rendered
> > 
> > 
> > About this issue, I can say that if I remove the following code from my 
> > page, it works fine.So, what is wrong with this code?
> > 
> > 
> > 
> >   
> > 
> >   
> > Nome: 
> > Rua: 
> > Número:  >
> > Bairro: <
> br>
> > Data de nascimento:  > property="dataNascimento"/>
> > 
> > 
> >   
> > > paramId="id" paramName="idprop">Selecionar
> >
> > 
> >   
> > 
> > 
> > 
> > 
> > buscaResp is the name of the bean, which is a List itself (i do a 
> > request.getSession().setAttribute("buscaResp", obj)), where obj is a 
> > java.util.List.
> > The action /adicionaResponsavelEncontrado is mapped correctly.
> > A similar iterator works in another page.
> > 
> > what is wrong?
> > Thanks
> > 
> > Otávio Augusto
> > 
> > 
> > On Sat, 10 Jan 2004 23:52:38 -0300
> > Otávio Augusto <[EMAIL PROTECTED]> wrote:
> > 
> > > I have a jsp which sometimes is rendered, and sometimes it simply
> isn't
> . 
> > it is correctly mapped. it is very similar to another one which works 
> > fine...I just can't fine the reason for that. The code is simple and 
> > similar to another one which works.
> > > If someone has any explanation, that would be great (I imagine I have
> a
>  
> > leak of ram memory).
> > > 
> > > thanks in advance
> > > 
> > > Otávio Augusto
> > > 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Problem with requiredIf validation

2003-12-17 Thread Markus
Hi,

we try to concat more than two conditions with requiredIf.
Something like (selectionOne==1 || selectionOne==2) && value ==2
The problem is that it is not clear how the validator evaluates the
expression.
Does anyone having experiences with that.


TIA,
Markus


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



Re: [Struts Workflow Extension] Any volunteers for furtherdevelopment and maintenance?

2003-12-15 Thread Markus
Hello Martin,
I've followed the discussion and took a short look over your pages. The
Stuts Workflow Extension 
seems to be an interesting tool and I will take a deeper look in the next
days.
It would be nice if you have time for answering my questions.


Kind regards,

Markus

> Martin and others who have replied to me off-list:
> 
> The Struts Workflow Extension relies on the same ideas of open source 
> than the Struts framework does: I had to deal with workflow issues in 
> several web applications I developed with Struts about two and a half 
> years ago. I noticed that workflow control is needed in almost any web 
> application and thus started to develop this extension that focuses on 
> solving these issues in a generic and reusable way. I released it as 
> open source because of two reasons: The first one is that I (as being a 
> consumer of the open source framework Struts) wanted to give something 
> back to the community. That's only fair. The second reason to share a 
> piece of software is the hope that other people use it, test it and help 
> improve it. My company is going on using this software, but there is 
> nobody here who feels like being the maintainer of this package, puting 
> in time answering questions on this list or privately, doing bugfixes or 
> implementing features that are not directly necessary for one of the 
> projects implemented here.
> 
> I am not asking someone to raise his hand and say: "Ok. I am a really 
> good guy, so I will put in a lot of time to maintain a software package 
> that is of no use to me."  I am addressing the people that contacted me 
> during the last months/years, asking questions about the Struts Workflow 
> Extension, reported bugs, donated code and gave all kinds of other 
> precious feedback. These people are using this extension and might be 
> interested in maintaining it in the future. All I am asking is: Is one 
> of these guys willing to be the maintainer of the package, no matter if 
> (like up to now) as an extension or a part of the Struts code base (like 
> Tiles)?
> 
> All the others: Please stop bugging me with: "How much will I get paid 
> for?", "What are the conditions?", ... Hey this is open source software. 
> The same as Struts.
> 
> --- Matthias
> 
> 
> Martin Gainty wrote:
> 
> >Matthias:
> >The problem with most of us is that rent isnt free and food isnt free (at
> >least not in the US)
> >Assuming this effort isnt a loaded government project and is more
> 'academic'
> >in nature
> >How much would your company say this effort is worth?
> >Saludos,
> >Martin Gainty
> >001-617-852-7822
> >- Original Message - 
> >From: "Marcus Peixoto" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Monday, December 15, 2003 7:09 AM
> >Subject: Re: [Struts Workflow Extension] Any volunteers for
> >furtherdevelopment and maintenance?
> >
> >
> >  
> >
> >>Matthias,
> >>
> >>How much of your spare time have you been spending on it ?
> >>I have some spare time but I don't know if I have enough experience in
> >>Java to handle it.
> >>[]'s
> >>
> >>Marcus
> >>
> >>Em Seg, 2003-12-15 Ã s 08:41, Matthias Bauer escreveu:
> >>
> >>
> >>>Hi everybody,
> >>>
> >>>I am looking for someone who would like to take over further
> development
> >>>and responsibility for the Struts Workflow Extension.
> >>>
> >>>The reason I am looking for someone volunteering to do that is simple:
> I
> >>>will quit my job at the end of this year and will work in a different
> >>>area than web application development from next year on. Unfortunately
> >>>even though our company heavily uses this extension, nobody here is
> >>>willing to sacrifice a considerable amount of spare time to further
> >>>develop and maintain it.
> >>>
> >>>As I know from many questions that were directed to me personally,
> there
> >>>are quite some people out there using the extension as well. And as I
> >>>would certainly like to see it be actively developed in the future, I
> am
> >>>hoping to find somebody who is interested to take over responsibility
> >>>for this package. If desired I would assist in transferring the code
> and
> >>>documentation to Sourceforge. So anybody who is interested, please
> >>>conta

Re: designing simple scheduler

2003-12-08 Thread Markus
Hi,

search the mail archive.
This thread was discussed about one or two weeks ago.

Regards,

Markus
> Hello,
> 
> I am using struts/beans  in my application. I want a scheduler kind of 
> thing that after regular interval of time should check the db and send 
> mails.
> I want some suggestions regarding running it on red hat linux and way to 
> go for this.
> 
> Cheers,
> Raman Garg


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



Re: Database with struts

2003-12-04 Thread Markus
Hi,
follow this link:

http://sourceforge.net/projects/struts/

Regards,

Markus


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



RE: Scheduler

2003-12-02 Thread Markus
Hi,

I've tried to find Jcontab on but it doesn't exist!
Could you correct the address, please.

Regards,
Markus
> There are also Jcontab -> jcontab.sf.net
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Scheduler
> 
> 
> 
> We are using an open source project called Quartz, available on source
> forge, for this kind of thing. It has been working really well here. We
> register classes with a cron style timer and at the given times the
> registered class is called back.
> 
> There is also mention in the documentation about how this works in
> containers and how the specs are not violated.
> 
> regrds
> IV
> 
> 
> >  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
> >  date:Tue, 02 Dec 2003 12:15:16
> >  to:  [EMAIL PROTECTED]
> >  subject: Re: Scheduler
> > 
> > Hi HG
> > 
> > I will surely share the sucess after sucessfully implementing it.
> > Understand the value of this mailing list.
> > Dont wory dude.
> > 
> > Thanks for help
> > 
> > Cheers
> > gary
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > - Original Message -
> > From: "HG" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 5:38 PM
> > Subject: Re: Scheduler
> > 
> > 
> > > Please share your success with the rest of us...
> > >
> > > I am in need of similar functionality...very soon...
> > >
> > > - Original Message -
> > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 1:04 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > hi HG
> > > >
> > > > Thanks for the thought i have found the path tomove on. Hope it may
> work
> > > > out. Anyway thread problem is related to EJB Container as such strut
> > > allows
> > > > one to use Thread
> > > >
> > > > Thanks
> > > > Gary
> > > > - Original Message -
> > > > From: "HG" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > > Subject: Re: Scheduler
> > > >
> > > >
> > > > > Hi Gurpreet
> > > > >
> > > > > I haven't tried this...but it came across my mind as I need
> something
> > > > > similar very soon.
> > > > >
> > > > > You could write a Struts plugin... init() method called on start
> of
> > > webapp
> > > > > and destroy() method called on shutdown of webapp.
> > > > >
> > > > > In the init() method you could start a thread that "wakes up" at
> > > specified
> > > > > interval, say each minute, to check if there is some tasks that
> need
> > to
> > > be
> > > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > > >
> > > > > In the destroy method you could stop the thread again
> > > > >
> > > > > I don't know if this violates with the J2EE spec...I remember
> reading
> > > > > something about threads...but that might be for EJBs only...Anyone
> can
> > > > shed
> > > > > some light on this issue?
> > > > >
> > > > > Regards
> > > > >
> > > > > Henrik
> > > > >
> > > > > - Original Message -
> > > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > > Subject: Scheduler
> > > > >
> > > > >
> > > > > hi All
> > > > >
> > > > >
> > > > > I want to implement a scheduler program something at the starting
> of
> > the
> > > > > application or at the starting of tomcat.
> > > > >
> > > > > Basically i need one of my program to track all of the reminders i
> > have
> > > > set
>

Re: [OT] : FormatKey how to set a format

2003-11-21 Thread Markus
> Hi,
> 
> its a little bit of topic, i have the problem, i want to show
> doubles on my jsps.
> I now use following format : #,##
Hi,
try #,00! This should work.
For a deeper look go to JavaAPI NumberFormat classes
Regards,
Markus
> which works quite good, but it cuts of the 0 at the end.
> E.g. i have 17,56546546 it show 17,57
> i have 17,50001 it shows 17,5
> but i want 17,50.
> 
> Is there another format i can use ? 
> Or do i have to create Strings and add the missing 0s ?
> 
> Thanx
> 
> Rouven
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: STURT set up and IDE for STURT

2003-11-20 Thread Markus
Hi,

struts-documentation and  struts-blank webapp from struts package is all you
need.

Regards,

Markus
 
> Hi,
> 
> I am new to STURTS architecture & I have told to implement it for live
> project.
> So I have downloaded STURTS 1.1 from
>
http://mirror.ehpg.net/apache/jakarta/struts/binaries/jakarta-struts-1.1.zip
> 
> 
> Now I want  to make set up for the same. So can u please guide me with
> this
> regards.
> Like what are the pre-requisites s/w for making STURTS setup or any
> installation mannual.
> 
> 
> I have used Forte and ecliplse as IDE. Whether i can continue with these?
> If yes...what setting I have to make?
> If no .. which is preferred IDE...
> 
> 
> 
> regards,
> Meenakshi 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Iterate a Collection of Properties ???

2003-11-20 Thread Markus
Hi,

Look inside the struts-exercise-taglib webapp of the struts package!
There you will find all you need.

Regards,

Markus

> How can I iterate a ArrayList have Properties Objects elements???
> 
> with  ???
> 
> In my Action I pass the ArrayList.
> 
> Arraylist list = new ArrayList();
> Properties prop;
> for (int i = 0 ; i < 10 ; i++){
>  prop = new Properties();
>  prop.put("name","michael");
>  prop.put("number","i");
>  prop.put("end","Street foo");
> 
>  list.add(prop);
> }
> 
> request.setAttribute("lista",list);
> 
> 
> In my JSP, how can I iterate this ArrayList???
> 
> 
> Thanks.
> 


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



Re: in

2003-10-09 Thread Markus Meier
Tim Smal wrote:
I'd like to use a  within my  tag. Like this:

"/>
But I can't do it this way. Anyone has suggestions?
this should work...





--
--
NO ePATENTS - http://petition.eurolinux.org/index.html


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


Re: Struts security

2003-10-09 Thread markus

Hello,

sorry, my english is not so good, perhaps I haven'g got the point yet
(and I'm new to struts so I don't know if it works).

Every time a user clicks a link ( => call an action ) you want to check
if the user has the permissions for this action and if the user has not
the permission show an error page? In my opinion that solution is not so
good, especially for users :)

Perhaps you can do the following:
1) Code a login-Page
2) During login-action fill a java bean with all actions a user can
perform
3) Build your view based on this java bean

So users only see the actions they are allowed to perform.

Regards,
Markus


Stefan Trcko <[EMAIL PROTECTED]> schrieb am 09.10.2003,
09:57:13:
> Where do you store user rights (which actions user can perform).
> I think of storing user rights and actions which he can perform in
> the database and then in every action class perform SQL with username (from
> session)
> and current performed action. If SQL return that user can perform this
> action
> then forward to success page else to error page.
> 
> What do you think? Is this good solution?
> 
> Regards
> Stefan
> 
> 
> - Original Message - 
> From: "muzammil shahbaz" 
> To: "zzStruts Users Mailing List" 
> Sent: Thursday, October 09, 2003 9:43 AM
> Subject: RE: Struts security
> 
> 
> > This can simple be done by authorizing user in each action class. We
> > have request & session attributes which may be helpful for checking the
> > current state of user.
> >
> > Before doing any processing, first of all, process user authentication
> > and if finds any restriction then forward the action to appropriate
> > error page.
> >
> > Regards,
> > MMS
> >
> > --
> > From:  Stefan Trcko [SMTP:[EMAIL PROTECTED]
> > Sent:  Thursday, October 09, 2003 12:29 PM
> > To:  Struts Users Mailing List
> > Subject:  Struts security
> >
> > Hello
> >
> > I want to implement security in my struts web portal, so
> > that I can restrict users which actions they can
> > perform.
> >
> > Has anybody already worked on this kind of security in
> > Struts?
> >
> > Thanks in advice
> > Stefan
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: common-logging, Struts, Log4j

2003-06-26 Thread Markus Holzem
By default the property-files
 commons-logging.properties
 log4j.properties
are located in the directory WEB-INF/classes
Usually you put them in your workbench in the root of the Java Source 
directory. If you build with ant you simply copy them there from your 
chosen source directory

Markus

rablists wrote:

Hi. I have problem in using the common-logging with struts and 
Log4j. I am basically lost. I  have short questions, I appreciate if 
anyone can help me little bit. these are the questions with examples:

The file outputfile.log that I specify in 
log4j.appender.LOGFILE.File=outputfile.log where it is located? 
where I find it? is it physical file?

I dont know why my configuration is not working, although I put the 
following files in the classpath WEB-INF/classes/org/myclasses/:

commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JL
ogger
log4j.properties:
log4j.rootLogger=DEBUG, rolling
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%
n
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=outputfile.log
log4j.appender.rolling.MaxFileSize=100KB
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %
c - %m%n
What else should I specify, or configure to make it to work? I have 
log4j-1.2.4.jar in my WEB-INF/lib/

Should I set any system propreties? or web.xml? or struts-config? 

In my classes I am doing that:
 protected static final org.apache.commons.logging.Log log = 
org.apache.commons.logging.LogFactory.getLog(this.class);

   if (log.isDebugEnabled()) 
 log.debug("getMessage(" + locale + "," + key + ")");

(How can I enable/disable the Debug or Trace?)

Thank you in advance. I am really stuck and I couldnt make it to 
work. I am using tomcat 4.18

Rabih



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



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


Re: AW: Double log output from commons-logging with log4j

2003-06-19 Thread Markus Holzem
Thanks!

[EMAIL PROTECTED] wrote:

You are assigning your console appender twice.
 

log4j.rootLogger=WARN,Console
log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
log4j.logger.app=DEBUG,Console
   

log4j.logger.app will inherit the appender from rootLogger, so you can just
do
log4j.rootLogger=WARN,Console
log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
log4j.logger.app=DEBUG
and that should take care of your extra messages.



  
 Markus Holzem
 <[EMAIL PROTECTED]To:   Struts Users Mailing List <[EMAIL PROTECTED]>
 >cc: 
  Subject:  Re: AW: Double log output from commons-logging with log4j 
 06/19/2003 12:11 
 PM   
 Please respond to
 "Struts Users
 Mailing List"
  
  



No, it is really the same, even the same timestamp:

...

[Servlet.Engine.Transports:10] (18:07:45,802)
apache.struts.action.RequestProcessor.processActionCreate -   Creating
new Action instance
[Servlet.Engine.Transports:10] (18:07:45,802)
apache.struts.action.RequestProcessor.processActionCreate -   Creating
new Action instance
LogonAction::execute called

[Servlet.Engine.Transports:10] (18:07:46,142)
app.control.LogonAction.execute - User A123456 logged on
[Servlet.Engine.Transports:10] (18:07:46,142)
app.control.LogonAction.execute - User A123456 logged on
...

Kroeger, Joerg wrote:

 

Try to expand your logging output to ensure it is only one thread working
   

on
 

that request:
log4j.appender.Console.layout.ConversionPattern=[%t] (%d{HH:mm:ss,SSS})
%C{4}.%M - %m%n
-Ursprüngliche Nachricht-
Von: Markus Holzem [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. Juni 2003 16:21
An: Struts Users Mailing List
Betreff: Double log output from commons-logging with log4j
Hi folks,

I'm hunting for some time the cause, why I get double output lines from
log...
My LogonForm::execute looks similar to:

  public ActionForward execute(
  ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception
  {
  System.out.println("LogonAction::execute called");
  // Obtain username and password from web tier
  LogonForm logonForm = (LogonForm) form;
  String userid = logonForm.getUserid()
  //
  Log log = LogFactory.getLog(this.getClass());
  if (log.isDebugEnabled())
  {
  log.debug("User "+userid+" logged on");
  }
  // Return success
  return (mapping.findForward(Constants.SUCCESS));
  }
The output I get is:

...
[DEBUG] org.apache.struts.action.RequestProcessor -   Creating new
Action instance
[DEBUG] org.apache.struts.action.RequestProcessor -   Creating new
Action instance
LogonAction::execute called
[DEBUG] app.control.LogonAction - User A123456 logged on
[DEBUG] app.control.LogonAction - User A123456 logged on
...
Since I get "LogonAction::execute called" only once I'm pretty sure that
execute is only called once. I think it has probably to do with my
commons-logging.properties or log4j.properties, but I really can't spot
what I'm doing wrong:
commons-logging.properties:

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF
   

 

actory

log4j.properties:
# Logger catogory (DEBUG < INFO < WARN < ERROR < FATAL)
log4j.rootLogger=WARN,Console
log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
log4j.logger.app=DEBUG,Console
# Appender Console
# Pattern: level, category, message
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLa

Re: AW: Double log output from commons-logging with log4j

2003-06-19 Thread Markus Holzem
No, it is really the same, even the same timestamp:

...

[Servlet.Engine.Transports:10] (18:07:45,802) 
apache.struts.action.RequestProcessor.processActionCreate -   Creating 
new Action instance

[Servlet.Engine.Transports:10] (18:07:45,802) 
apache.struts.action.RequestProcessor.processActionCreate -   Creating 
new Action instance

LogonAction::execute called

[Servlet.Engine.Transports:10] (18:07:46,142) 
app.control.LogonAction.execute - User A123456 logged on

[Servlet.Engine.Transports:10] (18:07:46,142) 
app.control.LogonAction.execute - User A123456 logged on

...

Kroeger, Joerg wrote:

Try to expand your logging output to ensure it is only one thread working on
that request:
log4j.appender.Console.layout.ConversionPattern=[%t] (%d{HH:mm:ss,SSS})
%C{4}.%M - %m%n
-Ursprüngliche Nachricht-
Von: Markus Holzem [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. Juni 2003 16:21
An: Struts Users Mailing List
Betreff: Double log output from commons-logging with log4j
Hi folks,

I'm hunting for some time the cause, why I get double output lines from 
log...

My LogonForm::execute looks similar to:

   public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception
   {
   System.out.println("LogonAction::execute called");
   // Obtain username and password from web tier
   LogonForm logonForm = (LogonForm) form;
   String userid = logonForm.getUserid()
   //
   Log log = LogFactory.getLog(this.getClass());
   if (log.isDebugEnabled())
   {
   log.debug("User "+userid+" logged on");
   }
   // Return success
   return (mapping.findForward(Constants.SUCCESS));
   }
The output I get is:

 ...
 [DEBUG] org.apache.struts.action.RequestProcessor -   Creating new 
Action instance
 [DEBUG] org.apache.struts.action.RequestProcessor -   Creating new 
Action instance
 LogonAction::execute called
 [DEBUG] app.control.LogonAction - User A123456 logged on
 [DEBUG] app.control.LogonAction - User A123456 logged on
 ...

Since I get "LogonAction::execute called" only once I'm pretty sure that 
execute is only called once. I think it has probably to do with my 
commons-logging.properties or log4j.properties, but I really can't spot 
what I'm doing wrong:

commons-logging.properties:
 
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF
actory

log4j.properties:
 # Logger catogory (DEBUG < INFO < WARN < ERROR < FATAL)
 log4j.rootLogger=WARN,Console
 log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
 log4j.logger.app=DEBUG,Console
 # Appender Console
 # Pattern: level, category, message
 log4j.appender.Console=org.apache.log4j.ConsoleAppender
 log4j.appender.Console.layout=org.apache.log4j.PatternLayout
 log4j.appender.Console.layout.ConversionPattern=[%-5p] %c - %m
Both are stored in the WEB-INF/classes directory.

Can anybody give me a hint?

Thanks, Markus



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





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


Double log output from commons-logging with log4j

2003-06-19 Thread Markus Holzem
Hi folks,

I'm hunting for some time the cause, why I get double output lines from 
log...

My LogonForm::execute looks similar to:

   public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception
   {
   System.out.println("LogonAction::execute called");
   // Obtain username and password from web tier
   LogonForm logonForm = (LogonForm) form;
   String userid = logonForm.getUserid()
   //
   Log log = LogFactory.getLog(this.getClass());
   if (log.isDebugEnabled())
   {
   log.debug("User "+userid+" logged on");
   }
   // Return success
   return (mapping.findForward(Constants.SUCCESS));
   }
The output I get is:

 ...
 [DEBUG] org.apache.struts.action.RequestProcessor -   Creating new 
Action instance
 [DEBUG] org.apache.struts.action.RequestProcessor -   Creating new 
Action instance
 LogonAction::execute called
 [DEBUG] app.control.LogonAction - User A123456 logged on
 [DEBUG] app.control.LogonAction - User A123456 logged on
 ...

Since I get "LogonAction::execute called" only once I'm pretty sure that 
execute is only called once. I think it has probably to do with my 
commons-logging.properties or log4j.properties, but I really can't spot 
what I'm doing wrong:

commons-logging.properties:
 
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory

log4j.properties:
 # Logger catogory (DEBUG < INFO < WARN < ERROR < FATAL)
 log4j.rootLogger=WARN,Console
 log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console
 log4j.logger.app=DEBUG,Console
 # Appender Console
 # Pattern: level, category, message
 log4j.appender.Console=org.apache.log4j.ConsoleAppender
 log4j.appender.Console.layout=org.apache.log4j.PatternLayout
 log4j.appender.Console.layout.ConversionPattern=[%-5p] %c - %m
Both are stored in the WEB-INF/classes directory.

Can anybody give me a hint?

Thanks, Markus



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


Re: Validator problem with integers

2003-06-19 Thread Markus Holzem
Hi Brad,

use mask instead of integer. That should do the job. Error message 
states, that the entry is invalid. BTW, arg1 has to be used both for 
minlength and maxlength since {1} is the argument in the error message.

I found that mask can solve nearly all validation problems if they are 
constrained to one field. If you have interdependent fields you still 
have to go back and implement ActionForm::validate.


 
 
 
   
 mask
 ^[0-9]*$
   
   
 minlength
 4
   
   
 maxlength
 4
   
 
Markus

Brad Plies wrote:

Hi folks,

Using struts-RC2, when using Validator with a dependency
on "integer" validation, I have a problem with the validator
assuming that any integer starting with zero "0" is
necessarily octal.  In one example, I have a form where
people enter phone numbers.  Which is split up into 3 text
boxes.  Area code, 3 digits, last 4 digits.  A fairly common
way to break it up.
Here is the validation.xml entry for one such field:


  
  
  
  
maxlength
4
  
  
minlength
4
  

Numbers like "0897" will cause the "... must be an integer" message.
Obviously it is not a valid octal number, and I know that the format
of these numbers would appear as an attempt at an octal number.
How do you prevent octal interpretation but still ensure that
the field is numeric?  I'm being a tad lazy here, because I
know I could always write my own pluggable validator, but
I'd like to use what already exists if possible.


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



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


Re: Singletons in Tomcat

2003-06-06 Thread Markus Holzem
I usually story Singletons in the ServletContext which is unique for
an application. I often think that ServletContext should be better
named ApplicationContext because that is actually what it represents.
I don't feel comfortable to leave Singletons hanging around on static.
variables. The benefit of ServletContext is, that you can easily
participate on the lifecycle of the ServletContext
(ServletContextListener::contextInitialized and ~::contextDestroyed)
and take appropriate actions when your Singleton acquires any system
resources.
Markus

Brian Kidney wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If I have a class in my application which is a singleton, is there only one object per server (Tomcat in my case), or is it unique to the session (ie. each user gets a different instance)?

Brian

-BEGIN PGP SIGNATURE-
Version: PGP 8.0
iQA/AwUBPt92MuLP0vXx30WgEQKtFQCfX4gkSYSwqx9+Zij4IfQU9DxA6L4An2gY
hUqwLgvXo/4W5scinkxmIF7j
=Osto
-END PGP SIGNATURE-


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





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


Struts 1.1 on z/OS with WebSphere Application Server 4.0

2003-06-04 Thread Markus Holzem
Does anyone have experiences with Struts running on an IBM mainframe?
I'm particularly interested in WebSphere 4.0 (z/OS, *not* z/Linux).
I've tried to find anything in the archive, but I only found
references on WebSphere running on Wintel, Linux or Solaris. Since
WebSphere on z/OS is only 99.9% compatible to the other platforms
I'm a bit anxious about giving it a try.
I'd be very much obliged, if anyone could give some hints for running
Struts 1.1 on this platform.
Markus



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


Forwarding to dynamic action

2002-12-05 Thread Markus Pedratscher \(WebBS\)
Hi,
I am struggling with an action forward problem.

My application has a baseAction which is the parent of some of my actions.
It checks if a user is logged in. If the user is logged it the child action
is executed.

If the user is not logged in it takes the user to the login form. For now I
store the originally requested action, i.e. I store request.getServletPath()
+ "?" + request.getQueryString() in a session variable (not good I know) and
if the login is successfull I want to take the user back to the originally
requestd action. I don't want to use forwards to do this as I would have to
list all my secure pages in struts-config (global or action forwards).

What I want to do it to 'redirect' the user from one Action to another
Action by using something like 'mapping.findForward("/myAction.do?x=y&u-r")
from within my loginAction.

Any ideas on how to do that with struts or a workaround?

Thanks for your help.
Markus


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




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  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>




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  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>




Re: When *exactly* does reset get called?

2002-10-14 Thread Markus Herrmann

On 12 Oct 2002 at 10:25, David M. Karr wrote:

> From the original description, it sounds like your "reset" method is using
> business logic to get data values to populate your fields with.
> 
> From Antoni's explanation of how "reset" is used, I hope it's clear that won't
> work very well.
> 
> The ActionForm.reset() method should only be used to CLEAR form values, before
> they are populated from the request.  You should use business logic in your
> Action class to populate form beans.

That is exactly my problem. How can an Action class populate a form bean before 
the form bean is created?

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




Re: How to communicate between JavaBean and Struts ActionForm Bean?

2002-10-10 Thread Markus Herrmann

Will Jaynes <[EMAIL PROTECTED]> wrote:

> Well, if you insist :-) Remember that you can include Java in a JSP, so 
> after defining your form and the db bean you can write any Java that you 
> want.
> 
> 
> 
> <%
> dbBean.setSelectionCriteria( form.getSelectionCriteria() );
> %>

:-) Ok, that is the "do all in the jsp"-way. Isn't there a way to read the form 
bean's propertys directly in my db bean? The form bean is somewhere in my 
session, right? Or request? Just wondering it it works.

BTW: I implemented it now using the struts way you mentioned. It works fine.

Thanks,
Markus


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




Re: Re: How to communicate between JavaBean and Struts ActionForm Bean?

2002-10-10 Thread Markus Herrmann

On Wed, 09 Oct 2002, Will Jaynes wrote:

> It seems to me that the problem is that you are trying to do everything 
> in the JSP without benefit of using an Action. The Action is where this 
> kind of processing should take place. (Some developers would push it 
> further, into Business Objects, but they would still be called from the 
> Action.) In the Action you have access to both the form and your DB bean 
> and can handle interactions between them.
> 
> So, I would make the entry point of your application an Action, not just 
> a JSP.

Will, thanks for your quick response.

Ok, that is a good idea. I will try it. You are right: My way is not the
struts-like way to do it.

But still: Is there no way to get data out of the FormBean? Somewhere in
my JVM this FormBean exists, and somehow I should be able to read data from it.
Or am I wrong?


> Markus Herrmann wrote:
> > Hello Struts users,
> > 
> > i have a JSP whose form data is stored in an ActionForm bean (as it should 
be). 
> > The ActionForm bean sets the form data to default values (e.g. it gets 
todays 
> > date). The JSP not only displays the form, but also displays data which 
comes 
> > from a DB bean. In the JSP I use the  tag to associate the DB 
bean 
> > with the JSP. The DB Bean connects to a DB and writes the data into a 
Vector, 
> > which is displayed by the JSP using the  and  
tags. 
> > No problems until now.
> > 
> > Now i would like to select the data in the DB bean depending on two 
propertys 
> > in the ActionForm Bean. How can my DB bean read propertys from the 
ActionForm 
> > bean?
> > 
> > Note that until this point no user intaraction happens. This JSP is the 
entry 
> > point of the application. I decided not to post the whole code here, 
because i 
> > do not think that this helps to understand and answer my question. Correct 
me 
> > if i'm wrong.
> > 
> > Thanks for any help in advance!
> > 
> > Markus Herrmann, Germany
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:struts-user-
[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:struts-user-
[EMAIL PROTECTED]>

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




How to communicate between JavaBean and Struts ActionForm Bean?

2002-10-09 Thread Markus Herrmann

Hello Struts users,

i have a JSP whose form data is stored in an ActionForm bean (as it should be). 
The ActionForm bean sets the form data to default values (e.g. it gets todays 
date). The JSP not only displays the form, but also displays data which comes 
from a DB bean. In the JSP I use the  tag to associate the DB bean 
with the JSP. The DB Bean connects to a DB and writes the data into a Vector, 
which is displayed by the JSP using the  and  tags. 
No problems until now.

Now i would like to select the data in the DB bean depending on two propertys 
in the ActionForm Bean. How can my DB bean read propertys from the ActionForm 
bean?

Note that until this point no user intaraction happens. This JSP is the entry 
point of the application. I decided not to post the whole code here, because i 
do not think that this helps to understand and answer my question. Correct me 
if i'm wrong.

Thanks for any help in advance!

Markus Herrmann, Germany


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




Re: struts-example.war

2002-08-18 Thread Markus Meissner

Am Sonntag, 18. August 2002 17:22 schrieb James Mitchell:
> You must have extracted these files incorrectly.
Mmh, I have these files extracted incorrectly.
Thanks.
>
> Please try again or just deploy the .war "as is"
>
>
Now, I get the error reported in
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34710.html

I think this is a weblogic classloading issue.

Does the fix in MessageResourceFactory 
( 
http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/util/MessageResourcesFactory.java
 
)
not work with weblogic 5.1 SP 12?
Struts 1.02 works!

Markus





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




struts-example.war

2002-08-18 Thread Markus Meissner

Hallo,

I downloaded the binary distribution jakarta-struts-1.1-b2.zip 
and installed the struts-example.war within my weblogic server.

Starting the webapp I get the following error:

INFO: Initializing, 
config='org.apache.struts.webapp.example.ApplicationResources', 
returnNull=true
java.lang.ClassNotFoundException: 
org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn

The class org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn
isn't packed in the struts-example.war.

I think this is a deployment bug.

Gruesse Markus


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




Re: JDK 1.4 Logging with Struts

2002-05-16 Thread Markus Garscha

Hi!

i noticed this, too. but i didn' manage to turn the logging on. in my
tomcat logs i only see System.out.println() messages. 
further i can't find any docs how to turn logging (perhaps in
server.xml??) on.

can you tell me how to do this? 

thanx a lot
markus

* Jon.Ridgway <[EMAIL PROTECTED]> [2002-05-16 17:08]:
> Use the org.apache.commons.logging implementation then you can use either
> without having to change your code. Indeed this is what Struts uses
> internally (I think).
> 
> Jon Ridgway
> 
> -Original Message-
> From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]] 
> Sent: 16 May 2002 14:40
> To: 'Struts Users Mailing List'
> Subject: JDK 1.4 Logging with Struts
> 
> Has anyone implemented JDK 1.4's Logging features with Struts? We used
> Log4J, but since 1.4 has Logging incorporated, we are investigating this
> option, any suggestions? The examples on Sun's web site aren't too helpful
> because it doesn't give you examples of configuration files. Also, how can
> this be integrated with Tomcat or Weblogic?
> 
> Thanks,
> 
> Dean Chen
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence. Your
> co-operation in this matter is greatly appreciated. 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




Re: Help : Dropdown List

2002-05-16 Thread Markus Garscha

Hi!

i started to use struts only a few weeks ago. i try to connect castor
(http://castor.exolab.org, a persistence module) and struts. i often
have following case:

public class A {
  private B b;

  public void setB(B b);
  public B getB();
}

public class B {
  pivate String description;
  pivate C something;

  get...
  set..
}


and a manager-class which handles A,B :

public class Manager {
  
  public A getA();
  public void setA(A a);

  public ArrayList getAllB();

}

my goal is to work with struts html-taglib, so i can handle Objects in
(e.g.) html selections. the current problem is that struts works over
String-classes to identify the selected value. 

it would be better if struts can handle different classes (get and set
them) and gets a property (e.g. "description") which is shown within the
dropdown (select) list.

any suggestions how to realize such a wrapper?

thanx
markus


* Damien VIEL <[EMAIL PROTECTED]> [2002-05-16 11:53]:
> Hi,
> In my Action, I'm putting in the request the following object :
>   listcomp.add(new LabelValueBean("name","id"));
>   request.setAttribute("listcomp", listcomp);
> 
> like in the Struts-example.
> 
> In my JSP, I've got :
> 
> 
>   
> labelProperty="label"/>
>   
> 
> It's not working !!!
> Help pls
> 
> Dams
> 
> - Original Message -
> From: "Robert Taylor" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 15, 2002 5:35 PM
> Subject: RE: Help : Dropdown List
> 
> 
> > You need to place the listcomp object in the request before you forward to
> > the view.
> >
> > robert
> >
> > > -Original Message-
> > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 15, 2002 11:21 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Help : Dropdown List
> > >
> > >
> > > ok,
> > > I've created the following Action that will populate my forms :
> > >
> > > public final class PrepareFormAction extends Action {
> > >
> > >  public ActionForward perform(
> > >   ActionMapping mapping,
> > >   ActionForm form,
> > >   HttpServletRequest request,
> > >   HttpServletResponse response)
> > >   throws IOException, ServletException {
> > >
> > >   Locale locale = getLocale(request);
> > >   MessageResources messages = getResources();
> > >   String action = request.getParameter("action");
> > >
> > >   if ("addproject".equals(action)) {
> > >try {
> > > CompanyJob companyJob = new CompanyJob();
> > > ArrayList listcomp = new ArrayList();
> > > try {
> > >  ResultSet rs = companyJob.getAllCompany();
> > >  while (rs.next()) {
> > >   String name = rs.getString("comp_name");
> > >  listcomp.add(new String(name));
> > >  }
> > > } catch (SQLException sqle) {
> > >  System.err.println(">> PrepareFormAction :" + sqle);
> > > }
> > >} catch (SQLException sqle) {
> > > System.err.println("ProjectAction Error >> " + sqle);
> > >}
> > >return (mapping.findForward("addproject"));
> > >   }
> > >   return (mapping.findForward("error"));
> > >  }
> > > }
> > >
> > > but it does not work yet 
> > > in the JSP I have :
> > >  />
> > > 
> > >
> > >  > > align="CENTER"
> > > class="table">
> > >   
> > > 
> > >
> > >   
> > > 
> > > 
> > > 
> > > 
> > >   > > key="prompt.addproject.newcompany"/>
> > > ...
> > >
> > > I can't find the solution.
> > >
> > > Dams
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Damien VIEL" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, May 15, 2002 4:16 PM
> > > Subject: Re: Help : Dropdown List
> > >
> > >
> > > > ok,
> > > > I'll try this.
> > > > Thank
> > > > Dams
> > > > - Original Message -
> > > > From: "Robert Taylor&qu

Re: How to create the map for multiple parameters withhtml:link?

2002-04-04 Thread Markus Neifer

Alex,
thanks for your answer. I was hoping there's a standard tag for
this. Maybe in Jakarta Taglibs. Looks like that is not the case.
I'll take your suggestion and create a custom tag.

Have a nice day.

Regards,
Markus

- Original Message -
From: Alex Paransky <[EMAIL PROTECTED]>
Date: Wednesday, April 3, 2002 5:53 pm
Subject: RE: How to create the map for multiple parameters with 
html:link?

> Markus,
> 
> To implement a suitable map, we created a new tag called URI.  By 
> using this
> tag and specifying the id= attribute, a new scriplet object is 
> created in
> the appropriate scope.  Then, we are
> able to pass this object into the html:link tag.
> 
> This is one way of doing it.
> 
> The "Struts" way would probably be to execute an action which puts 
> such a
> map into the request scope, and then forward to the page you want 
> to go to.
[...]


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




How to create the map for multiple parameters with html:link?

2002-04-03 Thread Markus Neifer

Hi, is there any way to create the java.util.Map required for the 
html:link tag when using more than one parameter without using 
scriptlets?

Thanks in advance.

Markus



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




RE: servlet-mapping not available

2002-03-13 Thread Markus Skyttner

If you have apache and tomcat set up on the linux box, your problem could be related 
to how tomcat is configured to run with apache.

Often tomcat and apache are set up so that servlets are required to live under the 
"/servlet" URL-mapping at your server, therefor try this in your web.xml-file:

action/servlet/do/*

instead of

action/do/*

or, if you really prefer *.do, try (in the -tag) /servlet/*.do rather 
than *.do!

// markus skyttner

-Original Message-
From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 11:25
To: [EMAIL PROTECTED]
Subject: servlet-mapping not available


Subject: servlet-mapping not available
From: "Sebastian Teister" <[EMAIL PROTECTED]>
 ===
Hi!

after developing a web-app locally I tried to get it run on our linux
server.
Unfortunately the servlet-mapping (*.do) seems to be unknown to the server,
so it comments the mapping home.do as unknown (requested url not found).

web.xml and struts-config seem to be valid.

We already have a web-app running on our server that is an organizer we have
bought. maybe i should handle this fact properly - as far as i know,
tomcat's server.xml seems to be valid, too.

Direct requests to jsps work. All classes and the struts are working.
I'm using struts with tomcat 3.2.1 and apache.

Any idea what the matter is? Please help.

Sebastian





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


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




Re: internationalisation

2002-02-28 Thread markus . plattner

Hi Damien,

it's rather simple - struts does this for you.

The only thing you have to considere about is "how to change the 
language", because struts internationalization is based on a Locale
stored in the Session context (Attributename: Action.LOCALE_KEY).

And don't forget to set the locale=true parameter in your web.xml file. 

At first struts tries to detect the proper local from the Request data and 
set's it to the Session Attribute mentioned above if it is not already 
set.

hope it helps

Markus 
 

Besuchen Sie uns auf der CeBIT 2002, Hannover, 
vom 13.3.-20.3.2002 in Halle 18 EG, Stand A24/55!




Struts Newsgroup (@Basebeans.com) 
 ===
how to internationalized an application using struts, like errors messages
per example ?
Is it possible to load dynamicaly a different
ApplicationRessource.properties (ApplicationRessource_FR.properties,
ApplicationRessources_US.properties) when user change the language ?

Thank



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






RE: Question/Issue with "forward" specifications

2001-12-10 Thread Markus Skyttner

If you're using homegrown methods for logging, look into the log4j package. I think it 
is great for logging, I started using it in my struts app and I am very pleased with 
it. Read more about logging in general and performance considerations with log4j at 
http://jakarta.apache.org/log4j // markus skyttner

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: 07 December 2001 11:50
To: Struts Users Mailing List
Subject: Re: Question/Issue with "forward" specifications


Hi gurus!
I use helper methods that log a warning when a null is
returned - makes it easy to track down errors.
Q1 - Is this good practice? I suspect I'm replicating
logging that struts already has.
Q2 - Are there problems with such methods being
static(will they be a bottleneck)?

Frank - your concern about run-time errors is very
true. I was thinking of using logical names with a
prefix (say gfd=Global Forwards, fbn=Form Bean) so I
can scan my source code & compare the results with my
config file. Not hi-tech & breaches the java standard
of having nice clean names but if I get one more time
waster caused by a mis-match of names I might start
doing it). Just occured to me that it'll help me  find
unused things as well.
Keith.


--- Ted Husted <[EMAIL PROTECTED]> wrote:
> Frank Lawlor wrote:
> > 1) why doesn't findForward() throw an exception
> > rather than returning null?
> 
> Conceptually, not finding something in response to
> what could be a
> dynamic query is not an exceptional event. A SQL
> query returns an empty
> set all the time. Its up to the application to
> decide what to do about
> that.
> 
> As we explore doing more with exception handling in
> an Action, it may be
> a good idea to add alternative methods that threw an
> exception instead
> of return null (but without changing the existing
> API). Please feel free
> to enter this to Bugzilla as an enhancement request.
> 
> In the meantime, if you feel that it should throw an
> exception, then I
> would recommend subclassing ActionMappings and
> adding a method that
> called findForward and threw the exception of your
> choice if it returned
> null. Another way to go, would be to add a helper
> method to a base
> Action class that did the same thing.
> 
> 
> > 2) more generally, I am concerned about errors
> > that you cannot discover until runtime and then
> > only by ensuring you have tested every possible
> > situation.
> > 
> > One of the important things about Java is the
> > emphasis on catching things at compile time.
> > It would be good in the design of Struts to keep
> > some focus on allowing error detection at
> > compile time, or at least at application init.
> >
> > In the above case for example, there may be some
> way to
> > use static constants rather than strings.  It
> would
> > be good to look at some of the other Struts
> elements.
> 
> I don't believe that there is a way to require
> developers to use String
> constants, although I known many developers do. And
> even if we could,
> the constant couldn't be imported in an XML file,
> where it would do the
> most good. I'm not saying using String contstants
> for fowards isn't a
> good idea. I do it myself. But it's not a panacea.
> 
> After all, even if the constant exists, a Java
> compiler can't tell if it
> is the "right" constant. And there are plenty of
> other errors that a
> Java compiler will never ever catch. Even if you get
> the name of the
> forward right, there's no guarantee that the path
> associated with it is
> any good, and won't return a 404. 
> 
> > This may not seem like a big deal to some people,
> > but I remember well the 'bad old days' of
> maintaining
> > applications with interpreted code.  Runtime
> discovery
> > of bugs is a bad characteristic for quality apps.
> > 
> > "Introspect, don't interpret".
> 
> I'm just afraid this is a fundamental aspect of
> writing Web applications
> that support outside components, like JavaServer
> Pages or Velocity
> templates. Introspecting whether these components
> exist, or whether the
> right one is being called, is outside the scope of a
> Java compiler.
> 
> In order to solve other problems, all of the Struts
> components are put
> into wrappers that encapsulate implementation detail
> behind a logical
> name. This is very powerful feature that makes it
> possible to keep the
> components loosely coupled. We can change a global
> forward in the
> configuration file, and have that change reflected
> in a JavaServer Page
> and in

RE: HTML-Tables downloadable as CSV-Files. How ?

2001-12-03 Thread Massak, Markus

Independently from Struts, you have to change the MIME-type of your
HTTP-response
(from text/html, text/plain or whatever) to application/csv.
Then it should work.

Regards
Max


-Original Message-
From: Michael Gerdau [mailto:[EMAIL PROTECTED]]
Sent: Montag, 03. Dezember 2001 10:38
To: Struts Users Mailing List
Subject: HTML-Tables downloadable as CSV-Files. How ?


Hi !

I have a webapp which among other things let the user run some analytics
which are displayed in a tabular view.

I now wish to add a feature that allows the user to downloaded these
dynamically created tables as CSV-files such they they are available
for additional processing by e.g. StarCalc/Excel locally.

Has anybody done that and what would be a proposed way of doing it ?

FWIW I'm running on Tomcat 4.0.1 with Struts nightly build.

Any help appreciated, best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau   email: [EMAIL PROTECTED]
 Good people do not need laws to tell them to act responsibly,
while bad people will find a way around the laws.
 - Plato (427-347 B.C.
 PGP-keys available on request or at public keyserver



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: back button causes form resubmit

2001-11-26 Thread Markus Massak

see a good reference implementation in
David M. Geary's book "advanced Java Server Pages"


-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. November 2001 12:08
To: Struts Users Mailing List
Subject: Re: back button causes form resubmit


And the answer was...

use a transaction token! The archives REALLY are useful sometimes! :)

Rob





Rob
Breeds/UK/IBM@   To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
IBMGBcc:
 Subject: back button causes
form resubmit
21/11/2001
11:40
Please respond
to "Struts
Users Mailing
List"







I have a form where the user can add and delete values in a collection (by
submitting the form with different params). When they are done
adding/deleting they can hit a 'save' button to invoke an action to save
the data to a database and display a results page.

But if the user hits the browser back button, the last action they invoked
on the data entry screen is invoked. If it was an add, another item is
added to the collection, which although wrong is harmless.

If it was a delete, then an exception array out of bounds is thrown because
the collection no longer contains the previously deleted value.

How can I prevent the user doing a double add/delete? Do I need to use a
transaction token?

Thanks

Rob Breeds




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





--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: =?ISO-8859-2?Q?Newbie design question - How to use properly use a connection pool in the b=

2001-11-26 Thread Markus Massak

if you have a central dbmanager bean (handling the connpool)
which each object can "see" because it is a singleton, the
db beans can access it. this has nothing to do with servletcontext
and even less with view. it's communication between model (db beans)
and controller (dbmanager). you also can see dbmanager as model.

greetings


-Original Message-
From: Nobody [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. November 2001 05:30
To: Struts Users Mailing List
Subject: =?ISO-8859-2?Q?Newbie design question - How to use properly use
a connection pool in the b=


usiness logic beans?=
X-Mailer: Sysdump.com
X-Originating-IP: 12.83.106.244
Content-Type: text/plain; charset=iso-8859-1
From: <[EMAIL PROTECTED]>

I am trying to stick with the MVC paradigm and keep separate the model from
the view.  As the Struts User Manual suggests, I am writing the business
logic as Javabeans (not EJB), these beans are used by the JSP pages.  I
would like to have all of the data
base work done within one bean and have other beans closer to the view use
that bean to do the actual selects and updates/inserts.  This would be easy
if the db bean opened a db connection each time it was instantiated, but to
be able to effectively use a
 connection pool, it would need to persist (like a servlet).

The problem I am having is how would I give the other beans access to this
db bean that has the connection pool?  I was thinking I could maybe put the
db bean into the ServletContext to give it 'app scope', but then those other
beans would still be unable
 to access it since they don't have access to anything that has to do with
the view.  What I am considering is having the beans used by the JSPs store
the connection pool and then when they need to access the database they
could create the db bean object
and pass it a free Connection to do its work...

Any suggestions?

Thanks,
Kenny

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Broadvision 6.0 and Struts

2001-11-20 Thread Markus Skyttner

The group I am in has too tried this and found the same problems as
Nicholas. From these and other reasons we are now moving away from
BroadVision entirely.

If I were to make a strategic decision now (having two years of
BroadVision development experience) I would try to avoid getting into
those problems. 

I agree that the reference struts BroadVision sample applications in
BroadVision 6.0 are very poorly designed.

In my humble opinion, a pure strutsified application running under
Tomcat is faster (and easier to develop and less error prone) than the
equivalent solution running on expensive BroadVision software. That's
what we have found in some small tests we have done. I don't know
exactly why, but I suspect the reason may be buried somewhere deep in
the BroadVision software??

// Markus


-Original Message-
From: Nicholas Roeder [mailto:[EMAIL PROTECTED]]
Sent: 17 October 2001 17:08
To: '[EMAIL PROTECTED]'
Subject: RE: Broadvision 6.0 and Struts


Hello,

My group has just been creating a small example application using Struts
and
BV 6.0. Our plans are to use it in a larger project if it works well. 

So far we have run into a few problems. BroadVision has customized many
of
the Struts tags and provide their own struts.jar. (Actually, they seem
to
provide two slightly different ones, but I can't find any documentation
on
how they are different.)

An example problem is that BV has created their own version of the
html:form
tag that automatically tacks on the BV session ID and engine ID to the
query
string and as hidden values. I haven't figured out how to get rid of
these
(for example if you'd rather use cookies so pages are bookmarkable). 

I've also not been able to get the simple html:base and html:link tags
to
work properly. The tags actually generate hrefs which are missing the
gateway name...

I tried to use the standard Jakarta Struts library, but I cannot get it
to
work with BV 6.0. (The errors I get seem to indicate that BV 6.0 has
incorporated an earlier version of tomcat that doesn't support some
features
needed by struts - like removing attributes from request scope.)

I have to agree with SPE - the sample BV applications using Struts are
very
poor examples, although the Marketplace app (which comes with Business
Commerce) is probably their best example. I notice, however, that they
don't
use html:link or html:base anywhere...

-Nicholas


> -Original Message-
> From: Peschardt Sverre [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 17, 2001 1:17 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Broadvision 6.0 and Struts
> 
> 
> Hi,
> 
> I'm actually working on a prototype using BV Enterprise 6 and BV
> InfoExchange Portal 6. The goal was to use only JSP with the Struts
> framework but their sample (Adventech) is not complete (only 
> one action
> implemented!), so for the moment I only use JSP with scriptlets ...
> But I have already tried to make BV 6 work with Struts and there is no
> problem and no additional steps are required.
> 
> Are you using a sample like Adventech or another for Business 
> Commerce ... ?
> 
> SPE
> 
> -Original Message-
> From: Sandeep Takhar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 16, 2001 7:56 PM
> To: Struts Mailing List
> Subject: Broadvision 6.0 and Struts
> 
> 
> Has anyone got Broadvision 6.0 working with Struts?
> Are there any additional steps required?
> 
> Can it be added to the website installation page is
> someone has?
> 
> - Sandeep
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 


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




Struts and bouncing IMs

2001-09-12 Thread Markus Skyttner

Hello again Rohan,

I wonder if you could answer a question about BV and Struts.
We have to bounce our IMs every time we have made changes to the Struts
application we are building.
Have you found a way to set up your (dev) system so that you don't have
to do that?

// markus skyttner
B R U N S W I C K   D I R E C T

:: direct | +46 8 5068 78 24
:: mobile | +46 70 416 78 24
:: switchboard | +46 8 5068 78 00 
:: fax | +46 8 5068 78 99 
:: office | kungsgatan 8 | 1st floor 
:: address | p.o. box 1112 | se-111 81 stockholm | sweden
:: web | www.brunswickdirect.com



How does bean:define work?

2001-08-30 Thread Wittwer Markus

Hi!

The bean:define tag simply exposes a bean as a scripting variable by adding
it to the page context:

// from DefineTag.java
pageContext.setAttribute(id, value, inScope);

Now one can access the bean by 

Value of title: <%= title %>

I did the same within a custom tag I wrote but I cannot directly access the
bean as a scripting variable:
 // the tag retrieves some key and stores it
in the bean "title"

Value of title: <%= title %> 
causes an "Variable title not defined" exception,

but

Value of title: <%= pageContext.findAttribute("title").toString() %>
works fine.

Before anyone asks: I have to use scriptlets, because I want to nest the
output within another struts tag.


Thanks for your help,

Markus Wittwer




RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial

2001-08-09 Thread markus . colombo

Thanks for everybody giving me feedback.

I'll try to keep the Tutorial updated (if I find some spare time...)

Markus

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 9. August 2001 20:32
To: '[EMAIL PROTECTED]'
Subject: RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


By the way, another good session I sat in on can be found at
http://www.borland.com/conf2001/updates/, 3004, Building Extensible Web
Frameworks Using XML, XSL-T, and Java by Richard Vowles.

Trouble is, they put the wrong slide show into the archive.  The code
examples are correct and include Struts, Tapestry (Richard's favorite, I
think), and xsltaglibs.

Richard didn't seem to like Struts too much, but shows it anyway.  He took a
lot of time to show Tapestry.  It's a replacement for JSP and my impression
is that it uses Action Listeners better than any Servlet I've seen.  But
maybe I made that up because I was falling asleep during that part of the
session...ala Homer Simpson (Cult Member: "There's nothing like that in the
movie."  Homer: "Yeah, I know.  I just make stuff up when I get bored, OH A
BIRDIE!").


Anthony

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


Hehe, that's fine if you want to download 4megs.  It does come with a
project example, and instructions for JBuilder 4 and 5.

Ken's great, I met him at Borcon and I attended the session on Struts.  In
fact, besides Ken's session, three other sessions that I attended mentioned
Struts (more in favor than not).

He also hinted that someone should add a Struts item to the Object Gallery
(File | New | Web), which I think is a good idea.  Can it be added like with
OpenTools?


Anthony

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


Markus, Nice Work!

You should check out Ken Sipe's presentation of Struts at Borcon.  The
slides and all required resources are at
http://www.borland.com/conf2001/updates/  look for presentation 3148.

Bill Gfroehrer...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !


Markus Colombo, ConsultantTel: +41-(0)61-377 77 17
THALES Information Systems AG Tel: +41-(0)61-377 77 77
Auf dem Wolf 17
CH 4052 Basel, SwitzerlandFax: +41-(0)61-377 77 99
[EMAIL PROTECTED]   http://www.thales-is.ch

THALES Information Systems AG ,vormals Syseca (Schweiz) AG:
> hat in der Schweiz an 6 Standorten über 240 IT Professionals.
> ist ein international operierendes Unternehmen mit 4'700 Mitarbeitern.
> ist eine Unternehmung der THALES Group, vormals Thomson-CSF.
Die THALES Group hat weltweit 65'000 Mitarbeitern.





JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial

2001-08-09 Thread markus . colombo

A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !


Markus Colombo, ConsultantTel: +41-(0)61-377 77 17
THALES Information Systems AG Tel: +41-(0)61-377 77 77
Auf dem Wolf 17
CH 4052 Basel, SwitzerlandFax: +41-(0)61-377 77 99
[EMAIL PROTECTED]   http://www.thales-is.ch

THALES Information Systems AG ,vormals Syseca (Schweiz) AG:
> hat in der Schweiz an 6 Standorten über 240 IT Professionals.
> ist ein international operierendes Unternehmen mit 4'700 Mitarbeitern.
> ist eine Unternehmung der THALES Group, vormals Thomson-CSF.
Die THALES Group hat weltweit 65'000 Mitarbeitern.







RE: can`t submit form when using ie 5.0

2001-08-09 Thread markus . colombo

Try Send skjema

Hope this helps (I have no time to test at the moment)
(This is a bug in 5.0)

-Original Message-
From: Jan Fredrik Øveraasen
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 9. August 2001 11:54
To: '[EMAIL PROTECTED]'
Subject: can`t submit form when using ie 5.0


Hi
I have a form like this:

  



   
   Send skjema

   

In ie 5.0 this form is not submitted.

Can anyone tell me if there is something I can do different or is this a bug
in ie 5.0.




___ Jan Fredrik Øveraasen | Senior Systems Developer
___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo,
Norway
___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88
   ___ http://www.cellnetwork.com/ |
mailto:[EMAIL PROTECTED]




RE: JBuilder w/Struts Support

2001-08-02 Thread markus . colombo

Hi,

just tried the steps below with JBuilder5/Struts1.0/Weblogic6:
Omitted steps 7 & 8
step 10: the classpath from step 9 still included ...\struts.jar
which I had to remove to make it run


Thanks for your tips

Markus



-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 1. August 2001 22:55
To: '[EMAIL PROTECTED]'
Subject: RE: JBuilder w/Struts Support


Only steps 7 and 8 are effected by this.

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:52 PM
To: [EMAIL PROTECTED]
Subject: RE: JBuilder w/Struts Support


Hi Anthony,

"This might explain why the .TLD files weren't moving over."

If this is true then are your instructions for steps 3 through 11 still
valid?

BG...


-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: JBuilder w/Struts Support


Regarding step 1, you are correct.  I had it wrong.  The jar files must be
used.  This might explain why the .TLD files weren't moving over.

If this is correct, step 2 may not be necessary.  But to clarify, Step 2 had
a typo, and wasn't clear to begin with.  Sorry about that.

It should read:

2. Move:
o strutsblank\WEB-INF\classes\*.* to strutsblank\src
o strutsblank\WEB-INF\*.tld to strutsblank\src

Again, the purpose of moving the .tld into src was to make sure they got
included in the .war.  If I had the open tools wrong, this would explain it.


Anthony

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: RE: JBuilder w/Struts Support


Anthony,

I am trying to implement your solution and need some clarification on steps
1 and 2.

Step 1 question -
The instruction that come with the downloaded files from Borland
(Nostruts.zip & webinfextension.zip) indicate that the "JAR" files need to
be placed into "c:/jbuilder5/lib/ext" which is different from your
instructions which say to place the "ZIP" files in the directory. I have the
ZIP files in the directory but I am wondering if I missed something here?

Step 2 question -
The instruction "Move: strutsblank\WEB-INFclasses to strutsblank\src". So I
created "strutsblank\" and "strutsblank\src" directories under
"C:/jbuilder5/jakarta-tomcat-3.2.1/webapps/", then extracted (unzipped) the
"struts-blank.war" to the "strutsblank\" directory. Next, I moved
"\strutsblank\WEB-INF\classes" to "\strutsblank\src\classes", is this
correct?

Thanks,
BG...




-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: JBuilder w/Struts Support


Here is my recipe for JBuilder5 w/Struts Support.  These steps are a
culmination of a variety of posts found on a variety of groups.  Thanks to
all who contributed to this, for there are many.  I hope these steps work
for everyone.  And I hope Borland eventually adds better support for JB5
w/Struts in the near future.  The .TLD is the biggest problem, and it's not
even a Struts specific requirement.

Ingredients:

o Borland JBuilder5 Enterprise (not tested on other versions)

o Struts Support Addin
Nostruts.zip & webinfextension.zip
http://codecentral.borland.com/ goto JB5 x OpenTools

o Struts Blank .war file
struts-blank.war http://jakarta.apache.org/struts goto
downloads

Steps:

1. Download/Install the above:
o Extract the Struts Support Addin files to the open tools
directory.  Usually it's c:/jbuilder5/lib/ext on Windows.
o Extract the Struts Blank file to your webapps directory.  This
allows it to run outside JB5  For example, the path would likely be
C:/jbuilder5/jakarta-tomcat-3.2.1/webapps/strutsblank on Windows.  You can
call it whatever you want, but JB5 doesn't like dashes in the project .jpx,
so I took it out.

2. Move:
o strutsblank\WEB-INFclasses to strutsblank\src
o strutsblank\WEB-INF\*.tld to strutsblank\src
o You'll see...

3. In JB5, set up Struts Support Addin
o Tools | Configure Libraries...
o New...
o Name: Struts Support Addin
o Location: User Home (default)
o Add... c:/jbuilder5/lib/ext/Nostruts.zip
o Add... c:/jbuilder5/lib/ext/webinfextension.zip
o Click OK

4. Set Up Struts (still in Configure Libraries)
o New...
o Name: Struts v1.0 Release (or whatever version you have)
o Location: User Home (default)
o Add... path.to.struts.jar
o Click OK
o Click Required Libraries Tab
o Add... Struts Support Addin
o Click OK

5. Start a new project in JB5.
o File | New | Project

error in MultipartIterator

2001-06-12 Thread Markus Pallo

Hello,

i have found an error in the method createLocalFile of MultipartIterator.
If the uploaded file contains a \r\n\n sequence there will be a wrong carriage added.

The sequence \r\n\n will change to \r\n\r\n.

The cutCarriage flag will be remembered from the last read if 
readBytes will be 0.

The following diff contains the fix

Index: MultipartIterator.java
===
RCS file: 
/home/cvspublic/jakarta-struts/src/share/org/apache/struts/upload/MultipartIterator.java,v
retrieving revision 1.13
diff -r1.13 MultipartIterator.java
499a500
>  
> cutCarriage = false;
504,506d504
< }
< else {
< cutCarriage = false;



Markus Pallo

Sorry for the wrong indention of the diff, i won't change my emacs settings...




newbie: Error 500 No action instance for path /login could be created

2001-06-01 Thread Markus Roghani

I'm using struts-1.0-b2 with tomcat 3.2.1.

I wrote a simple login skript like the logon skript in the
struts-example. After I submit my form-data to login.do, I've got the
error message:
Error: 500

Location: /testapp/login.do

No action instance for path /login could be created

I can't find what caused this error. My login application is almost
the same as the logon application from the struts-example.

Markus





RE: WebSphere 3.5.3 problem

2001-03-22 Thread Markus Torpvret

> I did our 3.5.3 installation yesterday and it was as per 
> 3.5.2. I still
> needed the changed action servlet and also a change of the
> struts-config.xml to use a SYSTEM DTD rather than a PUBLIC one.
> 
> It did NOT work out of the box. getResourceAsStream still 
> appears to be
> broken in 3.5.3

How odd, because I am 100% sure that the getResourceAsStream works fine for
us in 3.5.3! We used to have a patch for it when running 3.5.2, but all of
us removed that patch when we upgraded, and it still works. I believe that
we are using a system DTD though, but not because it didn't work otherwise.
Oh, and we're running the advanced version of WAS.

On the other hand, I'm not too surprised since we are experiencing strange
behaviours with WebSphere every day. I sincerely think that just about any
other application server out there must beat WebSphere in terms of
productivity and ease of development. Is there anyone out there that has
positive experiences from WebShpere?

/Markus



RE: WebSphere problem

2001-03-16 Thread Markus Torpvret

We're running struts on WebSphere 3.5.3 and don't have any problems parsing
the config file. We have not made any modifications at all to the
ActionServlet class, it runs just fine out of the box.

Maybe you could turn up the debug and detail init args to the ActionServlet
to get a more specific trace, it's kind of hard to see what's going on. Are
you sure that there's nothing wrong with the config file?

On a side note:
The only exception I've had during init was due to the fact that we had no
web.xml file. Since that particular message seems to be missing from the
ActionResources.properties file in struts 1.0 beta1 it was kind of hard to
find... It cleared up fine when I created an empty web.xml file (or rather
one containing )

Why does Struts try to read web.xml? Shouldn't that be left to the servlet
container? All init information is stored in the WebSphere database, so we
don't really need a web.xml file...

/Markus


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: WebSphere problem
> 
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> > Can anyone provide a stack trace?
> >
> 
> here it is.
> 
> > We're about to move to 3.5.3 from a working 3.5.2, so I'd 
> appreciate a head
> > start. As the author of the 3.5.2 instructions, I'd like to 
> know that you
> > changed the ActionServlet class and stored it in the 
> servlet directory of
> > your web app.
> >
> 
> I'm already on 3.5.3 and I've changed the ActionServlet class 
> as you specified
> it in the installations notes, before trying struts.
> 
> 
> Bernard.
> 



RE: Struts with IBM VisualAge for Java

2001-03-12 Thread Markus Torpvret

We're running Struts 1.0-beta-1 with WebSphere 3.5.3 (the new fixpack 3) and
it works pretty well out of the box. We're not using VisualAge though.

/Markus

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 5:04 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Struts with IBM VisualAge for Java
> 
> 
> There are known issues with WAS 3.5.2 and struts, as WAS 
> 3.5.2 does not 
> completely implement Servlet 2.2.
> 
> Please see the install instructions off the struts home page 
> for the exact 
> details.
> --
> dIon Gillard, Multitask Consulting
> Work:  http://www.multitask.com.au
> NetRexx: http://www.multitask.com.au/NetRexx.nsf
> 
> 
> 
> 
> [EMAIL PROTECTED]
> 13/03/2001 05:37 AM
> Please respond to struts-user
> 
>  
> To: [EMAIL PROTECTED]
> cc: 
> Subject:RE: Struts with IBM VisualAge for Java
> 
> 
> No, WAS 3.5 supports Servlet API 2.2 with fixpack 2.
> 
> - Magnus
> 
> -Original Message-
> From: Perez, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 7:34 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Struts with IBM VisualAge for Java
> 
> 
> Well, I eventually have to deploy to WebSphere for 
> production.. do you 
> think
> that will be a problem?
> 
> -Original Message-
> From: Nick Chalko [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 10:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Struts with IBM VisualAge for Java
> 
> 
> I have TOMCAT running in VAJ 3.5.  You have to delete the Servlet 2.1 
> stuff
> before you install TOMCAT.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Struts with IBM VisualAge for Java
> 
> 
> Apache Tomcat Test Environment 3.1 is avialable as a VAJ 
> feature from IBM.
> 
> http://www7.software.ibm.com/vad.nsf/
> 
> - Magnus
> 
> -Original Message-
> From: Perez, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 7:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: Struts with IBM VisualAge for Java
> 
> 
> I can't seem to get Struts to work with VisualAge for Java 3.5.  The
> WebSphere Test Environment only supports the Servlet 2.1 API.  I can't
> replace it with 2.2.  Is there anyway to get this working???
> 
> Billy Perez
> Java Developer, e-ARCS
> 
> 
> 



Getting Struts to Work with Weblogic 5.1 SP6

2001-01-18 Thread Markus Meissner


Hi,

has anyone gotten any of the recent nightly builds of Struts 1.0 MVC 
framework to work with WLS 5.1 sp6?

Any suggestions would be helpful.

Thanks,
Markus