RE: JSP's in WEB-INF and action forward
If the ITERATE element below is in a form and the form contains other variables, you can use hidden fields to get the required values into the request object. (Your example does not refelect this) If you don't have variables, you don't need to post a form. The values that you are interested in are passed in the URL in your LINK element. Hope this is clear Christian/ -Original Message- From: Joe Latty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 3:11 AM To: Struts Users Mailing List Subject: JSP's in WEB-INF and action forward Ok I am trying to tow the party line here... Firstly, I have put all my JSP's in the WEB-INF directory. Now the only way to get to these pages is by action forwards. If I have an iterator which produces a grid which I would have previously coded like this e.g. logic:iterate id=comp name=companyForm property=companyList type=CompanyBO scope=request tr td class=gridDataNumberbean:write name=comp.companyId //td td.../td tdhtml:link href=company.do?action=updatecompanyID=%=comp.getCompanyId()%)Update/ html:link html:link href=company.do?action=deletecompanyID=%=comp.getCompanyId()%)Delete/ html:link /td /tr /logic:iterate Now I must submit the form and have the action servlet forward onto company.do with the correct companyId and action. Do I have to submit the form with some javascript setting the companyId and the action values, and then form.Submit()? What is the preferred method? Joe
RE: hello
Check the Struts Main website. They have bundles of information. Christian -Original Message- From: Rai, Nandkishore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: hello Importance: Low I am new to sturts and i want to know some thing about ActionForm and ActionServlet. i mean what does ActionForm will do, and what ActionServlet. thanks for your reply
RE: Button pressed
This can be placed in URL. e.g. EditFormAction.do?action=Edit EditFormAction.do?action=Continue Test the request parameter value. Christian -Original Message- From: Carlos Fernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:27 PM To: Struts Subject: Button pressed Hi guys, I'd like to know if there is a way that I will know which button was pressed. I have two buttons in the JSP (Edit and Continue). In my action class I need to know which one of those was pressed. Thanks in advance. Carlos.
RE: default forward/
You could use local forward elements for each action mapping and use the global-forwards to implement default forward elements. I don't know if action.xml contained a global-forwards. The more current file is the struts-config.xml. Christian/ -Original Message- From: Rainer Jünger [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:11 PM To: Struts Users Mailing List Subject: default forward/ Hi, I would like to forward to a certain path when all the other options (like action/action or ohter forwards/) within the action.xml were past without maching. Has this someone realized so far? thanks, Rainer
RE: Internal Servlet Error
ActionMappings and the ActionFormBeans collection are specified in the struts-config.xml file, located in the WEB-INF sub-directory. You could check to see if the XML file exists. -Original Message- From: Fábio Queiroz Barbosa [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: Internal Servlet Error Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection This error message appears in my application. Anybody knows what's the problem?
RE: Internal Servlet Error
If your struts-config.xml does not parse as well-formed XML, then you will get this error. You need to make sure that the data-source element is a child of data-sources. Also make sure that you place it in the right location. See element declaration for struts-config. data-sources data-source autoCommit=true description=My Data Source driverClass=sun.jdbc.odbc.JdbcOdbcDriver maxCount=4 minCount=2 password=myPass url=jdbc:odbc://myhostIntranet_db user=myUser/ /data-sources !-- Element Declaration -- !ELEMENT struts-config (data-sources?, form-beans?, global-forwards?, action-mappings?) Best, Christian/ -Original Message- From: Fábio Queiroz Barbosa [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:28 PM To: Struts Users Mailing List Subject: Re: Internal Servlet Error I put in my struts-config.xml file the code below: data-source autoCommit=true description=My Data Source driverClass=sun.jdbc.odbc.JdbcOdbcDriver maxCount=4 minCount=2 password=myPass url=jdbc:odbc://myhostIntranet_db user=myUser/ /data-sources When i start tomcat, the problem appears: Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection When i comment the code, the problem hide. What's happening? - Original Message - From: Christian Velez [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, March 04, 2002 5:14 PM Subject: RE: Internal Servlet Error ActionMappings and the ActionFormBeans collection are specified in the struts-config.xml file, located in the WEB-INF sub-directory. You could check to see if the XML file exists. -Original Message- From: Fábio Queiroz Barbosa [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: Internal Servlet Error Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection This error message appears in my application. Anybody knows what's the problem? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:submit button
Hi Konstantina, The html:submit is used to pass the parameters of the html:form it applies to. Whatever properties you include in your form, they are included in the request parameter. Here is an example: html:form action=/viewElementDesign.do bean:message key='mainMenu.viewDesignPatterns'/ html:select property=type size=3 html:option value=-- Select --/html:option html:option value=requiredparentRequiredParent/html:option html:option value=requiredchiildRequiredChild/html:option /html:select html:submit bean:message key='button.continue'/ /html:submit /html:form Christian/ -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 5:02 AM To: Struts Users Mailing List Subject: html:submit button Hello, I have a problem and I can't fingure out the solution to it. Here is my case: I have a list of products (PoductBean) on my .jsp and each one of it have two buttons (html:submit) : Button1 -- Display Information for this product Button2 -- Use the information to do something else My question is: How can I decide which product has been selected so as to display its information on my next page? From what I have seen the html:submit tag does not contain any attributes to pass request parameters. Thank U in advance, Konstantina
Mail Filter
Hi, I recently joined the mailing list and I am trying create a rule that will move all email messages to a STRUTS folder when they arrive in my mailbox. I am using Microsoft Outlook. I can't seem to get a rule that works for all messages. Any ideas would be greatly appreciated? Christian -Original Message- From: BONNET Francois-Xavier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 12:00 PM To: Struts Users Mailing List; Vimal Subject: Re: Using Swing Components as Visual Bean with struts Do you mean you are using applets in your pages. Please give more details. - Original Message - From: Vimal [EMAIL PROTECTED] Date: Wednesday, December 19, 2001 4:08 pm Subject: Using Swing Components as Visual Bean with struts Hi, I am new with struts. I started to work with struts. For certain requirement I want to use the swing based Forms with struts. When embedding swing components as visual bean with JSP, it display the contents, but calling another Visual bean from current bean it throws the exception. Does struts does not supports the visual bean communication with each other. Can any one give the solutions. Regards. Vimal CCBS [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts/Tomcat 4.0 Sealing Violation
Hi, I am trying to run the sample applications that com with Struts. I have tried using the binary distributions and have used Ant with the source distributons. I keep getting a java.lang.SecurityException: sealing violation when I try to enter any example application. I am also unable to compile any JSP file in the application directory. I have one copy of the struts.jar in: d:\jakarta-tomcat-4.0-b7\webapps\struts-example\WEB-INF\lib I have two copies of the jaxp.jar in: d:\JDK\jre\lib\ext d:\jakarta-tomcat-4.0-b7\jasper These jar files are not in my CLASSPATH. Any help will be greatly appreciated. Christian