Re: ActionErrror messages from relational database

2003-06-04 Thread James Mitchell
This was implemented last year and released on the sf.net struts site:
http://sourceforge.net/projects/struts 

Look for "MessageResources Impls"


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: "Yves Sy" <[EMAIL PROTECTED]>
To: "Struts Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 7:39 AM
Subject: ActionErrror messages from relational database


> Anybody know how I can use error messages with ActionErrors that come
> from the database and not from the properties file?
> 

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



Re: CAM - Removing User Principal

2003-06-04 Thread Max Cooper
The details of configuring single-sign on will depend on what server you are
using. It is pretty easy with Tomcat.

The forthcoming 1.4 version of the J2EE spec adds a logout() method to the
request interface that sounds like it could be used to achieve the
cross-context logout functionality you require.

In the mean time, it may be possible to use session listeners in all of your
apps that talk to some central session management system (that you'll need
to create). Perhaps the manager could live in the root context and make
itself available to the other contexts via JNDI. Then when a user
invalidates their session in one context, the cental manager could be
notified (via a call from the listener that is present in that context) and
it would invalidate all the sessions that belong to the same user (same user
name, or perhaps the same Principal object if it is indeed the same one
across the contexts). I am not 100% sure this is possible, but it might help
give you some ideas for a solution.

-Max

- Original Message - 
From: "Dave Mulligan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 2:16 AM
Subject: CAM - Removing User Principal


> I'm creating a number of completely separate applications that sit on the
> same server. The
> only thing they have in common between them is single sign-on. I have the
> Controller app
> 'http://localhost:8080/' where the user logs in. Once logged in, the user
> can access any of
> the other application /app1, /app2 etc.
>
> I'm using container managed authentication. I *believe* once the user logs
> into the '/' context
> path, the user principal will be available to all application under that
> context path. i.e. '/app1'
> Correct?
>
> This all works fine for me but for one problem. Logging out!
> I'm able to invalidate the session, but how do I remove the user principal
> from the request?
>
>
>
>
>
> -
> 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: Submit issue for new form with struts

2003-06-04 Thread James Mitchell
Please describe further

Grid of textboxes?  Grid of static text?
What are you submitting? The whole page of data or the row that was dbl
clicked?

What do you mean by "do a lot of actions"?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: "raghu_c" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 1:35 AM
Subject: Submit issue for new form with struts


hi,

I am a newbie to struts, got this problem...

We got a jsp that displays a grid of records; on dbl click of any record,
I need to submit the form into a pop up window - and do a lot of actions
besides using the form bean of the originating page as well as the form bean
of the popup page. So i got an action class / delegate etc defined for the
popup.

trouble is, I am unable to submit the form on the dbl click itself -
the popup page opens if I use a html:rewrite tag or even plain html but the
action method (execute) is not called.

Any pointers will be highly appreciated,

Thanx,
Raghu







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

2003-06-04 Thread Max Cooper
Are you looking for how-to info about doing releases of your project/product
as source code?

If so, one source of info is to look at mature open-source projects,
including the fine projects available from Apache. SourceForge would be
another place to look. "What to deliver" and "how to do (automate) the
packaging" are the two main areas of interest. For Java projects, the open
source examples usually come with Ant build scripts that do the packaging.

For more Ant info, I like the book Java Development with Ant by Hatcher and
Loughran from Manning. It doesn't have specific info on how to structure a
source release, but it covers the Ant tasks and build techniques well by
going through many practical examples relevant to Java projects.

-Max

- Original Message - 
From: "Tumi Mathibedi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 2:38 AM
Subject: [OT] Release Manager


HI,

Can anyone recommend source release management books?

regards,
Tumi
"This e-mail is sent on the Terms and Conditions that can be accessed by
Clicking on this link http://www.vodacom.net/legal/email.asp "

-
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: Struts View (JSP's -vs-Servlets)

2003-06-04 Thread Andrew Hill

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts tags be evaluated properly.


No of course not.


My problem is this.  I can create a java class for each attribute that i
need to use and my class can have a method such as "writeHTML()" which
returns HTML text
to display the attribute on a web page.


Create a bean for each. Use taglibs and iteration etc... to display.
If this results in a complicated tag structure needed to output the stuff
then write your own tag that does what you would have done in writeHtml(),
or alternatively look into using the tile extension.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of sjones
Sent: Wednesday, 4 June 2003 21:16
To: [EMAIL PROTECTED]
Subject: Struts View (JSP's -vs-Servlets)


I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.

Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
Cost Center element will always have just a single value.


My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as "writeHTML()" which returns HTML text
to display the attribute on a web page.

In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.

It would seem to me that a servlet is a better choice for implmenting a
view.

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
   tags be evaluated properly.

Question 2  can u do this in a JSP 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]



Re: Struts View (JSP's -vs-Servlets)

2003-06-04 Thread Vic Cekvenich
This is not a Struts or MVC question, try the Servlet mail list.

(If you used a MVC framework, you would create a Bean (that you unit 
test) that had a DAO (that talked to LDAP. Then you can use any View you 
wanted)

.V

sjones wrote:

I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.
Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
   Cost Center element will always have just a single value.
My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as "writeHTML()" which returns HTML text
to display the attribute on a web page.
In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.
It would seem to me that a servlet is a better choice for implmenting a
view.
Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
  tags be evaluated properly.
Question 2  can u do this in a JSP page:

<%=
"
+  " value=\"" + fld_val + "\">";
%>
 

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North 
East.
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress


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


Struts View (JSP's -vs-Servlets)

2003-06-04 Thread sjones
I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.

Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
Cost Center element will always have just a single value.


My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as "writeHTML()" which returns HTML text
to display the attribute on a web page.

In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.

It would seem to me that a servlet is a better choice for implmenting a
view.

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
   tags be evaluated properly.

Question 2  can u do this in a JSP page:

 <%=
 "";
 %>




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



RE: [OT] Components and package

2003-06-04 Thread ruben
Well, i think that components are an interface linking with an
implementation, and I access the component through the interface. I
think package it's more a group of components or a group of classes that
have some similar characteristic. I have some dudes, but I think that
should be some similar of that  
What do you think could be components of the framework struts 

-Mensaje original-
De: Andrew Hill [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 04 de junio de 2003 13:44
Para: Struts Users Mailing List
Asunto: RE: [OT] Components and package

u... guess I slept through that lecture back in comsci 101
can you define what you mean by 'component' and 'package', as I fear my
understanding of those terms is subtly different.

-Original Message-
From: ruben [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:27
To: [EMAIL PROTECTED]
Subject: [OT] Components and package


Hi everybody, i'm doing a design documentation of an application based
on struts and I want to know, if someone can help me, which elements of
the framework are components (like EJB are components of the model), and
which elements are package inside the framework
Thanks a lot and best regards.


-
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] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
Very nice - thanks! putting it to the test here now

-jeff

On Wednesday, June 4, 2003, at 07:44  AM, Kris Schneider wrote:

Nope, your XSL should stay the same. The only functional difference of  
the code
I posted is that it doesn't do the "doc.trim().length() > 0" test. The  
JSTL
"empty" operator will test for an empty string, but it won't  
implicitly trim it
first.

Quoting Jeff Kyser <[EMAIL PROTECTED]>:

And none of the markup in the xsl file would have to change?
I must say, I do like the tag-based approach better than the
scriptlet. I just couldn't get past the problem using the xsl/xerces
libraries before.
thanks, might have to give that a shot :)

-jeff

On Wednesday, June 4, 2003, at 07:21  AM, Kris Schneider wrote:

Perhaps JSTL can help make that a bit cleaner:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="html"
uri="http://jakarta.apache.org/struts/tags-html"; %>
<%@ taglib prefix="nested"
uri="http://jakarta.apache.org/struts/tags-nested"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>

  
  
  


  

Quoting Jeff Kyser <[EMAIL PROTECTED]>:

Thanks Simon.

One of the first difficulties I encountered was with the xsl  
transform
itself. I posted this (below) earlier, and didn't get any bites. See
... below.  I kept getting
handlePageException in PageContextImpl in later versions of
Tomcat/Resin and could only make the following work instead.
(It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
whatever else is in the production environment, but I needed to
upgrade...
And that (new stuff) started to look a lot like code that did not
belong on a JSP,
hence my question...

-jeff

(what I have working now)



<%
String xslFile = getServletContext().getRealPath("") +
"/xsl/PrintShoppingCart.xsl";
if (doc != null && doc.trim().length() > 0) {
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer =
tFactory.newTransformer(new StreamSource(xslFile));
transformer.transform(new StreamSource(new
StringReader(doc)),
new StreamResult(out));
}
%>


Sorry, as I know this is off-topic, but been banging on
it most of the day and can't find much on the web either.
Have experienced the same basic problem on:

Tomcat 4.1.24
Resin 2.1.6,8,9
Can take an XML document, apply an XSL stylesheet to
it using command-line java tool:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT
foo.html
that works great.

Now, I take the same libraries - xalan.jar, xml-apis.jar, put them  
in
my web app, and when I hit the jsp that does the same thing, I get:

- Root Cause -
javax.servlet.ServletException:  
org/apache/xalan/xslt/XSLTInputSource
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo 
nt
ex
tImpl.java:536)
 at
org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java: 
13
0)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Now, from what I can tell, XSLTInputSource is deprecated from an
earlier
version of xalan.jar
So, I take the xalan.jar file from a Tomcat 4.1.10 install that  
*does*
work, and
I get another lovely exception, failing to find
org.apache.xalan.xslt.Process.getDefaultLiaison.
(or something like that...)

Can't seem to isolate this.

anybody seen this, or have any suggestions?

TIA,

-jeff

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



--
Kris Schneider 
D.O.Tech   
-
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]


--
Kris Schneider 
D.O.Tech   
-
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: Illegal target of jump or branch

2003-06-04 Thread Rajesh P
Try to split the JSP page and use  in the 
main jsp.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Illegal target of jump or branch


Hi, I'm  using a b3 version of Struts everything works fine my problem occurs 
when I try to use a lot of tags in the same page,about 120 ( many of them are 
img tag...)
The page that generetes the error is included with tiles in another page.
BTW I'm coding all with Pramati Studio.

Thanks a lot.
Marco.

This is how the error looks like:

 java.lang.VerifyError: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
(PramatiServletFactory.java:220)
at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
(PramatiServletFactory.java:317)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:169)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
Unhandled Error/ exception thrown from service method 
of "org.apache.struts.action.ActionServlet". Error is: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
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
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
(layout_eLeafLayout_pmt_0.java:662)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:172)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
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
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at 
com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
(webboard_message_page_message_pmt_0.java:76)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
(PramatiRequestDispatcher.java:105)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
at org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:436)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:312)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
(ServiceInterceptor.java:294)
at com.pramati.security.util.JAASSecurityHelper.doAs
(JAASSecurityHelper.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.pramati.services.security.spi.SecurityHelper.doAs
(SecurityHelper.java:130)
at com.pramati.web.interceptors.ServiceInterceptor.preProcess
(ServiceInterceptor.java:141)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:47)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.FilterInterceptor.process
(FilterInterceptor.java:92)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(Interceptor

Re: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Kris Schneider
Nope, your XSL should stay the same. The only functional difference of the code
I posted is that it doesn't do the "doc.trim().length() > 0" test. The JSTL
"empty" operator will test for an empty string, but it won't implicitly trim it
first.

Quoting Jeff Kyser <[EMAIL PROTECTED]>:

> And none of the markup in the xsl file would have to change?
> I must say, I do like the tag-based approach better than the
> scriptlet. I just couldn't get past the problem using the xsl/xerces
> libraries before.
> 
> thanks, might have to give that a shot :)
> 
> -jeff
> 
> On Wednesday, June 4, 2003, at 07:21  AM, Kris Schneider wrote:
> 
> > Perhaps JSTL can help make that a bit cleaner:
> >
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > <%@ taglib prefix="html"  
> > uri="http://jakarta.apache.org/struts/tags-html"; %>
> > <%@ taglib prefix="nested"  
> > uri="http://jakarta.apache.org/struts/tags-nested"; %>
> > <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
> >
> > 
> >   
> >   
> >   
> > 
> > 
> >   
> > 
> >
> > Quoting Jeff Kyser <[EMAIL PROTECTED]>:
> >
> >> Thanks Simon.
> >>
> >> One of the first difficulties I encountered was with the xsl transform
> >> itself. I posted this (below) earlier, and didn't get any bites. See
> >> ... below.  I kept getting
> >> handlePageException in PageContextImpl in later versions of
> >> Tomcat/Resin and could only make the following work instead.
> >> (It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
> >> whatever else is in the production environment, but I needed to
> >> upgrade...
> >> And that (new stuff) started to look a lot like code that did not
> >> belong on a JSP,
> >> hence my question...
> >>
> >> -jeff
> >>
> >> (what I have working now)
> >>
> >>
> >>
> >>
> >><%
> >>String xslFile = getServletContext().getRealPath("") +
> >> "/xsl/PrintShoppingCart.xsl";
> >>if (doc != null && doc.trim().length() > 0) {
> >>TransformerFactory tFactory =
> >>TransformerFactory.newInstance();
> >>Transformer transformer =
> >>tFactory.newTransformer(new StreamSource(xslFile));
> >>transformer.transform(new StreamSource(new  
> >> StringReader(doc)),
> >> new StreamResult(out));
> >>}
> >>%>
> >>
> >>
> >> 
> >> Sorry, as I know this is off-topic, but been banging on
> >> it most of the day and can't find much on the web either.
> >>
> >> Have experienced the same basic problem on:
> >>
> >>Tomcat 4.1.24
> >>Resin 2.1.6,8,9
> >>
> >> Can take an XML document, apply an XSL stylesheet to
> >> it using command-line java tool:
> >>
> >>java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT
> >> foo.html
> >>
> >> that works great.
> >>
> >> Now, I take the same libraries - xalan.jar, xml-apis.jar, put them in
> >> my web app, and when I hit the jsp that does the same thing, I get:
> >>
> >> - Root Cause -
> >> javax.servlet.ServletException: org/apache/xalan/xslt/XSLTInputSource
> >>  at
> >> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont 
> >> ex
> >> tImpl.java:536)
> >>  at
> >> org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java:13 
> >> 0)
> >>  at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> >>  at  
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >>
> >> Now, from what I can tell, XSLTInputSource is deprecated from an  
> >> earlier
> >> version of xalan.jar
> >>
> >> So, I take the xalan.jar file from a Tomcat 4.1.10 install that *does*
> >> work, and
> >> I get another lovely exception, failing to find
> >> org.apache.xalan.xslt.Process.getDefaultLiaison.
> >> (or something like that...)
> >>
> >> Can't seem to isolate this.
> >>
> >> anybody seen this, or have any suggestions?
> >>
> >> TIA,
> >>
> >> -jeff
> >> 
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -- 
> > Kris Schneider 
> > D.O.Tech   
> >
> > -
> > 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]
> 


-- 
Kris Schneider 
D.O.Tech   

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



RE: Disable Automatic Form Loading

2003-06-04 Thread Navjot Singh
see ActionForm.reset()

|-Original Message-
|From: Syed Kazim Hussain [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, June 04, 2003 5:30 PM
|To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
|Subject: RE: Disable Automatic Form Loading
|
|
|I mean, when I submit my Form, the next page populates the Fields 
|with values in ActionForm. I want to stop this. How is this possible.
|
|-
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|
|

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



RE: struts-el question

2003-06-04 Thread Josh Rayls
Is there a property in class MyForm named "columns"?

-Josh

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:52 AM
To: Struts Users Mailing List
Subject: Re: struts-el question


Can you post the block using tags and the error?

Matthew Van Horn wrote:

> How do I access the form bean properties from my jsp page?
>
> I have a property called columns which is a String[] array.
> I'd like to do the equivalent of the following using tags.
>
> <%
> String[] myArray = myForm.getColumns();
> for (int i=0; i < myArray.length; i = i+7) {
> out.print("");
> for (int j=0; j < 7; j++) {
> out.print(""+ myArray[(i*7)+j] +"");
> }
> out.print("");
> }
> %>
>
> I tried this (saw it online) -  but I get an error about accessing the 
> columns property.
>
> 
>
> If it matters, columns is inherited from a BaseForm class.
>
> Thanks for helping,
> Matt
>
> -
> 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] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
And none of the markup in the xsl file would have to change?
I must say, I do like the tag-based approach better than the
scriptlet. I just couldn't get past the problem using the xsl/xerces
libraries before.
thanks, might have to give that a shot :)

-jeff

