Hi there,
I am new to Struts (version 1.2.7). I am developing a small app to
learn Struts. Could
you please give me some suggestions? Many thanks!!
Scenario:
A very small web app. I have 3 tables: student, course, and student-
course. Student and course are 1:N relationship. student-course is a
Hi folks,
I know it is a stupid question. But how shall I pass JavaBeans from an
Action object to a JSP page? Use setAttribute('xxx',xxx)?
I have a list of JavaBeans that I want to pass to JSP pages to display
one by one.
Shall be a very simple question to anyone who is not a brand new
beginner
I want to call amazon web service to display information about books
(price, image, etc). What shall be the simplest and best practice? (if
there is conflict between simple and best, choose simple)
Shall I do everything in JSP? (Suppose I have an external class that
once provided with an ISBN, wil
I am looking for a very simple Amazon web service library. I plan to use it
in a struts 1 application.
Basically, I want a library that once I provide with an ISBN for a
book, it will return current book price, image, reader comments
(optional), and, of course, URL to this book. I want to wrap all
in Action:
...
Set books=bdao.findAllBooks();
request.setAttribute("books", books);
...
In JSP:
All Books:
--
The line ( throws an exception:
Root Cause:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot
find bean: "book" in any scope
(ther
I tried code below, still the same error:
Next element is
Database search does not return any result
On Nov 25, 2007 7:33 PM, Fitzwilliam. Aaron <[EMAIL PROTECTED]> wrote:
> u sure the collection 'books' is not empty?
>
>
> On
llection 'books' is not empty?
>
>
> On 11/26/07, Minghui Yu <[EMAIL PROTECTED]> wrote:
> >
> > in Action:
> > ...
> > Set books=bdao.findAllBooks();
> >request.setAttribute("books", books);
> > ...
> >
>
In my Action, I have: request.setAttribute("book", book);
book is a Book object, which has a getAuthors method. getAuthors
returns a collection (Set)
in JSP page, I want to list authors one by one. How shall I do?
does not work as I want.
Thanks,
--
Thanks & Have a good day,
YU, Minghui
--
On Nov 27, 2007 3:57 AM, Omkar Patil <[EMAIL PROTECTED]> wrote:
>
> Are you using struts1 or struts2?
>
> - Omkar
>
>
> Minghui Yu wrote:
> >
> > In my Action, I have: request.setAttribute("book", book);
> >
> > book is a Book object, w
9 matches
Mail list logo