RE: Problems with multibox and checkbox

2003-03-11 Thread Jörg Maurer
Hi Jason! 

reading through your mail, i got especially attracted on your solution
combining XSLT with struts tags. I am currently doing some after-project
considerations, having been my first struts project(and also the first
for my actual company, hence having no one to having an expertise talk).
One action point on my list is the question : "How to control which
model elements map to which view elements and vice versa(especially at
runtime)." 

So i would be a great honour for me if you 

- can write me a few words because of out of what considerations you are
using XSLT and struts tags.

- devote a second of your precious time to my topic "How to control
which model elements map to which view elements and vice versa" - if and
how XSLT can help me to come up with a more generic solution. E.g. I
would like features as described in struts-layout ( taken from
http://struts.application-servers.com/) "Let's image you are running an
online shop selling books. There is one jsp to display information about
the book (title, author, size, price etc.). The customers can only view
the information, but the site administrator can view and modify the
information. Normally, you would have to make two jsps to achieve that:
one to display the information, and one to modify them (you can also
make one jsp with complicated logic stuff in it). With Struts-Layout, it
is possible to make only one jsp, without logic in it.The goals is : One
user object to create / edit / view, one DistpachAction class, one Form
class, and one jsp." - but i don't like that taglib approach very much,
because it is becoming too cohesive to the dependent frameworks.


Thank you so much for your inputJörg Maurer

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 11. März 2003 08:42
To: Struts Users Mailing List
Subject: RE: Problems with multibox and checkbox


I orginally thought the problem was with struts, but it seems to be an
xsl
problem I am having.   I am generating many struts forms using jsp/xml
syntax and struts.  It is working quite nicely so far.  I am using
,,... with no problems, but for some
reason my xsl style sheet renders  or 
without
html prefix.

I found the problem for anyone who may need an answer.  It was nothing
to do
with checkbox or multibox.  Since I was calling this from within and XSL
template, I needed to declare the tag library in the xsl style sheet as
well
as the jsp:root.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 12:21 AM
To: Struts Users Mailing List
Subject: Problems with multibox and checkbox


I have tried both of the following, but I can not get this to work.




I have a group of checkboxes that I would like to have filled after a
validation attempt.
If I add either of the following I get the following rendered to the
browser.
I have radio, and text fields working fine.




What am I missing?
Do I need to set chkItems to zero length in the form reset() method?
If so, what is the syntax?

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering



-
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: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-08 Thread Jörg Maurer
Wondering why i have no chance to catch any exception i did some
investigation on that topic , so i consulted the java logic of your
insert tag. it is that ~good~ shielded against any exception bubbling,
that my own error handler logic never gets a chance because ALL
EXCEPTIONS HAVE BEEN CAUGTH AND NEVER RETHROWN. next is snip from your
Insert Tag(commented out is your code, underneath that is what i want -
throw new JspException(ex.getMessage())) : 

} catch (ServletException ex) {
Throwable realEx = ex;
if (ex.getRootCause() != null) {
realEx = ex.getRootCause();
}
//  processException(
//  realEx,
//  "[ServletException in:" + page +
"] " + realEx.getMessage() + "'");
throw new JspException(ex.getMessage());
} catch (Exception ex) {
//  processException(ex, "[Exception in:" +
page + "] " + ex.getMessage());
throw new JspException(ex.getMessage());
} finally {
// restore old context
// done only if currentContext not null
(bug with Silverstream ?; related by Arvindra Sehmi 20010712)
if (currentContext != null)
pageContext.setAttribute(

ComponentConstants.COMPONENT_CONTEXT,
currentContext,

pageContext.REQUEST_SCOPE);

}
return EVAL_PAGE;

Looking at Geary´s template insert tag, he always chose to do "throw new
JspException(ex.getMessage());".

Your logic displays by default a simple stack trace(Exception type and
exception message) of where the tile should be. I dont want to show that
to my customer, but as i said, i have no change to display my  jsp-error
page instead.  

So if that "feature" is not here for any other reason, i consider that
being a unlucky design for me, because i have to at least vesion my own
tiles.jar or do some dirty subclassing your tag.

I would appreciate your comment.

Greets Jörg



-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 06. März 2003 11:57
To: Struts Users Mailing List
Subject: Re: how to catch exception using tiles thrown by e.g.
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude




Jörg Maurer wrote:

>>>Cedric 
>>>  
>>>
>exactly as you said,  is used. despite the big try-catch block
>approach, its unclear to me why error-page in web.xml doesn#t get a
try.
>
>Additionally i searched for similar behaviour and all i found was
>following 
>"page 52 of the JSP 1.2 spec : 
>Note: if autoFlush=true then if the contents of the initial Jsp-
>Writer has been flushed to the ServletResponse output stream
>then any subsequent attempt to dispatch an uncaught
>exception from the offending page to an errorPage may fail.
>When an error page is also indicated in the web.xml
>descriptor, the JSP error page applies first, then the web.xml
>page.".
>
>You as a more experienced one than myself, does it make some sense to
>the issue?
>
  This make sense: Your page is made of several tiles. The first ones 
have already been compute, and so some outputs have been flushed. Then, 
one of the  throw an exception. This exception is not catched

by the jsp mechanism because the output stream has already been flushed
...

   Cedric

>
>-Original Message-
>From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
>Sent: Dienstag, 04. März 2003 18:35
>To: Struts Users Mailing List
>Subject: Re: how to catch exception using tiles thrown by e.g.
>org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
>
>
>
>  I suppose that your exception is thrown by a  tag
in
>
>a jsp.
>  This exception is thrown by the tiles framework, which know nothing 
>about the struts exception mechanism, so it can't be used. The
exception
>
>is then propagated by the tag handler and reach the jsp page (the tile 
>jsp). If there is an exception handler associated to the jsp, it is 
>called, if there is no handler, the exception is propagated to parent 
>page inserting this one. If the parent page have inserted the child
page
>
>with an , then the  catch the exception and show
it.
>
>Normally, the jsp exception handling should work, but it appear that it

>is not always the case.
>
>  A workaround is to put a big try/catch in the jsp throwing

RE: nested:checkbox fail to set the property to false

2003-03-08 Thread Jörg Maurer
despite the fact doing some research in that issue anywhere(gives 100+
q&a) which might give you better explanation than mine, flaw is in http
protocol, not sending name-value pairs of unchecked checkboxes back.

-Original Message-
From: Joao Araujo [mailto:[EMAIL PROTECTED]
Sent: Samstag, 08. März 2003 04:33
To: [EMAIL PROTECTED]
Subject: nested:checkbox fail to set the property to false


Hi,

I am using nested:checkbox for  a boolean property.
Unfortunately, struts is not setting the property of the
formbean
to false when I unchecked it on the screen. On the other hand
when I check the box , struts set the property correctly. Any
clue?


ENVIRONMENT.
1. Struts 1.1b2
2. Tomcat 4.1.12

Thanks a lot for the attention provided.

Joao, 


-
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: Database datasource runtime configuration

2003-03-08 Thread Jörg Maurer
use database pooling dbcp from jakarta commons instead - has connection
pooling and works like a charm + super setup description(despite some
flaws, but no problem for us being experienced ones ;-) ).

-Original Message-
From: Joao Araujo [mailto:[EMAIL PROTECTED]
Sent: Samstag, 08. März 2003 04:52
To: [EMAIL PROTECTED]
Subject: Database datasource runtime configuration



Hi,


I am using the configuration of the datasource/database inside
the 
struts-config.xml file.
That 's been giving me some backwards. For example I wish to
change the 
hostname
after installing the whole software. I, then, need to open the
file and 
change the configuration
for this.

I wish I could put this in another file and set the
configuration at run 
time. Does anyone know
how to do that?

SAMPLE CONFIGURATION














Thanks,

Joao, 


-
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: xslt in jsp

2003-03-08 Thread Jörg Maurer
definitly give JSTL a try! Myself not applied it, but read book by Bayer
Shawn - devoted taglibs to xml and xml transformation for usage in jsp. 

-Original Message-
From: bobd [mailto:[EMAIL PROTECTED]
Sent: Samstag, 08. März 2003 20:02
To: [EMAIL PROTECTED]
Subject: xslt in jsp


I have a jsp that needs to retrieve XML from a bean
(stored in the session) and then execute a
transformation.  

what is the easiest way to do this?  Having difficulty
using , as well as locating documentation
on this.  

thanks,
-b

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.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]



RE: How do you keep your session junk free?

2003-03-07 Thread Jörg Maurer
AFAIK, why not put form bean in hashtable under well known name in
application scope - last resort, cause as you mentioned request not
applicable, session not available you are in full charge of form
bean. populate that bean in application scope as you like from newly
created form bean or replace it all at once. Have to e.g. prepend key
with user information(getSessionID()) to get same bean for user back?

Greets Jörg

-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]
Sent: Freitag, 07. März 2003 10:33
To: Struts Users Mailing List
Subject: How do you keep your session junk free?