On Wednesday, June 4, 2003, at 07:21  AM, Kris Schneider wrote:

Perhaps JSTL can help make that a bit cleaner:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="html"  
uri="http://jakarta.apache.org/struts/tags-html"; %>
<%@ taglib prefix="nested"  
uri="http://jakarta.apache.org/struts/tags-nested"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>


  
  
  


  

Quoting Jeff Kyser <[EMAIL PROTECTED]>:

Thanks Simon.

One of the first difficulties I encountered was with the xsl transform
itself. I posted this (below) earlier, and didn't get any bites. See
... below.  I kept getting
handlePageException in PageContextImpl in later versions of
Tomcat/Resin and could only make the following work instead.
(It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
whatever else is in the production environment, but I needed to
upgrade...
And that (new stuff) started to look a lot like code that did not
belong on a JSP,
hence my question...
-jeff

(what I have working now)



	<%
	String xslFile = getServletContext().getRealPath("") +
"/xsl/PrintShoppingCart.xsl";
	if (doc != null && doc.trim().length() > 0) {
	TransformerFactory tFactory =
	TransformerFactory.newInstance();
	Transformer transformer =
	tFactory.newTransformer(new StreamSource(xslFile));
	transformer.transform(new StreamSource(new  
StringReader(doc)),
new StreamResult(out));
	}
	%>
	


Sorry, as I know this is off-topic, but been banging on
it most of the day and can't find much on the web either.
Have experienced the same basic problem on:

Tomcat 4.1.24
Resin 2.1.6,8,9
Can take an XML document, apply an XSL stylesheet to
it using command-line java tool:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT
foo.html
that works great.

Now, I take the same libraries - xalan.jar, xml-apis.jar, put them in
my web app, and when I hit the jsp that does the same thing, I get:
- Root Cause -
javax.servlet.ServletException: org/apache/xalan/xslt/XSLTInputSource
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont 
ex
tImpl.java:536)
 at
org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java:13 
0)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Now, from what I can tell, XSLTInputSource is deprecated from an  
earlier
version of xalan.jar

So, I take the xalan.jar file from a Tomcat 4.1.10 install that *does*
work, and
I get another lovely exception, failing to find
org.apache.xalan.xslt.Process.getDefaultLiaison.
(or something like that...)
Can't seem to isolate this.

anybody seen this, or have any suggestions?

TIA,

-jeff

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


--
Kris Schneider 
D.O.Tech   
-
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] What layer does an XSL transform belong to

2003-06-04 Thread Kris Schneider
Perhaps JSTL can help make that a bit cleaner:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"; %>
<%@ taglib prefix="nested" uri="http://jakarta.apache.org/struts/tags-nested"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>


  
  
  


  


Quoting Jeff Kyser <[EMAIL PROTECTED]>:

> Thanks Simon.
> 
> One of the first difficulties I encountered was with the xsl transform
> itself. I posted this (below) earlier, and didn't get any bites. See
> ... below.  I kept getting
> handlePageException in PageContextImpl in later versions of
> Tomcat/Resin and could only make the following work instead.
> (It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
> whatever else is in the production environment, but I needed to  
> upgrade...
> And that (new stuff) started to look a lot like code that did not  
> belong on a JSP,
> hence my question...
> 
> -jeff
> 
> (what I have working now)
> 
>   
>   
> 
>   <%
>   String xslFile = getServletContext().getRealPath("") +  
> "/xsl/PrintShoppingCart.xsl";
>   if (doc != null && doc.trim().length() > 0) {
>   TransformerFactory tFactory =
>   TransformerFactory.newInstance();
>   Transformer transformer =
>   tFactory.newTransformer(new StreamSource(xslFile));
>   transformer.transform(new StreamSource(new StringReader(doc)),  
> new StreamResult(out));
>   }
>   %>
>   
> 
> 
> Sorry, as I know this is off-topic, but been banging on
> it most of the day and can't find much on the web either.
> 
> Have experienced the same basic problem on:
> 
>   Tomcat 4.1.24
>   Resin 2.1.6,8,9
> 
> Can take an XML document, apply an XSL stylesheet to
> it using command-line java tool:
> 
>   java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT  
> foo.html
> 
> that works great.
> 
> Now, I take the same libraries - xalan.jar, xml-apis.jar, put them in
> my web app, and when I hit the jsp that does the same thing, I get:
> 
> - Root Cause -
> javax.servlet.ServletException: org/apache/xalan/xslt/XSLTInputSource
>  at  
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex 
> tImpl.java:536)
>  at  
> org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java:130)
>  at  
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> Now, from what I can tell, XSLTInputSource is deprecated from an earlier
> version of xalan.jar
> 
> So, I take the xalan.jar file from a Tomcat 4.1.10 install that *does*  
> work, and
> I get another lovely exception, failing to find  
> org.apache.xalan.xslt.Process.getDefaultLiaison.
> (or something like that...)
> 
> Can't seem to isolate this.
> 
> anybody seen this, or have any suggestions?
> 
> TIA,
> 
> -jeff
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Kris Schneider 
D.O.Tech   

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



RE: Disable Automatic Form Loading

2003-06-04 Thread Andrew Hill
So your use case is that the user enters stuff which is submitted to your
action. In the action you use that data, and now want to show the page for
the user to enter the next record so you dont want the last records values?

Ok. In this case Im guessing your simply forwarding back to the view (or
preferably the other action that comes before the view), so assuming your
using a request scoped actionform, you could change that forward to be a
redirecting forward. This will result in the original request going out of
scope and for the new request struts will provide you a clean action form
instance. If your using a session scoped form on the other hand then you
will want to manually remove/reset the one you have finished with from
inside your action before forwarding.

-Original Message-
From: Syed Kazim Hussain [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 20:00
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Disable Automatic Form Loading


I mean, when I submit my Form, the next page populates the Fields
with values in ActionForm. I want to stop this. How is this possible.

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


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



RE: Disable Automatic Form Loading

2003-06-04 Thread Syed Kazim Hussain
I mean, when I submit my Form, the next page populates the Fields 
with values in ActionForm. I want to stop this. How is this possible.

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



Re: Disable Automatic Form Loading

2003-06-04 Thread David Chelimsky
I'm guessing you're setting scope="session" and not overriding reset(). 
If so, you need to either write a reset() method or set scope="request". 
If not, what do you mean by "earlier values?"

Syed Kazim Hussain wrote:

I do not want to populate my form with earlier values. 
How do we disable Automatic Form Loading in Struts.

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


Illegal target of jump or branch

2003-06-04 Thread mmolinar
Hi, I'm  using a b3 version of Struts everything works fine my problem occurs 
when I try to use a lot of tags in the same page,about 120 ( many of them are 
img tag...)
The page that generetes the error is included with tiles in another page.
BTW I'm coding all with Pramati Studio.

Thanks a lot.
Marco.

This is how the error looks like:

 java.lang.VerifyError: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
(PramatiServletFactory.java:220)
at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
(PramatiServletFactory.java:317)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:169)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
Unhandled Error/ exception thrown from service method 
of "org.apache.struts.action.ActionServlet". Error is: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
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
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
(layout_eLeafLayout_pmt_0.java:662)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:172)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
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
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at 
com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
(webboard_message_page_message_pmt_0.java:76)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
(PramatiRequestDispatcher.java:105)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
at org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:436)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:312)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
(ServiceInterceptor.java:294)
at com.pramati.security.util.JAASSecurityHelper.doAs
(JAASSecurityHelper.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.pramati.services.security.spi.SecurityHelper.doAs
(SecurityHelper.java:130)
at com.pramati.web.interceptors.ServiceInterceptor.preProcess
(ServiceInterceptor.java:141)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:47)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.FilterInterceptor.process
(FilterInterceptor.java:92)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:48)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
   

RE: Disable Automatic Form Loading

2003-06-04 Thread Andrew Hill
earlier values?

-Original Message-
From: Syed Kazim Hussain [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:46
To: [EMAIL PROTECTED]
Subject: Disable Automatic Form Loading


I do not want to populate my form with earlier values. 
How do we disable Automatic Form Loading in Struts.

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



Disable Automatic Form Loading

2003-06-04 Thread Syed Kazim Hussain
I do not want to populate my form with earlier values. 
How do we disable Automatic Form Loading in Struts.

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



RE: [OT] Components and package

2003-06-04 Thread Andrew Hill
u... guess I slept through that lecture back in comsci 101
can you define what you mean by 'component' and 'package', as I fear my
understanding of those terms is subtly different.

-Original Message-
From: ruben [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:27
To: [EMAIL PROTECTED]
Subject: [OT] Components and package


Hi everybody, i'm doing a design documentation of an application based
on struts and I want to know, if someone can help me, which elements of
the framework are components (like EJB are components of the model), and
which elements are package inside the framework
Thanks a lot and best regards.


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



RE: Action Form Bean required ???

2003-06-04 Thread Andrew Hill
I am doing this for some of my screens - these being the listview screens -
where Im not taking in much in the way of info from the user, and hadnt
bothered to create an actionForm but just grabbed what I needed straight
from the request. Your probably better off having an action form however -
in most cases David's criticism is valid.

One 'gotcha' with not using an actionform is when you are using multipart
forms. Struts is nice enough to wrap multipart requests in a
MultipartRequestWrapper with the POSTed parameters available *but* it
populates this wrapper from the same method that populates the actionForm.
No action form means no MultipartRequestWrapper population, which means
request.getParameter will return null for all except those parameters
appended to the url to which the form was submitted. Of course that only
affects multipart forms which yourd only be using if that page needs file
upload...

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:20
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???


You could access all of the form properties in your Action with
request.getParameter("paramName"); but why would you ever do that? Using
the rest of the framework without FormBeans is like pushing your car
down the street instead of just starting the engine

Tran Nguyen Thanh Bao wrote:

>Dear all,
>
>I'm a new user of Struts. If I dont have Action Form Bean for each form in
my application, is there any problem ? I've already tried to test with no
Action Form Bean (basing on Struts examples, just remove Action Form Bean),
but not successful.
>Can I do that in some way ? Pls give me some advises from you, experienced
users :)
>
>Best Regards,
>TRANBAONGUYEN
>
>
>-
>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]



ActionErrror messages from relational database

2003-06-04 Thread Yves Sy
Anybody know how I can use error messages with ActionErrors that come
from the database and not from the properties file?


Re: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
Thanks Simon.

One of the first difficulties I encountered was with the xsl transform
itself. I posted this (below) earlier, and didn't get any bites. See
... below.  I kept getting
handlePageException in PageContextImpl in later versions of
Tomcat/Resin and could only make the following work instead.
(It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
whatever else is in the production environment, but I needed to  
upgrade...
And that (new stuff) started to look a lot like code that did not  
belong on a JSP,
hence my question...

-jeff

(what I have working now)



	<%
	String xslFile = getServletContext().getRealPath("") +  
"/xsl/PrintShoppingCart.xsl";
	if (doc != null && doc.trim().length() > 0) {
	TransformerFactory tFactory =
	TransformerFactory.newInstance();
	Transformer transformer =
	tFactory.newTransformer(new StreamSource(xslFile));
	transformer.transform(new StreamSource(new StringReader(doc)),  
new StreamResult(out));
	}
	%>
	


Sorry, as I know this is off-topic, but been banging on
it most of the day and can't find much on the web either.
Have experienced the same basic problem on:

Tomcat 4.1.24
Resin 2.1.6,8,9
Can take an XML document, apply an XSL stylesheet to
it using command-line java tool:
	java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT  
foo.html

that works great.

Now, I take the same libraries - xalan.jar, xml-apis.jar, put them in
my web app, and when I hit the jsp that does the same thing, I get:
- Root Cause -
javax.servlet.ServletException: org/apache/xalan/xslt/XSLTInputSource
at  
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex 
tImpl.java:536)
at  
org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java:130)
at  
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Now, from what I can tell, XSLTInputSource is deprecated from an earlier
version of xalan.jar
So, I take the xalan.jar file from a Tomcat 4.1.10 install that *does*  
work, and
I get another lovely exception, failing to find  
org.apache.xalan.xslt.Process.getDefaultLiaison.
(or something like that...)

Can't seem to isolate this.

anybody seen this, or have any suggestions?

TIA,

-jeff

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


[OT] Components and package

2003-06-04 Thread ruben
Hi everybody, i'm doing a design documentation of an application based
on struts and I want to know, if someone can help me, which elements of
the framework are components (like EJB are components of the model), and
which elements are package inside the framework
Thanks a lot and best regards.


Re: Action Form Bean required ???

2003-06-04 Thread David Chelimsky
You could access all of the form properties in your Action with 
request.getParameter("paramName"); but why would you ever do that? Using 
the rest of the framework without FormBeans is like pushing your car 
down the street instead of just starting the engine

Tran Nguyen Thanh Bao wrote:

Dear all,

I'm a new user of Struts. If I dont have Action Form Bean for each form in my 
application, is there any problem ? I've already tried to test with no Action Form 
Bean (basing on Struts examples, just remove Action Form Bean), but not successful.
Can I do that in some way ? Pls give me some advises from you, experienced users :)
Best Regards,
TRANBAONGUYEN
-
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: Validator Presentation

2003-06-04 Thread Mark Galbreath
Yeah, but does it work?  :-)

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 7:16 PM
To: [EMAIL PROTECTED]
Subject: Validator Presentation


To anyone who might need it, I gave a presentation on the Validator at the
Struts Atlanta group last week. The presentation has been posted on the
Struts resource page:
http://jakarta.apache.org/struts/resources/articles.html (Thanks James!).

It's also available from the Struts Atlanta Site.

Let me know if you want the powerpoint to swipe any of the slides out of it.
Email me at [EMAIL PROTECTED]

Chuck


-
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 resources and java

2003-06-04 Thread David Chelimsky
I wouldn't create resources in an Action (I don't even know how), but 
you can access them in an Action. Try this (based on a thread a couple 
of months ago):

=
#in application.resources (or wherever you store your messages)
label1.condition1=SOME VALUE
label1.condition2=SOME OTHER VALUE
=
//in your Action
MessageResources messages = getResources(request);
if (condition == condition1) {
form.setLabel1(messages.getMessage("label1.condition1");
} else if (condition == condition2) {
form.setLabel1(messages.getMessage("label1.condition2");
}
//etc, etc
The idea is

Gregory F. March wrote:

I have an application where a user logs in and what is presented to
them depends on what organization they belong to.
Things like the web page title, labels, images, etc. are different for
different organizations.
I'm thinking that I'd like to create application resources from the
login action that can be referenced with the bean:message tag.  This
way, the key is always something like myapp.page.title rather than
having to use logic: tags or jsp to determine the appropriate
resource.
My questions are:

* Is the the appropriate way to do this sort of thing?
* Irrespective of the answer to the above, can one create / modify
  application resources from java? (Like in an action?)
Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet
-
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]


Newbie Question:XML parsing

2003-06-04 Thread Sushil Jain
I am new to Struts. I am buiding an application in which I need to
explicitily read an XML file as Input , and then validate the file itself
and the fields of the record in it against some rules . Wanted to know if
Struts provide some mechanism for it or there need to use some parser like
xerces for it.
Thanks
Sushil

>Disclaimer :
>This message is intended only for the named recipient. If you are not
>the intended recipient you are notified that disclosing, copying,
>distributing or taking any action in reliance on the contents of this
>information is strictly prohibited.
>
>
>
>-
>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]
>

_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


-
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: struts validator

2003-06-04 Thread Jeff Kyser
Like I said, I dont use client-side, and its been pretty smooth
sailing for me. Sorry your experience was different, but
personally, I like it. Especially defining constants for
validation masks and using them over and over on
lots of different forms in different projects even. And the
requiredif has been pretty handy for a number of cases to boot
Of course, there are still cases where I need to go to
validate() methods in the actions, but they are less
and less, just as I use actual FormBeans less and less,
now that i halfway grok DynaValidatorForms...
cheers,

-jeff

On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:

yeah, well, DUH!  When are you guys going to realize that Validator 
should
never have come out here even in beta. It sucks.

Mark

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:25 PM
To: Struts Users Mailing List
Subject: Re: struts validator
I only did server-side validations, using v1.1b3, until I saw lots of 
people
complaining that v1.1rc1 wasn;t working for client-side validations.

I tried it (rc1) and it didn't work for me either. I haven't messed
with the
nightly builds - just went back to 1.1b3. Its probably been fixed in 
the
latest, but since 1.1rc2 is coming out soon, figure I'll wait until 
then to
check it out again.

-jeff

On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:

