Re: [tiles] tiles:insert not working for relative path

2003-03-25 Thread Volker Krebs
Hello,

Cedric Dumoulin wrote:
>   When you use Tiles, you should better use absolute paths (relative to
> the application). This is because you never know from where a tiles is
> inserted, and so you don't know to what the path is relative with.
> 
>   The only change that can explain the behavior change between 1.1b2 and
> 1.1RC1 is the internal use of RequestDispatcher.include() instead of
> PageContext.include(). This later accept relative paths, while the first
> not.
>   Try to use the latest nightly build instead of the rc1: we have revert
> to a call to PageContext.include(). So, your application should work again.
>   Let us know the result.

I've tried it with the latest nightly build. And it works fine.

Thanks.

Volker


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



[tiles] tiles:insert not working for relative path

2003-03-24 Thread Volker Krebs
Hello,

I've just updated our system from struts-1.1b2 to struts-1.1rc1.
It seems that  only works for an absolute Path now.

is working while

is not working.
MyJSP.jsp is in the same Directory the other JSP is.
Can anyone confirm that ? I didn't find a bug entry for that.
Or has something changed in RC1 ?
Thanks.

Volker



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


Re: How to use dynamics ActionForm properties?

2002-01-21 Thread Volker Krebs

Hai Hoang wrote:

> Struts development team recently added the dynamics
> ActionForm properties to struts code base.  Do you
> know if there is a documentation or an instruction
> available anywhere to show how to use this feature?

Hi,

take a look at the examples for the logonForm.

Volker



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




ActionForm Instance when using DynaBean

2002-01-21 Thread Volker Krebs

Hi,

I'm trying to use the new DynaActionForm.
It's really good, and makes your Application
even more dynamic.

But I don't know how to make a new
Instance of an ActionForm in my Action.
I can't find the appropiate methode in
ApplicationConfig or elsewhere.

For me this is necessary when an Action is
called without a formBean. The ActionForm
Parameter is null in this case. With 'normal' form Beans this
is no Problem, I can find the class name and
use Class.forName() to get an Instance, but how
to do it with DynaBeans ?

What I'm missing is something like a
ActionForm Action.getFormBeanInstace() method.

thanks

Volker


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




Re: Good taglib to format number

2001-12-17 Thread Volker Krebs

Frédéric Houbie - ABSIS-GROUP wrote:

> Which taglib are you using to format number, date, using Locale config of
> Browser ?
Hi,


take a look at the format Attribute from .

You have to download the nightly Build, it's not in Struts 1.01.

Volker



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




Re: How to return to the page that called the action class?

2001-12-13 Thread Volker Krebs

> I have a generic action class that I want to set up that when the class is
> successful it send the user back to the page from which they came. How do I
> get that information? And, how would I structure my class to allow it to
> send the user back?


We have the same propblem in our Application, and it can only
be solved with a proper workflow mechanism.
At the moment we use a session variable that has to be
set before invoking an action, which stores the name of the
page where we came from.
Or we pass the name of the calling action
as a parameter, so that we know where to get back.
But this is all workarround, you need a workflow framework here.

Volker



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




Re: How to chain actions?

2001-12-13 Thread Volker Krebs

Hi,

> I have an action class that does one thing. I have another action class that
> does another thing. How can I have a page that populates a form and submits
> to one action class and then pass off the form to another action class for
> further work?


search for 'action chaining' in the struts-user list at
http://www.mail-archive.com and you'll find among others
this:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg19139.html

Volker




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




Re: Passing variables with the tag, how do I do this?

2001-12-11 Thread Volker Krebs

[EMAIL PROTECTED] wrote:

> 
> Thanks for all the help people, I can now successfully pass one 
> variable.  How can I pass more that one variable?

Hi,

I've read this in the struts examples that come with the source code.
<%
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put("para1", "value1");
   newValues.put("para2", bean1.getAttribute1();
   pageContext.setAttribute("paras", newValues);
%>

   


You put all your parameters in a hashmap an pass it to the
 tag.

I would prefer something like this:

   
   


but this is still not in the stuts source, I guess.

Volker


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




Re: action chaining without resetting action forms

2001-12-10 Thread Volker Krebs

Hello Ted,

> If anyone is interested, I can post a patched JAR. But then they really,
> really need to tell me that it works, or else this will never be
> committed. 

I've finally managed to test it. I had to integrated
in the newest nightly build, because we are using
some new tags. But after that it worked fine in our Application.

It still has to be integrated in the ActionServlet for
tiles (ActionComponentServlet), and the invokeAction method
has to become public.

I would appreciate if this would be committed.

thanks,

Volker


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




Re: action chaining without resetting action forms

2001-12-10 Thread Volker Krebs

Ted Husted wrote:

> Volker Krebs wrote:
> 
>>I'm intrested, can you please post a patched JAR.
>>We are doing some Action chaning in our application.
>>
> OK, see 
> http://husted.com/struts/resources/invoke.zip


Sorry, but with your patched struts.jar my Application
won't deploy.
NoClassDefFoundError: org/apache/struts/action/ActionMessages
I'm using Tomcat 3.2.3 on Win2000.
Also I had to make the invokeAction Method public.

But the solution Paul Devine suggested:
return action2.perform(  );
is almost what I wanted to do. (Pass a diffrent formBean with my
action).

Volker


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




Re: action chaining without resetting action forms

2001-12-06 Thread Volker Krebs

Hi,

> For the nightly build, I've suggested that we add two new methods so
> that one Action can invoke another, but need some people to test the
> idea for me. (Since I don't do this sort of thing myself.)
> 
> If anyone is interested, I can post a patched JAR. But then they really,
> really need to tell me that it works, or else this will never be
> committed. 


I'm intrested, can you please post a patched JAR.
We are doing some Action chaning in our application.

>>I want to 'chain' actions, by setting the forward of one to be
>>'my_action.do'
>>The problem is that this resets the action form before calling the next
>>action.


In our Application this works fine. If I forward from one Action 

to another Action,

the form Bean is still known in the second Action.
But this might be, because both Actions use the same FormBean
in their struts-config name tag as default FormBean.

Volker


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




Multiple Parameters for html:link

2001-12-05 Thread Volker Krebs

Hello,

I've read about a custom tag where I can pass multiple
Parameters to the html:link tag without using HashMap.

http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01695.html

Are there any plans including it in struts ?
I think its quite usefull.

Is there a newer version which can handle
<:img> <:property> <:name> ?

Thanks

Volker


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