Re: Links/Articles/Tutorials on DynaValidatorForm ?

2003-12-01 Thread Andrew Kuzmin
http://javaboutique.internet.com/tutorials/Struts11Val/

http://prdownloads.sourceforge.net/struts/The-Validator-Framework.pdf?downlo
ad


--
Andrew Kuzmin
www.java201.com


- Original Message -
From: Baljinder Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 11:32 AM
Subject: Links/Articles/Tutorials on DynaValidatorForm ?


 Hi All,

 Can anybody provide me with links/tutorials/articles related to
 DynaValidatorForm ??

 Thanks  Regards,
 BS


 -
 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: Design Patterns in Struts

2003-09-23 Thread Andrew Kuzmin
- Original Message - 
From: Prasenjit Narwade [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 10:20 PM
Subject: Design Patterns in Struts


Hi all,

What are the various Design Patterns used in Struts? Links welcome


Thanks  Regards,
Prasenjit Narwade.

Struts in Action - Appendix A Design patterns.
http://www.husted.com/struts/book.html

--
Andrew Kuzmin
http://www.java201.com


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



Re: Exception handling in struts

2003-09-23 Thread Andrew Kuzmin
snip
from=http://jakarta.apache.org/struts/userGuide/building_controller.html;

4.5 Exception Handler

You can define an ExceptionHandler to execute when an Action's execute
method throws an Exception. First, you need to subclass
org.apache.struts.action.ExceptionHandler and override the execute method.
Your execute method should process the Exception and return an ActionForward
object to tell Struts where to forward to next. Then you configure your
handler in struts-config.xml like this:

global-exceptions
exception
  key=some.key
  type=java.io.IOException
  handler=com.yourcorp.ExceptionHandler
/global-exceptions

This configuration element says that com.yourcorp.ExceptionHandler.execute
will be called when any IOException is thrown by an Action. The key is a key
into your message resources properties file that can be used to retrieve an
error message.

You can override global exception handlers by defining a handler inside an
action definition.

A common use of ExceptionHandlers is to configure one for
java.lang.Exception so it's called for any exception and log the exception
to some data store.

/snip

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: muzammil shahbaz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:59 AM
Subject: Exception handling in struts


 Hello!

 Is there any exception handling mechanism through struts? If we can
 configure our global exceptions in struts-config.xml?

 Any comments are welcome.

 Thanks in advance.

 Muzammil



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



Re: How to build an application that is organized as BC4JToyStore example from scratch ?

2003-09-23 Thread Andrew Kuzmin
Maybe this:
   http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/readme.html
?

--
Andrew Kuzmin
http://www.java201.com

- Original Message -
From: EL AKARI Mehdi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 1:07 PM
Subject: How to build an application that is organized as BC4JToyStore
example from scratch ?


Hello,
I'm trying to build an application that is organized as the example
BC4JToyStore, but i just can't!!
Can anyone guide me to a tutorial, or a doc?
Thank you
Mehdi


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



Re: Data Source in struts-config.xml

2003-09-19 Thread Andrew Kuzmin
snip from=http://jakarta.apache.org/struts/faqs/database.html;

If you need more than one data source in a module, you can include a key
attribute in the data-source element:

data-sources
   data-source key=A type=org.apache.commons.dbcp.BasicDataSource
  ... properties as before ...
   /data-source
   data-source key=B type=org.apache.commons.dbcp.BasicDataSource
  ... properties as before ...
   /data-source
   ...
/data-sources

Which can then be accessed by including the key (A in this case) as an
additional parameter to the Action.getDataSource() method.

   ...
   try {
  dataSourceA = getDataSource(request, A);
  dataSourceB = getDataSource(request, B);
   ...

Each module can have as many data sources as it needs. The keys only need to
be unique within a module since the struts module system maintains a name
space for the items in each module to protect you from name clashes.

/snip

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: virupaksha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 6:26 AM
Subject: Data Source in struts-config.xml


Dear All,

I need to connect to two different databases,MS Access  MYSQL.
I am connecting databases using JNDI lookup,so to connect using JNDI lookup
i need to give database name in my code.
Can any one help me how i can configure two datasource name in
struts-config.xml.

Waiting for ur help...

Regards,
viru


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



Re: Multipage JDBC result

2003-09-17 Thread Andrew Kuzmin
IMHO, this is an excellent article on TheServerSide.com Data List Handler:
A Pattern for Large Search Result Sets

http://www.theserverside.com/resources/article.jsp?l=DataListHandler

--
Andrew Kuzmin
http://www.java201.com


- Original Message -

From: Michael Muller [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 8:27 PM
Subject: Re: Multipage JDBC result



 I read the documentation, but I can't tell what the pager iterates over.
   I'm assuming it iterates over java collections.

 This could be a problem if you have a huge result set.  Another option
 would be to use database features like mysql's select * from foo limit
 50 offset 250 syntax.  It's still a lotta work for the database if
 there's a huge result set, but a lot easier on the web app.

-- Mike

 Andrew Kuzmin wrote:

  Hi,
 
  see this link
 http://jakarta.apache.org/struts/faqs/newbie.html#pager
 
  --
  Andrew Kuzmin
  http://www.java201.com
 
  - Original Message -
  From: Jonathan Hawkins [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, September 16, 2003 3:39 PM
  Subject: Multipage JDBC result
 
 
 
 Howdy,
 Any tips as to where I can find code examples of how to break down a
 large JDBC result
 into say 25 rows per page?
 
 
 Jon Hawkins
 
 
 -
 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: Sample code for Pagination.

2003-09-17 Thread Andrew Kuzmin
 Where can i get the sample taglib for pagination tag.
 

http://edhill.its.uiowa.edu/display/
http://jsptags.com/tags/navigation/pager/

--
Andrew Kuzmin
http://www.java201.com

 Thanks and Regards
 Deepak
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Multiple message resource files

2003-09-16 Thread Andrew Kuzmin
Hi,

struts-config.xml:

message-resources parameter=ApplicationResources null=false
key=alternate/
message-resources parameter=MyWebAppResources null=false/

jsp:

   html:errors bundle=alternate/

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:01 PM
Subject: Multiple message resource files


 I am trying to use 2 message resource files in my application.

 My struts-config.xml has:

   message-resources parameter=ApplicationResources null=false /
   message-resources parameter=MyWebAppResources null=false /

 The errors are added in an Action bean with statements like:

   errors.add(ToteNotFound, new ActionError(error.tote.toteNotFound));

 and displayed on the jsp with:

   html:errors/

 However, messages are only displayed from the last file listed in
 struts-config.xml (in this example, from MyWebResources.properties). Any
 message in the other file is not recognised and results in something like:

   ???en_US.error.tote.toteNotFound???

 How do I persuade my application  to display errors from either of two
 files?




 -
 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: Multipage JDBC result

2003-09-16 Thread Andrew Kuzmin
Hi,

see this link 
   http://jakarta.apache.org/struts/faqs/newbie.html#pager

--
Andrew Kuzmin
http://www.java201.com

- Original Message - 
From: Jonathan Hawkins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:39 PM
Subject: Multipage JDBC result


 Howdy,
 Any tips as to where I can find code examples of how to break down a 
 large JDBC result
 into say 25 rows per page?
 
 
 Jon Hawkins
 
 
 -
 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: getServlet?

2003-09-16 Thread Andrew Kuzmin
getServlet().getServletConfig() ?

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: Andy Kriger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 5:04 PM
Subject: getServlet?


 The ServletContext.getServlet() method has been deprecated. Is it possible
 to get a Servlet (or the ServletConfig, which is what I'm really after) in
a
 Struts Action?

 thx
 andy


 -
 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: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
MessageResources resources = getResources(request);
java.util.Locale locale = getLocale(request);
String yourString = resources.getMessage(locale, yourString);

--
Andrew Kuzmin
http://www.java201.com


- Original Message - 
From: Carl-Eric Menzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:21 PM
Subject: Getting Messages in an Action?


 
 Hello,
 
 is it possible to retrieve a message from the application resources
 (like bean:message key=.../) inside an Action? How can I get to
 the current localized messages?
 
 Thanks
 Carl-Eric
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
org.apache.struts.action.ExceptionHandler:
snip
public ActionForward execute(Exception ex,
 ExceptionConfig ae,
 ActionMapping mapping,
 ActionForm formInstance,
 HttpServletRequest request,
 HttpServletResponse response)
/snip

MessageResources resources = (MessageResources)
request.getAttribute(Globals.MESSAGES_KEY);

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: Adolfo Miguelez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:47 PM
Subject: Re: Getting Messages in an Action?


 and what about from an ExceptionHandler?


 From: Andrew Kuzmin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED],
 Carl-Eric Menzel [EMAIL PROTECTED]
 Subject: Re: Getting Messages in an Action?
 Date: Tue, 16 Sep 2003 18:29:39 +0300
 
 MessageResources resources = getResources(request);
 java.util.Locale locale = getLocale(request);
 String yourString = resources.getMessage(locale, yourString);
 
 --
 Andrew Kuzmin
 http://www.java201.com
 
 
 - Original Message -
 From: Carl-Eric Menzel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 6:21 PM
 Subject: Getting Messages in an Action?
 
 
  
   Hello,
  
   is it possible to retrieve a message from the application resources
   (like bean:message key=.../) inside an Action? How can I get to
   the current localized messages?
  
   Thanks
   Carl-Eric
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 -
 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 with a DHTML menu

2003-09-11 Thread Andrew Kuzmin
Hi,

Maybe this http://sourceforge.net/projects/struts-menu/ ?

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: Mahbub ul Huq Bin Kabir [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:38 AM
Subject: Struts with a DHTML menu


 Hi,

 I'm using Struts from few months. I almost completed my project now want
to
 add a drop down menu to my project with customized security level. Is
there
 any good build in DHTML menu that can be integrate with my struts project.

 I'll be very happy if I get any reply.

 Thanks,

 Mahbub

 _
 STOP MORE SPAM with the new MSN 8 and get 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: navigable search results

2003-09-09 Thread Andrew Kuzmin

Hi,

see these links

   http://edhill.its.uiowa.edu/display/

   http://jsptags.com/tags/navigation/pager/

   http://www.mail-archive.com/[EMAIL PROTECTED]/msg43661.html

--
Andrew
http://www.java201.com


- Original Message -
From: Andy Richards [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:13 PM
Subject: navigable search results


 Hi everyone,

 I want to display my search results in a similar fashion to google, with a
 navigable menu at the bottom. I know this is possible but i am not sure
what
 to re-search for to get some ideas of how to do this with struts? Anyone
have
 any ideas or a key word i can search the struts archives for?

 thanks

 Andy

 -
 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: Information about visitors using my portal

2003-09-03 Thread Andrew Kuzmin
hi,

This should help: http://orionsupport.com/archive/clickstream/index.html

--
Andrew Kuzmin
http://www.java201.com/


- Original Message -
From: Stefan Trcko [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 12:54 PM
Subject: Information about visitors using my portal


Hello

I want to get information of how many visitors is currently using my portal.
When someone open url www.iz-fotelja.com I create a session, so I think that
from all of the
currently active sessions I can get this statistic. But I don't know how to
implement it.

Any suggestions?

Best regards
Stefan


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



Re: message resource error/Plz Urgent

2003-08-29 Thread Andrew Kuzmin
hi,
   this should help:

struts-config.xml:
add message-resources parameter=resources.application/

and place file application.properties to /WEB-INF/classes/resources dir.

--
andrew
www.java201.com

- Original Message -
From: mahavir [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 1:33 PM
Subject: message resource error/Plz Urgent


Hi Friends

Yesterday i had posted my question regarding the error when i try to browse
the jsp pages.I had got three or four replies
but the error is not corrected.
Please anyone can guide me in detail.

the error is--

Error: 500
Location: /hello-world/hello.jsp
Internal Servlet Error:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
_0002fhello_0002ejsphello_jsp_0._jspService(_0002fhello_0002ejsphello_jsp_0.
java:90)
 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$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

Root cause:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
 at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.ja
va:1103)
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
 at
_0002fhello_0002ejsphello_jsp_0._jspService(_0002fhello_0002ejsphello_jsp_0.
java:68)
 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$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

Plz its urgent

mahavir



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



Re: Obtaining valid ModuleConfig.

2003-02-05 Thread Andrew Kuzmin
Hi !

ModuleConfig config =
org.apache.struts.util.RequestUtils.getModuleConfig(pageContext); // since
1.1b3

--
Andrew Kuzmin

- Original Message -
From: Zheng, Gang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 7:48 PM
Subject: RE: Obtaining valid ModuleConfig.


 Hi,

 I just subscribe to the mailing list and this is exactly what I got from
the
 example code.

 The ModuleConfig is actually stored in the ServletContext (application
 context) rather than request context. So you have to modify the code to:

 ModuleConfig config = (ModuleConfig) pageContext.getServletContext()
 .getAttribute(org.apache.struts.Globals.MODULE_KEY);

 I tested it and it works.

 Hope this is helpful.

 -Gang


 --
 Hi,

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

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

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

 Regards

 /James




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


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




Re: Does anyone have the Java Pet Store rewritten with Struts

2003-01-28 Thread Andrew Kuzmin
http://xpetstore.sourceforge.net/

--
Andrew Kuzmin
[EMAIL PROTECTED]
ICQ 76635687

- Original Message - 
From: Steven Banks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Steven Banks [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 8:10 PM
Subject: Does anyone have the Java Pet Store rewritten with Struts


 A while back, several posters mentioned that they had rewritten the Java
 Pet Store Application to use Struts.  Does anyone have the source code
 available?  
 
 I mentioned it to my boss when he said we had to develop a sample
 application to prove that the various technologies we are pushing in our
 organization work with our hardware platform.
 
 Thanks in advance
 
 Steven Banks



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




Re: Modules and Tiles: Problem

2002-12-10 Thread Andrew Kuzmin
Hi,  Cedric

- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 10:19 PM
Subject: Re: Modules and Tiles: Problem

   Hi,

   Is there any errors regarding Tiles in the Tomcat console (you may
 need to enable logging for Tiles) ?

Cedric

I didn't see any errors in the Tomcat console. I enabled logging for Tiles.
I just have downloaded new version (jakarta-struts-20021209) and I don't
have this problem.
Previous version was jakarta-struts-20021114.

 Andrew Kuzmin wrote:

 I have two modules:
 
 A) struts-config.xml:
 
 plug-in className=org.apache.struts.tiles.TilesPlugin
 set-property property=definitions-config
 value=/WEB-INF/conf/tiles-defs.xml,
/WEB-INF/conf/tiles-defs-personalize.xml/
 set-property property=moduleAware value=true /
 /plug-in
 
 B) struts-config-personalize.xml:
 
 action-mappings
 
 action path=/Courses type=XXX.actions.CoursesActions
 forward name=success path=personalize.courses.default /
 /action
 
 /action-mappings
 
 plug-in className=org.apache.struts.tiles.TilesPlugin
 set-property property=definitions-config
 value=/WEB-INF/conf/tiles-defs.xml,
/WEB-INF/conf/tiles-defs-personalize.xml /
 set-property property=moduleAware value=true /
 /plug-in
 
 When i attempt to invoke http://XXX/personalize/Courses.do i have Error
404
 and on Tomcat console i see :
 
 DEBUG [Thread-14] (RequestUtils.java:1446) - Get module name for path
 /personali
 ze/Courses.do
 DEBUG [Thread-14] (RequestUtils.java:1468) - Module name found:
/personalize
  INFO [Thread-14] (RequestProcessor.java:225) - Processing a 'GET' for
path
 '/Co
 urses'
 DEBUG [Thread-14] (RequestProcessor.java:305) -  Looking for Action
instance
 for
  class XXX.actions.CoursesActions
 DEBUG [Thread-14] (RequestProcessor.java:314) -   Returning existing
Action
 inst
 ance
 DEBUG [Thread-14] (RequestProcessor.java:428) -
 processForwardConfig(ForwardConf

ig[name=success,path=personalize.courses.default,redirect=false,contextRela
t
 ive=
 false])
 
 But i am expecting TilesRequestProcessor.
 
 --
 Andrew Kuzmin
 

--
Andrew Kuzmin



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