Beats me, dude.  I struggled with it for 3 days and said enough is
enough,
and wrote my own validations in my Action classes.  If you look
through the
mail archive, you'll see right off that this is what happens to the
majority
of people trying to get Validator to work.
Good luck,
Mark
-Original Message-
From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 8:55 PM
To: Struts Users Mailing List; Mark Galbreath
Subject: Re: struts validator
how can i fix it?

On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
That's because the Validator works by magic and you obviously have a
hex in your machine.
(sometimes I kill myself)
Mark
-Original Message-
From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 2:49 AM
To: [EMAIL PROTECTED]
Subject: struts validator
struts validator (client side validation) example is not working in
my pc, even the struts example. but it is working with the other pcs
in our office.
i noticed that when i view the page source there is no javascript
generated unlike in the other pc. is there still i have to configure
or what? im using
struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
and sometimes JBOSS 3.0.6
--
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph
Disclaimer :
This message is intended only for the named recipient. If you are not
the
intended recipient you are notified that disclosing, copying,
distributing
or taking any action in reliance on the contents of this information 
is
strictly prohibited.



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


Tiles Internationalization with Definitions

2003-06-04 Thread Ed Smith
I want to internationalize definitions in Tiles. 
Consider the following definitions in a tiles
configuation file:

 


 


  


I would like to internationalize the title values.  I
know I can create a tiles configuration file for each
language; however, these files would mostly be
duplicates of one another with only the titles changed
so maintenance would be difficult.  What's the best
way to solve this?  Is there some way to make
something like the following work?

 
/>

 

Thanks.

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



RE: Using nested tags

2003-06-04 Thread Mark Galbreath
you didn't. would you like lessons?

-Original Message-
From: lcl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:55 PM

Hi Dan,

Sorry for post it to your email directly.



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



Re: Using nested tags

2003-06-04 Thread lcl
Hi Dan,

Sorry for post it to your email directly.

I have meet the same question when I use nested tag, could you give me a
more detailed info about it, the best is some codes about it.

Thank you very much.


"Dan Tran" <[EMAIL PROTECTED]>
:[EMAIL PROTECTED]
> When you hit the submit, at the server side BeanUtils will try to insert
> the array item to your form bean.
>
> like set(int index, Item, eee)
>
> do the error handling in this code to make sure your internaly Collection
> size and handle the index, most likely you would need to increase it
> dynamically.
>
> -Dan
>
> - Original Message -
> From: "Huan Le" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 11:59 AM
> Subject: Using nested tags
>
>
> > Hello:
> >
> > Could somebody explain this error message for me?
> > E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
> > java.lang.ArrayIndexOutOfBoundsException
> >
> > I'm using nested tags to display a list of info.  Whenever, clicking the
> > submit button, I get the error above.  Do you know any solutions to
> resolve
> > this problem or any tutorial discussing this situation.
> >
> > Thank you very much.
> >
> > Huan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -
> > 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: struts validator

2003-06-04 Thread Mark Galbreath
finally, a voice of reason

-Original Message-
From: Sergey Smirnov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 10:41 PM
To: Struts Users Mailing List
Subject: Re: struts validator


David,

We are currently inserting validation mechanism support in Exadel Struts
Studio, so we tested a difference aspects of Validation in Struts a lot. As
a result, I realize that the most significant problem of Validation
framework is not bugs that still exist. Most significant problem is an
exceptions set. Struts likes to throw exceptions and those exceptions inform
user what happen inside Struts framework, but not where the actual problem
is located in the user application. Very often exception message follows
user away from real problem, so even typo becomes a problem for hours. Also,
It looks like Struts run-time does not validate validation.xml against DTD,
as a result any typo there are welcome without warnings. The problems in the
java part of Struts might be solved with any Java IDE, but the problems with
XML part becomes a really personal problem of Struts developers. Actually,
it was a primary reason we start to develop Struts Studio.

Regards,
Sergey Smirnov
-
Exadel Struts Studio - IDE for Struts http://www.exadel.com/strutsStudio
-


- Original Message - 
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 6:32 PM
Subject: RE: struts validator


> >Beats me, dude.  I struggled with it for 3 days and said enough is
enough,
> >and wrote my own validations in my Action classes.  If you look 
> >through
the
> >mail archive, you'll see right off that this is what happens to the 
> >majority of people trying to get Validator to work.
>
> That's one reason I decided to volunteer over on commons-validator.  
> I've made a major effort to cleanup the validator code so that we can 
> fix bugs faster and make it easier to use.  I'm definitely interested 
> in fixing problems you have using it but with a description like, "it 
> works
sometimes
> but not others" is not very helpful.
>
> David
>
> >
> >Good luck,
> >Mark
> >
> >-Original Message-
> >From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, June 04, 2003 8:55 PM
> >To: Struts Users Mailing List; Mark Galbreath
> >Subject: Re: struts validator
> >
> >
> >how can i fix it?
> >
> >On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
> > > That's because the Validator works by magic and you obviously have 
> > > a hex in your machine.
> > >
> > > (sometimes I kill myself)
> > > Mark
> > >
> > > -Original Message-
> > > From: Frances Aleah Z. de Guzman 
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, May 30, 2003 2:49 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: struts validator
> > >
> > >
> > > struts validator (client side validation) example is not working 
> > > in my pc, even the struts example. but it is working with the 
> > > other pcs in our office.
> > >
> > > i noticed that when i view the page source there is no javascript 
> > > generated unlike in the other pc. is there still i have to 
> > > configure or what? im using
> > >
> > > struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web 
> > > server and sometimes JBOSS 3.0.6
> >
> >--
> >Frances Aleah Z. De Guzman
> >SA/Programmer
> >Ingenium Technology, Inc.
> >http://www.ingenium.com.ph
> >
> >Disclaimer :
> >This message is intended only for the named recipient. If you are not 
> >the intended recipient you are notified that disclosing, copying,
distributing
> >or taking any action in reliance on the contents of this information 
> >is strictly prohibited.
> >
> >
> >
> >-
> >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]
> >
>
> _
> The new MSN 8: smart spam protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
>
>
> -
> 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: struts-el question

2003-06-04 Thread David Chelimsky
Can you post the block using tags and the error?

Matthew Van Horn wrote:

How do I access the form bean properties from my jsp page?

I have a property called columns which is a String[] array.
I'd like to do the equivalent of the following using tags.
<%
String[] myArray = myForm.getColumns();
for (int i=0; i < myArray.length; i = i+7) {
out.print("");
for (int j=0; j < 7; j++) {
out.print(""+ myArray[(i*7)+j] +"");
}
out.print("");
}
%>
I tried this (saw it online) -  but I get an error about accessing the 
columns property.



If it matters, columns is inherited from a BaseForm class.

Thanks for helping,
Matt
-
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] Reach out and touch someone?

2003-06-04 Thread Mark Galbreath
reach out and touch somebody at irc.darkmyst.org 6667 and flame the hell out
of me at #struts-user, you LISP fag.  If you even know how to get around in
a Unix environment on the Net.  You are probably so full of Foster piss, you
can't even type your way out of a virtual paper bag.

Mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:35 PM
To: Struts Users Mailing List
Subject: RE: [OT] Reach out and touch someone?


I dont drink fost.. oh! you mean Mark!  ;->

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 01:43
To: Struts Users Mailing List
Subject: RE: [OT] Reach out and touch someone?


Well, don't be telling everyone ... or he'll turn into a bitter and cynical
foster's beer drinking grouch  like someone we all know! ;-)

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 12:40 PM
>To: 'Struts Users Mailing List'
>Subject: [OT] Reach out and touch someone?
>
>
>heh heh...Brandon is flirting with Becky on irc.darkmyst.org 6667 right 
>now
>
>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 1:23 PM
>
>The quickest way to reach me is with AIM.
>
>
>
>-
>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: struts validator

2003-06-04 Thread Mark Galbreath
You know what, dude?  Validator should never have been released in its
present form because it sucks.  And even the authors know it.

Mark

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 9:33 PM
To: [EMAIL PROTECTED]
Subject: RE: struts validator


>Beats me, dude.  I struggled with it for 3 days and said enough is 
>enough, and wrote my own validations in my Action classes.  If you look 
>through the mail archive, you'll see right off that this is what 
>happens to the majority of people trying to get Validator to work.

That's one reason I decided to volunteer over on commons-validator.  I've 
made a major effort to cleanup the validator code so that we can fix bugs 
faster and make it easier to use.  I'm definitely interested in fixing 
problems you have using it but with a description like, "it works sometimes 
but not others" is not very helpful.

David

>
>Good luck,
>Mark
>
>-Original Message-
>From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 8:55 PM
>To: Struts Users Mailing List; Mark Galbreath
>Subject: Re: struts validator
>
>
>how can i fix it?
>
>On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
> > That's because the Validator works by magic and you obviously have a 
> > hex in your machine.
> >
> > (sometimes I kill myself)
> > Mark
> >
> > -Original Message-
> > From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 30, 2003 2:49 AM
> > To: [EMAIL PROTECTED]
> > Subject: struts validator
> >
> >
> > struts validator (client side validation) example is not working in 
> > my pc, even the struts example. but it is working with the other pcs 
> > in our office.
> >
> > i noticed that when i view the page source there is no javascript 
> > generated unlike in the other pc. is there still i have to configure 
> > or what? im using
> >
> > struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server 
> > and sometimes JBOSS 3.0.6
>
>--
>Frances Aleah Z. De Guzman
>SA/Programmer
>Ingenium Technology, Inc.
>http://www.ingenium.com.ph
>
>Disclaimer :
>This message is intended only for the named recipient. If you are not 
>the intended recipient you are notified that disclosing, copying, 
>distributing or taking any action in reliance on the contents of this 
>information is strictly prohibited.
>
>
>
>-
>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]
>

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


-
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] What layer does an XSL transform belong to

2003-06-04 Thread Simon Kelly
Jeff,

The simple answer to your question (asumming the transform is to html) is
that transformations are part of the view.  I use only xml and xslt for the
client side out put in my struts app.  What happens is that you replace all
the jsps with xslt stylesheets and an xslt processor (servlet), and the
majority of your model is replaced with DTDs or Schema.  I use the
ActionForms still with the controller to gain any information from user
input, but all of my business logic will return xml documents or text to the
Action classes, that are then forwarded to the xslt processor servlet.

If you treat the legacy app as part of the view (assuming this is the
equivilent of the xslt servlet) the it makes it easier to see this.

I would advise against manipulating a xml doc into beans.  It's very
complicated with complex DTDs or Schemas, and just addes in more complexity
to your system (not to mention a boat load more places where things can go
wrong).

If you need any more info, I can help you out with most xml, xsl xslt
problems.

Cheers

Simon


- Original Message -
From: "Jeff Kyser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 4:09 PM
Subject: [OT] What layer does an XSL transform belong to


> Hey all,
>
> A bit philisophical I suppose, but we've integrated some
> legacy apps into a Struts application, and they return their
> data as an XML document.
>
> In a previous version of the app, the JSP made the legacy
> call (gakk!), and then performed an XSL transform to display
> the info to the user. (I didn't write it :)
>
> I'm trying to migrate things towards their proper places, and
> my question is where (if anywhere) the XSL transform belongs.
>
> Ideally, I would either call the legacy app from within a
> Action, or pushed down yet another  layer behind some
> model call.
>
> But if I did a model layer, then I'd probably transfer the data
> from the XML document to a Java model object and then
> transfer data from the model to a form via the Action and let
> the tag libraries take it from there.
>
> I don't have the luxury of a rewrite, so trying to incrementally
> migrate and just not sure where the XSL transform should
> land (or at least roost).
>
> your insights would be appreciated
>
> regards,
>
> -jeff
>
>
> -
> 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]



[ANN] FreeMarker 2.3pre2 available

2003-06-04 Thread Jonathan Revusky
Greetings,

I'm making this announcement because I consider that it is of general 
interest to Struts users who are investigating other view technologies 
(i.e. alternatives to JSP).

A second preview release of FreeMarker 2.3 is available. FreeMarker is
a well known template engine written in 100% pure Java. It is used as a
component in various web application frameworks, such as JPublish,
Niggle, Open for Business, and Tammi. Also, FreeMarker can be configured
for use as the view layer for model 2 web frameworks, of which Struts
is the best known example. Here is a link to the manual page that 
explains how to configure FreeMarker for use in conjunction with Struts:

http://freemarker.org/docs/pgui_misc_servlet.html

With the 2.3 release cycle, FreeMarker continues to get better. 
FreeMarker 2.2 introduced clean support for JSP taglibs. One user raved 
that he was amazed that it was actually simpler and more straightforward 
to use JSP taglibs from FreeMarker templates than from JSP's! What this 
means, of course, is that Struts users can migrate from JSP->FM without 
losing any investment they may have in JSP taglibs (their own or from 
third parties.)

In FreeMarker 2.3, the new visit and recurse directives may well make it
easier to do recursive XSLT-style transformations in FreeMarker than 
with XSLT itself!

FM 2.3 also adds some other appealing new features, such as the ability
to use variable interpolations in string literals, and the ability to
define functions with return values in the template language.
In short, for those of you who are open to making your lives simpler by
finding more usable alternatives to better-known (and more widely-hyped)
technologies such as JSP and XSLT, FreeMarker really deserves some
serious attention.
For more information, visit http://freemarker.org/ (or
http://freemarker.sourceforge.net/)  or the FreeMarker project page at
http://sf.net/projects/freemarker .
Best Regards,

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/


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


Using multiple validators on single JSP page

2003-06-04 Thread Tak Fujimoto
I apologize if this question have already answered previously 
at http://www.mail-archive.com/[EMAIL PROTECTED]/
I haven't looked through because the server is currently under maintenance.


I am trying to use multiple validators with forms on single JSP page.

When I comment one of two forms on a JSP page, it works.
But, when I try to use both of them at a single page, it doesn't work.

With both forms, FORM2 works. (see the source below)
But, when I submit on FORM1, 
validator is not functioning and it seems an empty request is sent to Action class.
I receive an error from Action class.

Any thoughts will be greatly appreciated.
Thank you in advance.



[source]
<%-- = FORM1 == --%>













<%-- = FORM2 == --%>











[setup]
jakarta-struts-1.1-b3
jakarta-tomcat-4.0.6
torque-3.0
Red Hat Linux release 7.1 (Seawolf)
apache_1.3.26
postgresql-7.2.1
pg73jdbc3.jar
mod_jk-1.3-noeapi.so


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



Re: html:options can not automatically match value

2003-06-04 Thread Sakis Chatzinikolaou
Maybe you need to specify the name of the form bean before the
property="projclieid"
e.g.


and maybe the collection name should not be the com.nsk.gs.sales.ClientInfo

but the name you put in the request from the action class before you call
the jsp


  


The estateOfficesNames is an attribute set in the request from the action
class
The apartmentForm  is the form bean and the apartmentOffice is a property of
the bean

Hope this helps

- Original Message - 
From: "lcl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 12:33 PM
Subject: html:options can not automatically match value


> Hi all ,
>
> I have using the following code to express a select control in html using
> strtus tag:
>
> 
>labelProperty="cliename"
> property="clieid" />
> 
>
> When this jsp page is running, all is ok, but the options will not match
> what the "projclieid" is. in the dropdown list, there is one item match
the
> value,but it is not mark as "selected", what's wrong?
>
> And if I manually specific the value,such as  property="projclieid" value="aa">,
>  it will work fine, it will more surprise me...
>
> Please help me, thank you very much.
> lcl
>
>
>
>
> -
> 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 Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai

Especially to Jeff and Shane . I was looking for "ForwardAction"
thing ..


The ForwardAction does work .. 

-Original Message-
From: Joris Docx [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:17 PM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .


concerning the homepage setup, i did this: 
- 


- (home.def contains homepage body)
  
- tiles did not seem to work with ForwardAction





-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 17:16
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Tiles Two JSP's for Displaying One Form .


U can do that..
Create a globel forward(Because if you are using forwards with links, they
have to be global forwards.)



Then create a action mapping for the path.




Here the screen forwarding action does nothing but just does a forward to
successTHis can be used any where just by defining different success
forward.


And that solves the problem.

regards,
Shirish
-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:48 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


So if it is just a link, can't you create a forward action that points
to a definition in your tiles-config.xml?

for example:

 
 

where order_entry.catalog.ChooseCategory is mapped to a JSP in my 
tile-config.xml

no?

i think I need to throw in the towel :)

-jeff