How do you prevent the session from filling up with junk from previous 
screens?  Or to put it another way:

I have written some screens that have to store the form bean in the 
session scope as each screen is interconnected and uses the same 
instance of the form bean.   If I change the scope to request a new form

bean is created for each screen (every time a jsp file is rendered).  Is

there a way of implementing multiple screens with the same form bean 
with a request scope?

Julian


-
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: List-backed properties

2003-03-06 Thread Jörg Maurer
Hi hans !

As my best practice, the thing missing is following : 

in any action form is a reset method per subclassing action from.
1st-class use of reset for me is to set every action form instance
variable to some initialising state. so what is the initialising state
of an array list? exactly, first of all the number of the elements you
want to fill in.

how do we know how many of these elments will there be? because we
queried our database before and remembered the count of records in our
action class. with this knowledge, call reset with the count - but hold
- there is no parameter to give to reset!

So i made in every action from class my own reset method called
myReset(int prepare_for_count) - 2 advantages : 
1.)as reset() is called always by framework(after each new request), i
can´t manage session state in action form with this solution. exception
to this case is well known checkbox problem. so i am in full charge of
when and how myReset() is called.
2.)i can inform myReset of prepare_for_count value.

so inside myReset(int prepare_for_count){ //there will be something like

values = new ArraList();
values.setSize(prepare_for_count);

}

after that call, i fill in data from my result set in action form.

1 disadvantage : i have to take care of THAT i call myReset().

Hope that helps Jörg


-Original Message-
From: Johann Uhrmann [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 06. März 2003 10:47
To: Struts Users Mailing List
Subject: List-backed properties


Hello all,

I am a little bit confused about an example for list-backed properties:

The documentation at 
http://jakarta.apache.org/struts/userGuide/building_controller.html
contains the following example in section 4.3.2:

public FooForm extends ActionForm {

 private final List values = new ArrayList();

 public void setValue(int key, Object value) {
 values.set(key, value);
 }

 public Object getValue(int key) {
 return values.get(key);
 }
}


As "values" is initialized as empty ArrayList, any call to values.set 
causes an IndexOutOfBoundException to be thrown.
(see also: 
http://java.sun.com/j2se/1.4.1/docs/api/java/util/ArrayList.html#set(int
,java.lang.Object) 
  )

Therefore, I cannot imagine how that example could ever work.
Could someone please explain me that discrepancy?

Thanks in advance,

Hans


-
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: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-04 Thread Jörg Maurer
>> Cedric 
exactly as you said,  is used. despite the big try-catch block
approach, its unclear to me why error-page in web.xml doesn#t get a try.

Additionally i searched for similar behaviour and all i found was
following 
"page 52 of the JSP 1.2 spec : 
Note: if autoFlush=true then if the contents of the initial Jsp-
Writer has been flushed to the ServletResponse output stream
then any subsequent attempt to dispatch an uncaught
exception from the offending page to an errorPage may fail.
When an error page is also indicated in the web.xml
descriptor, the JSP error page applies first, then the web.xml
page.".

You as a more experienced one than myself, does it make some sense to
the issue?

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 04. März 2003 18:35
To: Struts Users Mailing List
Subject: Re: how to catch exception using tiles thrown by e.g.
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude



  I suppose that your exception is thrown by a  tag in

a jsp.
  This exception is thrown by the tiles framework, which know nothing 
about the struts exception mechanism, so it can't be used. The exception

is then propagated by the tag handler and reach the jsp page (the tile 
jsp). If there is an exception handler associated to the jsp, it is 
called, if there is no handler, the exception is propagated to parent 
page inserting this one. If the parent page have inserted the child page

with an , then the  catch the exception and show it.

Normally, the jsp exception handling should work, but it appear that it 
is not always the case.

  A workaround is to put a big try/catch in the jsp throwing the 
exception ;-(. This will be improved in future versions.

     Cedric

Jörg Maurer wrote:

>Hi struts people!
>
>I have really defined everywhere i think i can put an exception handler
>for servlet exception : 
>1.) in my base layout.jsp an <%@
>errorPage='/pages/common/error/errorsGeneralHandler.jsp'%>
>2.) in struts config a global exception handler
> 
>  path="pages/common/error/errorsGeneralHandler.jsp"
>type="javax.servlet.ServletException"/>  
>  
>3.) in web.xml
>  
>javax.servlet.ServletException
>/pages/common/error/errorsGeneralHandler.jsp
>  
>
>Still ServletException slip through my guards. Last know point as stack
>trace shows below is
>org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilS
t
>rutsModulesImpl.java:122) , which throws ServletException but is never
>catchable to me. The point is not the FileNotFound, which is pretty
>clear to me, but why such exception doesn´t hit any of my error
handler.
>
>Any hints appreciated!
>
>
>2003-03-04 12:36:06 ApplicationDispatcher[] Servlet.service() for
>servlet jsp threw exception
>javax.servlet.ServletException: /pages/wf_category/pager_region.jsp
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWr
a
>pper.service(IDEJspServlet.java:183)
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFi
l
>e(IDEJspServlet.java:246)
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJ
s
>pServlet.java:339)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
c
>her.java:683)
>at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis
p
>atcher.java:574)
>at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa
t
>cher.java:497)
>at
>org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.j
a
>va:819)
>at
>org.apache.jsp.wf_0005fcategory_0005fchoose$jsp._jspService(wf_0005fcat
e
>gory_0005fchoose$jsp.java:107)
>at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWr
a
>pper.service(IDEJspServlet.java:173)
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFi
l
>e(IDEJspServlet.java:246)
>at
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJ
s
>pServlet.java:339)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
c
>her.java:683)
>at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis
p
>atcher.java:574)
>at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa
t
>cher.java:

how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-04 Thread Jörg Maurer
Hi struts people!

I have really defined everywhere i think i can put an exception handler
for servlet exception : 
1.) in my base layout.jsp an <%@
errorPage='/pages/common/error/errorsGeneralHandler.jsp'%>
2.) in struts config a global exception handler
 

  
3.) in web.xml
  
javax.servlet.ServletException
/pages/common/error/errorsGeneralHandler.jsp
  

Still ServletException slip through my guards. Last know point as stack
trace shows below is
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilSt
rutsModulesImpl.java:122) , which throws ServletException but is never
catchable to me. The point is not the FileNotFound, which is pretty
clear to me, but why such exception doesn´t hit any of my error handler.

Any hints appreciated!


2003-03-04 12:36:06 ApplicationDispatcher[] Servlet.service() for
servlet jsp threw exception
javax.servlet.ServletException: /pages/wf_category/pager_region.jsp
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:183)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:819)
at
org.apache.jsp.wf_0005fcategory_0005fchoose$jsp._jspService(wf_0005fcate
gory_0005fchoose$jsp.java:107)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
at
org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilSt
rutsModulesImpl.java:122)
at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:818)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
at
org.apache.jsp.base_0005flayout$jsp._jspService(base_0005flayout$jsp.jav
a:1006)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWra
pper.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFil
e(IDEJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJs
pServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:355)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1033)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:269)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til
esRequestProcessor.java:249)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:303)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:496)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServ

Question using transactional tokens

2003-03-01 Thread Jörg Maurer
Dear struts people ! 

What am i doing wrong - must be some sort of double submit, but why ?

Let me sketch my problem to you - using for the first time transactional
tokens, i have the following setup :
1. in my jsp :

.

   

...


2. where submitSelect is a javascript function:
function submitSelect(method) {
document.forms[0].method.value = method;
document.forms[0].submit();
}

3. and in my action class subclassing dispatch action there is method
save().

Following strange behaviour (to me) occurs : 

1.) having beakpoint inside save(...) method in action class shows it
hit the right method and is working.
2.) but after "return mapping.findForward("WF_PARAMETER_CHOOSE");" from
my action, struts complains with status 404 :

message Request[/parameter] does not contain handler parameter
named method

description The request sent by the client was syntactically
incorrect (Request[/parameter] does not contain handler parameter named
method).

3.)it worked before deciding to use transactional tokens with :



 

So your help is appreciated, thanks Jörg






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



RE: [OT] (Slightly OT) Accessing individual array elements (was Re: "multiple" problems)

