Re: struts-html question.... puzzling problem...

2006-11-29 Thread maya
thank you all very much for your help..  finally got it to work w/struts 
1.1 (I had tried earlier version before, but 1.2.9, since hadn't been 
able to find 1.1)


now need to deal w/WAR-file thing, unfortunately don't know how to 
unpack/deploy WAR files..  I tried about a year ago to learn to use WAR 
files, couldn't get it to work.. there is indeed a 
struts-documentation.war in the 1.1 download..  found WAR-file 
instructions for example here, 
http://www.jguru.com/faq/view.jsp?EID=123229, but it's for tomcat 3.2.. 
I hope this will work on Tomcat 5.5 (since struts 1.1 is rather old..) 
can I assume url for docs then will be struts-documentation/index.jsp?


how exactly does this WAR-thing work???  :) again, thank you very much..



Wendy Smoak wrote:

On 11/28/06, maya [EMAIL PROTECTED] wrote:


thank you very much..  downloaded lib and src downloads..  when
unzipped, found that all files under docs are xmls not htmls..


You're probably looking at the source of the html pages, which is xml.

The documentation is inside struts-documentation.war, which you can
deploy to a servlet container, or just unzip somewhere.


wonder also if there's an equiv. to this pg for 1.3.5...
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html


  http://struts.apache.org/1.1/userGuide/

 From the menu, under Developer Guides, choose a tag library, then
either the API Reference (above) or the Package Description.




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



[OT] RE: Re: struts-html question.... puzzling problem...

2006-11-29 Thread Dave Newton
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
 how exactly does this WAR-thing work???

This may not be your best approach to learning JEE.

Have you considered getting a book that discusses JEE and moving on to
Struts from there?

Dave


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



Re: [OT] RE: Re: struts-html question.... puzzling problem...

2006-11-29 Thread maya
thank you very much for your help..  I'm a developer, mostly front-end 
(but very experienced) also know Java programming (and JSP/back-end), I 
started learning Java about three years ago and I like programming a 
lot.. know very well how to use Tomcat, servlets, etc..


started a new job a few months ago where I use struts, I have no 
problems at work, since deal mostly w/front-end (custom tags, etc..) but 
since I also have an interest in programing, and do have back-end 
experience, want to learn struts from the ground up, i.e., want to be 
able to create a complete app from scratch w/struts (write the classes, 
everything..) and thus as a learning exercise want to write my own 
little CMS with struts for uploading/displaying photos (could do this 
every easily in way I'm used to, namely putting all processing code in 
JSP itself, but do want to learn how to do it with struts..)


the WAR-file thing has really eluded me.. but now have no choice but 
learn how to deal w/it since otherwise won't be able to look @ docs for 
struts 1.1


would appreciate some suggestions.. thank you very much..


Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
how exactly does this WAR-thing work???


This may not be your best approach to learning JEE.

Have you considered getting a book that discusses JEE and moving on to
Struts from there?

Dave



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



RE: Re: [OT] RE: Re: struts-html question.... puzzling problem...

2006-11-29 Thread Dave Newton
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
 the WAR-file thing has really eluded me.. 

http://www.google.com/search?q=war+file

1) http://access1.sun.com/techarticles/simple.WAR.html
2) http://en.wikipedia.org/wiki/WAR_(file_format)

Dave


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



struts-html question.... puzzling problem...

2006-11-28 Thread maya

hi,