On Tuesday, June 3, 2003, at 09:30  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Yes .. now you exacly understand my problem ..
> See these form pages are direct links from the Menu and not result of 
> some
> action ..
> I mean there is no form Submission and no action .. Just a link is 
> clicked
> ..
> Can you give an example for that .. if possible ..I mean how I can 
> avoid
> writing index.jsp ...
>


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




*** DISCLAIMER *** Dit e-mailbericht en alle bijgevoegde bestanden zijn
vertrouwelijk, kunnen informatie bevatten die beschermd zijn door
intellectuele eigendomsrechten, zijn gecontroleerd op computervirussen (wat
niet garandeert dat deze bestanden er volledig vrij van zijn) en zijn
uitsluitend bestemd voor gebruik door de geadresseerde.  Elk gebruik van
deze informatie (waaronder de geheel of gedeeltelijke reproductie of
verspreiding onder elke vorm) door andere personen dan de geadresseerde(n)
is verboden. Indien deze e-mail verkeerdelijk bij u terechtkomt, gelieve de
afzender te verwittigen en deze bestanden van uw computer te verwijderen.
Deze e-mail kan op geen enkele wijze een invloed hebben op de contractuele
relaties tussen de VLM en de betrokken partij. De inhoud van deze e-mail en
zijn bestanden zijn afkomstig van de auteur en verbindt niet noodzakelijk de
VLM tenzij dit bevestigd wordt door middel van een terzake geldig
ondertekend document van de VLM. Gelieve de afzender er zonder onnodig
uitstel ervan te verwittigen indien u een bevestiging in origineel van dit
bericht wenst te ontvangen.

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


Re: html:options can not automatically match value

2003-06-04 Thread lcl
Sakis,

Thank you very much. I have done as you mentioned, but the result has not
changed.
I have tried to changed the collection name to
com_nsk_gs_sales_ClientInfo(of course, do it in action form to set a same
named attribute in session), and add a name attribute in html:selection tag
, which will like :
  
  
  

the output html will like this :

  name1
  name10
  name11
  ...

but no one will be mark as "SELECTED" , WOW!

"Sakis Chatzinikolaou" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
> Maybe you need to specify the name of the form bean before the
> property="projclieid"
> e.g.
> 
>
> and maybe the collection name should not be the
com.nsk.gs.sales.ClientInfo
>
> but the name you put in the request from the action class before you call
> the jsp
>
> 
>property="estateOfficeID"  labelProperty="estateOfficeName" />
> 
>
> The estateOfficesNames is an attribute set in the request from the action
> class
> The apartmentForm  is the form bean and the apartmentOffice is a property
of
> the bean
>
> Hope this helps
>
> - Original Message -
> From: "lcl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 04, 2003 12:33 PM
> Subject: html:options can not automatically match value
>
>
> > Hi all ,
> >
> > I have using the following code to express a select control in html
using
> > strtus tag:
> >
> > 
> >> labelProperty="cliename"
> > property="clieid" />
> > 
> >
> > When this jsp page is running, all is ok, but the options will not match
> > what the "projclieid" is. in the dropdown list, there is one item match
> the
> > value,but it is not mark as "selected", what's wrong?
> >
> > And if I manually specific the value,such as  > property="projclieid" value="aa">,
> >  it will work fine, it will more surprise me...
> >
> > Please help me, thank you very much.
> > lcl
> >
> >
> >
> >
> > -
> > 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 Two JSP's for Displaying One Form .

2003-06-04 Thread Joris Docx
concerning the homepage setup, i did this: 
- 


- (home.def contains homepage body)
  
- tiles did not seem to work with ForwardAction





-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 17:16
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Tiles Two JSP's for Displaying One Form .


U can do that..
Create a globel forward(Because if you are using forwards with links, they have to be 
global forwards.)



Then create a action mapping for the path.




Here the screen forwarding action does nothing but just does a forward to 
successTHis can be used any where just by defining different success forward.


And that solves the problem.

regards,
Shirish
-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:48 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


So if it is just a link, can't you create a forward action that points
to a definition in your tiles-config.xml?

for example:

 
 

where order_entry.catalog.ChooseCategory is mapped to a JSP in my 
tile-config.xml

no?

i think I need to throw in the towel :)

-jeff

On Tuesday, June 3, 2003, at 09:30  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Yes .. now you exacly understand my problem ..
> See these form pages are direct links from the Menu and not result of 
> some
> action ..
> I mean there is no form Submission and no action .. Just a link is 
> clicked
> ..
> Can you give an example for that .. if possible ..I mean how I can 
> avoid
> writing index.jsp ...
>


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




*** DISCLAIMER *** Dit e-mailbericht en alle bijgevoegde bestanden zijn vertrouwelijk, 
kunnen informatie bevatten die beschermd zijn door intellectuele eigendomsrechten, 
zijn gecontroleerd op computervirussen (wat niet garandeert dat deze bestanden er 
volledig vrij van zijn) en zijn uitsluitend bestemd voor gebruik door de 
geadresseerde.  Elk gebruik van deze informatie (waaronder de geheel of gedeeltelijke 
reproductie of verspreiding onder elke vorm) door andere personen dan de 
geadresseerde(n) is verboden. Indien deze e-mail verkeerdelijk bij u terechtkomt, 
gelieve de afzender te verwittigen en deze bestanden van uw computer te verwijderen.
Deze e-mail kan op geen enkele wijze een invloed hebben op de contractuele relaties 
tussen de VLM en de betrokken partij. De inhoud van deze e-mail en zijn bestanden zijn 
afkomstig van de auteur en verbindt niet noodzakelijk de VLM tenzij dit bevestigd 
wordt door middel van een terzake geldig ondertekend document van de VLM. Gelieve de 
afzender er zonder onnodig uitstel ervan te verwittigen indien u een bevestiging in 
origineel van dit bericht wenst te ontvangen.

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



Action Form Bean required ???

2003-06-04 Thread Tran Nguyen Thanh Bao


Dear all,

I'm a new user of Struts. If I dont have Action Form Bean for each form in my 
application, is there any problem ? I've already tried to test with no Action Form 
Bean (basing on Struts examples, just remove Action Form Bean), but not successful.
Can I do that in some way ? Pls give me some advises from you, experienced users :)

Best Regards,
TRANBAONGUYEN


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



struts-el question

2003-06-04 Thread Matthew Van Horn
How do I access the form bean properties from my jsp page?

I have a property called columns which is a String[] array.
I'd like to do the equivalent of the following using tags.
<%
String[] myArray = myForm.getColumns();
for (int i=0; i < myArray.length; i = i+7) {
out.print("");
for (int j=0; j < 7; j++) {
out.print(""+ myArray[(i*7)+j] +"");
}
out.print("");
}
%>
I tried this (saw it online) -  but I get an error about accessing the 
columns property.



If it matters, columns is inherited from a BaseForm class.

Thanks for helping,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Release Manager

2003-06-04 Thread Tumi Mathibedi
HI,

Can anyone recommend source release management books?

regards,
Tumi
“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on 
this link http://www.vodacom.net/legal/email.asp "

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



html:options can not automatically match value

2003-06-04 Thread lcl
Hi all ,

I have using the following code to express a select control in html using
strtus tag:


  


When this jsp page is running, all is ok, but the options will not match
what the "projclieid" is. in the dropdown list, there is one item match the
value,but it is not mark as "selected", what's wrong?

And if I manually specific the value,such as ,
 it will work fine, it will more surprise me...

Please help me, thank you very much.
lcl




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



Re: Validation : No client message presented. Please help.

2003-06-04 Thread Eirik Kjølsrud
Hi again.

Krishnakumar N posted a fix for this as a reply to my first post.

> I think this is a bug with the validator-rules.xml that ships
> with rc1. The integer validation javascript may need to be
> changed slightly as follows:
>
>
> ...
> if (!isAllDigits(value)) {
> ++ if (i == 0) {
> ++ focusField = field;
> ++ }
> ++ fields[i++] = oInteger[x][1];
> bValid = false;
> } else {
> var iValue = parseInt(value);
> if (isNaN(iValue) ||
> !(iValue >= -2147483648 && iValue <= 2147483647)) {
> if (i == 0) {
> focusField = field;
> }
> fields[i++] = oInteger[x][1];
> bValid = false;
>}
> ...


Thanks,
Eirik

"Eirik Kjølsrud" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Hi.
>
> I still haven't been able to solve the problem from my post yesterday,
which
> basically is that if I use 'required' validation, a javascript alert
informs
> the user on the client side if a field is not filled in, it works
perfectly.
> However, if I try to use 'integer' validation the alert message does not
> present itself. The field is validated though, I'm not allowed to submit
the
> form before the fields have integer values, but no message is presented.
The
> errors.integer message is set up in ApplicationResources.properties.
>
> Any thoughts on why this is not working ?
>
> Best Regards
> Eirik Kjølsrud, Norway




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



Re: Validation : Can't validate integer fields...

2003-06-04 Thread Eirik Kjølsrud
Hi Krishna,

and thank you very much for your help : )

I just added the lines you specified, and now it works perfectly !!

Thanks,
Eirik

"Krishnakumar N" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Resending as previous mail seems to have got lost.
>
> Cheers,
> Krishna
>
> > -Original Message-
> > From: Krishnakumar N
> > Sent: Wednesday, June 04, 2003 2:04 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Validation : Can't validate integer fields...
> >
> >
> > I think this is a bug with the validator-rules.xml that ships
> > with rc1. The integer validation javascript may need to be
> > changed slightly as follows:
> >
> >
> > ...
> > if (!isAllDigits(value)) {
> > ++ if (i == 0) {
> > ++ focusField = field;
> > ++ }
> > ++ fields[i++] = oInteger[x][1];
> > bValid = false;
> > } else {
> > var iValue = parseInt(value);
> > if (isNaN(iValue) ||
> > !(iValue >= -2147483648 && iValue <= 2147483647)) {
> > if (i == 0) {
> > focusField = field;
> > }
> > fields[i++] = oInteger[x][1];
> > bValid = false;
> >}
> > ...
> >
> >  I do not know if this has been fixed in the latest cvs versions.
> >
> > Cheers,
> > Krishna
> >
> > > -Original Message-
> > > From: Eirik Kjølsrud [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, June 03, 2003 8:30 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Validation : Can't validate integer fields...
> > >
> > >
> > > Hi,
> > >
> > > I'm new to this group. I'm a java developer working currently
> > > on projects
> > > for the Norwegian National Lottery.
> > >
> > > In an input form, I'm trying to validate user input on the
> > > client, making
> > > sure that the values are integers. My problem is that no message is
> > > presented for "errors.integer", only for "errors.required". I
> > > have tried to
> > > list out some information in the javascript for integer
> > validation in
> > > 'validation-rules.xml', and the field is validated correctly.
> > > I also cannot
> > > submit the form unless all values are integers, but there is
> > > no messagebox
> > > telling the user what is wrong as it is when the field is empty.
> > >
> > > Any help would be appreciated : )
> > >
> > > Best Regards
> > > Eirik Kjølsrud, Norway
> > >
> > > Here are some details :
> > >
> > > I am using a DynaValidatorForm :
> > >  > > type="org.apache.struts.validator.DynaValidatorForm">
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > The part for the formset in the validation.xml file :
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > depends="required,integer">
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > And finally the ApplicationResources where the messages are
> > stored. As
> > > mentioned, the required message is presented, but not the integer :
> > >
> > > # Validator errormessages
> > >
> > > errors.required={0} må fylles ut.
> > >
> > > errors.integer={0} må være et heltall.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > -
> > > 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: Validation : Can't validate integer fields...

2003-06-04 Thread Krishnakumar N
Resending as previous mail seems to have got lost.

Cheers,
Krishna 

> -Original Message-
> From: Krishnakumar N 
> Sent: Wednesday, June 04, 2003 2:04 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Validation : Can't validate integer fields...
> 
> 
> I think this is a bug with the validator-rules.xml that ships 
> with rc1. The integer validation javascript may need to be 
> changed slightly as follows:
> 
> 
> ...
> if (!isAllDigits(value)) {
> ++if (i == 0) {
> ++focusField = field;
> ++}
> ++fields[i++] = oInteger[x][1];
>   bValid = false;
> } else {
>   var iValue = parseInt(value);
>   if (isNaN(iValue) || 
> !(iValue >= -2147483648 && iValue <= 2147483647)) {
>   if (i == 0) {
>   focusField = field;
>   }
>   fields[i++] = oInteger[x][1];
>   bValid = false;
>  }
> ...
> 
>  I do not know if this has been fixed in the latest cvs versions.
> 
> Cheers,
> Krishna 
> 
> > -Original Message-
> > From: Eirik Kjølsrud [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 8:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Validation : Can't validate integer fields...
> > 
> > 
> > Hi,
> > 
> > I'm new to this group. I'm a java developer working currently 
> > on projects
> > for the Norwegian National Lottery.
> > 
> > In an input form, I'm trying to validate user input on the 
> > client, making
> > sure that the values are integers. My problem is that no message is
> > presented for "errors.integer", only for "errors.required". I 
> > have tried to
> > list out some information in the javascript for integer 
> validation in
> > 'validation-rules.xml', and the field is validated correctly. 
> > I also cannot
> > submit the form unless all values are integers, but there is 
> > no messagebox
> > telling the user what is wrong as it is when the field is empty.
> > 
> > Any help would be appreciated : )
> > 
> > Best Regards
> > Eirik Kjølsrud, Norway
> > 
> > Here are some details :
> > 
> > I am using a DynaValidatorForm :
> >  > type="org.apache.struts.validator.DynaValidatorForm">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > The part for the formset in the validation.xml file :
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > depends="required,integer">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > And finally the ApplicationResources where the messages are 
> stored. As
> > mentioned, the required message is presented, but not the integer :
> > 
> > # Validator errormessages
> > 
> > errors.required={0} må fylles ut.
> > 
> > errors.integer={0} må være et heltall.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> -
> > 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]



CAM - Removing User Principal

2003-06-04 Thread Dave Mulligan
I'm creating a number of completely separate applications that sit on the
same server. The
only thing they have in common between them is single sign-on. I have the
Controller app
'http://localhost:8080/' where the user logs in. Once logged in, the user
can access any of
the other application /app1, /app2 etc.

I'm using container managed authentication. I *believe* once the user logs
into the '/' context
path, the user principal will be available to all application under that
context path. i.e. '/app1'
Correct?

This all works fine for me but for one problem. Logging out!
I'm able to invalidate the session, but how do I remove the user principal
from the request?





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



deploying struts' actions and jsp views separately

2003-06-04 Thread Ionel Gardais
Hi,

I'd like to know if it's possible to deploy two packages (one containing 
the Struts' actions and all the logical stuff and the the other 
conantaing the JSP views) separately ?

It should be possible but how to solve the problem of the 
struts-config.xml where are defined the forward paths ?
Can these paths be FQDN URL like http://mysite.com/myapp/blah.jsp ?

My whish is to provide a package with all the server side logic and let 
the other guys develop the views the way they want without having to 
repackage the all app.

Thanks for your help,
ionel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with "tag libs" & Web Server Iplante 6.0 SP4

2003-06-04 Thread Antonio Presa

Hello everyone,

I have a problem with Web Server Iplanet 6.0 SP4. When
I included more than 50 custom tags in a jsp I get an
internal error (see below). I use a lot of struts tags
so it's a big problem for me. However I don't get the
problem using Tomcat (Why?).
Someone told me that the problem could be a limitation of
jsp page compiler and gave me two solutions:
don't use tags :(, and
separete jsp with "includes" sentences. But my project
is very large with a lot pages and it would be very
hard. Anybody knows another solution? Maybe changing
configuration or version of Web Server?

Thanks in advance,

Antonio.


[03/Jun/2003:09:09:20] failure (17407): Internal error: servlet service
function had thrown Serv
letException (uri=/sintra/m_deleg_form_crear.do):
org.apache.jasper.JasperException: Unable to c
ompile class for JSPNote: sun.tools.javac.Main has been deprecated.
../ClassCache/https-struts/sintra/_jsps/_maestros/_uOrganizativas/_delegacio
nes/_m_deleg_form_cr
ear_jsp.java:1575: Variable _jspx_eval_bean_message_22 may not have been
initialized.
if (_jspx_eval_bean_message_22 != Tag.SKIP_BODY) {
^
../ClassCache/https-struts/sintra/_jsps/_maestros/_uOrganizativas/_delegacio
nes/_m_deleg_form_cr
ear_jsp.java:1581: Variable _jspx_th_bean_message_22 may not have been
initialized.
if (_jspx_th_bean_message_22.doEndTag() == Tag.SKIP_PAGE)
^
2 errors, 1 warning
, stack: org.apache.jasper.JasperException: Unable to compile class for
JSPNote: sun.tools.javac
.Main has been deprecated.
../ClassCache/https-struts/sintra/_jsps/_maestros/_uOrganizativas/_delegacio
nes/_m_deleg_form_cr
ear_jsp.java:1575: Variable _jspx_eval_bean_message_22 may not have been
initialized.
if (_jspx_eval_bean_message_22 != Tag.SKIP_BODY) {
^
../ClassCache/https-struts/sintra/_jsps/_maestros/_uOrganizativas/_delegacio
nes/_m_deleg_form_cr
ear_jsp.java:1581: Variable _jspx_th_bean_message_22 may not have been
initialized.
if (_jspx_th_bean_message_22.doEndTag() == Tag.SKIP_PAGE)
^
2 errors, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.ja
va:204)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.j
ava:170)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:478)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.
java:897)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
059)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:95
9)
at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatc
her.java:
48)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.
java:897)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
059)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:95
9)



