RE: free struts boook

2004-11-17 Thread Amin Lalji
http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss


Google is your friend :)

/A

-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED] 
Sent: November 17, 2004 9:51 AM
To: Struts Users Mailing List
Subject: free struts boook

where do i get struts free book except strutslive

Nishant Patil
Software Engineer
Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
West Avenue , Kalyani Nagar,
Pune - 411 006
Tel: 91-20-4041700  -355
Email: [EMAIL PROTECTED]
Website: www.cybage.com
There's a difference between knowing the path, and walking the path


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



RE: Installation Getting Started Question

2004-11-17 Thread Amin Lalji
Hey Scott,

In practice, the Struts Distribution works like any other Servlet bases
Web-App... Download struts and deploy the examples to tomcat (you do not
necessarily require Apache, since struts is Servlet based technology)... in
other words you really only need a Servlet Container... 

Good Luck
/A

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: November 17, 2004 10:09 AM
To: [EMAIL PROTECTED]
Subject: Installation Getting Started Question

 
I am wanting to see how Struts may help in my J2EE development. I have
purchased the O'Reilly book Jakarta Struts and want to get started with
some examples.
 
1) I am currently running Tomcat 4.1.31 as a standalone.
Can struts be installed with Tomcat as standalone? I saw somewhere in
the install where it says to make sure you have Apache and Tomcat installed?
Can someone help clear this up?
 
2) Is there a hello Struts example somewhere? Just to test the install/setup
before I get under way?
 
 
3) The book does not start off simple either, so how can one get a handle on
this effectively? My background is Servlets/JSP/ Web development. Including
taglibs, ant, etc. 
 
 
Thanks,
Scott


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



RE: Hate Myself for Not Getting Drop-Down Menu Right

2004-09-20 Thread Amin Lalji
Try removing the bean:define

And setting your line:

html:options collection=nameList property=name labelProperty=name/

to:

html:options collection=PageBeans property=name labelProperty=name/

HTH,
Amin

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 20, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: Hate Myself for Not Getting Drop-Down Menu Right

There is no problem with the database operation.  Data
are retrieved and can be displayed using the
c:forEach  tag.  Now, it is the drop-down menu.

I have coded some drop-down menu before.  This time, I
have a collection of JavaBeans instead of a collection
of strings.  And, I am in trouble again.

I passed a collection of JavaBean(s) upon successful
completion of an action:

Collection pages = service.getPages();
request.setAttribute( PageBeans, pages );

The individual JavaBean in the Collection is called
PageBean.  The PageBean has only one property called
'name' (I made it simple for testing purpose) with the
get and set methods.  

In the listpages.jsp, I imported:

%@ page import=org.dhsinfo.content.PageBean %

%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/struts-bean prefix=bean %

To form a drop-down menu, I did:

bean:define id=nameList name=PageBeans
scope=request type=java.util.ArrayList  /

html:select size=1 property=anything
multiple=false
html:options collection=nameList
property=name labelProperty=name/
/html:select

I got this error:
Http Status 500 root cause 

javax.servlet.jsp.JspException: Cannot find bean under
name org.apache.struts.taglib.html.BEAN

and in the Tomcat logs file:

2004-09-20 12:03:38 ApplicationDispatcher[/DHSInfo]
Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Cannot find bean under
name org.apache.struts.taglib.html.BEAN



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Indexed Properties DynaValidatorForm

2004-04-19 Thread Amin Lalji
I am trying to use a DynaValidatorForm with Indexed Properties...
I have setup validation using the Validator Framework...

Validation is working, however when it comes time to display failed
validation (from ActionErrors), I can not seem to output an individual error
message for each indexed property... instead validation errors for a single
member of the indexed properties are displayed for all of the members ... 

Is there any way to display the error solely for the Indexed Property in
question?

Thanks,

Amin


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