set max size of c:out value
Hello guys, I'm working for the first time on Struts. I need your help for a easy (I think) question. In my Jsp I've a table in which I populate rows from a list in a bean, in this way. ... This table must be only in reading way and it works correctly. The problem is that in this case each column of grid has a dynamic lenght (basing on value with max size). I need to set a max size for c:out value, that is only 'x' char must be shown and rest of chars could be expanded clicking in correct item. It's easy to do it adding a inputtext and setting max size, clicking in text box is possible to see rest of chars. Which is correct solution? I've to add a inputtext tag or is there another solution? Thanks, Regards -- View this message in context: http://www.nabble.com/set-max-size-of-c%3Aout-value-tp20993025p20993025.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Cannot find bean in any scope
Hi, thanks very much for your help. I understood your explanation but I didn't solve. Now I did: but I still have: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope I'm missing something? Thanks Nils-Helge Garli wrote: > > From the taglib reference for "iterate" [1]: > > id - The name of a page scope JSP bean that will contain the current > element of the collection on each iteration, if it is not null. > > In your example, you have used id="dvds" which means that you would > have to use > Nils-H > > [1] - > http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#logic:iterate > > On Sun, Dec 7, 2008 at 5:39 PM, gbattine <[EMAIL PROTECTED]> wrote: >> >> Hello guys, >> I'm newbie of Struts, please help me. >> I've an action that calls some business logic, retrieve a a list and set >> it >> into request, calling later a jsp, in which I try to show this list >> through >> iterate tag. >> >> this is jsp to show list >> >> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> >> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> >> >> >> >>JSP Page >> >> >>Ricerca film >> >> >> >> Titolo >> Regia >> Sceneggiatura >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> this is action that pass to list a list of dvds >> Collection c = new ArrayList(); >>try { >>c = manager.getAll(); >>} catch (DAOException e) { >>String message = "DVDs could not be listed"; >>errors.add("label", new ActionError("error.listfailed")); >>saveErrors(request, errors); >>return (mapping.findForward("error")); >> >> >>} >> session.setAttribute("dvds", c); >> >> >> besides dvd (shown in jsp) is a bean to show each item of dvds list. >> Instead of show jsp with list of dvd I've this error: >> >> javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot >> find >> bean: "DVD" in any scope >> >> How can I solve it? >> please help me, >> Thanks >> >> >> -- >> View this message in context: >> http://www.nabble.com/Cannot-find-bean-in-any-scope-tp20882790p20882790.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> 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] > > > -- View this message in context: http://www.nabble.com/Cannot-find-bean-in-any-scope-tp20882790p20893064.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot find bean in any scope
Hello guys, I'm newbie of Struts, please help me. I've an action that calls some business logic, retrieve a a list and set it into request, calling later a jsp, in which I try to show this list through iterate tag. this is jsp to show list <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> JSP Page Ricerca film Titolo Regia Sceneggiatura this is action that pass to list a list of dvds Collection c = new ArrayList(); try { c = manager.getAll(); } catch (DAOException e) { String message = "DVDs could not be listed"; errors.add("label", new ActionError("error.listfailed")); saveErrors(request, errors); return (mapping.findForward("error")); } session.setAttribute("dvds", c); besides dvd (shown in jsp) is a bean to show each item of dvds list. Instead of show jsp with list of dvd I've this error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope How can I solve it? please help me, Thanks -- View this message in context: http://www.nabble.com/Cannot-find-bean-in-any-scope-tp20882790p20882790.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connection to db with pooling in Struts
Hello guys, I'm newbie about Struts and I'm trying to understand a complex task (for me), that is obtaining a connection from connection pool (I use dbcp for this) and a datasource (that one of tomcat) and use this connection in dao layer. I'm trying to get this working, but it seems very difficult to me. Could you help me? I show what I did: -I added context in server.xml of tomcat -I added declaration into web.xml of application, like this: DB Connection jdbc/TestDB javax.sql.DataSource Container Now my first question. What's next step? Could you please post simple code and comment to understand? What I imagine is now to have something to retrieve a connection and pass it to dao. Could you help me? Thanks very much -- View this message in context: http://www.nabble.com/connection-to-db-with-pooling-in-Struts-tp20738163p20738163.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new to Struts
Hello guys, I need an information. I'm going to learn struts.. I need some info, please help me: 1) what do you hint to me, to start from Struts 1.1 and later move to Struts 2.0, or starting from Struts 2.0? 2) I usually use Netbeans. Is there an editor WYSIWHG for Netbeans, to use Struts? 3) I know ASP.NET technology and I used lot of already developed components, like editable grid, dropdown list and so on...does exists such component for struts?where I can download them? Thanks, Regards -- View this message in context: http://www.nabble.com/new-to-Struts-tp19370925p19370925.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]