Thanks in advance,

Antonio


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



Validation : No client message presented. Please help.

2003-06-04 Thread Eirik Kjølsrud
Hi.

I still haven't been able to solve the problem from my post yesterday, which
basically is that if I use 'required' validation, a javascript alert informs
the user on the client side if a field is not filled in, it works perfectly.
However, if I try to use 'integer' validation the alert message does not
present itself. The field is validated though, I'm not allowed to submit the
form before the fields have integer values, but no message is presented. The
errors.integer message is set up in ApplicationResources.properties.

Any thoughts on why this is not working ?

Best Regards
Eirik Kjølsrud, Norway




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



RE: Tiles DTD 1.1RC1

2003-06-04 Thread Peter . Keller
Finally, I found the bug on my own.

Adding following line in web.xml, made disappearing the exceptions:


action
org.apache.struts.action.ActionServlet
...
 

  application
  com.mycom.myapp.application

...


where param-value is the logical path to your application.properties file 
(coresponding to your CLASSPATH).

Actually, I found this trick in the web.xml of the tiles-documentation application by 
Cedric shipped with my struts distribution. This should be mentioned more conspicuous 
elsewhere. Or even better, FIX THIS BUG, please!!!

By the way, I have no idea, why the tiles-config.xml can not be loaded if the 
application.properties can not be found...? 

Peter


-Original Message-
From: Keller Peter U IT EW 
Sent: Dienstag, 3. Juni 2003 14:42
To: [EMAIL PROTECTED]
Subject: Tiles DTD 1.1RC1


I updated my app from 1.1b2 to 1.1rc1 (nightly build from May 25). However, I was not 
able to reload it due to parsing problems of the Tiles' DTD file (see below).

=> In 1.1b2 everything was find, in 1.1b3 or and any 1.1rc1 the uploading is not 
possible?
=> I deleted all old *.jsp
=> what did change? 
=> what is wrong?
=> it's not the first time I ask this question to this list, however, no answer yet...

Thanks for helping.

Peter

My tiles-defs.xml starts with following line


  
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
  

>From my Log file


DEBUG org.apache.commons.beanutils.ConvertUtils -   Using converter [EMAIL PROTECTED]
DEBUG org.apache.commons.digester.Digester - register('-//Apache Software 
Foundation//DTD Tiles Configuration//EN', 
'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
DEBUG org.apache.commons.digester.Digester - register('-//Apache Software 
Foundation//DTD Tiles Configuration 1.1//EN', 
'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator([EMAIL PROTECTED])
DEBUG org.apache.commons.digester.Digester.sax - startDocument()
DEBUG org.apache.commons.digester.Digester.sax - resolveEntity('-//Apache Software 
Foundation//DTD Tiles Configuration 1.1//EN', 
'http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd')
DEBUG org.apache.commons.digester.Digester -  Resolving to alternate DTD 
'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
ERROR org.apache.struts.tiles.TilesPlugin - Can't create Tiles definition factory for 
module ''.


>From my Browser after unsuccessfully uploading
--

javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. 
JAR entry org/apache/struts/resources/tiles-config_1_1.dtd not found in 
/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:235)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1156)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  ...

javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. 
JAR entry org/apache/struts/resources/tiles-config_1_1.dtd not found in 
/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:235)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1156)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  ...

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


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



Problem installing Struts 1.1 on Sun ONE (iPlanet) Web Server

2003-06-04 Thread Foong Tzer
Hi,

I've recently installed the Sun ONE Web Server (previously known as
iPlanet) version 6 SP5 on Solaris 8 and would like to deploy a
JSP/Servlet application using Struts.  Below is my experience when I
tried to run the struts-example WAR file packaged in different versions
of Struts. Does anyone know how to fix them so I can deploy at least
Struts 1.1 on iPlanet?

Many thanks in advance.

Struts 1.0
---
-> No problems


Struts 1.1beta2

Failed to start the iPlanet virtual server. Error found in iPlanet log
file:
[29/May/2003:10:09:38] info (24986): Adding web application
(/struts-example) at (/u01/app/sunone6/docs/struts-example)
[29/May/2003:10:09:38] info (24986): Loading IWSSessionManager by
default.
[29/May/2003:10:09:38] info (24986): IWSSessionManager: Maximum number of
sessions is 1000
[29/May/2003:10:09:38] failure (24986): Internal error: Unexpected error
condition thrown (unknown exception,no description), stack:
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:326)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
at org.apache.struts.action.ActionServlet.(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEntity.java:71)
at com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:317)
at com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:181)
at 
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:708)


Struts 1.1 RC 1

Able to start iPlanet virtual server but unable to run the struts-example
("Page cannot be displayed" error on IE)
Error from iPlanet log file:
[03/Jun/2003:09:48:24] info ( 1906): vs(https-ukul01)servlet 'jsp' class
= 'org.apache.jasper.servlet.JspServlet' loaded in context =
'/struts-example'
[03/Jun/2003:09:48:24] info ( 1906): jsp: init
[03/Jun/2003:09:48:24] info ( 1906): jsp: init
[03/Jun/2003:09:48:24] failure ( 1906): Internal error: servlet service
function had thrown ServletException (uri=/struts-example/):
javax.servlet.ServletException, stack: javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
at _jsps._index_jsp._jspService(_index_jsp.java:446)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at 
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at 
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
, root cause: javax.servlet.jsp.JspException
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
at _jsps._index_jsp._jspService(_index_jsp.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at 
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at 
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)


Warm regards,

  Tzer
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - IMAP accessible web-mail

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



Submit issue for new form with struts

2003-06-04 Thread raghu_c



hi,
 
I am a newbie to 
struts, got this problem...
 
We got a jsp that 
displays a grid of records; on dbl click of any record, 
I need to submit the 
form into a pop up window - and do a lot of actions 
besides using the 
form bean of the originating page as well as the form bean 
of the popup page. 
So i got an action class / delegate etc defined for the 
popup.
 
trouble is, I am 
unable to submit the form on the dbl click itself -
the popup page opens 
if I use a html:rewrite tag or even plain html but the action method (execute) 
is not called.
 
Any pointers will be 
highly appreciated,
 
Thanx,
Raghu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
It probably will in the morning :) getting bleary eyed differencing two
repositories at the moment.
Thanks for the thoughtful reply!

-jeff

On Tuesday, June 3, 2003, at 11:30  PM, Navjot Singh wrote:

The coupling may not be necessary at all. It's the way you look at it.

_First Approach_

Controller -> Model -> View (jsp)
View has the power of do some computation here. So, it create 1 
composition
class

class T
{
private String xml;
private String xsl;
}
and pass T to view layer. Where jsp can run some taglib to do the
transofrmation.
** You are NOT coupled at all. **
_Second Approach_

However, the other (and rather complex) way around could be to have
+ MyAction and MyRequestProcessor,
+ override the necessary methods.
In MyAction write some method to handle null ActionForwards and
pass on T's object to some method in MyRequestProcessor that does
the transformation.
** View is definitely coupled to some extent **