I'm following chapter 3 of Wrox Struts book (Professional Jakarta 
Struts) to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get 
TLD-related error on index.jsp (entire zipped-up webapp (small, 
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)


did index.jsp, and the classes, all following instructions in the book, 
the classes (LookupForm and LookupAction) compile fine..  put all 
packages (.jar's) from Jakarta Struts download where they belong 
(WEB-INF/lib..)


in index.jsp is this tag:

  html:form action=Lookup name=lookupForm type=ch03.LookupForm

I looked in struts-html.tld itself, one thing I note is that under 
form tag there are no attributes defined for either name or type, 
only for action (which can also be seen here, 
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/tld-summary.html) 
so am a bit puzzled here



one thing I also noted is that JSP servlet for index.jsp is non-existent 
(when look in tomcat/work/  don't see either index_jsp.java or 
index_jsp.class..)  i.e., JSP for some reason is not even being read by 
container..)


I have in struts-config.xml:

  form-beans
form-bean name=lookupForm type=ch03.LookupForm /
  /form-beans

  action path=/Lookup type=ch03.LookupAction 
name=lookupForm/action


in LookupAction.java:

  LookupForm lookupForm = (LookupForm)form;
(this is confusing: so lookupForm is name of form but also an 
instantiation of the other class in the package...(??)


would much appreciate some help.. thank you..
  (posted a question on Wrox's website relevant forum about two days 
ago but have gotten no response..)


thank you very much.


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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread Nuwan Chandrasoma

Hi,

In long time back..., it was requried to use those attributes of the 
html:form tag.. but i you dont need them now for sure.., i think you book 
may be some bit old.


for your second question.., the one you defined in the struts-config.xml.., 
that lookuForm name will be used by the framwork to keep the instance of the 
ch03.LookupForm in the request, for instance.., and in your action class its 
just a variable name that will used inside the action class itself..


hope this would help U.

Regards,

Nuwan


- Original Message - 
From: maya [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Tuesday, November 28, 2006 5:12 PM
Subject: struts-html question puzzling problem...



hi,

I'm following chapter 3 of Wrox Struts book (Professional Jakarta 
Struts) to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get 
TLD-related error on index.jsp (entire zipped-up webapp (small, 
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)


did index.jsp, and the classes, all following instructions in the book, 
the classes (LookupForm and LookupAction) compile fine..  put all packages 
(.jar's) from Jakarta Struts download where they belong (WEB-INF/lib..)


in index.jsp is this tag:

  html:form action=Lookup name=lookupForm type=ch03.LookupForm

I looked in struts-html.tld itself, one thing I note is that under form 
tag there are no attributes defined for either name or type, only for 
action (which can also be seen here, 
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/tld-summary.html) 
so am a bit puzzled here



one thing I also noted is that JSP servlet for index.jsp is non-existent 
(when look in tomcat/work/  don't see either index_jsp.java or 
index_jsp.class..)  i.e., JSP for some reason is not even being read by 
container..)


I have in struts-config.xml:

  form-beans
form-bean name=lookupForm type=ch03.LookupForm /
  /form-beans

  action path=/Lookup type=ch03.LookupAction 
name=lookupForm/action


in LookupAction.java:

  LookupForm lookupForm = (LookupForm)form;
(this is confusing: so lookupForm is name of form but also an 
instantiation of the other class in the package...(??)


would much appreciate some help.. thank you..
  (posted a question on Wrox's website relevant forum about two days ago 
but have gotten no response..)


thank you very much.


-
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-html question.... puzzling problem...

2006-11-28 Thread Dave Newton
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
 I'm following chapter 3 of Wrox Struts book (Professional Jakarta
 Struts) to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get
 TLD-related error on index.jsp (entire zipped-up webapp (small,
 virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)

Welcome to the world of Wrox.

(Sorry, Wrox.)

As mentioned, you need to look at *current* Struts documentation; that
book is like 3(?) years old and was written for Struts 1.1 (I imagine).

Struts has changed since then.

Dave


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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread maya

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya

I'm following chapter 3 of Wrox Struts book (Professional Jakarta
Struts) to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get
TLD-related error on index.jsp (entire zipped-up webapp (small,
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)


Welcome to the world of Wrox.

(Sorry, Wrox.)

As mentioned, you need to look at *current* Struts documentation; that
book is like 3(?) years old and was written for Struts 1.1 (I imagine).

Struts has changed since then.

Dave


thank you very much.. yes, the book uses 1.1..  I can't find any book 
that uses later versions, no 1.1 download on Jakarta site.. this is all 
very puzzling and confusing.. and Wrox, unlike oreilly, there's no 
e-mail contact for the authors (the few times I have written to oreilly 
authors I have always gotten a response...  oh well...)


thank you...  need to learn struts, what to do?  really can't find any 
book that covers 1.3.5..




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



RE: Re: struts-html question.... puzzling problem...

2006-11-28 Thread Dave Newton
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
 thank you very much.. yes, the book uses 1.1..  I can't find any book
 that uses later versions, no 1.1 download on Jakarta site.. 

http://struts.apache.org/downloads.html#PriorReleases

There are documents on the Struts Wiki discussing changes between 1.1 -
1.2, I don't know anything about 1.3. There are probably docs for that
there too:

http://wiki.apache.org/struts/StrutsUpgrade

Dave


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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread maya

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
thank you very much.. yes, the book uses 1.1..  I can't find any book
that uses later versions, no 1.1 download on Jakarta site.. 


http://struts.apache.org/downloads.html#PriorReleases


did go to 1.1 link?  http://struts.apache.org/1.1/index.htm   ;)

thanks to all for your help




There are documents on the Struts Wiki discussing changes between 1.1 -
1.2, I don't know anything about 1.3. There are probably docs for that
there too:

http://wiki.apache.org/struts/StrutsUpgrade

Dave



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



RE: Re: struts-html question.... puzzling problem...

2006-11-28 Thread Dave Newton
http://archive.apache.org/dist/struts/struts-1.1/

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
 Sent: Tuesday, November 28, 2006 2:37 PM
 To: user@struts.apache.org
 Subject: Re: struts-html question puzzling problem...
 
 Dave Newton wrote:
  From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
  thank you very much.. yes, the book uses 1.1..  I can't find any
 book
  that uses later versions, no 1.1 download on Jakarta site..
 
  http://struts.apache.org/downloads.html#PriorReleases
 
 did go to 1.1 link?  http://struts.apache.org/1.1/index.htm   ;)
 
 thanks to all for your help
 
 
 
  There are documents on the Struts Wiki discussing changes between
 1.1 -
  1.2, I don't know anything about 1.3. There are probably docs for
 that
  there too:
 
  http://wiki.apache.org/struts/StrutsUpgrade
 
  Dave
 
 
 -
 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-html question.... puzzling problem...

2006-11-28 Thread maya
thank you very much..  downloaded lib and src downloads..  when 
unzipped, found that all files under docs are xmls not htmls..  :( oh 
brother  wonder also if there's an equiv. to this pg for 1.3.5... 
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html.


many thanks..



Dave Newton wrote:

http://archive.apache.org/dist/struts/struts-1.1/


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
Sent: Tuesday, November 28, 2006 2:37 PM
To: user@struts.apache.org
Subject: Re: struts-html question puzzling problem...

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
thank you very much.. yes, the book uses 1.1..  I can't find any

book

that uses later versions, no 1.1 download on Jakarta site..

http://struts.apache.org/downloads.html#PriorReleases

did go to 1.1 link?  http://struts.apache.org/1.1/index.htm   ;)

thanks to all for your help



There are documents on the Struts Wiki discussing changes between

1.1 -

1.2, I don't know anything about 1.3. There are probably docs for

that

there too:

http://wiki.apache.org/struts/StrutsUpgrade

Dave


-
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-html question.... puzzling problem...

2006-11-28 Thread Wendy Smoak

On 11/28/06, maya [EMAIL PROTECTED] wrote:


thank you very much..  downloaded lib and src downloads..  when
unzipped, found that all files under docs are xmls not htmls..


You're probably looking at the source of the html pages, which is xml.

The documentation is inside struts-documentation.war, which you can
deploy to a servlet container, or just unzip somewhere.


wonder also if there's an equiv. to this pg for 1.3.5...
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html


  http://struts.apache.org/1.1/userGuide/


From the menu, under Developer Guides, choose a tag library, then

either the API Reference (above) or the Package Description.

--
Wendy

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