2003-02-24 Thread Jörg Maurer
DO NOT NEVER EVER OVERLOAD METHOD NAMES of JAVA BEANS. NEVER. I swear to
you, i was going mad about this 2 weeks ago. Sorry I didn´t catch your
problem earlier. My experience - INTROSPECTION DONE BY STRUTS CANT
DISTINCT on METHOD parameters - JUST BY METHOD NAME! First come,
first serve - or sth. like that.

I always use sth. like this in Action Forms - DENOTE PLURAL vs. SINGULAR
:


protected Hashtable[] chooseParams = new Hashtable[200];

...


  public Hashtable[] getChooseParams() {
  return this.chooseParams;
  }
  
  public Hashtable getChooseParam(int index) {
  return (Hashtable)this.chooseParams[index];
  }

  public void setChooseParam(int index, Hashtable chooseParams)
{
  this.chooseParams[index] =  chooseParams;
  }

  public void setChooseParams(Hashtable[] eventUpdateParams) {
  this.chooseParams = chooseParams;
  }

-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 18:12
To: Struts Users Mailing List
Subject: [OT] (Slightly OT) Accessing individual array elements (was Re:
 "multiple" problems)


Ah-HAH!  I was adding back in some other methods and broke it again, but
I
think I get it.

My "setter" method is called "public void setIds (String ids[])" -- when
I
created a method called "public void setIds(int i, String ids)" that
killed
it because BeanUtils.populate was calling the wrong setter method.

What is the "correct" convention for creating getter/setting methods for
accessing individual entries within an Array when you ALSO have
getter/setters that handle the array as a whole?  I thought I had it
right -- I thought you overloaded the array methods and stuck an index
in.

- Original Message -
From: "Ian Hunter" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 11:57 AM
Subject: Re:  "multiple" problems


> It's working perfectly now.  I don't know for sure what fixed it; I
compared
> the example code to mine, started pulling stuff OUT of my class,
Tomcat /
> Sun ONE Studio started acting funny, so I closed everything, blew away
the
> Tomcat /work directory, tried again, and *poof* no more errors.  I
think I
> had something cached that was screwing me up.  Thanks for all the
input...
>


-
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: "multiple" problems

2003-02-23 Thread Jörg Maurer
I will choose your left leg cause i am a kind man and hint you to the
your_jakarta-struts-1.1-b3-src_dir\web\exercise-taglib\html-select.jsp.

-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 03:20
To: Struts Users Mailing List
Subject:  "multiple" problems


RGH

I would give one of my legs right now for a working example of an
 usage that populates an array in an
ActionForm.

Help?


-
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: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Okay, thanks for clarifying this. As this is my first struts project and
also first time using jsp with a framework like this, I feel a little
uncomfortable about all this new tags.

However, now sure wanting to use JSTL, i just downloaded the jstl
reference impl from struts taglib group, where readme says following :
...
  CORE LIBRARY
EL:  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
RT:  <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt";
%>

Okay, now i read in
http://www.onjava.com/pub/a/onjava/2002/03/13/jsp.html?page=2
"In order to be able to support both the scripting (rtexprvalues) and
the expression language (elexprvalues) worlds, JSTL has the concept of
twin tag libraries: one that supports the expression language, and one
that supports request-time expression values. It's assumed that most
developers will use the EL-based tag libraries; however, it's still
possible for scripting page authors to use JSTL with rtexprvalues. Using
the rtexprvalues will provide the benefit of type safety and performance
via the request-time based tag libraries (their URI simply has the -rt
suffix appended)."

Question is : If i use the RT library as i want to expose it as
scripting variable, I learned that i still have to use  or
struts  to expose a scripting variable, right ? - no
support for that in JSTL cause  is deprecated ?!

But scoping to my original problem, i think you solution 
> 
>
> 
will serve my aim quite right.

Thanks Jörg

-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]
Sent: Sonntag, 23. Februar 2003 18:29
To: Struts Users Mailing List
Subject: RE: seeking shortcut name of current FormBean inside every
html:from


actually, scratch what i just said about not needing the bean:define
tag,
you would need it because the html:form tag will not make the form
available
as a scripting variable.  That's why I'd use the EL, since it will not
need
to create a scripting variable.