I have been using this latter method before i know taglibs
and may still prefer it over JSPs ;-)
HTMS
Navjot Singh
|-Original Message-
|From: Jeff Kyser [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, June 04, 2003 5:25 AM
|To: Struts Users Mailing List
|Subject: Re: [OT] What layer does an XSL transform belong to
|
|
|Hey Dave, Navjot,
|
|Thanks for the responses - and I agree with your assessments.
|The nagging thing that bugs me is that by doing this (having a
|legacy app return its data in the form of an XML document, and
|then rendering the document directly on the presentation layer),
|is that it would seem that the presentation layer is more tightly
|coupled to the model layer than I would like it to be.
|
|So maybe the better question is - is this just generally a bad way
|to do things? with the better way being to parse the document into
|a model object behind the scenes, let the controller (Action) transfer
|information as needed into form beans and have the jsp do the
|rendering at that point?
|
|As I said before, its not a 'from scratch' effort, and I've been
|pushing it in the right direction, but hard to know sometimes
|how far to push...
|
|thanks,
|
|-jeff
|
|On Tuesday, June 3, 2003, at 05:43  PM, David Tobey wrote:
|
|> I would argue presentation layer. In a more typical Struts
|> application, the
|> content would consist of one or more Java bean objects. The
|> presentation
|> layer, eg JSP pages, then renders those objects.
|>
|> But in your case, the content is in the form of an XML document. The
|> presentation layer is still the one responsible for rendering the
|> content
|> into something, in your case, by using XSL to transform the XML.
|>
|> dave
|>
|>> -Original Message-
|>> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
|>> Sent: Tuesday, June 03, 2003 8:09 AM
|>> To: [EMAIL PROTECTED]
|>> Subject: [OT] What layer does an XSL transform belong to
|>>
|>>
|>> Hey all,
|>>
|>> A bit philisophical I suppose, but we've integrated some
|>> legacy apps into a Struts application, and they return their
|>> data as an XML document.
|>>
|>> In a previous version of the app, the JSP made the legacy
|>> call (gakk!), and then performed an XSL transform to display
|>> the info to the user. (I didn't write it :)
|>>
|>> I'm trying to migrate things towards their proper places, and
|>> my question is where (if anywhere) the XSL transform belongs.
|>>
|>> Ideally, I would either call the legacy app from within a
|>> Action, or pushed down yet another  layer behind some
|>> model call.
|>>
|>> But if I did a model layer, then I'd probably transfer the data
|>> from the XML document to a Java model object and then
|>> transfer data from the model to a form via the Action and let
|>> the tag libraries take it from there.
|>>
|>> I don't have the luxury of a rewrite, so trying to incrementally
|>> migrate and just not sure where the XSL transform should
|>> land (or at least roost).
|>>
|>> your insights would be appreciated
|>>
|>> regards,
|>>
|>> -jeff
|>>
|>>
|>
|>
|> 
-
|> 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: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Navjot Singh
The coupling may not be necessary at all. It's the way you look at it.

_First Approach_

Controller -> Model -> View (jsp)
View has the power of do some computation here. So, it create 1 composition
class

class T
{
private String xml;
private String xsl;
}

and pass T to view layer. Where jsp can run some taglib to do the
transofrmation.
** You are NOT coupled at all. **

_Second Approach_

However, the other (and rather complex) way around could be to have
+ MyAction and MyRequestProcessor,
+ override the necessary methods.

In MyAction write some method to handle null ActionForwards and
pass on T's object to some method in MyRequestProcessor that does
the transformation.

** View is definitely coupled to some extent **

I have been using this latter method before i know taglibs
and may still prefer it over JSPs ;-)

HTMS
Navjot Singh


|-Original Message-
|From: Jeff Kyser [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, June 04, 2003 5:25 AM
|To: Struts Users Mailing List
|Subject: Re: [OT] What layer does an XSL transform belong to
|
|
|Hey Dave, Navjot,
|
|Thanks for the responses - and I agree with your assessments.
|The nagging thing that bugs me is that by doing this (having a
|legacy app return its data in the form of an XML document, and
|then rendering the document directly on the presentation layer),
|is that it would seem that the presentation layer is more tightly
|coupled to the model layer than I would like it to be.
|
|So maybe the better question is - is this just generally a bad way
|to do things? with the better way being to parse the document into
|a model object behind the scenes, let the controller (Action) transfer
|information as needed into form beans and have the jsp do the
|rendering at that point?
|
|As I said before, its not a 'from scratch' effort, and I've been
|pushing it in the right direction, but hard to know sometimes
|how far to push...
|
|thanks,
|
|-jeff
|
|On Tuesday, June 3, 2003, at 05:43  PM, David Tobey wrote:
|
|> I would argue presentation layer. In a more typical Struts
|> application, the
|> content would consist of one or more Java bean objects. The
|> presentation
|> layer, eg JSP pages, then renders those objects.
|>
|> But in your case, the content is in the form of an XML document. The
|> presentation layer is still the one responsible for rendering the
|> content
|> into something, in your case, by using XSL to transform the XML.
|>
|> dave
|>
|>> -Original Message-
|>> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
|>> Sent: Tuesday, June 03, 2003 8:09 AM
|>> To: [EMAIL PROTECTED]
|>> Subject: [OT] What layer does an XSL transform belong to
|>>
|>>
|>> Hey all,
|>>
|>> A bit philisophical I suppose, but we've integrated some
|>> legacy apps into a Struts application, and they return their
|>> data as an XML document.
|>>
|>> In a previous version of the app, the JSP made the legacy
|>> call (gakk!), and then performed an XSL transform to display
|>> the info to the user. (I didn't write it :)
|>>
|>> I'm trying to migrate things towards their proper places, and
|>> my question is where (if anywhere) the XSL transform belongs.
|>>
|>> Ideally, I would either call the legacy app from within a
|>> Action, or pushed down yet another  layer behind some
|>> model call.
|>>
|>> But if I did a model layer, then I'd probably transfer the data
|>> from the XML document to a Java model object and then
|>> transfer data from the model to a form via the Action and let
|>> the tag libraries take it from there.
|>>
|>> I don't have the luxury of a rewrite, so trying to incrementally
|>> migrate and just not sure where the XSL transform should
|>> land (or at least roost).
|>>
|>> your insights would be appreciated
|>>
|>> regards,
|>>
|>> -jeff
|>>
|>>
|>
|>
|> -
|> 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: Storing the Output of a Servlet to Database

2003-06-04 Thread Navjot Singh
hmm... so i completely took it other way round.

i though the other problem couldn't be that BIG as the entire control is
with you.
Whatever output is being generated by servlet, you CAN use it anyway,
+ throw it to browser.
+ write to database.
+ or send it other servlet.

Or is there anything i am completely overlooking at?

You may also like to see ServletOutputStream rather than PrintWriter.

navjot

|-Original Message-
|From: Rajesh P [mailto:[EMAIL PROTECTED]
|Sent: Tuesday, June 03, 2003 7:54 PM
|To: Struts Users Mailing List
|Subject: RE: Storing the Output of a Servlet to Database
|
|
|Hi,
|I am aware of how to store the contents to the database. What i am
|really interested is how to capture the output of the servlet.
|Forget PDF, assume that the Servlet is just serving a normal html
|content. After the servlet has given this to the response, how to
|capture this as a byte stream is my real question.
|Thanks,
|Rajesh
|
|-Original Message-
|From: Navjot Singh [mailto:[EMAIL PROTECTED]
|Sent: Tuesday, June 03, 2003 7:44 PM
|To: Struts Users Mailing List
|Subject: RE: Storing the Output of a Servlet to Database
|
|
|
|Ideally, you should store the document on file system, the better place for
|PDF BUT you may some weird requirement
|Anyway, if you are adamant on doing this.
|
|--first way--
|
|0. create a field in your database with blob data type. (I have MySQL) but
|oracle/ mssql7 all have this data type.
|1. generated pdf document needs to converted into binary data. ( it is be
|default ;-)
|2. write it down to that field as normal query.
|
|you may wish to see java.sql.Blob and java.sql.prepraedStatement.setBlob
|
|--second way--
|0. create a field in your database with varbinary type.
|1. generated pdf document. read it as byte stream and get arrys of bytes.
|2. write it down to that field as normal query.
|
|see java.sql.prepraedStatement.setBytes
|
|HTH
|navjot
|
|
|
||-Original Message-
||From: Rajesh P [mailto:[EMAIL PROTECTED]
||Sent: Tuesday, June 03, 2003 5:28 PM
||To: Struts Users Mailing List
||Subject: Storing the Output of a Servlet to Database
||
||
||Hello Everyone,
||I have a requirement wherein a Servlet class is used to generate a
||PDF document. This output should be stored into a database table
||for future retrieval. Can somebody tell me how this output of the
||Servlet can be captured and stored into a database table? Or
||rather, how to capture the response outputstream, convert it to
||bytes so that it can be persisted in the datbase. Please note that
||we are not allowed to write to a File and then upload it.
||Thanks,
||Rajesh
||
||-
||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: Intelligent Refresh/Reloading

2003-06-04 Thread Andrew Hill
No.

The webserver has no way of notifying the client that it needs to load the
page again.

Struts doesnt provide anything to help with this.

Some attempted solutions Ive seen include the good old polling method (js
causes the page to reaload every minute or so) which is inefficient and
inelegant, and 'pushlets' which are an evil hack where the server doesnt
close the connection to the client (tying up a socket), and can write lines
of javascript to the connection occasionally causing the client to do stuff.
Neither are very robust.

One might also consider the idea of an applet that maintains its own
connection with the server but Ive not implemented such a thing myself.

-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 19:49
To: Struts Users Mailing List
Subject: Intelligent Refresh/Reloading



Chaps

I have a list of records that are displayed on a web page, the database
receives new records periodically, is there a way to determine when a new
record is loaded into the dB and then using Struts reload that page when a
new record is added?

Regards

Jason



***
The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free.
You must therefore take full responsibility for virus checking.
The FIMAT Group reserve the right to monitor e-mail communications
through its networks.

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK "Private
Customers" (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct of
UK Business and is entered in the Financial Services Authority's register
(Register Number 183415), access to which can be gained via the following
link: www.fsa.gov.uk/register/

Member and a SETS Participant of the London Stock Exchange ("LSE").
Where this communication is confirming an "on exchange" transaction
(as defined by the LSE),the transaction is subject to the rules of the LSE.
Any information, opinions, estimates and forecasts contained in this
document have been arrived at or obtained from public sources believed
to be reliable and in good faith which has not been independently
verified and no warranty, express or implied, is made as to their accuracy,
completeness or correctness.

This document is not an offer to sell or a solicitation to acquire or
dispose
of an interest in financial instruments.

If you have received this transmission in error, please telephone
+44 020 7676 8999 immediately so that we can arrange for its return.
***


-
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: Posted Again: Build Navigation based on action mapping

2003-06-04 Thread Andrew Hill
In my app I ended up creating a plugin that would use digester to read an
xml file (navigation-config.xml) and create objects describing my navigation
links (most of which are displayed in a js tree widget over in the left
frame).

I didnt relate them directly to actions, but in hindsight I could have done
that instead of directly having the urls in navigation-config.

By seperating it out into a seperate xml file you have much more flexibility
than if you try doing it from struts config - and of course you can design
it so that it references mappings that are in struts config.


-Original Message-
From: Haytham Samad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 21:00
To: Struts Users Mailing List
Subject: Posted Again: Build Navigation based on action mapping



Sorry for reposting but wanted to get some feedback on this as I am sure
everyone here had to deal with this at some point.  I am trying to find a
way to have navigation built based on the struts-config.xml's action
mappings.  Since all my use cases are enabled through action listed under
action mapping, this seemed like a good place to start.  Anyone done this
before or has other robust ideas to build a navigation that can update as my
site's features change?

Thanks,

Haytham

Below is my first posting:

I am trying to build a navigation component that basically runs of the
struts config file's action mappings.  Anyone ever done this before or has
ideas on ways to build navigation from the struts config xml file?  I would
like it to dynamically update with changes to my site's navaigation/flow and
use the role information included with the mappings.

Thanks.

Haytham


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



OT: Re: List rows in a table using Beans instead of Recordset

2003-06-04 Thread Vic Cekvenich
This is OT for a frame  work, consider posting JDBC questions on 
comp.lang.java.databases or SQL SIGs, but...

Most people that use framework like Struts, use a DAO (like iBatis ... 
or Hibreante) and do not code at ResultSet level, else we would be using 
a servlet and not a framework.
Struts provides nothing for a DAO, a very nice feature, so you can pick 
anything you like (but picking nothing is not ideal). Look at above 2 
for starters.

For offsetting I use SELECT  LIMIT 10 OFFSET 1, using a SQL command 
at the DAO level. From Struts you just want to track which OFFSET to 
pass to DAO.
(Yes, most DAOs do caching and flushing automatically). Also OT, using 
cursors is a bad SQL practice, but any SQL list will tell you that.

hth,

.V

Johannes Tyve wrote:

Hi

I'm new to Struts and would like some directions.

I'm used to servlets, jsp, scriplets with recordset eg. 
ResultSet rs = stmt.executeQuerY("");
while( rs.next() )
{ %>
   <%= rs.getString("...") %>
<%}

Now I store my data in a bean (loaded from a row in the database) and it 
works fine when I load, store and update one single row but how do I do 
when I have a list of rows?
I could load all my rows into a collection of beans but what if there are 
millions of rows? Using a recordset I can limit my selection to 10 records 
at a time and then move my database cursor forward or reverse to show the 
next /prev 10 records. How is this performed using Struts and beans?

Regards,
Johannes
 

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North 
East.
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress


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


RE: tiles:getAsString within bean:message?

2003-06-04 Thread Mick Knutson
That did the trick. Thanks,



---
Thanks...
Mick Knutson
---




From: "Hue Holleran" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: tiles:getAsString within bean:message?
Date: Tue, 3 Jun 2003 22:04:52 +0100
I though the answer may be in the thread - link sent to you, previously:

In menu.jsp:


...

Does this not work?

See also other msgs on thread rgding using el. el is a better approach but
may not fit as well if you have not used el before.
H.

> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 21:41
> To: [EMAIL PROTECTED]
> Subject: RE: tiles:getAsString within bean:message?
>
>
> OK, but I don't understand where the bean:message comes in now?
> How does the key get accessed through the ResourceBundle?
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
> >From: "Bailey, Shane C." <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> >Subject: RE: tiles:getAsString within bean:message?
> >Date: Tue, 3 Jun 2003 15:56:10 -0400
> >
> >
> >Try something like this:
> >
> >Template.jsp:
> >...
> > 
> >
> >
> > 
> >...
> >
> >in menu.jsp:
> >
> >
> >
> >
> >
> >-Original Message-
> >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 03, 2003 2:42 PM
> >To: [EMAIL PROTECTED]
> >Subject: tiles:getAsString within bean:message?
> >
> >I am trying, unsuccesfully to create an ApplicationResource driven 
label
> >for
> >
> >the menu.jsp. Can anyone help get this to work:
> >
> >
> >
> >
> >
> >---
> >Thanks...
> >Mick Knutson
> >---
> >
> >_
> >Add photos to your messages with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >
> >-
> >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]
> >
>
> _
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


[ANNOUNCE] Struts Presentation @ JavaOne

2003-06-04 Thread James Holmes
I'm going to be giving a presentation on Struts @ JavaOne next week for
anyone that's interested.  The presentation is going to be held in the
Oracle Guru Theatre, booth 639 on Tuesday @ 2pm.  Here's the abstract
for the presentation:
 
Developing Struts Applications with Oracle JDeveloper 9i
This presentation aims to be an introduction to developing Struts
applications with Oracle JDeveloper 9i, covering the most salient points
including: setting up a Struts application in JDeveloper, coding the
application in JDeveloper and debugging the application with JDeveloper.
 
For more details visit:
 
http://otn.oracle.com/events/javaone03/JavaOneGuruTheatre.html
 
Thanks,
 
James Holmes
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


Re: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
Hey Dave, Navjot,

Thanks for the responses - and I agree with your assessments.
The nagging thing that bugs me is that by doing this (having a
legacy app return its data in the form of an XML document, and
then rendering the document directly on the presentation layer),
is that it would seem that the presentation layer is more tightly
coupled to the model layer than I would like it to be.
So maybe the better question is - is this just generally a bad way
to do things? with the better way being to parse the document into
a model object behind the scenes, let the controller (Action) transfer
information as needed into form beans and have the jsp do the
rendering at that point?
As I said before, its not a 'from scratch' effort, and I've been
pushing it in the right direction, but hard to know sometimes
how far to push...
thanks,

-jeff

On Tuesday, June 3, 2003, at 05:43  PM, David Tobey wrote:

I would argue presentation layer. In a more typical Struts 
application, the
content would consist of one or more Java bean objects. The 
presentation
layer, eg JSP pages, then renders those objects.

But in your case, the content is in the form of an XML document. The
presentation layer is still the one responsible for rendering the 
content
into something, in your case, by using XSL to transform the XML.

dave

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: [OT] What layer does an XSL transform belong to
Hey all,

A bit philisophical I suppose, but we've integrated some
legacy apps into a Struts application, and they return their
data as an XML document.
In a previous version of the app, the JSP made the legacy
call (gakk!), and then performed an XSL transform to display
the info to the user. (I didn't write it :)
I'm trying to migrate things towards their proper places, and
my question is where (if anywhere) the XSL transform belongs.
Ideally, I would either call the legacy app from within a
Action, or pushed down yet another  layer behind some
model call.
But if I did a model layer, then I'd probably transfer the data
from the XML document to a Java model object and then
transfer data from the model to a form via the Action and let
the tag libraries take it from there.
I don't have the luxury of a rewrite, so trying to incrementally
migrate and just not sure where the XSL transform should
land (or at least roost).
your insights would be appreciated

regards,

-jeff




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


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


Re: Using nested tags

2003-06-04 Thread Dan Tran
When you hit the submit, at the server side BeanUtils will try to insert
the array item to your form bean.

like set(int index, Item, eee)

do the error handling in this code to make sure your internaly Collection
size and handle the index, most likely you would need to increase it
dynamically.

-Dan

- Original Message - 
From: "Huan Le" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 11:59 AM
Subject: Using nested tags


> Hello:
>
> Could somebody explain this error message for me?
> E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
> java.lang.ArrayIndexOutOfBoundsException
>
> I'm using nested tags to display a list of info.  Whenever, clicking the
> submit button, I get the error above.  Do you know any solutions to
resolve
> this problem or any tutorial discussing this situation.
>
> Thank you very much.
>
> Huan
>
>
>
>
>
>
>
>
>
>
> -
> 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]



Validator Presentation

2003-06-04 Thread Chuck Cavaness
To anyone who might need it, I gave a presentation on the Validator at the Struts 
Atlanta group last week. The presentation has been posted on the Struts resource page: 
http://jakarta.apache.org/struts/resources/articles.html (Thanks James!).

It's also available from the Struts Atlanta Site.

Let me know if you want the powerpoint to swipe any of the slides out of it. Email me 
at [EMAIL PROTECTED]

Chuck


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



Re[2]: Advice with reading multiple html:selects

2003-06-04 Thread netizen1
Hello Varun,

Tuesday, June 3, 2003, 2:21:32 PM, you wrote:

VG> It does not matter about building it dynamically, what matter is what
VG> was selected when the form was submitted.

VG> Only the selected values are transmitted back and they should all come
VG> back in that array.



VG> -Original Message-
VG> From: netizen1 [mailto:[EMAIL PROTECTED] 
VG> Sent: Tuesday, June 03, 2003 4:16 PM
VG> To: [EMAIL PROTECTED]
VG> Subject: Advice with reading multiple html:selects


VG> Hello,

VG>   I have read the newsgroups regarding multiple selects.
VG>   I have a multiple html:select control that starts out empty
VG>   I populate the select control by using a textbox and an add button
VG>   so it is filled dynamically.
  

VG>   My html:select is:
VG>   

VG>   which comes out like :
VG>style="width:500 px; height: 61px">

VG>   I have an action Form that has:

VG>   private String[] gstrQuestionOptions= null;

VG>   public String[] getQuestionOptions()
VG>   {
VG>  return this.gstrQuestionOptions;
VG>   }
VG>   public void setQuestionOptions( String[] value )
VG>   {
VG>  this.gstrQuestionOptions = value;
VG>   }

VG>   Even in the validate i try the following
VG>   System.out.println( getQuestionOptions().length ) and i get
VG>   java.lang.NullPointerException

VG>   Since the select control is dynamically populated would i have to
VG>   use something like request.getParameterValues("questionOptions")
VG>   instead?


VG>   Thank you
  


Belive it or not your response helped me figure it out.  I added them
but i when i submit they werent highlighted.  But if i check highlight
them then i get the valid answer.

Thanks

-- 
Best regards,
 netizen1mailto:[EMAIL PROTECTED]



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



RE: [ANNOUNCE] Jakarta Struts Pocket Reference Available

2003-06-04 Thread Mark Galbreath
COOL!  Thanks, Chuck!

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 6:37 PM
To: [EMAIL PROTECTED]
Subject: [ANNOUNCE] Jakarta Struts Pocket Reference Available


I wanted to let everyone know that the Jakarta Struts Pocket Reference
published by O'Reilly is now available. This purpose of this small (144
pages) book is to provide a quick way of looking up often-used information
and have it small enough to shove in your back pocket. Information like
config files settings, built-in action usage and especially tags is covered.
In fact, 100 of the 144 pages are dedicated to how to use the tags,
including examples of each.

You can find more information about the book here
http://www.oreilly.com/catalog/jakartapr.  The table of contents is here
http://www.oreilly.com/catalog/jakartapr/toc.html and there's a sample
chapter ("Configuring Struts") available for download
http://www.oreilly.com/catalog/jakartapr/chapter/ch01.pdf.

You can order the book from the typical places like Amazon and bookpool.com,
although Amazon has the wrong cover (What'cha going do?).

Chuck



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



ServletException in a tile

2003-06-04 Thread Fedor Smirnoff
Hi, weird problem I got a tile that using some custom
tags, its works fine in Tomcat 4.0, in 4.1 every other
refresh it shows ServletException in menu.jsp(which is
a name of the tile)
I know its hard to tell what the problem is, Is there
a way to get a more complete message on what is the
generated error? Two classes that are used by taglib
are set to catch and print errors but nothing comes
out. Any ideas? Thanks!!


Fedor

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



RE: [OT] What layer does an XSL transform belong to

2003-06-04 Thread David Tobey
I would argue presentation layer. In a more typical Struts application, the
content would consist of one or more Java bean objects. The presentation
layer, eg JSP pages, then renders those objects.

But in your case, the content is in the form of an XML document. The
presentation layer is still the one responsible for rendering the content
into something, in your case, by using XSL to transform the XML.

dave

> -Original Message-
> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 8:09 AM
> To: [EMAIL PROTECTED]
> Subject: [OT] What layer does an XSL transform belong to
>
>
> Hey all,
>
> A bit philisophical I suppose, but we've integrated some
> legacy apps into a Struts application, and they return their
> data as an XML document.
>
> In a previous version of the app, the JSP made the legacy
> call (gakk!), and then performed an XSL transform to display
> the info to the user. (I didn't write it :)
>
> I'm trying to migrate things towards their proper places, and
> my question is where (if anywhere) the XSL transform belongs.
>
> Ideally, I would either call the legacy app from within a
> Action, or pushed down yet another  layer behind some
> model call.
>
> But if I did a model layer, then I'd probably transfer the data
> from the XML document to a Java model object and then
> transfer data from the model to a form via the Action and let
> the tag libraries take it from there.
>
> I don't have the luxury of a rewrite, so trying to incrementally
> migrate and just not sure where the XSL transform should
> land (or at least roost).
>
> your insights would be appreciated
>
> regards,
>
> -jeff
>
>


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



RE: Coarse-grained DynaValidatorForm

2003-06-04 Thread Wendy Smoak
Ted wrote:
> The Struts Validator actually keys on the ActionMapping attribute. By 
> default this is set to be the FormBean name, but you can set a different 
> attribute on the ActionMapping.
> So, on the ActionMapping, set a different attribute for each case, and 
> then specify a corresponding validator form using the same token.

I was going to say:
Override validate() and only call super.validate() when you want validation
to happen.

But Ted's idea sounds better, except that I haven't a clue what he's talking
about.

Is this anything like setting the "parameter" attribute of the  tag
for DynaValidatorForm, so it knows which method to call based on a request
parameter?

What attribute, other than validate="true", do you set on the  tag
to tell it which section of validation.xml to use?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


Re: Exception handling question

2003-06-04 Thread p
Ideally I would like to log all exceptions that occur, and I can 
create an ExceptionHandler to do this, but it will only catch 
exceptions that get thrown from within one of my Actions, anything 
thrown from JSP pages or custom tags won't get caught. (right?)

How do most people deal with this? I can set an error-page in the 
web.xml file that will catch the rest, but then I can't log the 
exceptions. (or can I?)
1.  Factor exception logging code into its own class.
2.  Point web.xml error pages to a struts action that invokes that 
class.
3.  Make your ExceptionHandler subclass delegate handling to class 
defined in step 1.

The beauty of OO composition :-).
Thanks for the reply David, but I have some questions still:

How do you get access to the exception that was thrown when your action 
is called by the container (i.e. from the error-page directive in 
web.xml)?  for example: a custom tag throws an exception, it is caught 
by the container and the container forwards to my action. so where is 
the exception object stored now so that my action can log it? For sure 
I can log that there *was* an exception, but how do I know what it was?

The Servlet 2.3 spec (section 9.9) doesn't say that the exception is 
accessible to the error page, neither does Sun's servlet tutorial:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html#64301

And if it *is* available somehow to the action specified in the 
error-page directive in the web.xml, then what would be the reason to 
use an ExceptionHandler in struts as well, even if it shares the same 
error-handling code?

Thanks.

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


[ANNOUNCE] Jakarta Struts Pocket Reference Available

2003-06-04 Thread Chuck Cavaness
I wanted to let everyone know that the Jakarta Struts Pocket Reference published by 
O’Reilly is now available. This purpose of this small (144 pages) book is to provide a 
quick way of looking up often-used information and have it small enough to shove in 
your back pocket. Information like config files settings, built-in action usage and 
especially tags is covered. In fact, 100 of the 144 pages are dedicated to how to use 
the tags, including examples of each.

You can find more information about the book here 
http://www.oreilly.com/catalog/jakartapr.  The table of contents is here 
http://www.oreilly.com/catalog/jakartapr/toc.html and there’s a sample chapter 
(“Configuring Struts”) available for download 
http://www.oreilly.com/catalog/jakartapr/chapter/ch01.pdf.

You can order the book from the typical places like Amazon and bookpool.com, although 
Amazon has the wrong cover (What’cha going do?).

Chuck



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



Re: Heads up on new series on Gamelan

2003-06-04 Thread Paul Curren
Alright thanks for the info.

There's so much going on the "world of Java" that I tend to manage no 
more than reading "chapter 1" of all the different things out there. 
I'll need to take a closer look at JSF - especially taking into one of 
my current tasks which is to investigate the conversion of a custom MVC 
architecture to Struts.

If there is a Java platform equivalent to Struts then that may be 
preferrable.

Cheers,

Paul C

Craig R. McClanahan wrote:

On Tue, 3 Jun 2003, Paul Curren wrote:

 

Date: Tue, 03 Jun 2003 19:28:54 +0100
From: Paul Curren <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Heads up on new series on Gamelan
Hi there.

I believe JSF is involved at the V part of MVC. i.e. it could become an
alternative to some of the Struts taglibs, but I don't think it
specifies much about the application infrastructure.
So you could use JSF as an alternative to Struts, but then you need to
write a controller of your own (so I wouldn't :-)
   

As I wrote in a couple of other threads on the forum, the upcoming EA4
release of JavaServer Faces includes some pretty dramatic improvements in
the C part of the equation.  In particular, the old (and deprecated)
ApplicationHandler interface is gone, and replaced by something much
better.
Craig

 

Paul C

hugh F wrote:

   

http://forum.java.sun.com/thread.jsp?forum=427&thread=404617&tstart=0&trange=15

Should we develop new apps in JSF?

H

James Turner <[EMAIL PROTECTED]> wrote:
Just a heads up that the first article in a new monthly series I'm
writing for Gamelan (www.gamelan.com) was posted this week, the series
is called "Succeeding with Struts" and it will cover some of the more
advanced tricks and hints for getting Struts apps working. The first
few articles are going to deal with DynaForms, indexed properties, and
the validator, and putting them all together.
James Turner
Director of Software Development
Benefit Systems, Inc.
[EMAIL PROTECTED]
Track Chair, Strategic Open Source
2003 Fall COMDEX
Contributing Editor
Linux Business & Technology
Author:
MySQL & JSP Web Applications
Struts Kick Start
JavaServer Faces Kick Start


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
 

-
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: Coarse-grained DynaValidatorForm

2003-06-04 Thread Ted Husted
The Struts Validator actually keys on the ActionMapping attribute. By 
default this is set to be the FormBean name, but you can set a different 
attribute on the ActionMapping.

So, on the ActionMapping, set a different attribute for each case, and 
then specify a corresponding validator form using the same token.

-Ted.

Appel, Jeremy D wrote:
I have three separate Action Forms with two properties shared between them.
I am currently using the DynaValidatorForm and validation rules set up for
them.  I would like to migrate to one Form Bean but I am not quite sure how
to do this with DynaValidatorForm.  For example:
Form 1:
property name="distinct field1"
property name="shared field1"
property name="shared field2"
Form 2:
property name="distinct field2"
property name="shared field1"
property name="shared field2"
Form 3:
property name="distinct field3"
property name="shared field1"
property name="shared field2"
How I can tell DynaValidatorForm to always validate "shared field1" and
"shared field2" and do the following:
Validate "distinct field1" when "distinct field2" and "distinct
field3" are null
Validate "distinct field2" when "distinct field1" and "distinct
field3" are null
Validate "distinct field3" when "distinct field1" and "distinct
field2" are null
Thanks in advance,
Jeremy Appel




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



--
Ted Husted,
Struts in Action 


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


Re: Validator with Nested Indexed Properties

2003-06-04 Thread Jordan Reed
Okay, got this working and it wasn't hard.  I'm not sure it's very well
documented though.

So how do I make validation NOT happen if it happens to be on my "back"
action?  Hmm...


In my validation.xml:

   

    
  




On 5/28/03 9:17 PM, "Jordan Reed" <[EMAIL PROTECTED]> wrote:

> I'm trying to figure out how to use the Validator with nested indexed
> properties.  My basic JSP looks like:
> 
> 
>   
> 
> 
>   
> 
> 
> 
> So, inside the validation.xml how do I definate a field that will validate
> all of these properties on the way in?
> 
> Thanks,
> -jdr


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



Struts IRC

2003-06-04 Thread Mark Galbreath
FWIW, I've got a 24x7 IRC channel up on DarkMyst (irc.darkmyst.org 6667) if
anyone wants to shoot the shit about Struts without worrying about getting
flamed by some loser LISP wannabe.

Mark



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



Coarse-grained DynaValidatorForm

2003-06-04 Thread Appel, Jeremy D
I have three separate Action Forms with two properties shared between them.
I am currently using the DynaValidatorForm and validation rules set up for
them.  I would like to migrate to one Form Bean but I am not quite sure how
to do this with DynaValidatorForm.  For example:

Form 1:
property name="distinct field1"
property name="shared field1"
property name="shared field2"

Form 2:
property name="distinct field2"
property name="shared field1"
property name="shared field2"

Form 3:
property name="distinct field3"
property name="shared field1"
property name="shared field2"

How I can tell DynaValidatorForm to always validate "shared field1" and
"shared field2" and do the following:

Validate "distinct field1" when "distinct field2" and "distinct
field3" are null
Validate "distinct field2" when "distinct field1" and "distinct
field3" are null
Validate "distinct field3" when "distinct field1" and "distinct
field2" are null

Thanks in advance,
Jeremy Appel





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



Can tiles be nested?

2003-06-04 Thread Michal Maczka

Question like in subject.

I use following code:

  
  
 
  




My Layout looks more or less like


* (here i want to insert some content
* 




I expect to have:


*BBB
*BBB


where BBB sybmolize the content (form) which should be enetered

But the effect looks like:

BB
BB
BB
BB
*
*
*

any hints?
Michal




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



Re: Html Buttons and Struts

2003-06-04 Thread sjones
This is probably the easiest way to go although using the
LookupDispatchAction
is "Struts" compliant since it extends the "Action" class.

http://j2ee.lagnada.com/struts/html-buttons.htm

"Mick Knutson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Minutes ago, I just got an html buton and LookupDispatchAction error.
> Please elaborate on your solution.
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
>
>
>
> >From: "sjones" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Html Buttons and Struts
> >Date: Tue, 3 Jun 2003 14:39:17 -0400
> >
> >My HTML button has been solved.
> >I know have 2 different solutions.
> >
> >HTMLButton.java
> >LookupDispatchAction
> >
> >
> >"sjones" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> > > has any body used this class,  can you please
> > >
> > > give you please explain it more in depth  than the author.
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail




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



RE: Advice with reading multiple html:selects

2003-06-04 Thread Varun Garg
It does not matter about building it dynamically, what matter is what
was selected when the form was submitted.

Only the selected values are transmitted back and they should all come
back in that array.



-Original Message-
From: netizen1 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: Advice with reading multiple html:selects


Hello,

  I have read the newsgroups regarding multiple selects.
  I have a multiple html:select control that starts out empty
  I populate the select control by using a textbox and an add button
  so it is filled dynamically.
  

  My html:select is:
  

  which comes out like :
  

  I have an action Form that has:

  private String[] gstrQuestionOptions= null;

  public String[] getQuestionOptions()
  {
 return this.gstrQuestionOptions;
  }
  public void setQuestionOptions( String[] value )
  {
 this.gstrQuestionOptions = value;
  }

  Even in the validate i try the following
  System.out.println( getQuestionOptions().length ) and i get
  java.lang.NullPointerException

  Since the select control is dynamically populated would i have to
  use something like request.getParameterValues("questionOptions")
  instead?


  Thank you
  

-- 
Best regards,
 netizen1  mailto:[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: tiles:getAsString within bean:message?

2003-06-04 Thread Bailey, Shane C.

Your probably right. I just haven't had to do it yet and I figure I will
soon so I was trying to help figure out the answer.


-Original Message-
From: Hue Holleran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 5:05 PM
To: Struts Users Mailing List
Subject: RE: tiles:getAsString within bean:message?

see below
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 20:56
> To: 'Struts Users Mailing List'
> Subject: RE: tiles:getAsString within bean:message?
> 
> 
> 
> Try something like this:
> 
> Template.jsp:
> ...
> 
>
>
> 
> ...
> 
> in menu.jsp:
> 

Is this allowed - surely one custom tag cannot nest another?

> 
> 
> 
> 
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 03, 2003 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: tiles:getAsString within bean:message?
> 
> I am trying, unsuccesfully to create an ApplicationResource 
> driven label for
> 
> the menu.jsp. Can anyone help get this to work:
> 
> 
> 
> 
> 
> ---
> Thanks...
> Mick Knutson
> ---
> 
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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]
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
> 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003


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



Advice with reading multiple html:selects

2003-06-04 Thread netizen1
Hello,

  I have read the newsgroups regarding multiple selects.
  I have a multiple html:select control that starts out empty
  I populate the select control by using a textbox and an add button
  so it is filled dynamically.
  

  My html:select is:
  

  which comes out like :
  

  I have an action Form that has:

  private String[] gstrQuestionOptions= null;

  public String[] getQuestionOptions()
  {
 return this.gstrQuestionOptions;
  }
  public void setQuestionOptions( String[] value )
  {
 this.gstrQuestionOptions = value;
  }

  Even in the validate i try the following
  System.out.println( getQuestionOptions().length ) and i get
  java.lang.NullPointerException

  Since the select control is dynamically populated would i have to
  use something like request.getParameterValues("questionOptions")
  instead?


  Thank you
  

-- 
Best regards,
 netizen1  mailto:[EMAIL PROTECTED]



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



RE: tiles:getAsString within bean:message?

2003-06-04 Thread Hue Holleran
I though the answer may be in the thread - link sent to you, previously:

In menu.jsp:


...


Does this not work?

See also other msgs on thread rgding using el. el is a better approach but
may not fit as well if you have not used el before.

H.

> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 21:41
> To: [EMAIL PROTECTED]
> Subject: RE: tiles:getAsString within bean:message?
>
>
> OK, but I don't understand where the bean:message comes in now?
> How does the key get accessed through the ResourceBundle?
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
> >From: "Bailey, Shane C." <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> >Subject: RE: tiles:getAsString within bean:message?
> >Date: Tue, 3 Jun 2003 15:56:10 -0400
> >
> >
> >Try something like this:
> >
> >Template.jsp:
> >...
> > 
> >
> >
> > 
> >...
> >
> >in menu.jsp:
> >
> >
> >
> >
> >
> >-Original Message-
> >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 03, 2003 2:42 PM
> >To: [EMAIL PROTECTED]
> >Subject: tiles:getAsString within bean:message?
> >
> >I am trying, unsuccesfully to create an ApplicationResource driven label
> >for
> >
> >the menu.jsp. Can anyone help get this to work:
> >
> >
> >
> >
> >
> >---
> >Thanks...
> >Mick Knutson
> >---
> >
> >_
> >Add photos to your messages with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >
> >-
> >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]
> >
>
> _
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003


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



RE: tiles:getAsString within bean:message?

2003-06-04 Thread Hue Holleran
see below
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 20:56
> To: 'Struts Users Mailing List'
> Subject: RE: tiles:getAsString within bean:message?
> 
> 
> 
> Try something like this:
> 
> Template.jsp:
> ...
> 
>
>
> 
> ...
> 
> in menu.jsp:
> 

Is this allowed - surely one custom tag cannot nest another?

> 
> 
> 
> 
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 03, 2003 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: tiles:getAsString within bean:message?
> 
> I am trying, unsuccesfully to create an ApplicationResource 
> driven label for
> 
> the menu.jsp. Can anyone help get this to work:
> 
> 
> 
> 
> 
> ---
> Thanks...
> Mick Knutson
> ---
> 
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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]
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
> 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003


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



RE: IE 6 timeout session

2003-06-04 Thread Joe Barefoot
Definitely a difference in the cookies:  There are stored cookies (cookie file on file 
system) and session cookies (in-memory only).  Most web apps (including java) maintain 
the session using session cookies or URL re-writing (to append the session ID).  Only 
web apps that "remember" your login info on a particular computer use stored cookies.

I have no idea which type IE 6 is referring to when you select "block 
cookies"however, depending on how your web. app. is implemented, disabling cookies 
will not prevent you from maintaining a session, as Struts will switch to URL 
re-writing to maintain it.  It will certainly not prevent you from logging in, unless 
you have additional information on the security principal (besides the sessionID) that 
goes into the cookie and is required for access.  You run into the danger of "broken" 
links though, where the URLs are not re-written, the sessionID is lost, and thus the 
session is dropped.

--joe

-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:58 AM
To: Struts Users Mailing List
Subject: Re: IE 6 timeout session


Are you sure?  I changed my IE to Block cookies, but it still let me in
without sessing the read eye in the status bar.  If I go to yahoo to log in
to my account, the red eye shows up.  I think java session is different from
simply writing cookie to the client.

Billy Ng

- Original Message -
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 10:19 AM
Subject: RE: IE 6 timeout session


> Probably Cookies were blocked.
> IE 6 has this popup when a page requires cookies it asks if you want to
> accept it.
> Even though you are using Session it is detected as a cookie (because
thats
> what it is :).
> He probably selected to block it.
> Tell him to look on the status bar at the bottom (view->statusbar if not
> already up).
> If it has an eye with a red mark on it then he blocked cookies from you.
> Double click the eye and select always allow.
> -Tim
>
> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: IE 6 timeout session
>
>
> It does not care the timeout in the server.xml.  After the guy logged in
to
> the app, he would be returned to the login page if he clicked on anything.
> This means his session expired or the session is null.  It only happens on
> the IE 6 SP-1.
>
> Billy Ng
>
> - Original Message -
> From: "Chen, Gin" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 10:07 AM
> Subject: RE: IE 6 timeout session
>
>
> > default timeout is 30 mins.
> > are you sure its ie 6 or just him running into the default?
> > -Tim
> >
> > -Original Message-
> > From: Billy Ng [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 1:06 PM
> > To: Struts Users Mailing List
> > Subject: IE 6 timeout session
> >
> >
> > Hi folks;
> >
> >  I have a customer complains the IE 6 sp1 times out the session after he
> is
> > logged in the app.  I tried to reproduce it but I can't.  Have anybody
> > experienced this?
> >
> >  Billy Ng
> >
> >
> >
> > -
> > 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: tiles:getAsString within bean:message?

2003-06-04 Thread Mick Knutson
OK, but I don't understand where the bean:message comes in now?
How does the key get accessed through the ResourceBundle?


---
Thanks...
Mick Knutson
---

From: "Bailey, Shane C." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: tiles:getAsString within bean:message?
Date: Tue, 3 Jun 2003 15:56:10 -0400
Try something like this:

Template.jsp:
...

   
   

...
in menu.jsp:



-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: tiles:getAsString within bean:message?
I am trying, unsuccesfully to create an ApplicationResource driven label 
for

the menu.jsp. Can anyone help get this to work:





---
Thanks...
Mick Knutson
---
_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
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]
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: Reusing the same HTML Form for many actions

2003-06-04 Thread Michal Maczka
That's it!
Thanks will try that!

mm

> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 10:18 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reusing the same HTML Form for many actions
>
>
>
> I see now you problem of the action name in JSP needs to change.
>
> So then add a request parameter in the action which gives the action name
> and then do something like:
>
> 
>
> or something similar.  You should always go through an action to
> a JSP so do
> your dirty work there of creating a var to pass.
>
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 4:10 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reusing the same HTML Form for many actions
>
>
> I don't agree that these things are two COMPLETELY different
> things.  Adding
> a User and editing a Group might be two completely different things but in
> the one case a adding a User and editing a User are very similar.  Passing
> almost the same field value pairs to the middle tier to do something with
> them.
>
> Then DispatchAction never has a place to exist if all things exactly the
> same must be in an action.
>
> Anyway, so thought you were doing something more complicated because the
> answer then is simple:
>
>  struts config:
> type="my.web.action.AddUserAction"
>   name="userForm"
>   input="doc.userForm"
>   scope="request">
>   
>   
>  
>
> type="my.web.action.UpdateUserAction"
>   name="userForm"
>   input="doc.userForm"
>   scope="request">
>   
>   
>  
>
> Now both actions are using the same form and same JSP (or definition).
>
> Well then you say, "My validation is slightly different between
> the two" or
> something like that I suppose.
>
> Then make sure your actions extend ValidatorActionForm so that
> you can base
> your validation for the userForm per action name coming in.
>
> validation.xml:
>
> 
>   From: Michal Maczka [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 4:03 PM
> To: Struts Users Mailing List
> Subject: RE: Reusing the same HTML Form for many actions
>
>
>
> > -Original Message-
> > From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 8:23 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Reusing the same HTML Form for many actions
> >
> >
> >
> > I would do something a little more code but less confusing.
> > This is just a guess I don't have this working:
> >
>
> I have completely different measure: it is less code but it is more
> confusing.
>
> Why should I use the same action for making two completely
> different things?
> Isn't it more clear IMHO  to make separate action for each "command".
>
> I would really like to use forms as a black box components which can be
> configured.
> (e.g. associated with different actions).
>
> Is it possible?
>
> Michal
>
>
> > JSP:
> > 
> >
> > 
> > the value above is which method in your DispatchAction to go to
> > as in add or
> > update.
> >
> >
> > struts config:
> >  > parameter="todo"
> > type="my.web.action.AddUpdateUserAction" <--extends
> > DispatchAction
> > name="updateUserForm"
> > input="doc.userForm"
> > validate="true"
> > scope="request">
> > 
> > 
> > 
> >
> >
> >
> > Action class:
> > class AddUpdateUserAction extends DispatchAction
> > {
> >
> >
> > public ActionForward add(...)
> > {
> > //code for adding a user
> > }
> >
> > public ActionForward update(...)
> > {
> > //code for adding a user
> > }
> >
> >
> > }
> >
> >
> >
> >
> > -Original Message-
> > From: Michal Maczka [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 1:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: Reusing the same HTML Form for many actions
> >
> > Can somebody explain me what is the best practice if I want to
> > use the same
> > form (JSP page/fragment)
> > for executing different action.
> >
> > For example I want to have "add" and "edit" action which will
> be processed
> > differently,
> > but the form for entering data will be the same.
> >
> > I tried to use form as >>Tiles<< and do something like:
> >
> > " focus="name"
> > onsubmit="return validateXXForm(this)">
> >
> > but this does not seems to works.
> >
> > any suggestions?
> >
> > Michal
> >
> >
> >
> >
> > -
> > 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]
> >
> >
> > --
> > Sportowy portal INTERIA.PL >>> http://link.interia.pl/f1730
> >
> >
> >
>
>
>
> 

RE: Form submit without button or image?

2003-06-04 Thread Mark Galbreath
thanks, LISP-boy...good clue on usage!

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 4:35 PM
To: Struts Users Mailing List
Subject: Re: Form submit without button or image?


After speaking offline with Gregory, I decided to post this to the list in
case it helps anyone else.

Q. How would I set the property for the "submit"?  I'm using a
   LookupDispatchAction to process the submit.

A. From the LookupDispatchAction docs:
   "The button name is specified by the 'parameter' property of
   the corresponding ActionMapping."
   While the docs might be slightly off (you don't actually have to use a
button),
   the name/value pair submitted will be used to lookup the key/value from
the
   resource bundle.  That value should match a method in your action.

Quick and dirty example:


Test1 Test2 Test3 Test4 Test5


Add |
Remove



function doForm(action){
  document.forms['frm'].elements['action'].value=action;
  document.forms['frm'].submit()
}



...watch the address bar as you click on either of the links.


--
James Mitchell
Software Developer/Struts Evangelist http://www.struts-atlanta.org
770-822-3359 AIM:jmitchtx


- Original Message - 
From: "Gregory F. March" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 3:22 PM
Subject: Form submit without button or image?


>
> I'm not sure if this is a struts question or not, but I have a 
> DynaActionForm and I'd like to add, for lack of a better term, a 
> "submit link".
>
> I want a link that submits the form, but I don't want a button or an 
> image.  Can this be done?
>
> Thanks,
>
> /greg
>
> --
> Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet
>
> -
> 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: Reusing the same HTML Form for many actions

2003-06-04 Thread Michal Maczka


> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 10:10 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reusing the same HTML Form for many actions
>
>
>
> I don't agree that these things are two COMPLETELY different
> things.  Adding
> a User and editing a Group might be two completely different things but in
> the one case a adding a User and editing a User are very similar.  Passing
> almost the same field value pairs to the middle tier to do something with
> them.
>
> Then DispatchAction never has a place to exist if all things exactly the
> same must be in an action.
>
> Anyway, so thought you were doing something more complicated because the
> answer then is simple:
>
>  struts config:
> type="my.web.action.AddUserAction"
>   name="userForm"
>   input="doc.userForm"
>   scope="request">
>   
>   
>  
>
> type="my.web.action.UpdateUserAction"
>   name="userForm"
>   input="doc.userForm"
>   scope="request">
>   
>   
>  
>
> Now both actions are using the same form and same JSP (or definition).
>
> Well then you say, "My validation is slightly different between
> the two" or
> something like that I suppose.
>
> Then make sure your actions extend ValidatorActionForm so that
> you can base
> your validation for the userForm per action name coming in.
>
> validation.xml:
>
> 
>  

RE: Exception handling question

2003-06-04 Thread Mark Galbreath
I give any user that causes an exception an electric shock.

-Original Message-
From: p [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 3:46 PM
To: [EMAIL PROTECTED]
Subject: Exception handling question


Ideally I would like to log all exceptions that occur, and I can create 
an ExceptionHandler to do this, but it will only catch exceptions that 
get thrown from within one of my Actions, anything thrown from JSP 
pages or custom tags won't get caught. (right?)

How do most people deal with this? I can set an error-page in the 
web.xml file that will catch the rest, but then I can't log the 
exceptions. (or can I?)

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: Form submit without button or image?

2003-06-04 Thread James Mitchell
After speaking offline with Gregory, I decided to post this to the list in
case it helps anyone else.

Q. How would I set the property for the "submit"?  I'm using a
   LookupDispatchAction to process the submit.

A. From the LookupDispatchAction docs:
   "The button name is specified by the 'parameter' property of
   the corresponding ActionMapping."
   While the docs might be slightly off (you don't actually have to use a
button),
   the name/value pair submitted will be used to lookup the key/value from
the
   resource bundle.  That value should match a method in your action.

Quick and dirty example:


Test1
Test2
Test3
Test4
Test5


Add |
Remove



function doForm(action){
  document.forms['frm'].elements['action'].value=action;
  document.forms['frm'].submit()
}



...watch the address bar as you click on either of the links.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: "Gregory F. March" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 3:22 PM
Subject: Form submit without button or image?


>
> I'm not sure if this is a struts question or not, but I have a
> DynaActionForm and I'd like to add, for lack of a better term, a
> "submit link".
>
> I want a link that submits the form, but I don't want a button or an
> image.  Can this be done?
>
> Thanks,
>
> /greg
>
> --
> Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet
>
> -
> 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: Reusing the same HTML Form for many actions

2003-06-04 Thread Bailey, Shane C.

I see now you problem of the action name in JSP needs to change.

So then add a request parameter in the action which gives the action name
and then do something like:



or something similar.  You should always go through an action to a JSP so do
your dirty work there of creating a var to pass.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 4:10 PM
To: 'Struts Users Mailing List'
Subject: RE: Reusing the same HTML Form for many actions


I don't agree that these things are two COMPLETELY different things.  Adding
a User and editing a Group might be two completely different things but in
the one case a adding a User and editing a User are very similar.  Passing
almost the same field value pairs to the middle tier to do something with
them.

Then DispatchAction never has a place to exist if all things exactly the
same must be in an action.  

Anyway, so thought you were doing something more complicated because the
answer then is simple:

 struts config:
 


 

 


 

Now both actions are using the same form and same JSP (or definition).

Well then you say, "My validation is slightly different between the two" or
something like that I suppose.

Then make sure your actions extend ValidatorActionForm so that you can base
your validation for the userForm per action name coming in.

validation.xml:


  From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 8:23 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reusing the same HTML Form for many actions
>
>
>
> I would do something a little more code but less confusing.
> This is just a guess I don't have this working:
>

I have completely different measure: it is less code but it is more
confusing.

Why should I use the same action for making two completely different things?
Isn't it more clear IMHO  to make separate action for each "command".

I would really like to use forms as a black box components which can be
configured.
(e.g. associated with different actions).

Is it possible?

Michal


> JSP:
> 
>
> 
> the value above is which method in your DispatchAction to go to
> as in add or
> update.
>
>
> struts config:
>parameter="todo"
>   type="my.web.action.AddUpdateUserAction" <--extends
> DispatchAction
>   name="updateUserForm"
>   input="doc.userForm"
>   validate="true"
>   scope="request">
>   
>   
> 
>
>
>
> Action class:
> class AddUpdateUserAction extends DispatchAction
> {
>
>
> public ActionForward add(...)
> {
>   //code for adding a user
> }
>
> public ActionForward update(...)
> {
>   //code for adding a user
> }
>
>
> }
>
>
>
>
> -Original Message-
> From: Michal Maczka [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Reusing the same HTML Form for many actions
>
> Can somebody explain me what is the best practice if I want to
> use the same
> form (JSP page/fragment)
> for executing different action.
>
> For example I want to have "add" and "edit" action which will be processed
> differently,
> but the form for entering data will be the same.
>
> I tried to use form as >>Tiles<< and do something like:
>
> " focus="name"
> onsubmit="return validateXXForm(this)">
>
> but this does not seems to works.
>
> any suggestions?
>
> Michal
>
>
>
>
> -
> 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]
>
>
> --
> Sportowy portal INTERIA.PL >>> http://link.interia.pl/f1730
>
>
>



-
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: Bean:write in a html:textarea value property...?

2003-06-04 Thread Haytham Samad
Thanks Brad.  That worked.  I was actually following using the previous form
because it was working fine when I am setting the value of an html:text tag
using value="".

Seems a little inconsistent that one works and the other does not.  Thanks
again.

Haytham

-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Bean:write in a html:textarea value property...?


Change you tags to be:





Tags within properties are not interpreted.

Brad Handy


-
Bradley M. Handy| Office: 517 750 6675
Programmer/Analyst  | Email: [EMAIL PROTECTED]
Spring Arbor University |
-
Sun Certified Programmer for the Java 2 Platform
-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:59 PM
To: Struts Users Mailing List
Subject: Bean:write in a html:textarea value property...?

I have been trying to make the following work:



I started with this actually:



But when I display the page, I get this in my textarea:



Which is all the code I had set for the value of the textarea?  Not sure
why neither is working?  Do I have to use some sort of java scriptlet to
get the value of the eventForm bean?  I really did not think the nested
would work here but gave it a try anyway.

Thanks,

Haytham



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


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



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



Re: Using functionality of in custom tag library

2003-06-04 Thread James Mitchell
I think you are right to use struts tags to get the message from the bundle.
You could wrap bean:message with bean:define and do as you suggest or grab
it as body content (as you also suggest).  That is a decision you will have
to make since its your own custom tag.  Sorry I couldn't help more.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: "Michal Maczka" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 4:14 PM
Subject: RE: Using functionality of in custom tag library


> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 7:46 PM
> > To: Struts Users Mailing List
> > Subject: Re: Using functionality of in custom tag library
> >
> >
> > The easiest way is to look at how it's done with struts custom tags.
> >
> > Download the source or just browse cvs:
> > http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apa
> > che/struts/taglib/bean/MessageTag.java?rev=HEAD&content-type=text/
> > vnd.viewcvs-markup
> >
>
> Yeah...  I alredy looked at this before asking. It means that I will need
to
> copy/past
> struts code into my tag library.
>
> There is no other way? E.g through variable?
>
> (syntax is just hipotethical)
>
> a= 
>
> 
>
> Michal
>
> P.S.
> surly in worst case I can just wrap  in my own tag which
will
> get the message and
> e.g. set it as a request atrribute...but this is pure hacking
>
>
> >
> > --
> > James Mitchell
> > Software Developer/Struts Evangelist
> > http://www.struts-atlanta.org
> >
> >
> >
> > - Original Message -
> > From: "Michal Maczka" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 03, 2003 1:37 PM
> > Subject: Using functionality of in custom tag library
> >
> >
> > > What's is the easiest way of using the Struts Resources (messages)
> > > which are normally accessible through  tag in a custom
tag
> > > library.
> > >
> > > I want to have something like:
> > >
> > > 
> > >
> > > where message.id is a key in properties files.
> > >
> > >
> > > Michal
> > >
> > >
> > >
> > >
> > >
> > > -
> > > 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]
> >
> >
> > --
> > Biznesowy portal INTERIA.PL >>> http://link.interia.pl/f1731
> >
> >
> >
>
>
>
> -
> 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: Reusing the same HTML Form for many actions

2003-06-04 Thread Bailey, Shane C.

I don't agree that these things are two COMPLETELY different things.  Adding
a User and editing a Group might be two completely different things but in
the one case a adding a User and editing a User are very similar.  Passing
almost the same field value pairs to the middle tier to do something with
them.

Then DispatchAction never has a place to exist if all things exactly the
same must be in an action.  

Anyway, so thought you were doing something more complicated because the
answer then is simple:

 struts config:
 


 

 


 

Now both actions are using the same form and same JSP (or definition).

Well then you say, "My validation is slightly different between the two" or
something like that I suppose.

Then make sure your actions extend ValidatorActionForm so that you can base
your validation for the userForm per action name coming in.

validation.xml:


  From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 8:23 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reusing the same HTML Form for many actions
>
>
>
> I would do something a little more code but less confusing.
> This is just a guess I don't have this working:
>

I have completely different measure: it is less code but it is more
confusing.

Why should I use the same action for making two completely different things?
Isn't it more clear IMHO  to make separate action for each "command".

I would really like to use forms as a black box components which can be
configured.
(e.g. associated with different actions).

Is it possible?

Michal


> JSP:
> 
>
> 
> the value above is which method in your DispatchAction to go to
> as in add or
> update.
>
>
> struts config:
>parameter="todo"
>   type="my.web.action.AddUpdateUserAction" <--extends
> DispatchAction
>   name="updateUserForm"
>   input="doc.userForm"
>   validate="true"
>   scope="request">
>   
>   
> 
>
>
>
> Action class:
> class AddUpdateUserAction extends DispatchAction
> {
>
>
> public ActionForward add(...)
> {
>   //code for adding a user
> }
>
> public ActionForward update(...)
> {
>   //code for adding a user
> }
>
>
> }
>
>
>
>
> -Original Message-
> From: Michal Maczka [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Reusing the same HTML Form for many actions
>
> Can somebody explain me what is the best practice if I want to
> use the same
> form (JSP page/fragment)
> for executing different action.
>
> For example I want to have "add" and "edit" action which will be processed
> differently,
> but the form for entering data will be the same.
>
> I tried to use form as >>Tiles<< and do something like:
>
> " focus="name"
> onsubmit="return validateXXForm(this)">
>
> but this does not seems to works.
>
> any suggestions?
>
> Michal
>
>
>
>
> -
> 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]
>
>
> --
> Sportowy portal INTERIA.PL >>> http://link.interia.pl/f1730
>
>
>



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



  1   2   3   >