Re: Struts book give-away

2004-03-17 Thread Srikanth Shenoy
Hi Geeta,

The PDF was created using Adobe PDF 5 standard and using the encryption
to disable printing.
All Adobe PDF 5 files open in Adobe 4, except the encrypted ones.
There lies the problem...
You have to use Acrobat Readers 5 and above

-Srikanth 

Geeta Ramani [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Clarification:
 
 I did manage to download the pdf, but cannot seem to open i in Acobat 
 4.0: the file apparantly is corrupted..
 
 Geeta
 
 Geeta Ramani wrote:
 
  Hi Srikanth:
 
  I tried to download the sample chapter via the link on 
  http://www.objectsource.com/  but seem to run into trouble..? I got 
  the following error message on the status bar of my browser: An 
  error has occurred while trying to use this document. I am using 
  Mozilla 5 and Acrobat 4.. Wondering if anybody else is facing this 
  problem .. and/or if you'd mind sending me the document (offline)?
 
  Thanks in advance!
  Geeta
 
  Srikanth Shenoy wrote:
 
I am the author of Struts Survival Guide - yet another entrant in

   the Struts book shelf.
 
  
  -
  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 book give-away

2004-03-17 Thread Srikanth Shenoy
Hi Darrin,

I am surpirsed as to why would anybody remove the question even if the
book does not discuss EJBs.
Did you check if they move into other forums by any chance?

-Srikanth

Smith, Darrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
m...
 I posted a question on using Struts with EJB but it got removed!
  
 I assume that since the book doesn't cover this that it wouldn't be 
 discussed so that's why it was taken off?
 
 -Original Message-
 From: Srikanth Shenoy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 8:06 PM
 To: [EMAIL PROTECTED]
 Subject: Struts book give-away
 
 
 Hi all,
  
 I am the author of Struts Survival Guide - yet another entrant in the 
 Struts book shelf. There is a free Struts book give-away of my book at

 JavaRanch this week. Interested can go to
 http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forumf=58
 f=58 and post a question or respond to an existing one and are
 automatically entered into the contest. Four lucky winners will get a
book
 each.
  
 See you there.
  
   Srikanth Shenoy
   Author
   Struts Survival Guide:  
 http://www.objectsource.com/strutsbook.html
 Basics to Best Practices
   J2EE
http://www.theserverside.com/books/review/J2EESurvivalGuide.tss
 Project Survival Guide
 
  
 
 



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



Re: Struts book give-away

2004-03-17 Thread Srikanth Shenoy
That applies for the complete ebook :)
Since the purchased ebook is not encrypted to constrain the printing, it
will open up in Acrobat 4 reader too.
Only the sample chapter wont.. ;(

-Srikanth

Geeta Ramani [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Old versions of software - the story of my life.. (:(
 
 However, the download page does say it should work with acrobat 4 and 
 5.. ?
 
 Thanks for your response!
 Geeta
 
 Bryce Fischer wrote:
 
   Clarification:
  
   I did manage to download the pdf, but cannot seem to open i in 
   Acobat 4.0: the file apparantly is corrupted..
  
   Geeta
 
  I downloaded and opened fine. You are using a very old version of 
  Acrobat. My version is 6.0, so maybe it only supports a newer 
  version?
 
  --
  Bryce Fischer [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]



Struts book give-away

2004-03-16 Thread Srikanth Shenoy



Hi all,

I am the author of Struts Survival Guide - 
yet another entrant in the Struts book shelf.
There is a free Struts book give-away of my 
book at JavaRanch this week.
Interested can go to http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forumf=58and 
post a question or respond to an existing one and are automatically entered into 
the contest. Four lucky winners will geta book each.

See you there.

 Srikanth Shenoy Author Struts Survival Guide: Basics 
to Best Practices
 J2EE 
Project Survival Guide



Re: Web site URL disappearing when using mod_proxy

2004-03-14 Thread Srikanth Shenoy
Ian,

The Struts tags might be assuming the base href = http://localhost:8081.
This is very much a possibility if you are using html:base/ tag as the
servlet container interprets urls with respect to its base rather than
your web server doc root.
Consider using your own tag that generates base
href=http://www.mydomain.com/.

Hope that helps.

  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
  J2EE Project Survival Guide

Ian Wright [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hello,
 
   I am using Apache as a front end proxy server with Tomcat 5.0.14
as 
 my
 servlet container. The Struts application is an enquiry form accessed 
 via a button on a page served by Apache. When a user clicks on the 
 enquiry button, the Struts welcome page appears, minus the Powered by

 Struts gif - the path of which is now 
 http://localhost:8081/images/etc. When the button is clicked to
display 
 the enquiry form, the URL, which should start http://www.mydomain.com,

 instead starts  with http://localhost:8081. The result of course is 
 that the server is not found.
   My question is, why is this happening? Have I forgotten or
miscoded 
 something in the Struts application or is it a feature of mod_proxy? I

 am using port based virtual hosting as below, which works with my
plain 
 JSP application.
 
 VirtualHost _default_:80
  SSLEngine off
 # Document root for static content
  DocumentRoot /Library/WebServer/Documents/etc.
  ServerName www.mydomain.com
  ErrorLog /Library/Apache2/logs/error_log
  Transferlog /Library/Apache2/logs/access_log
# Enable proxying for tomcat Enquiry
  ProxyRequests off
  ProxyPass /myapp  http://localhost:8081/myapp
  ProxyPassReverse  /myapp  http://localhost:8081/myapp 
 /VirtualHost
 
 I have tried it without virtual hosts and the result is the same.
 
 Thanks, Ian.



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



Re: help implementing modules...

2004-03-11 Thread Srikanth Shenoy
Hi Gary,

I would suggest download the following free chapter from my book -
Struts Survival Guide.
Go to http://www.objectsource.com and find the link there to download
Chapter 4.
It tells you how to setup and use modules.

Hope that helps,

  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
http://www.objectsource.com/strutsbook.html 
  J2EE Project Survival Guide
http://www.theserverside.com/books/review/J2EESurvivalGuide.tss 


Damm, Gary [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
I've successfully used Struts for several applications and have been
very happy with it.  I am getting ready to use it for a larger project
and would like to use modules but I'm having some problems.

It appears that when I attempt to switch from the default module to a
new module (module1) it never actually recognizes the new module.  When
I attempt to go to a page in the new module that references an action
that is defined in the new module action mappings I consistently get the
following error.  I have looked through the documentation and browsed
the list archive and still can not figure out what I'm doing wrong.  Any
help appreciated.

Also, if anyone knows a good book that documents modules well I'd like
to know (Struts In Action and Jakarta Struts have little information on
modules).

The error:
...
[2004/03/11 11:23:07] Cannot retrieve mapping for action /DomainSearch
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/DomainSearch
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at
org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
at _module1._home__jsp._jspService(_home__jsp.java:448)
...

Here is my web.xml where I define the module:

...
init-param id=InitParam_4
param-nameconfig/module1/param-name
param-value/WEB-INF/struts-config-module1.xml/param-value
/init-param
...

Here is my forward to the page in module1:
...
action
  path=/Module1HomeLink
  type=com.qualcomm.bds.struts.SampleAppSuccessAction
  unknown=false
  validate=false 
  
  forward 
name=success 
path=/module1/Home.jsp
contextRelative=true
redirect=true /

/action
...

Here is my link on the originating jsp (in default module):
...
html-el:link action=Module1HomeLinkbean:message
key=label.module1//html-el:link
...

Here is the form in the new module that references the action: ...
html-el:form action=DomainSearch ...

Here is the action in the module1 config file:
...
action
  path=/DomainSearch
  name=SearchForm
  type=com.qualcomm.bds.struts.SampleAppSearchAction
  unknown=false
  validate=true
  input=/module1/Home.jsp 
  
  forward
name=success
path=/module1/List.jsp
contextRelative=true /

exception 
key=errors.generic 
type=java.lang.Exception/

/action
...
--


Re: asking for help about indexed properties

2004-03-11 Thread Srikanth Shenoy
Mike,

You wont find descriptions about them in API Javadoc.
In the Struts 1.1 distribution that you have downloaded, go to webapps
folder and deploy the struts-documentation.war in your favorite servlet
container and then look for
/userGuide/struts-logic.html and /userGuide/struts-html.html

These two files contain the description of what each attribute in these
tags stand for

Hope that helps.
  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
http://www.objectsource.com/strutsbook.html 
  J2EE Project Survival Guide
http://www.theserverside.com/books/review/J2EESurvivalGuide.tss 




Mu Mike [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 I have the follow in a jsp file
 
   html:form action=indexedtest5.do
logic:iterate name=stringbean property=stringArray id=foo
   indexId=ctr
  (QUESTION: WHAT DO name,property,id,indexId MEAN HERE? WHAT 
 VALUES CAN
 I SET TO THEM?)
 
 html:text name=stringbean
property='%= labelValue[ + ctr + ].label %' /
  (QUESTION: WHAT DO name,property  MEAN HERE? WHAT VALUES CAN I 
 SET TO
 THEM?)
 
/logic:iterate
html:submit property=submitValueSubmit Changes/html:submit
   /html:form
 
 I searched online about the meaning of these properties only fail to 
 find
 any clear descritpions, the api of struts says little about them, can 
 anyone tell me the meanings of them? 
 
 by the way, for this jsp file ,can any one give me the related bean 
 files
 that can be used in it?
 
 ThanksRegards
 
 _
 ??,??? MSN Messenger:  http://messenger.msn.com/cn  


Re: FAQ: How can I create a wizard workflow?

2004-03-11 Thread Srikanth Shenoy
Dean,

It is /mywizard1.do for the first page, /wizard2.do for the second page
and so on

  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
http://www.objectsource.com/strutsbook.html 
  J2EE Project Survival Guide
http://www.theserverside.com/books/review/J2EESurvivalGuide.tss 


Dean A. Hoover [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 In other words:
 
 form method=post action=???
 
 anyone know?
 
 Dean A. Hoover wrote:
 
  In http://jakarta.apache.org/struts/faqs/newbie.html#wizard
  the example references several jsp files. For example, 
  mywizard1.jsp. My question is, in the form in that jsp, what is the 
  action?
 
  Dean Hoover
 
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Re: Where Do I Put This properties File (internationalization)

2004-03-11 Thread Srikanth Shenoy
And at runtime, the file goes directly under WEB-INF/classes

  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
  J2EE Project Survival Guide



Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 On 03/05/2004 05:16 AM Caroline Jen wrote:
  And mvnplugin_mvnforum_MVNForumConfig is a
  properties file.  Please advice regarding the
  directory in which this properties file is supposed to
  be.
 
 It goes in the same place as your *.java code files. As you have it,
 there is no directory for it, so it would go in the root directory of 
 your source code.
 
 If it was called mvnplugin.mvnforum.MVNForumConfig, then you would put
 it in your source code under the mnvplugin/mvnforum/ directory.
 
 Adam
 --
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian


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



Re: XML loading and caching in struts

2004-03-11 Thread Srikanth Shenoy
Hi Prasad,

Unless realtime xml data validity is not important for you, you can run
a low priority thread that polls to check if the file was modified since
last check and then takes appropriate action.

  Srikanth Shenoy
  Author
  Struts Survival Guide: Basics to Best Practices
http://www.objectsource.com/strutsbook.html 
  J2EE Project Survival Guide
http://www.theserverside.com/books/review/J2EESurvivalGuide.tss 


Prasad, Kamakshya [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
.co.jp...
Hi All,
 
We have an xml file containing lot of application mapping (specific to
business logic), provided by the client for whom we are building a web
application. We want to read the xml and cache the read data while
application starts. Also refresh it whenever it gets changed. We are
looking for some thing very similar to MessageResources. Please let me
how to implement this in struts.
 
KP

--