> -Original Message-
> From: Jörg Maurer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 23, 2003 11:19 AM
> To: Struts Users Mailing List
> Subject: RE: seeking shortcut name of current FormBean inside every
> html:from
>
>
> Hi John, thanks for answering - you might be right on the issue I
should
> use a EL tag instead of scriplet.
>
> What i am basically interested in : When processing a jsp using a
> html:form tag, i guess html:form brings the current form bean object
> into some scope accessible to my jsp - but under what name does that
tag
> expose it?
>
> My form bean is defined in struts config as
>
>   
> type="com.ucpmorgen.mobiletix.app.param.ParameterForm">
>   
>
> Cause when used (please forgive my ignorance on your EL solution for
> now): <% if (ParameterForm.getStructure_changeable().intValue() == 1)
{
> %> so.. uuus ... the jsp compiler always asked for a static method
> on ParameterForm. uuus , because I suddenly think that naming the
> variable like the class of form bean( the name after it is exposed
> later), is an most unlucky coincident, isn't it?!?!!? -> if is, then i
> should rename the bean name in the struts config.
>
> Anyway, is the exposed from bean cast to the correct type for usage :
> - inside EL-Tag you wrote it is correctly typed
> - but for scriplet, isn't it just exposed as being of type
> java.lang.Object ?!?!
>
>
> -Original Message-
> From: John Espey [mailto:[EMAIL PROTECTED]
> Sent: Sonntag, 23. Februar 2003 17:21
> To: Struts Users Mailing List
> Subject: RE: seeking shortcut name of current FormBean inside every
> html:from
>
>
> maybe I'm missing something, but if you use an EL tag (like the
core:if
> or
> core:choose or logic-el:equals) you wouldn't need to do any scriptlet
or
> casting.
>
> 
>
> 
>
> as far as the constants, i'm not sure I follow.
> Hope this helps though...
> > -Original Message-
> > From: Jörg Maurer [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, February 23, 2003 8:40 AM
> > To: Struts Users Mailing List (E-mail)
> > Subject: seeking shortcut name of current FormBean inside every
> > html:from
> >
> >
> > Hi strut-users!
> >
> > Since this post i have been using massively e.g.  > id="parameterForm" name="ParameterForm" type="ParameterForm"/>
> > in my jsp´s to grab the reference to the current FormBean like e.g.
> >
> > 
> > ...
> >  > type="ParameterForm"/>
> > <% if (parameterForm.getStructure_changeable().in

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Hi John, thanks for answering - you might be right on the issue I should
use a EL tag instead of scriplet.

What i am basically interested in : When processing a jsp using a
html:form tag, i guess html:form brings the current form bean object
into some scope accessible to my jsp - but under what name does that tag
expose it?

My form bean is defined in struts config as 




Cause when used (please forgive my ignorance on your EL solution for
now): <% if (ParameterForm.getStructure_changeable().intValue() == 1) {
%> so.. uuus ... the jsp compiler always asked for a static method
on ParameterForm. uuus , because I suddenly think that naming the
variable like the class of form bean( the name after it is exposed
later), is an most unlucky coincident, isn't it?!?!!? -> if is, then i
should rename the bean name in the struts config.

Anyway, is the exposed from bean cast to the correct type for usage :
- inside EL-Tag you wrote it is correctly typed 
- but for scriplet, isn't it just exposed as being of type
java.lang.Object ?!?!


-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]
Sent: Sonntag, 23. Februar 2003 17:21
To: Struts Users Mailing List
Subject: RE: seeking shortcut name of current FormBean inside every
html:from


maybe I'm missing something, but if you use an EL tag (like the core:if
or
core:choose or logic-el:equals) you wouldn't need to do any scriptlet or
casting.





as far as the constants, i'm not sure I follow.
Hope this helps though...
> -----Original Message-
> From: Jörg Maurer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 23, 2003 8:40 AM
> To: Struts Users Mailing List (E-mail)
> Subject: seeking shortcut name of current FormBean inside every
> html:from
>
>
> Hi strut-users!
>
> Since this post i have been using massively e.g.  id="parameterForm" name="ParameterForm" type="ParameterForm"/>
> in my jsp´s to grab the reference to the current FormBean like e.g.
>
> 
> ...
>type="ParameterForm"/>
>   <% if (parameterForm.getStructure_changeable().intValue() == 1)
> { %>
> 
>
> Please mail the applicable "shortcut" name (as i have forgotten the
full
> name, has'nt it been sth. like "org.apache.struts") and in which
> class those constants are denoted. Addendum : Once i got that
reference,
> do i have to cast that reference to the correct form type - like : <%
if
> (((ParameterForm)xxxFromBean).getStructure_changeable().intValue() ==
1)
> { %>
>
>
> Tanks a lot  Jörg
>
> -
> 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]



seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Hi strut-users!

Since this post i have been using massively e.g. 
in my jsp´s to grab the reference to the current FormBean like e.g.


...

<% if (parameterForm.getStructure_changeable().intValue() == 1)
{ %>


Please mail the applicable "shortcut" name (as i have forgotten the full
name, has'nt it been sth. like "org.apache.struts") and in which
class those constants are denoted. Addendum : Once i got that reference,
do i have to cast that reference to the correct form type - like : <% if
(((ParameterForm)xxxFromBean).getStructure_changeable().intValue() == 1)
{ %>


Tanks a lot  Jörg

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



RE: Nested iterate tags

2003-02-19 Thread Jörg Maurer
Okay, but how do you access the contained vector inside "results" ? If
"results" is not itself a vector, you have to access the vector somehow
via sth like "property='getResultSet'" ?!?!?!?!

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 02:25
To: 'Struts Users Mailing List'
Subject: RE: Nested iterate tags


Yes, it's a copy of another jsp, which works, but without the nesting.
results is a request attribute which contains the vector.

Ilya

-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 19, 2003 8:14 PM
To: Struts Users Mailing List
Subject: RE: Nested iterate tags


Are you sure that "results" is a properly exposed bean? I guess that
"name" argument should be that of your ActionForm bean and "results"
should be the "property" argument to this logic:iterate.

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 01:32
To: 'Struts Users Mailing List'
Subject: Nested iterate tags


Hi, I'm hoping someone can help me out.

I have a vector object where each element contains an object, which has
another vector element.

I need to traverse through the first one, while inside the loop, also
traversing the vector within each object.

Can someone give me a lead on how can this possibly be accomplished.

I've tried just nesting one iterate tag within the other and use the
first one's item property for the second one's iteration, but I keep
getting an error that even my outter iterate is telling me that it can't
find a getter method, which exists.



">




">






Can someone please help or give a simple example.

Thanks.

Ilya

-
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: Nested iterate tags

2003-02-19 Thread Jörg Maurer
Are you sure that "results" is a properly exposed bean? I guess that
"name" argument should be that of your ActionForm bean and "results"
should be the "property" argument to this logic:iterate.

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 01:32
To: 'Struts Users Mailing List'
Subject: Nested iterate tags


Hi, I'm hoping someone can help me out.

I have a vector object where each element contains an object, which has
another vector element.

I need to traverse through the first one, while inside the loop, also
traversing the vector within each object.

Can someone give me a lead on how can this possibly be accomplished.

I've tried just nesting one iterate tag within the other and use the
first one's item property for the second one's iteration, but I keep
getting an error that even my outter iterate is telling me that it can't
find a getter method, which exists.



">




">






Can someone please help or give a simple example.

Thanks.

Ilya

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




WOW for struts reflection using multibox + pls assist with usage of nested taglib

2003-02-19 Thread Jörg Maurer
I can't believe it - it works! Look at this : I am currently
(?overengineering) organising my view data in the following way :

TicketTypeForm
| _ property type Vector of  "tickettypeChooseViews"
|...|_ each has 1. property type
vector of "multiBox_ids"
  2. property type Array of
"selectedMultiBox_ids"  


Okay? So now populating them in jsp via :



...and later..
 

   ...and later ..
 

finally...
 
 



 




-> and WOW - they found properly forth and even back. Of course I did
all my reset(mapping, request), beginning from TicketTypeForm's reset
delegating to the reset method of my tickettypeChooseViews.

By the way, my first mistake was, that i used the exposed id TTForm to
populate directly via 

 
 


...so they found the way bean -> jsp but were not populated the way html
-> bean. As my learning, for such nested data structures on the way back
always begin at the root.

?!?!? By the way, can anybody assist me in rebuilding this example
properly with "struts nested taglib" - suddenly I think i do some double
work, isn´t it ?




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




RE: [OT] Struts and Design Patterns

2003-02-17 Thread Jörg Maurer
And for the unpatient ones, you can pay + download it as pdf directly
from manning online.

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Montag, 17. Februar 2003 21:45
To: 'Struts Users Mailing List'
Subject: RE: [OT] Struts and Design Patterns


Well, it isn't like his book isn't available in stores.  If you want to
read
it, you could always buy a copy.  It is a really good read.

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 3:42 PM
To: Struts Users Mailing List
Subject: RE: [OT] Struts and Design Patterns


It appears I was wrong.  You can only download the Tiles and Validator
chapters (these are the final versions).

http://www.manning.com/getpage.html?project=husted&filename=chapters.htm
l

Ted had sent me the draft of the entire book at one point but it looks
like
you can't download these chapters from anywhere.

Sorry, I won't email these out to anyone as I don't have Teds permission
to
do so.


> -Original Message-
> From: Thorsten Schäfer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 17, 2003 3:30 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Struts and Design Patterns
>
>
> Hi,
>
> > This has already been done by Ted in his book, I think.  At least in
> the
> > downloadable draft version there is a Patterns chapter.  Actually it
> is
> > Appendix D.
>
> Wow, that's exactly what I'm searching! Can you tell me where it's
> possible to download this draft version?
>
> Thanks in advance,
>
> Thorsten
>
>
> -
> 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: help on org.apache.commons.scaffold.sql.executeQuery needed - closesstament before evaluating result set ?????

2003-02-16 Thread Jörg Maurer
Ted Husted wrote:
>I did start to add a RowSetUtils once, but at the time there were
issues 
>with using the Sun CRS for updates or with drivers that did not support

>rollback.

Just as I thought myself a possible solution for that, why not use
RowSetDynaClass (Disconnected ResultSet as DynaBeans) :

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanu
tils/package-summary.html#dynamic.rowSet

and repopulate against whatever I want to. But what about the other way
back? H.

Have not used it, cause wanted that details of DB access to be
transparent to me (for now). But seems good choice myself using MySQL.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Sonntag, 16. Februar 2003 21:02
To: [EMAIL PROTECTED]
Subject: help on org.apache.commons.scaffold.sql.executeQuery needed -
closesstament before evaluating result set ?????


Jörg Maurer wrote:
 > Using org.apache.commons.scaffold i discovered from source code that
 > org.apache.commons.scaffold.sql.executeQuery(SC Line 321)  closes
 > prepared statement before iterating over result set.

John Espey wrote:
 > I think the only way it could work is if the jdbc driver being used
 > has  a bug, because according to the javadocs a close on a statement
 > should also close the resultset.

Well, I'm ready to blame the driver.

I'll spend some quality time on this in the morning so that the 
ResultSet don't have to be returned before closing the other components.

I'm actually getting ready to merge some of this with Commons SQL, so 
that there aren't two overlapping packages.

Jörg Maurer wrote:
 >2. How do i configure sth. a disconnected rowset that is used in
org.apache.commons.scaffold.sql?

I did start to add a RowSetUtils once, but at the time there were issues

with using the Sun CRS for updates or with drivers that did not support 
rollback.

-Ted.

-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


-
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: help on org.apache.commons.scaffold.sql.executeQuery needed - closes stament before evaluating result set ?????

2003-02-15 Thread Jörg Maurer
Whow John, that gave me answer after 3 hours of blank
sw-developer-horror.

Just to get follow up information - anything other going wrong in
scaffold-commons you experienced? I had a hard time before on the
poolman connection, after that resorting to struts datasource config. 

-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Samstag, 15. Februar 2003 22:15
To: Struts Users Mailing List
Subject: RE: help on org.apache.commons.scaffold.sql.executeQuery needed
- closes stament before evaluating result set ?


I ran into that error too...
I think the only way it could work is if the jdbc driver being used has
a
bug, because according to the javadocs a close on a statement should
also
close the resultset.
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Statement.html#close()


I filed a bug report on it, but never heard anything back.

> -Original Message-
> From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 15, 2003 3:05 PM
> To: Struts Users Mailing List (E-mail)
> Subject: help on org.apache.commons.scaffold.sql.executeQuery needed -
> closes stament before evaluating result set ?
>
>
> Using org.apache.commons.scaffold i discovered from source code that
> org.apache.commons.scaffold.sql.executeQuery(SC Line 321)  closes
> prepared statement before iterating over result set.
>
> Closing prepared statement  closes result set -> no results are longer
> available.
>
> Am i nut?
>
>
> 1. Has that ever worked for some of you - and if how?
> 2. How do i configure sth. a disconnected rowset that is used in
> org.apache.commons.scaffold.sql?
> 3.  I am nut.
>
> -
> 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]




help on org.apache.commons.scaffold.sql.executeQuery needed - closes stament before evaluating result set ?????

2003-02-15 Thread Jörg Maurer
Using org.apache.commons.scaffold i discovered from source code that
org.apache.commons.scaffold.sql.executeQuery(SC Line 321)  closes
prepared statement before iterating over result set. 

Closing prepared statement  closes result set -> no results are longer
available.

Am i nut?


1. Has that ever worked for some of you - and if how? 
2. How do i configure sth. a disconnected rowset that is used in
org.apache.commons.scaffold.sql? 
3.  I am nut.

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




RE: File Upload with Invalid or Missing File Name

2003-02-10 Thread Jörg Maurer
Have you downloaded source or binary? Try like myself source und
recompile YS?!?!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Montag, 10. Februar 2003 20:00
To: [EMAIL PROTECTED]
Subject: File Upload with Invalid or Missing File Name


Here is what I did:

1.  Downloaded Tomcat 4.1.18 and installed.
2.  Downloaded Struts 1.1B3 and copied "struts-upload.war" to the
"webapps" directory of my Tomcat install from step 1.
3.  Set my JAVA_HOME environment variable to point to the location of my
1.3 Java (1.3.1_04).
4.  Started Tomcat so that struts-upload is deployed.
5.  From Mozilla, accessed "http://localhost:8080/struts-upload";.  
6.  The file upload screen displays properly and if I browse to a
legitimate file and press submit, then the file is uploaded without
error.  However, if I leave the file name empty or enter an invalid file
name, then I get the error shown below:

Others on this list have apparently had success with empty file names.
So I am very confused as to why I still see the "populate" error.  I
have tried Struts 1.1B2 and Struts 1.1B3 and JDK 1.4.1 as well as 1.3.1
as well as earlier versions of Tomcat.  All attempts with a blank file
name lead to the same error. I have exhausted everything that I can try,
so help would be greatly appreciated.

Cynthia Jeness



java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUti
ls.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUti
ls.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.jav
a:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce

RE: Problem with empty file upload field

2003-02-09 Thread Jörg Maurer
Never get an error- sorry! Send mor info?

-Original Message-
From: Joey Ebright [mailto:[EMAIL PROTECTED]]
Sent: Montag, 10. Februar 2003 02:34
To: Struts Users Mailing List
Subject: Re: Problem with empty file upload field


What happens if the user does not specify a file to upload and you 
submit the form?  Do you get an error?  How do you handle this?

Jörg Maurer wrote:

>Just for info - I use struts 1.3b nb and built upload func into my
>current app - no problem. Remark what i corrected from wrong in first
>step :
>
>1.  <- !!
>
>2. use as property a property of type FileForm from org.apache.struts -
>it was a crazy idea to me to put a Form into a Form first ;-)
>
>3. erhm, and don´t open input stream on blank filename
>
>Ciao Jörg
>
>
>-Original Message-
>From: Joey Ebright [mailto:[EMAIL PROTECTED]]
>Sent: Sonntag, 09. Februar 2003 22:20
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: RE: Problem with empty file upload field
>
>
>I too have the same problem - whenever the user does not supply a file 
>to upload I get an exception.  I have tried the 1.1-b3 release of
struts
>
>and the 1.6 release of the commons and recieve the same error from 
>BeanUtils.populate - IllegalArgumentException...
>
>Have you made any progress on this front?
>
>-Joey
>
>
>
>-
>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: Problem with empty file upload field

2003-02-09 Thread Jörg Maurer
Just for info - I use struts 1.3b nb and built upload func into my
current app - no problem. Remark what i corrected from wrong in first
step :

1.  <- !!

2. use as property a property of type FileForm from org.apache.struts -
it was a crazy idea to me to put a Form into a Form first ;-)

3. erhm, and don´t open input stream on blank filename

Ciao Jörg


-Original Message-
From: Joey Ebright [mailto:[EMAIL PROTECTED]]
Sent: Sonntag, 09. Februar 2003 22:20
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Problem with empty file upload field


I too have the same problem - whenever the user does not supply a file 
to upload I get an exception.  I have tried the 1.1-b3 release of struts

and the 1.6 release of the commons and recieve the same error from 
BeanUtils.populate - IllegalArgumentException...

Have you made any progress on this front?

-Joey



-
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: Extending the RequestProcessor class

2003-02-08 Thread Jörg Maurer
Don't want to be that a wacky answer, but I read the source - only free
hotspot for myself newby-level seemed to be (quoting
org.apache.struts.action.RequestProcessor):

/**
 * General-purpose preprocessing hook that can be overridden as
required
 * by subclasses.  Return true if you want standard
processing
 * to continue, or false if the response has already
been
 * completed.  The default implementation does nothing.
 *
 * @param request The servlet request we are processing
 * @param response The servlet response we are creating
 */
protected boolean processPreprocess(HttpServletRequest request,
HttpServletResponse response) {

return (true);

}

...where myself subclassing had put sth like sample from book
"Programming Struts" :

  protected boolean processPreprocess( HttpServletRequest request,
  HttpServletResponse response){

HttpSession userSession = request.getSession(false);
// Check to see if there's a session for the user that wasn't just
created (or if he didn´t logged out - ? does session invalidate on his
browser as well ?)
UserContainer uc =
(UserContainer)userSession.getAttribute(IAppConstants.USER_CONTAINER_KEY
);
if ( uc == null || userSession == null || userSession.isNew()){
  //continueProcessing = false;
  try{
userSession.invalidate();
userSession = request.getSession(true); 
ApplicationContainer ac =
(ApplicationContainer)userSession.getServletContext().getAttribute(IAppC
onstants.APPLICATION_CONTAINER_KEY);
userSession.setAttribute(IAppConstants.USER_CONTAINER_KEY, new
UserContainer(ac));
response.sendRedirect( "/index.jsp" );
return false;
  }catch( Exception ex ){
ex.printStackTrace();
  }
}
return true;
  }

-Original Message-
From: John D. Dubchak [mailto:[EMAIL PROTECTED]]
Sent: Samstag, 08. Februar 2003 18:00
To: [EMAIL PROTECTED]
Subject: Extending the RequestProcessor class


Hi,

I've been searching through the documentation to find information on
extending 
the RequestProcessor class but can't seem to find it.  Can someone point
me 
in the right direction?

Thanks in advance,
John

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




org.apache.commons.scaffold.text.ConvertUtil.addParam now and then

2003-02-06 Thread Jörg Maurer
I experienced that buidling AF and adding Parameters via
ConvertUtils.addParam(af.getPath(),"method", "choose") from Husted´s
Commons Toolbox  adds URL rewriting to params, so that & -> & . On
forwarding even via redirect, & was never resolved correctly (?
cause of html:base used in jsp ?). I resolved it via writing my
query-Path literally (?name=1&method=2&...).

My question : What is correct usage of ConvertUtils.addParam ? Not
delivered with struts dist, what is the correct equivalent for adding
params to request transparently?

> jörg maurer - mailto:[EMAIL PROTECTED]
> development
> 
> ucp morgen | tomorrow is today
> 
> fax: +43 1 532 64 64-300
> fon/sms: +43 676 6688 716
> snail: neutorgasse 12/7, 1010 vienna, austria
> url: http://www.ucpmorgen.com
>  
> This message is confidential and may be legally privileged.
> We do not authorise any person other than the intended recipient
> to read, copy or use it.  If you are not the intended recipient,
> do not copy or disclose its content, but contact the sender
> immediately.
> Whilst we run anti-virus software, you are solely responsible for
> ensuring that any e-mail or attachment you receive is virus-free.
> We disclaim liability for any damage you suffer as a consequence of
> receiving any such virus.
> 
Visit us at 3GSM World Congress 03: 
Cannes, 18/02/03 - 21/02/03, Hall 2, Booth F37



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




RE: html:multibox and arrays in the ActionForm

2003-02-04 Thread Jörg Maurer
What i figured out is that multibox works only against an array, not a
collection - call it useful or not, i wished it works against a
collection.

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 04. Februar 2003 15:56
To: Struts Users Mailing List
Subject: RE: html:multibox and arrays in the ActionForm


I don't understand why you say you can't use  to populate
cells in a 


  

  

  
  


  


What am I missing?

Sri

-Original Message-
From: Charles H. Baker [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 03, 2003 6:35 PM
To: Struts Users Mailing List
Subject: html:multibox and arrays in the ActionForm


I have been using the most excellent ``Struts in Action'' by Ted Husted 
et. al., but I need a little clarification.

There is a code snippet from an ActionForm:

private String[] selectedItems = {};
private String[] items = {"UPS","FedEx","Airborne"};
public String[] getSelectedItems(){
return this.selectedItems;
}
public void setSelectedItems(String[] selectedItems){
this.selectedItems = selectedItems;
}

The JSP code snippet is this:








The html code in my case was produced by DreamWeaver and the checkboxes 
must go in table cells which are of irregular size, so I cannot just 
iterate over the items array. Do I need the selectedItems and items 
arrays? What's an alternate way of addressing the items array if I don't

use the logic:iterate tag that will still be palatable to Struts if not 
a ``best practice.'' If I don't use the JSP code above, will the proper 
array be populated by Struts?

BTW, I'm using Struts 1.02 on Tomcat 4.1.18. The people I'm working with

are not ready to move to a Struts 1.1 beta.

-- 
Charles H. Baker
[EMAIL PROTECTED]
http://www.charleshbaker.com/ http://www.charleshbaker.com/~chb/
Perl is designed to give you several ways to do anything, so consider
picking the most readable one.
  -- Larry Wall in the perl man page


-
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: nesting tiles with definitions in xml

2003-01-31 Thread Jörg Maurer
H. Just displayed the tiles documentation tiles-def.xml bundled
with struts in Holmes´s console -- and somhow i grab a sense why putting
a list (joint points) instead of tiles:get - 1 JSP for layout(WHERE)e.g.
columnsLayout.jsp and list of WHAT to come, and even putting whole
definitions to work in another jsp. Hm.

You wrote "... By using a tiles action I was able to determine the
definition being used in the template at run time and load a request
scope bean so all the tiles could have access to the definition data.
..." - can you please make that experience more "examplereized" for me?

THANXX



-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 31. Jänner 2003 20:08
To: 'Struts Users Mailing List'
Subject: RE: nesting tiles with definitions in xml


Jorg>> This way each of the tiles is an independent entity.  Which has
it's
downside - but in a portal situation a single action cannot manage all
the
potential data required for a specific user.  Using tiles actions on a
per
tiles basis you can separate each of the controller/business logic - if
the
tile is required then the appropriate tiles action fires - if not then
no
extra work is done.  It would be difficult in the tiles definition or
template to define every possible combination in a portal layout.
Especially if the user is allowed to move the tiles around.

Having to write some breadcrumb code I bumped into your situation where
I
wanted the parent definition visible to a lower level tile.  By using a
tiles action I was able to determine the definition being used in the
template at run time and load a request scope bean so all the tiles
could
have access to the definition data.

Cal 

http://www.calandva.com/Last update 01/03/03

-----Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 13:35
To: Struts Users Mailing List
Subject: RE: nesting tiles with definitions in xml

Okay, i looked for them. But as i saw it, they take out/give in some
attributes from tiles context. Not so super, is it?

I personally would like to see my way of thinking as a feature, cause it
gives me powerful control to manage WHERE and WHAT.
The 'way around' you sketched is for me maintainance intense in my
opinion - why to doe it by tiles even when i prepare info in action
classes.I thought it works like this : all requests run through the same
Tiles Request Processor. Such information be mananged centrally (a
layout definition machine ) - it knows WHAT to display concretly in
first step, and then if it finds a Joint point(WHERE) in some other JSP,
over 2 and more forwards ?!

THANX

-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 31. Jänner 2003 18:39
To: 'Struts Users Mailing List'
Subject: RE: nesting tiles with definitions in xml


Cedric has a few examples of nested dynamic tiles in the Tiles Doc
webapp:
'jakarta-struts-1.1-b3\webapps\tilesdoc\layout' and 'layouts'.  It
passes a
list of tiles to include in a parent tile based on user preference.

Cal

http://www.calandva.com/Last update 01/03/03


-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 04:03
To: Struts Users Mailing List (E-mail)
Subject: nesting tiles with definitions in xml

Hi!

Please can any of you provide me with an example to nest tiles properly.
I need to include several *.jsp in several *.jsp, which are included
based upon info on my tiles-def.xml.

Using  at the 1st level of jsp page is okay, but using
 at the 2nd level of a now nested jsp gives only back the
identifier name of that  to include, what is essentially not
a jsp page.

THANX so much! Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above.  If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.

-
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]
  
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and an

RE: nesting tiles with definitions in xml

2003-01-31 Thread Jörg Maurer
Okay, i looked for them. But as i saw it, they take out/give in some
attributes from tiles context. Not so super, is it? 

I personally would like to see my way of thinking as a feature, cause it
gives me powerful control to manage WHERE and WHAT. 
The 'way around' you sketched is for me maintainance intense in my
opinion - why to doe it by tiles even when i prepare info in action
classes.I thought it works like this : all requests run through the same
Tiles Request Processor. Such information be mananged centrally (a
layout definition machine ) - it knows WHAT to display concretly in
first step, and then if it finds a Joint point(WHERE) in some other JSP,
over 2 and more forwards ?! 

THANX

-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 31. Jänner 2003 18:39
To: 'Struts Users Mailing List'
Subject: RE: nesting tiles with definitions in xml


Cedric has a few examples of nested dynamic tiles in the Tiles Doc
webapp:
'jakarta-struts-1.1-b3\webapps\tilesdoc\layout' and 'layouts'.  It
passes a
list of tiles to include in a parent tile based on user preference. 

Cal 

http://www.calandva.com/Last update 01/03/03


-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 04:03
To: Struts Users Mailing List (E-mail)
Subject: nesting tiles with definitions in xml

Hi!

Please can any of you provide me with an example to nest tiles properly.
I need to include several *.jsp in several *.jsp, which are included
based upon info on my tiles-def.xml.

Using  at the 1st level of jsp page is okay, but using
 at the 2nd level of a now nested jsp gives only back the
identifier name of that  to include, what is essentially not
a jsp page.

THANX so much! Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above.  If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.

-
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: tiles not transferring attributes

2003-01-31 Thread Jörg Maurer


-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 31. Jänner 2003 18:26
To: 'Struts Users Mailing List'
Subject: RE: tiles not transferring attributes


The component context is only exposed to the definition not to nested
definitions in subsequent jsps.  You can pass them to nested jsps by
pulling
them out of the component context in the jsp - then adding them to the
page
context - using a list or bean.  Once in the page context the
subordinate
jsps can get to the data by including the list/bean in the subordinate
tiles
insert.  In the tiles documentation there is a portal example using this
technique.

Cal 

http://www.calandva.com/Last update 01/03/03



-Original Message-----
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 04:57
To: Struts Users Mailing List (E-mail)
Subject: tiles not transferring attributes

Hi!

Has any of you experienced that by nesting jsp with tiles, the
ComponentContext with it´s attributes gets lost if jsp nested in 3 level
via tiles:get ?

> jörg maurer - mailto:[EMAIL PROTECTED]
> development
>
> ucp morgen | tomorrow is today
>
> fax: +43 1 532 64 64-300
> fon/sms: +43 676 6688 716
> snail: neutorgasse 12/7, 1010 vienna, austria
> url: http://www.ucpmorgen.com
> 
> This message is confidential and may be legally privileged.
> We do not authorise any person other than the intended recipient
> to read, copy or use it.  If you are not the intended recipient,
> do not copy or disclose its content, but contact the sender
> immediately.
> Whilst we run anti-virus software, you are solely responsible for
> ensuring that any e-mail or attachment you receive is virus-free.
> We disclaim liability for any damage you suffer as a consequence of
> receiving any such virus.
>
Visit us at 3GSM World Congress 03:
Cannes, 18/02/03 - 21/02/03, Hall 2, Booth F37



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above.  If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.

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




tiles not transferring attributes

2003-01-31 Thread Jörg Maurer
Hi!

Has any of you experienced that by nesting jsp with tiles, the
ComponentContext with it´s attributes gets lost if jsp nested in 3 level
via tiles:get ?

> jörg maurer - mailto:[EMAIL PROTECTED]
> development
> 
> ucp morgen | tomorrow is today
> 
> fax: +43 1 532 64 64-300
> fon/sms: +43 676 6688 716
> snail: neutorgasse 12/7, 1010 vienna, austria
> url: http://www.ucpmorgen.com
>  
> This message is confidential and may be legally privileged.
> We do not authorise any person other than the intended recipient
> to read, copy or use it.  If you are not the intended recipient,
> do not copy or disclose its content, but contact the sender
> immediately.
> Whilst we run anti-virus software, you are solely responsible for
> ensuring that any e-mail or attachment you receive is virus-free.
> We disclaim liability for any damage you suffer as a consequence of
> receiving any such virus.
> 
Visit us at 3GSM World Congress 03: 
Cannes, 18/02/03 - 21/02/03, Hall 2, Booth F37



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




nesting tiles with definitions in xml

2003-01-31 Thread Jörg Maurer
Hi!

Please can any of you provide me with an example to nest tiles properly.
I need to include several *.jsp in several *.jsp, which are included
based upon info on my tiles-def.xml.

Using  at the 1st level of jsp page is okay, but using
 at the 2nd level of a now nested jsp gives only back the
identifier name of that  to include, what is essentially not
a jsp page.

THANX so much! Jörg

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




? tiles nesting

2003-01-30 Thread Jörg Maurer

Hi!

1.) If i defined in defintion.xml sth. that should work in jsp code like
:

base.layout ->  base_layout.jsp ->  
  ->
workflow_content.jsp

  ->  register_region.jsp

this always gives me null exception. Why? Am i missing some
 or   ?

2.)I do a workflow in 3 steps with tile/tile definitions , called from
struts actions. "register_region" is the tab in the North, content in
south.








  





















I wondered why i have to define all tiles in base.layout abstract(via
" " ), just to override them in inheriting tiles with concret
*.jsp. So it is not an extending relationsship, only overriding
possible?



> jörg maurer - mailto:[EMAIL PROTECTED]
> development
> 
> ucp morgen | tomorrow is today
> 
> fax: +43 1 532 64 64-300
> fon/sms: +43 676 6688 716
> snail: neutorgasse 12/7, 1010 vienna, austria
> url: http://www.ucpmorgen.com
>  
> This message is confidential and may be legally privileged.
> We do not authorise any person other than the intended recipient
> to read, copy or use it.  If you are not the intended recipient,
> do not copy or disclose its content, but contact the sender
> immediately.
> Whilst we run anti-virus software, you are solely responsible for
> ensuring that any e-mail or attachment you receive is virus-free.
> We disclaim liability for any damage you suffer as a consequence of
> receiving any such virus.
> 
Visit us at 3GSM World Congress 03: 
Cannes, 18/02/03 - 21/02/03, Hall 2, Booth F37



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




RE: / /OREF:CPT53E85 Re: Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
Last resort from me - Do/can you use/refactor to indexed property like,
where upper bound = index is tested in setter and indexedProp is set
higher/lower ?!?!?!

1. indexed property 

/** Holds value of property indexedProp. */
private int[] indexedProp = int[2000];

  /** Indexed getter for property indexedProp.
   * @param index Index of the property.
   * @return Value of the property at index.
   *
   */
  public int getIndexedProp(int index) {
  return this.indexedProp[index];
  }
  
  /** Getter for property indexedProp.
   * @return Value of property indexedProp.
   *
   */
  public int[] getIndexedProp() {
  return this.indexedProp;
  }
  
  /** Indexed setter for property indexedProp.
   * @param index Index of the property.
   * @param indexedProp New value of the property at index.
   *
   */
  public void setIndexedProp(int index, int indexedProp) {
  this.indexedProp[index] = indexedProp;
  }
  
  /** Setter for property indexedProp.
   * @param indexedProp New value of property indexedProp.
   *
   */
  public void setIndexedProp(int[] indexedProp) {
  this.indexedProp = indexedProp;
  }

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:47
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT53E85 Re: Session Time-out: Form population fails



Hi again. Thank you for the information/citing - very interesting and
something I will investigate further.

Maybe I am overlooking something here but I assume my problem at the
moment is I will never get to my Action to check any token after the
User submits the form.
This is because the actual population of the form bean fails as the
new Session's form bean instance does not match what is on the page.
I suppose I need some sort of check on the page before the form is
submitted and the form bean population occurs.

Or I am totally going about this the wrong way ?

thanks once again.



 

  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:35 Subject: RE: /
/OREF:CPT36578 Re: Session Time-out: Form population fails

  AM

  Please respond

  to struts-user

 

 

 

 

 





I cite now a passage of book from Mr. Husted et al., "Struts in
action",
Manning, copyrighted .. I hope i not get into trouble, but help
is
more valuable for me than strict law(despite i bought the book and
not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN
"
Using transactional tokens
Duplicate submissions can often be a problem for web applications.
Struts supports
a strategy to prevent duplication submissions using a synchronizing
token.
Using synchronizing tokens is automatic for the Struts 
tag.
If it sees
that tokens are being used, it automatically includes the appropriate
hidden field.
On the Action side, you can enable transactional tokens by calling
saveToken(request);
anywhere in the Action's perform or execute method. On the return
trip,
to have
an Action check if a token is still good, call
boolean valid = isTokenValid(request);
If this method returns false, branch to an error page. If it returns
true, call
resetToken(request);
While participating in a transaction most often occurs with forms,
there
are also
applications for hyperlinks and other assets. Accordingly, the Struts

and  tags provide optional support for transactions. To
include the
appropriate token in the link, set the transaction property to true.
A
tag like this:

will then generate a hyperlink like this:

"
CITING END


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:23
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT36578 Re: Session Time-out: Form population fails



Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?





  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:12 Subject: RE: /
/OREF:CPTF9D2A Session Time-out: Form population fails

  AM

  Please respond

  to struts-user















Not sure/not tested -> hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that -> if new instance of the form is
created, token does not match -> route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Tim

RE: / /OREF:CPT36578 Re: Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
I cite now a passage of book from Mr. Husted et al., "Struts in action",
Manning, copyrighted .. I hope i not get into trouble, but help is
more valuable for me than strict law(despite i bought the book and not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN
"
Using transactional tokens
Duplicate submissions can often be a problem for web applications.
Struts supports
a strategy to prevent duplication submissions using a synchronizing
token.
Using synchronizing tokens is automatic for the Struts  tag.
If it sees
that tokens are being used, it automatically includes the appropriate
hidden field.
On the Action side, you can enable transactional tokens by calling
saveToken(request);
anywhere in the Action's perform or execute method. On the return trip,
to have
an Action check if a token is still good, call
boolean valid = isTokenValid(request);
If this method returns false, branch to an error page. If it returns
true, call
resetToken(request);
While participating in a transaction most often occurs with forms, there
are also
applications for hyperlinks and other assets. Accordingly, the Struts

and  tags provide optional support for transactions. To
include the
appropriate token in the link, set the transaction property to true. A
tag like this:

will then generate a hyperlink like this:

"
CITING END


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:23
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT36578 Re: Session Time-out: Form population fails



Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?



 

  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:12 Subject: RE: /
/OREF:CPTF9D2A Session Time-out: Form population fails

  AM

  Please respond

  to struts-user

 

 

 

 

 





Not sure/not tested -> hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that -> if new instance of the form is
created, token does not match -> route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Time-out: Form population fails


Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




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




?OffTopic:copyright:copying text from books for struts-user mail arch

2003-01-30 Thread Jörg Maurer
Yo!

How is policy/law in that and other use groups - I want to copy a
passage from e.g. Husted´s "Struts in action" to reply/or ask to a
struts user. 

Am i breaking some laws/interests with that? Is there a formal note i
have to include when posting. Is it relative to amount of posting -
number of lines e.g.?

Which law does apply - of my country, the server/company hosting it or
international law?

THANX Jörg

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




RE: / /OREF:CPTF9D2A Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
Not sure/not tested -> hint level :

if you can use the TRANSACTION token that is activated in form + having
a hidden field in form that sets/get corresponding token,
you might be able to test for that -> if new instance of the form is
created, token does not match -> route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Time-out: Form population fails


Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




-
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: ? on logic:empty - any hints

2003-01-30 Thread Jörg Maurer
THANX SO MUCH? PHUHH? I am really getting a little mad for
getting my project with struts done(more my fault than struts of course
;-) )

Shortly - So what is difference/usage of logic:empty to present(despite
it doesn´t work as described in api).

GREE Jörg

-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:44
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


Use the 

Regards,
Miguel

-Mensaje original-
De: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 9:32
Para: Struts Users Mailing List (E-mail)
Asunto: ? on logic:empty - any hints

Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :











You are already logged in!



So i test for that bean named UserContainer in session scope, where it
resides when login completes.

Unfortunatly, if user not logged - it throws
"[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'"

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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




? on logic:empty - any hints

2003-01-30 Thread Jörg Maurer
Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :











You are already logged in!



So i test for that bean named UserContainer in session scope, where it
resides when login completes. 

Unfortunatly, if user not logged - it throws 
"[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'"

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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




RE: what does RT Expr mean

2003-01-29 Thread Jörg Maurer
RT EXPR aka "Run time expression" means denoted value is/may evaluated
at run-time, not at compilation time.

-Original Message-
From: Sundar Narasimhan [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Jänner 2003 15:27
To: [EMAIL PROTECTED]
Subject: what does RT Expr mean


In the bottom of the documentation on the attributes of several tags I
see [RT Expr].. what does that mean? Is it documented anywhere?

Thanks.

-
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: / /OREF:CPTDA10A RE: [OT] VOTE to help Naveen.Dhotre Unsubscr ibe permanently

2003-01-29 Thread Jörg Maurer
Does anyone get any 'OUT OF OFFICES' messages from Naveen.Dhotre - me no
-> problem solved ?

-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Jänner 2003 15:13
To: Struts Users Mailing List
Subject: Re: / /OREF:CPTDA10A RE: [OT] VOTE to help Naveen.Dhotre
Unsubscr ibe permanently


you may create a rule *delete from the server or don't download from the
server*

lol
--
<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 3:08 PM
Subject: / /OREF:CPTDA10A RE: [OT] VOTE to help Naveen.Dhotre Unsubscr
ibe
permanently


>
> Probably with Outlook Express?
>
>
>
>
>
>   gourav.pani@brig
>   htpoint.com  To:
[EMAIL PROTECTED]
>cc:
>   2003/01/29 03:59 Subject: RE: /
/OREF:CPTC8CF9 RE: [OT] VOTE to help Naveen.Dhotre Unsubscr ibe
>   PM   permanently
>   Please respond
>   to struts-user
>
>
>
>
>
>
>
>
>
> we have but the filter just puts it in the deleted items list.  at
> least
> outlook does.  thanks for your input though.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: / /OREF:CPTC8CF9 RE: [OT] VOTE to help Naveen.Dhotre
> Unsubscribe permanently
>
>
>
> Haven't these guys heard of inbox filters/agents
>
>
>
> -
> 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]


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




RE: Obtaining valid ModuleConfig.

2003-01-29 Thread Jörg Maurer
Is it really in request context? sounds more for application context!

-Original Message-
From: James Nord [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Jänner 2003 15:13
To: [EMAIL PROTECTED]
Subject: Obtaining valid ModuleConfig.



Hi,

I'm using the following snippet in taglib code but it fails as 
config==null.  (Stuts 1.1 b3)

 public int doEndTag() throws JspException {

ModuleConfig config = (ModuleConfig)
pageContext.getRequest()
.getAttribute(org.apache.struts.Globals.MODULE_KEY);
if (config == null) {
System.out.println("config  == null");
}
if (config.getPrefix() == null) {
System.out.println("config.getPrefix() == null");
}
try {
pageContext.forward(config.getPrefix() + page);
} catch (Exception e) {
throw new JspException(e.toString());
  }
  return (SKIP_PAGE);
}

The code is based on the example that comes with struts.  I presume I'm 
missing something obvious but I'm new to Struts and can't track it down.
Could someone give me some pointers before I tear all my hair out ;-)

Regards

/James


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




? Interference PLUG-IN(Tiles) versus CONTROLLER(Costum type)

2003-01-29 Thread Jörg Maurer
I just added my own Request Processor element to my app in
struts-config, which extended the ...struts...RequestProcessor and
defined a Plugin element for org.apache.struts.tiles.TilesPlugin.
On startup of app, the log gave me hint that TilesRequestProcessor does
not work with my costum RequestProcessor. 

So my question is, why do they interfere - different struts-config
elements for different functionality - as ican view it.

On subclassing my RequestProcessor from TilesRequestProcessor,
everything run fine.

Don´t now what to learn from this? Any hints appreciated.

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




RE: Urgent

2003-01-29 Thread Jörg Maurer
There must be some taglib subclassing html:link on struts apache site,
http://jakarta.apache.org/struts/resources/taglibs.html, especially
http://husted.com/struts/resources/linkParam.htm. Read it through. Tell
us if that what you can use and how(I will have to cope with same next
day)?

So long

-Original Message-
From: Jan Vervecken [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Jänner 2003 11:19
To: [EMAIL PROTECTED]
Subject: Re: Urgent 


hi

I've recently written a tag that solves these problems and works
together with the html:link tag, see c-html:parameter tag below.


   
 <%=CorsoSId%>
 <%=CorsoSName%>
 <%=CorsoSFacolta%>
 <%=CorsoSCrediti%>
 



Vis. Corsi
Insegn.


   


You can write yours in a similar way.
A tag like this might be a useful Struts tag if you ask me.

succes
-Jan

>>> [EMAIL PROTECTED] 01/29/03 10:57AM >>>
Good day!
I'm new to struts and i need to help..:

   
 <%=CorsoSId%>
 <%=CorsoSName%>
 <%=CorsoSFacolta%>
 <%=CorsoSCrediti%>
 
<%
String url = "corsiIA.do?IDFacolta="+request.getParameter("IDFacolta")
+"&CorsoSId="+CorsoSId;
%>
Vis. Corsi Insegn.

   


where corsoSIter is an customtag that i create for iterate on a
collection 
of "course of study"(i pass it and IDFacolta in the request from my
first 
Action)and IDFacolta is an ID that i need to next jsp.Now i need
to pass to action the CorsoSId(the user's select course from jsp) and
the 
IDFacolta.I tryed to pas an HashMap:
 
HashMap mappaOld=(HashMap)request.getAttribute("mappa");
/*the Attribute mappa contains now only IDFacolta and the next HashMap
i would 
like to contains the IDFacolta and the CorsoSId that my user will
select from 
jsp*/

   
<%=CorsoSId%>
<%=CorsoSName%>
<%=CorsoSFacolta%>
<%=CorsoSCrediti%>

<%
HashMap mappa = new HashMap();
mappa.putAll(mappaOld);
mappa.put(CorsoSId);
pageContext.setAttribute(mappa);
%>
Vis. Insegn.

   


This is corectly,but i create an HashMap for each cycle..i'd like using
only 
one HashMap..it's very heavy using more HashMap for each page in my 
WebApplication...
Plese help me..is very important.
Sorry for the my horrible English.
Thanks in advance
Alessio.

-
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: [OT] S.O.S Can Some One Help me in this

2003-01-29 Thread Jörg Maurer
Then might have to do with Tomcat self - Have you changed
YOURTOMCATINSTALLROOTDIR/config/server.xml, especially 
elements?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Jänner 2003 11:02
To: Struts Users Mailing List
Subject: [OT] S.O.S Can Some One Help me in this



hello everybody,
this is offtopic, i am working on a non-struts application with
jsp,servlet
and javabeans and MVC
architecture, all of a sudden today when i restarted tomcat, it is not
loading my servlet class files.
there is absolutely no change in the web.xml file or the servlet class
file.
has some one experienced this earlier.
can some one suggest a way out of this ,please

regards,
amit malhotra



-
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: application resource/ prop messages of org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH DATA ?!?!?!

2003-01-28 Thread Jörg Maurer
Problem solved - was following :

NETBEANS IDE has properties dialog (use OPEN) for any *.properties,
which displays a tabulated view of the texts. Okay. But on saving these,
some not ANSI characters are inserted in these. On deleteing these,
 e.g. displayed them correctly.

The open question : 
1)Why does the digester parse method inside Action servlet not throw
exception in struts 1.1 beta 3 and continues to instantiate a
PropertyMessageResource, while struts 1.1 latest build(20030128) does
throw exception(even not logging what the exact failure might be)?

2)What about non ANSI message resource textes - do they work with
UNICODE? 



-Original Message-
From: Jörg Maurer 
Sent: Dienstag, 28. Jänner 2003 19:30
To: [EMAIL PROTECTED]
Subject: application resource/ prop messages of
org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH
DATA ?!?!?!


Hi !

I am currently working on struts project with source code of struts 1.1
beta 3.

As i was wondering why my texts aka message resource never get loaded, i
followed the problem form Action Servlet  PropetyMessageResource,
where the property "messages", being a HashMap IS NEVER FILLED with
data, but is always asked to compare to keys from diverse taglibs. 

On startup of my app, struts never complains that it hasn´t found my
message resources, so i wonder when - how - if that messages are ever
initialized?!?!

Any ENLIGHTENING hints are welcomed!

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




application resource/ prop messages of org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH DATA ?!?!?!

2003-01-28 Thread Jörg Maurer
Hi !

I am currently working on struts project with source code of struts 1.1
beta 3.

As i was wondering why my texts aka message resource never get loaded, i
followed the problem form Action Servlet  PropetyMessageResource,
where the property "messages", being a HashMap IS NEVER FILLED with
data, but is always asked to compare to keys from diverse taglibs. 

On startup of my app, struts never complains that it hasn´t found my
message resources, so i wonder when - how - if that messages are ever
initialized?!?!

Any ENLIGHTENING hints are welcomed!

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