FormBean not found in request ...

2004-02-18 Thread Mlinar, Mario
My Action puts a FromBean into the request and forwards to a view.
The view can´t find the formBean and creates a new Instance which of course
is empty:-(
 
Here is my code:
 
 
struts-config.xml


 

  

   
 

 
 
snippet of my Action´s code:

GpFreelanceForm myForm =  some business code
request.setAttribute("freelanceEdit", myForm);
return mapping.findForward("freelance");
 
-> myForm ist not null.
 
in my JSP I use this:
 

... my elements ...

 
Changing request to session makes it work fine.
What`s the problem??
 
 


AW: what is wrong with this code

2004-02-12 Thread Mlinar, Mario
Here is a snippet of my log

org.apache.struts.action.mapping.instance=ActionConfig[path=/adressenView,pa
rameter=/gp_detail_adressen.jsp,scope=session,type=de.shs.partnerportal.adb.
ui.web.actions.AdressDetailActionorg.apache.struts.action.MODULE=org.apache.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

12 Feb 2004 11:36:14,408 DEBUG -
org.apache.struts.tiles.TilesRequestProcessor -
processForwardConfig(/gp_detail_adressen.jsp, false)
12 Feb 2004 11:36:14,408 DEBUG -
org.apache.struts.tiles.TilesRequestProcessor -   '/gp_detail_adressen.jsp'
- processed as uri
12 Feb 2004 11:36:14,408 DEBUG - org.apache.struts.action.RequestProcessor -
processForwardConfig(ForwardConfig[name=continue,path=/gp_detail_adressen.js
p,redirect=false,contextRelative=false])


Not sure wether I am interpreting this rigth, but it seems to me as there
are 2 forwards??



-Ursprüngliche Nachricht-
Von: Mlinar, Mario [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 12. Februar 2004 11:27
An: Struts Users Mailing List
Betreff: AW: what is wrong with this code 


Just to be sure what is in the request my code at the beginning of the jsp
is:
<%
java.util.Enumeration e2 = request.getAttributeNames();
while (e.hasMoreElements()) {
String tempString = (String) e2.nextElement();
%>  <%= tempString %>=<%= request.getAttribute(tempString) %>
<%  } %>


And 

<%
java.util.Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String tempString = (String) e.nextElement();
%>  <%= tempString %>=<%= request.getParameter(tempString) %>
<%  } %>

Using this kind of link 'adressenView.do?adrStartIndex=5' shows an
'adrStartIndex=5' at the beginning of the jsp Using the solution with the
Action shows no parameters ... where
Konstanten.ADRESSEN_RESULT_START_INDEX_KEY = adrStartIndex

Putting into the session works perfect :-(


-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 12. Februar 2004 11:09
An: Struts Users Mailing List
Betreff: RE: what is wrong with this code 


I presume Konstanten.CONTINUE is "continue" and I see that forward will
default to a non-redirecting forward looking at your config, so thats not
the problem.

Whats in the JSP? You sure you got the attribute key correct there?

-Original Message-
From: Mlinar, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 18:07
To: [EMAIL PROTECTED]
Subject: what is wrong with this code


putting an attribute in my request ... the jsp cant´t find it in there


request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);

struts-config:


   


Any idea???


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

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

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



AW: what is wrong with this code

2004-02-12 Thread Mlinar, Mario
Just to be sure what is in the request my code at the beginning of the jsp
is:
<%
java.util.Enumeration e2 = request.getAttributeNames();
while (e.hasMoreElements()) {
String tempString = (String) e2.nextElement();
%>  <%= tempString %>=<%= request.getAttribute(tempString) %>
<%  } %>


And 

<%
java.util.Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String tempString = (String) e.nextElement();
%>  <%= tempString %>=<%= request.getParameter(tempString) %>
<%  } %>

Using this kind of link 'adressenView.do?adrStartIndex=5' shows an
'adrStartIndex=5' at the beginning of the jsp
Using the solution with the Action shows no parameters ... where
Konstanten.ADRESSEN_RESULT_START_INDEX_KEY = adrStartIndex

Putting into the session works perfect :-(


-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 12. Februar 2004 11:09
An: Struts Users Mailing List
Betreff: RE: what is wrong with this code 


I presume Konstanten.CONTINUE is "continue" and I see that forward will
default to a non-redirecting forward looking at your config, so thats not
the problem.

Whats in the JSP? You sure you got the attribute key correct there?

-Original Message-
From: Mlinar, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 18:07
To: [EMAIL PROTECTED]
Subject: what is wrong with this code


putting an attribute in my request ... the jsp cant´t find it in there


request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);

struts-config:


   


Any idea???


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



what is wrong with this code

2004-02-12 Thread Mlinar, Mario
putting an attribute in my request ... the jsp cant´t find it in there
 
 
request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);
 
struts-config:


   
 
 
Any idea???


struts-user@jakarta.apache.org

2004-02-06 Thread Mlinar, Mario
My Action put´s a JavaBean into my request. Depending on the instance Type
of my Bean I choose different Parameter names for my Bean.
 
Code snippet Action:
if (object instanceof A) {
request.setAttribute("y", object);
}  else if(object instanceof B) {
request.setAttribute("x", object);
}
 
 
 
Code snippet JSP:



 




Now every time a Bean of type A was put in the request I get the
message:org.apache.jasper.JasperException: Cannot find bean x in scope
request
Now every time a Bean of type B was put in the request I get the
message:org.apache.jasper.JasperException: Cannot find bean y in scope
request
 
Using only one   works perfect 
Where is the problem ???
 
Thanks for any help in advance.
 
by the way: using struts 1.1 with Tomcat 4.1.
 


AW: Where are my ActionErrors ?

2004-01-15 Thread Gleichmann, Mario
Thanks,

this should be the solution, since the request-object is a new one if using
a redirect (gosh) ... ;o)

Will take a look at my struts-config ... 

Thanks and regards,

mario


-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 15. Januar 2004 11:44
An: Struts Users Mailing List
Betreff: RE: Where are my ActionErrors ?


Did you do a redirecting or non-redirecting forward to the JSP?

-Original Message-
From: Gleichmann, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 January 2004 18:44
To: 'Struts Users Mailing List'
Subject: Where are my ActionErrors ?


Hello all,

i have a problem when i'm trying to retrieve my ActionErrors in a JSP:

In my Action i do the following:
...
ActionErrors errors = new ActionErrors();
errors.add( "INFORMATION", new ActionError( "product.message.test" )
);
saveErrors( request, errors );  
...

In the forwarded JSP i try to request the ActionErrors:



... nut no Error is displayed. Even 

ActionErrors errors = (ActionErrors) request.getAttribute(
org.apache.struts.Globals.ERROR_KEY );

... delivers null.

Where are my ActionErrors ?

Thanks in advance,

mario


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



Where are my ActionErrors ?

2004-01-15 Thread Gleichmann, Mario
Hello all,

i have a problem when i'm trying to retrieve my ActionErrors in a JSP:

In my Action i do the following:
...
ActionErrors errors = new ActionErrors();
errors.add( "INFORMATION", new ActionError( "product.message.test" )
);
saveErrors( request, errors );  
...

In the forwarded JSP i try to request the ActionErrors:



... nut no Error is displayed. Even 

ActionErrors errors = (ActionErrors) request.getAttribute(
org.apache.struts.Globals.ERROR_KEY );

... delivers null.

Where are my ActionErrors ?

Thanks in advance,

mario


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



released xmoon 0.3

2004-01-08 Thread Mario
XObj can instance external class 
XMoon properties added 
some bug fix

 

http://www.xmoon.it  

 

 



ups - again: struts-user@jakarta.apache.org

2003-11-27 Thread Mario . Gleichmann2
Hi,

within the bean:write tag, i am able to format a property like this:



Is there a chance to format a property within the html:text tag the same
way, like:



... or do i have to choose another approach in order to get formatted
properties into a textfield???

Thanks in advance for your help :o)

Mario Gleichmann





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



html:text - format properties

2003-11-26 Thread Mario . Gleichmann2


-Ursprungliche Nachricht-
Von: James Mitchell [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 20. November 2003 12:30
An: Struts Users Mailing List
Betreff: Re: URGENT :: Disable enter key in HTML:FORM by using
onKeyPress func tion


On Thu, 20 Nov 2003, Chawla, Yogesh wrote:

> Hi,
>
> In normal forms, we can disable enter key by calling onKeyPress() function
> in the form tag.
> However, this is not supported in the  definition for Struts.
>
> Can anybody give a solution to this ...

Your best bet for stopping the user from submitting a form with JavaScript
is to handle it in the form tags onsubmit attribute.

Here's an example from a recent app I'm working on:

I needed a way to make sure that users entered a minimum of 3 (or some
configurable value) characters when performing a search.  The problem is
that it can be 3 characters from any combination of 3 fields.





...and at the bottom of the page I do this...



function doMyValidation(form){
u =
form.elements['view.registration.security.userName'].value.length;
f =
form.elements['view.registration.personal.firstName'].value.length;
l =
form.elements['view.registration.personal.lastName'].value.length;

if (u + f + l < ){
alert('');
return false;
}
return validateSearchForm(form);

}



Hi,

within the bean:write tag, i am able to format a property like this:



Is there a chance to format a property within the html:text tag the same
way, like:



???

Thanks in advance for your help :o)

Mario Gleichmann


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



AW: JavaScript function inside JSP not working

2003-11-20 Thread Mario . Gleichmann2
Hi Firat,

thanks for your answer - i'm not sure, but i guess the origin question is
about refering to a form element by name, not by index. Problems potentially
occur, if a JSP is composed dynamically by multiple JSP fragments, declaring
their own form tags. Hence you maybe can't refer a certain form within the
JSP by index, because the position within the view isn't clear.

Greetings

Mario

-Ursprüngliche Nachricht-
Von: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 20. November 2003 10:05
An: Struts Users Mailing List
Betreff: Re: JavaScript function inside JSP not working


If you are trying to refer to one of the forms in your document, there is an
array object holding all the forms in JavaScript. So you can call your form
by;

myForm=document.forms[0];

now myForm is the object that holds the reference to your first form in the
browser.

F.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 10:58 AM
Subject: AW: JavaScript function inside JSP not working


> Hi,
>
> as far as i know, the -tag doesn't support an attribute called
> 'name'.
> Maybe you'll take a look at
> http://jakarta.apache.org/struts/userGuide/struts-html.html#form
>
> (if there is a way to give the form element a name in order to refer to it
> by this name, i am very interested in the answer :o))
>
> Greetings
>
> Mario Gleichmann
>
> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 20. November 2003 04:57
> An: [EMAIL PROTECTED]
> Betreff: JavaScript function inside JSP not working
>
>
> I include the following javascript function in my .jsp
> file, but this function is not being called at all.  I
> won't even get any javascript error on build if I
> tried to change to some bogus function name, Can
> anybody please tell me why?
>
> What I want to do here is: disable the submit button
> until the required text field was filled.
>
> 
> function checkField() {
> return(!document.form1.textfield.value == "")
> }
> 
>
> action="myAction"
>   name="form1"
>   onsubmit="checkField()">
>  
>  
>  
>
>
>
> __
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



AW: JavaScript function inside JSP not working

2003-11-20 Thread Mario . Gleichmann2
Hi,

as far as i know, the -tag doesn't support an attribute called
'name'.
Maybe you'll take a look at
http://jakarta.apache.org/struts/userGuide/struts-html.html#form

(if there is a way to give the form element a name in order to refer to it
by this name, i am very interested in the answer :o))

Greetings

Mario Gleichmann

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 20. November 2003 04:57
An: [EMAIL PROTECTED]
Betreff: JavaScript function inside JSP not working


I include the following javascript function in my .jsp
file, but this function is not being called at all.  I
won't even get any javascript error on build if I
tried to change to some bogus function name, Can
anybody please tell me why?

What I want to do here is: disable the submit button
until the required text field was filled. 


function checkField() {
return(!document.form1.textfield.value == "")
}
 
 
 
 
 
 



__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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

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



R: R: who want to join xmoon project ?

2003-11-13 Thread Mario
http://forum.hibernate.org/viewtopic.php?t=925033&highlight=dynabean

-Messaggio originale-
Da: David Friedman [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 13 novembre 2003 16.25
A: Struts Users Mailing List
Oggetto: RE: R: who want to join xmoon project ?

Mario,

Where did you hear that dynabean will not be supported?  I'm using the 2.1b6
release and it has components that can be dynabeans.  I didn't see any notes
about it going away anytime soon. (not that I've used those dynabean
components yet).

Regards,
David

-Original Message-
From: Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 10:02 AM
To: 'Struts Users Mailing List'
Subject: R: R: who want to join xmoon project ?


Yes but i'll remove it because hibernate probably will not support dynabean
in the future. i'm using commons sql and i'll publish another demo soon (i
hope)

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: giovedì 13 novembre 2003 15.50
A: Struts Users Mailing List
Oggetto: Re: R: who want to join xmoon project ?


I noticed that the example has a couple of Hibernate xml files in it aswell
?

Mike



|-+---->
| |   "Mario"  |
| |   <[EMAIL PROTECTED]|
| |   idea.com>|
| ||
| |   13/11/2003 11:14 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
|-+>

>---
---|
  |
|
  |   To:   <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  R: who want to join xmoon project ?
|

>---
---|




Added new documentation about the login example. A quick tour of xmoon.



http://www.xmoon.it



-Messaggio originale-
Da: Mario [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 novembre 2003 14.30
A: '[EMAIL PROTECTED]'
Oggetto: who want to join xmoon project ?



It's an opensource project that speed up your development time.

http://www.xmoon.it <http://www.xmoon.it/>



contact me.















The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.




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



R: R: who want to join xmoon project ?

2003-11-13 Thread Mario
Yes but i'll remove it because hibernate probably will not support dynabean
in the future. i'm using commons sql and i'll publish another demo soon (i
hope)

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 13 novembre 2003 15.50
A: Struts Users Mailing List
Oggetto: Re: R: who want to join xmoon project ?


I noticed that the example has a couple of Hibernate xml files in it aswell
?

Mike



|-+>
| |   "Mario"  |
| |   <[EMAIL PROTECTED]|
| |   idea.com>|
| ||
| |   13/11/2003 11:14 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
|-+>
 
>---
---|
  |
|
  |   To:   <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  R: who want to join xmoon project ?
|
 
>---
---|




Added new documentation about the login example. A quick tour of xmoon.



http://www.xmoon.it



-Messaggio originale-
Da: Mario [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 novembre 2003 14.30
A: '[EMAIL PROTECTED]'
Oggetto: who want to join xmoon project ?



It's an opensource project that speed up your development time.

http://www.xmoon.it <http://www.xmoon.it/>



contact me.















The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.




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



R: who want to join xmoon project ?

2003-11-13 Thread Mario
Added new documentation about the login example. A quick tour of xmoon.

 

http://www.xmoon.it

 

-Messaggio originale-
Da: Mario [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 12 novembre 2003 14.30
A: '[EMAIL PROTECTED]'
Oggetto: who want to join xmoon project ?

 

It’s an opensource project that speed up your development time.

http://www.xmoon.it <http://www.xmoon.it/> 

 

contact me.

 

 

 



Direct Call of some Actions within another Action ?

2003-11-12 Thread Gleichmann, Mario
Dear Community,

is it possible to call one or more Actions within another Action (let's say
a 'Composite-Action') ?

I want to call a certain Method of a collection of Actions in a row (let's
say i want to call update-methods within some DispatchActions and then do
the rest of the work in the Composite-Action, depending of the results of
the called update-Methods).

The calls should happen inside the execute-method of another action (the
'Composite-Action' - particularly i dont be able to use the standard
mechanism of an action-chain (by forwarding from one action to another
action) because the Composite-Action should keep control e.g. of the order
of the calls).

How can i get a reference to an instance of the actions i want to call? Is
there some way to use the RequestController or is there any Factory or
ProviderClass i am allowed to use in order to get these References (i am
sure it is not a good idea to instantiate the Actions by myself :o))?

... or is this approach completely wrong and there is some better way to
solve this problem (maybe extend the RequestController or use a plug-in) ???

Thanks for your help in advance !!! :o)

Mario Gleichmann

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



who want to join xmoon project ?

2003-11-12 Thread Mario
It's an opensource project that speed up your development time.

http://www.xmoon.it  

 

contact me.

 

 

 



AW: Refer to an by name ?

2003-11-10 Thread Gleichmann, Mario
Dear Bryce,

thanks for your quick answer :o)

My problem is to refer to an arbitrary form definition in one of many
possible tiles (so we have more than one form element in the resulting html
page) on client side by javascript (before submiting and validating the form
bean on server side) in order to activate a submit of a certain action
'within' a certain form.
Accessing and submiting the form via javascript should be initiated outside
that form e.g. by a Menu-tile.

Anyhow i have to get a reference to that form definition, yet possible by an
index like documet.form[0] for the first form definition within the
resulting html page, document.form[1] for the second and so on. This works
very well ...

My problem is, that the position, existence and therefore the order of the
form elements could vary and for this reason it is not guaranteed, that i
always refer to the same form element using the same index.
With pure html form-tag i could achieve this by using the appendant name
attribute which declares a name for the form definition (). With this name it is possible to refer to that form
element via javascript by using document.form['myFormName'] ... and
therefore to be independend of the position resp. order of any other form
element which may be in the resulting html page as well.
Unfortunately the struts html:form tag apparently does not support that
feature (giving a form element a certain name)... :o(

Greetings

Mario Gleichmann

-Ursprungliche Nachricht-
Von: Brice Ruth [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 10. November 2003 19:04
An: Struts Users Mailing List
Betreff: Re: Refer to an  by name ?


The form name attribute is set to the name of the ActionForm that your 
Action takes as its input. This is done automagically, without 
specifying a name="" attribute in the html:form tag itself. This is to 
support javascript validation, I believe.

Gleichmann, Mario wrote:

>Dear Struts-Community,
>
>assumed we use a composite-view, which is composed by multiple 'tiles'
>delivered by several Design-Team members. 
>Every of this tile is free to define it's own form-areas ()
>and appropriate action(s).
>Furthermore we have a 'Menu-Tile' which Buttons/Links refers to certain
>tiles in the content area. Clickin' such a Link should submit a certain
>Action (using more than one Action within a form and therefore a
>DispatchAction) in a certain form (including all the properties within the
>form).
>
>This could work like this ...
>
>
>...
>
>   function callAction(targetAction) {
>   setAction(targetAction);
>   document.forms[0].submit();
>   }
>
>   function setAction(targetAction) {
>   document.forms[0].dispatch.value=target;
>   }
>
>
>...
>
>...
>   
>   MENU
>   
>   
>Add 
>   
>Delete 
>   
>   onclick="callAction('fix');" />
>   
>...
>
>...
>
>
>My Problem is the fact, that i have to refer to a certain form by an index
>(document.forms[0]...) but not by name (document.forms[myFormName]).
>Since we have more than one form in the content area (and this could change
>dynamically, so i do not know how many form definitions we have after all)
>it is not assured that i always refer for sure to the same form by using an
>index. 
>If i could assign a name to a form-definition (like name="myFormName"...> - see 'pure HTML form-tag attributes') than the
>position of the form within the content-area would be irelevant since i
>refer to that certain form by using its name, like ...
>
>
>
>function callAction(targetAction, formName) {
>   document.forms[formName].dispatch.value=targetAction; <-- correction
>   document.forms[formName].submit(); <-- correction
>}
>
>...
>
>...
> Loeschen 
>...
>
>
>...but the  tag does not offer an attribute to set a forms
>name ...
>Is there any chance to achive this (refer to a form by name but not by
>index) or may be another / better solution for this problem? Any help is
>appreciated !!! :o)
>
>Thanks in adcance :o))
>
>
>Mario Gleichmann
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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



Refer to an by name ?

2003-11-10 Thread Gleichmann, Mario
Dear Struts-Community,

assumed we use a composite-view, which is composed by multiple 'tiles'
delivered by several Design-Team members. 
Every of this tile is free to define it's own form-areas ()
and appropriate action(s).
Furthermore we have a 'Menu-Tile' which Buttons/Links refers to certain
tiles in the content area. Clickin' such a Link should submit a certain
Action (using more than one Action within a form and therefore a
DispatchAction) in a certain form (including all the properties within the
form).

This could work like this ...


...

function callAction(targetAction) {
setAction(targetAction);
document.forms[0].submit();
}

function setAction(targetAction) {
document.forms[0].dispatch.value=target;
}


...

... 

MENU


 Add 

 Delete 



...

...


My Problem is the fact, that i have to refer to a certain form by an index
(document.forms[0]...) but not by name (document.forms[myFormName]).
Since we have more than one form in the content area (and this could change
dynamically, so i do not know how many form definitions we have after all)
it is not assured that i always refer for sure to the same form by using an
index. 
If i could assign a name to a form-definition (like  - see 'pure HTML form-tag attributes') than the
position of the form within the content-area would be irelevant since i
refer to that certain form by using its name, like ...



function callAction(targetAction, formName) {
document.forms[0].dispatch.value=targetAction;
document.forms[0].submit();
}

...

...
 Loeschen 
...


...but the  tag does not offer an attribute to set a forms
name ...
Is there any chance to achive this (refer to a form by name but not by
index) or may be another / better solution for this problem? Any help is
appreciated !!! :o)

Thanks in adcance :o))


Mario Gleichmann


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



R: struts plugin

2003-10-31 Thread Mario
Yes, just point to /struts/console.html
You can clear xml cache and see global/session scope objects.


-Messaggio originale-
Da: gianluca [mailto:[EMAIL PROTECTED] 
Inviato: venerdì 31 ottobre 2003 17.09
A: '[EMAIL PROTECTED]'
Oggetto: Re: struts plugin

Really good. How can i clear xtask cache ?



>  www.xmoon.it



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



R: struts plugin

2003-10-30 Thread Mario
I'll like to integrate with ibernate but i found a problem, it manage
dynabean as component and nota s root object.
I would like to find other people that want to collaborate.



-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 30 ottobre 2003 16.13
A: Struts Users Mailing List
Oggetto: Re: struts plugin


Sounds very interesting. I am going to be working onto something similar to
this focusing on
Self Describing Business object. Trying to steer away from doing any
duplicate work and also
cut down code written. Are you going to intergrate with Hibernate or
Ibatis?


Mike



|-+>
| |   "Mario"  |
| |   <[EMAIL PROTECTED]|
| |   idea.com>|
| ||
| |   30/10/2003 01:17 |
| |   PM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
|-+>
 
>---
-|
  |
|
  |   To:   <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  struts plugin
|
 
>---
-|




XMoon demo 0.2 released



http://www.xmoon.it <http://www.xmoon.it/>













The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.




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

2003-10-30 Thread Mario
XMoon demo 0.2 released

 

http://www.xmoon.it  

 

 



Running struts service like Ant

2003-10-04 Thread Mario
http://www.xmoon.it  

easy and open source

 







user

glob







   users = glob.get("users");

   

   if (dynaform.get("usr") != null){

   usr = dynaform.get("usr");

   user.set( "usr", usr );

   for (int i = 0; i <
users.size();i++){

   if
((users.get(i)).equals(usr)){

 
user.set("pass","true");

 
xwb.setForward("home");

   }

   }

   }

   

   if (dynaform.get("pwd") != null){

   pwd = dynaform.get("pwd");

   user.set( "pwd", pwd );

   }



 





struts plugin

2003-10-02 Thread Mario
Hello,

this is the link   www.xmoon.it

 

 



how to solve case sensitive variable into a criteria

2003-07-18 Thread Mario Signorelli
Hi to all 

I'have a problem with case sensitive variable into a criteria

Criteria crit = new Criteria();
crit.addEqualTo("USERNAME", username);
crit.addEqualTo("PASSWORD", password);

Query query = new QueryByCriteria(Utenti.class, crit);
Collection lista = broker.getCollectionByQuery(query);

Into the db the username is 'a' and the password 'a' and if I put in the text login 
'A' e password 'A' it doesn't find the user. 
Is there any method to solve this case sensitive problem?

Thanks a lot 

Mario Signorelli
PIMM S.R.L.
via Lampugnano, 144
20151 - Milano
Tel. - 02/48206371
Fax. - 02/48206437

  



Multi-Lingual collections with Struts HTML tags?

2001-04-23 Thread Mario Laureti

Hello,

  I created a GetCodeTable Tag that loads data from a database table into a collection.
  This way I can re-use struts html tags... Great!

  

  

  

  But now I want to support two languages: english_description and french_description

  Do I have create a new tag, extend it from the Struts OptionsTag  to allow this:

  

  

  Or is there a cleaner way to do this?

Thanks in advance.

Mario L.




Re: Performance of of action?

2001-04-19 Thread Mario Laureti

I am not sure if I understand your question correctly but
have you check the struts-template web application example
that comes with the struts framework? This might give you
a good indication on how to build a good template using Struts.

You can also create custom tags instead of having Java in your jsp...

Mario L.

>>> [EMAIL PROTECTED] 04/19/01 11:27AM >>>
I'm trying to decide how to structure our app.  We want to use templates to
separate the layout from the content, and we want to use the Struts
framework to separate the business logic from the presentation.  I've been
converting several parts of our site and am happy with the results.
However, we also want to, as much as possible, separate out reusable parts
of the presentation into separate JSP pages (sort of "components").  For
example, we have a header and have it separated into header.jsp.  This JSP
page can take parameters and can also adjust itself based on its
"environment", that is, what it finds in the request.  But to do so, it has
a bunch of Java in the JSP (it was also developed before I came and without
an eye to keeping the business logic separate).

What I'd like to do is change the header.jsp to pull the Java out.  I see
several possible ways to do that.  One is to essentially develop an Action
that sets up for the JSP and then forwards to the JSP.  So, for example,
that would change the code in my current pages like:



to look like:



but I'm not sure what the performance implications of this would be.  That
is, what is the difference between a  of a JSP page versus an
Action.  In the case of the Action, it would be routed through the app
server (resin in our case...for now), through the ActionServlet and Action,
and then forwarded to the JSP.  (Now that I think of it, I'm not sure this
would even work, but I think it should.)  In the JSP case, is it also routed
through the app server, so the only difference is where the business logic
is done?

Another idea I have is to create one or more custom tags that will set up
for the header JSP.  That way, the JSP could be included just as header.jsp,
but the Java and business logic would have been extracted to the custom
tag(s).  The negative of this is it is a departure from the Struts
architecture and puts the business logic in a sort of unexpected place.

The last idea I had was to somehow cause the Action for the enclosing page
(that is, the page that does the  of the header) to do the
logic and setup necessary for the header.  Then the header would just get
what it needs from the request and could remain a JSP, not an Action.  The
negative of this is that the logic for the header would be performed by the
Actions of all the pages, although it could be included in the BaseAction
that I extend for my Actions.

BTW, we have one motivation that others may not have: we are developing an
example application that will be given to our customers to base their app
on.  So we want to structure things in the best, most understandable way.

Thanks for any help,
Scott




An HTTP POST goes in the Action.perform(..) method, what aboutthe HTTP GET?

2001-04-19 Thread Mario Laureti

Hello,

  I have 2 questions:

  1) How can I catch when a HTTP GET is performed on an action?

  2) Also in the web.xml can we define a "sort of" welcome-action?

  
 login.do
  

  Instead of

 
login.jsp
 

Many thanks in advance.

Mario Laureti



  




Re: Homesite tags

2001-02-08 Thread Mario Busche

Hi Rob,

i have written a very simple program which converts the tld files
to some simple tag editors.

It's very simple, but for my purpose it behaves very well.

bye
Mario

Rob Leland schrieb:
> 
> Just downloaded an eval for Homesite 4.5
> and wanted to know if anyone has started
> creating HomeSite tag editors for struts?
> It looks simpler than using Ultra Dev.
> I will probbaly only have the chance to
> do one or two tags, but wanted to give it a go.
> 
> -Rob
 TldToVtm.java


Formating data for display

2000-11-20 Thread mario . busche

Hello all,

after playing a while with struts i have a little question. Where is the 
best place to put the formating code for the data, e.g. to formate date 
and currency values. A special tag, the form bean + action class or the 
model beans ???.

The example application contains no hints in this direction.

Any suggestion are welcome.

bye 
Mario