FileUpload warning
Hi Guys, During file upload I get the following warning message. One of the getParameter family of methods called after reading from the ServletInputStream. Not merging post parameters. But the file gets uploaded successfully. Any idea why this would be happening ? thanks n regards Deepak
File upload location
Hi, What is the default location of a file uploaded using html:file ? Can I upload it to one of the folders in my context path ? thanks Deepak
RE: Java / J2EE Developer
Come to India, there are lots of jobs for you here. From: Srini Pacharu [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Java / J2EE Developer Date: Mon, 16 Feb 2004 09:27:22 -0800 (PST) Hi Kamal, I'm in Annandale, Virginia. Cheers, -Srini. Kamal Gupta [EMAIL PROTECTED] wrote: Hi Srini, Can you please tell me where are u based at the moment Kamal -Original Message- From: Srini Pacharu [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 16:59 To: Struts Users Mailing List Subject: Java / J2EE Developer Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _ Contact brides grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag Only on www.shaadi.com. Register now! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logic:iterate not updating. Need help
Dear Friends, (B (BI am facing problem in the updating of ActionForm properties from the struts (Bbased jsp page particularly logic:iterate tag. (B (B (B (BWhile initial display the values of my Taisho object is getting displayed (Bproperly using logic:iterate but when I change those displayed values in (Bhtml page I am not getting the updated values neither in ActionForm nor in (BTaisho object. I hope some of you will help me. I know I am missing (Bsomething somewhere. I tried with number of different options but unable to (Bget the proper result. (B (BDetail of the code is as follows, I really appreciate the help provided. (B (BReagrds, (B (BDeepak (B (B (B (BIterate Code in JSP Page (B (B (B (Blogic:iterate id="tcc" name="KikiTorokuForm" property="taishos" offset="0" (Btype="jp.co.ogis.aess.mokuhyo.Taisho" (B (B (B (Bhtml:text name="tcc" property="taishoBunruiCodo" maxlength="6"/ (B (Bhtml:text name="tcc" property="taishoKinoCodo_1" (Bmaxlength="6"/ (B (Bhtml:text name="tcc" property="taishoKinoCodo_2" (Bmaxlength="6"/ (B (B html:text name="tcc" property="taishoKinoCodo_3" (Bmaxlength="6"/ (B (B /logic:iterate (B (B (B (B (B (BActionForm Code is (My ActionForm name is KikiTorokuForm) (B (B (B (Bprivate final ArrayList taishos = new ArrayList(); (B (B (B (Bpublic ArrayList getTaishos() { (B (Bif( taishos.isEmpty() ) { (B (Bfor(int i=0; i rows; i++ ){ (B (Btaishos.add( new Taisho() ); (B (B} (B (B} (B (Breturn taishos; (B (B} (B (B (B (Bpublic void setTaishos(int index, Taisho tai){ (B (Btaishos.add(index, tai); (B (B} (B (B (B (Bpublic void setTaishos(ArrayList tais){ (B (Btaishos.addAll(tais); (B (B} (B (B (B (B (B (B (B (BAnd Class Taisho is as follows, (B (B (B (Bpackage jp.co.ogis.aess.mokuhyo; (B (B (B (Bimport java.io.*; (B (B (B (B/** (B (B * (B (B * @author mundada (B (B */ (B (Bpublic class Taisho implements Serializable { (B (B (B (Bprivate String taishoBunruiCodo = ""; (B (Bprivate String taishoKinoCodo_1 = ""; (B (Bprivate String taishoKinoCodo_2 = ""; (B (Bprivate String taishoKinoCodo_3 = ""; (B (B (B (B (B (Bpublic String getTaishoBunruiCodo(){ (B (Breturn taishoBunruiCodo; (B (B} (B (B (B (Bpublic void setTaishoBunruiCodo(String code){ (B (Bthis.taishoBunruiCodo = code; (B (B} (B (B (B (Bpublic String getTaishoKinoCodo_1() { (B (Breturn this.taishoKinoCodo_1; (B (B} (B (B (B (Bpublic void setTaishoKinoCodo_1(String code){ (B (Bthis.taishoKinoCodo_1 = code; (B (B} (B (B (B (Bpublic String getTaishoKinoCodo_2() { (B (Breturn this.taishoKinoCodo_2; (B (B} (B (B (B (Bpublic void setTaishoKinoCodo_2(String code){ (B (Bthis.taishoKinoCodo_2 = code; (B (B} (B (B (B (Bpublic String getTaishoKinoCodo_3() { (B (Breturn this.taishoKinoCodo_3; (B (B} (B (B (B (Bpublic void setTaishoKinoCodo_3(String code){ (B (Bthis.taishoKinoCodo_3 = code; (B (B} (B (B} (B (B (B (B (B (BAnd Action setting in the struts-config.xml file is as follows, (B (B (B (B (B (Bform-bean name="KikiTorokuForm" (B (B type="jp.co.ogis.aess.mokuhyo.KikiTorokuForm"/ (B (B (B $B!D(B.. (B (B (B (B action (B (Bpath="/Kikitoroku" (B (Bname="KikiTorokuForm" (B (Btype="jp.co.ogis.aess.mokuhyo.KikiTorokuAction" (B (Bscope="session" (B (Binput="/mokuhyo/KikiToroku.jsp" (B (Bvalidate="true" (B (Bforward name="failed" path="/mokuhyo/Login.jsp"/ (B (Bforward name="success" path="/Last.jsp"/ (B (B/action (B (B (B (B (B (B (B (B (B (B (B--
creating a class that extends Action Mapping...what is the purpose of it?
Hi, I was trying one struts example. In that example, it has created one class whcih extends ActionMapping class. I was just wondering why we need to create this class and when is it used and whether we define this class in struts-config or web.xml? Regards Deepak Saini _ Contact brides grooms FREE! Only on www.shaadi.com. http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Source code for Mastering Jakarta Struts
hi! any idea from where cna i get the source code of Mastering Jakarta Struts Regards Deepak Saini _ Marriage? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Join BharatMatrimony.com for free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sample program not running..getting stuck at Creating new Action
Hi, I have written a small application based on struts. there is one jsp page from which i am submitting some data. this is the code inthe jsp file html:form action=Lookup table width=45% border=0 tr tdSymbol:/td tdhtml:text property=symbol //td /tr tr td colspan=2 align=centerhtml:submit//td /tr /table /html:form the struts mapping is form-beans form-bean name=lookupForm type=wiley.LookupForm /form-bean /form-beans !-- Action Mappings -- action-mappings action path=/Lookup type=wiley.LookupAction name=lookupForm forward name=success path=/quote.jsp /forward forward name=failure path=/index.jsp /forward /action /action-mappings when i execute the code, index.jsp is running fine but when i submit some data, the url changes to http://localhost:9080/wileyapp/Lookup.do and gets stuck there. the server log shows the following [wileyapp] [/wileyapp] [Servlet.LOG]: /index.jsp: init [12/17/03 20:10:54:109 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Processing a POST for /Lookup [12/17/03 20:10:54:109 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Setting locale 'en_US' [12/17/03 20:10:54:109 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Looking for ActionForm bean under attribute 'lookupForm' [12/17/03 20:10:54:109 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Recycling existing ActionForm bean instance of class 'wiley.LookupForm' [12/17/03 20:10:54:109 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Populating bean properties from this request [12/17/03 20:10:54:125 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Validating input form properties [12/17/03 20:10:54:125 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: No errors detected, accepting input [12/17/03 20:10:54:125 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Looking for Action instance for class wiley.LookupAction [12/17/03 20:10:54:141 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Double checking for Action instance already there [12/17/03 20:10:54:141 GMT+05:30] f1c9d22 WebGroup I SRVE0180I: [wileyapp] [/wileyapp] [Servlet.LOG]: action: Creating new Action instance _ Stand out from the crowd. Make your own MMS cards. http://msn.migasia.cn/msn Have some mobile masti! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ValidWhen validator
Hi, Is there a stable Struts release after 1.1 ? If Yes, what is the version and does it have ValidWhen Validator support ? regards Deepak
Re: html:link adn Struts usage - question from a newbee
Ur link should call .do that populates the form for 'ShowMe.jsp' and sets it in the session - Original Message - From: Frederic Dernbach [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 4:51 PM Subject: html:link adn Struts usage - question from a newbee Inside a JSP, I would like to implement a link to a Struts action that forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA. Let's have a simple (and stupid) example so I can make myself understand better. Using struts, we have a JSP (/ShowMe.jsp) with a form stored in request or session scope (I tried both scopes without success). Inside the JSP, there a simple link such as : html:link page=/ShowItAgain.doGohtml:link/ The Struts action associated to the link does not do anything. It just forwards back to /ShowMe.jsp (thanks to the appropriate return statement and struts-config.xml entry). What should I do so that the form's data is not lost once the link is clicked on ? I do not want use a submit button for this purpose ,(I need a link). Thanks in advance for any help. Fred - 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-used Action class
Hi, I have a (hopefully) simple question. I have a ActionForm / Action pair invoked from several JSP pages (actually the JSP fragment is included into several JSP pages). I am trying to use the ActionForm.validate method in combination with the html:errors/ tag. The problem is that when there is a Form validation error, the INPUT property of the mapping is used to send the user back where he came from. However, there can only be 1 INPUT specified for a given mapping. In my case, I want to invoke the same action from several pages, and want the user to be sent back to correct errors on the page they were on. Any ideas? Thanks Deepak *** Confidentiality Notice *** This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments.
HTML encoding of text returned from a bean
Hi, I have some UI customization that is done based on some data. In order to implement it in a generic, reusable fashion, I am trying to generate the HTML text (including struts tags) in a bean (called FETList below). Scenario1 shown below works. However, Scenario2 is what I am trying to get working and not succeeding. Thanks for any help. Regards Deepak Scenario1: Placing the code in the JSP. This works and a droplist shows up fine. CODE IN JSP jsp:setProperty name=FETList property=currentKey value=MEMBER_DETAIL5MEM_FIELD5C5/ bean:define id=dctest name=FETList property=myFieldChoiceList / BRNew html:select property=contractName html:options collection=dctest property=value_cd labelProperty=ext_desc / /html:select Scenario2: Attempting to invoke the getHTMLString() on the bean from the JSP. This does not work. Instead of the droplist showing up, I see the actual text showing up (bean:define id..) What am I doing wrong? Is there some way that I need to flag an encoding scheme? CODE IN JSP jsp:setProperty name=FETList property=currentKey value=MEMBER_DETAIL5MEM_FIELD5C5/ BRbean:write name=FETList property=HTMLString / CODE IN BEAN FETList that is invoked public String getHTMLString() { System.out.println(Entered getHTMLString); String HTMLString = new String(); HTMLString = bean:define id=\dctest\ name=\FETList\ property=\myFieldChoiceList\ /BRNew html:select property=\contractName\ html:options collection=\dctest\ property=\value_cd\ labelProperty=\ext_desc\ / /html:select; return HTMLString ; } *** Confidentiality Notice *** This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments.
java.lang.IllegalArgumentException: No bean specified
Hi, Submission of a page after using browser back button results in "java.lang.IllegalArgumentException: No bean specified" error. Initially I thought may be the form is not in the session, so I put a check in the corresponding action class. But the exception is thrown before the control reaches my action class. Anysolution to this problem ? StackTrace: --- java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) --- thanks 'n' regards deepak
Re: Struts and user-authentication
Try this : http://www.theserverside.com/resources/article.jsp?l=JAAS - Original Message - From: Ilja [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:00 PM Subject: Struts and user-authentication Is there any good example on how to incorporate strict user-authentication with Struts? Currently I'm working on a way to implement user-authentication with OSUser (www.opensymphony.com/osuser) and hibernate (www.hibernate.org) What's the best way to implement user-security? Where should the authentication method be put in? In every action? Is it possible to create one generic class that authorizes a user and sends it to the appropiate page (either the page he requested, an error or a login-page) without coding it on every single action page? Thanks, Ilja - 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: html:messages
Try request.setAttribute(Globals.MESSAGE_KEY, actionMessages); after messages.add() - Original Message - From: Stan Reinis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, September 12, 2003 11:46 AM Subject: html:messages My Action includes the following code: ActionMessages messages = new ActionMessages(); ... messages.add( ActionMessages.GLOBAL_MESSAGE, new ActionMessage(adminUpdateProfileAction.profile.has.been.updated)); ... saveMessages(request, messages); forward = mapping.findForward(success); My jsp has ul html:messages id=message libean:write name=message //li /html:messages /ul And yet no messages are appearing in the response. The source code shows ul /ul Perusing the javadocs, I find the following description for the saveMessages() method: Save the specified messages keys into the appropriate request attribute for use by the html:messages tag (if messages=true is set), if any messages are required. My question is: how do we set messages=true? Thanks, Stan Reinis RIGCI, Inc. - 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: Howto get ActionForward to calling Page?
Try new ActionForward(mapping.getInput()) deepak - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 4:17 PM Subject: Howto get ActionForward to calling Page? Hi, looking for a way to get an ActionForward to the page calling the current servlet. Example: Want to realize 5-XX pages where to enter values for a calculation. The calculation result page would check if everything entered was fine (using db queries etc..) Now in case that one of the input values is incorrect / missmatching the context, I'd like to redisplay the calling page to the user, showing the values entered before + an error message. How can i realize that without having to define specific forwards to the 5 pages and then deciding which one was the calling one? Tried the ActionMapping.getInputForward(), but it brought back null values in the ActionForward only. Comments and keywords to look for welcome. Thanks, Alex - 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]
Logic Iterate in Struts
Can some body some body tell me about logic iterate tag Thanks Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logic Iterate in Struts
I want to iterate thru by bean and retrieve all values in JSP thru this tag Deepak -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:20 PM To: 'Struts Users Mailing List' Subject: RE: Logic Iterate in Struts That's not overly general or anything ** Note the sarcasm ** What do you want to know? -Original Message- From: Yinti, Deepak [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:13 PM To: Struts Users Mailing List Subject: Logic Iterate in Struts Can some body some body tell me about logic iterate tag Thanks Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issues with Submit and Popup in Struts
Hi All, I have a JSP page in which has a hyperlink , which when clicked opens Pop-up window to display some data. There is also a Submit button in my JSP. Now the problem I am having facing is , when I click the hyperlink the pop-up window opens and displays data which is works fine . After closing the pop up window , when I click my submit button in my JSP page , it should go to next page(which it is doing) but tries to open a new window for me, which is should not do. The hyperlink calls a JavaScript function which looks like :- a href=# onclick=return fnCallQuoteStatusByProductPopUp();Status By Product/a /td which calls JS function function fnCallStatusByProductPopUp() { window.open(,_new,scrollbars=yes,width=700,height=350,left=0,top=0 ); document.actionForm.target=_new; document.actionForm.service.value=STATUS; document.actionForm.action.value =statusbyproduct; document.actionForm.submit(); return false; } And the submit button calls another JS function :- tdhtml:image onclick=return fnCallProducerLookup()src=images/bt_submit.gif//td which is a submit button which calls JS fucntion function fnCallProducerLookup() { document.actionForm.service.value=PRODUCERLOOKUP; document.actionForm.action.value =producerlookupsearch; document.actionForm.submit(); return false; } How can I rectify my problem of not opening another window when I click the submit button Thanks in advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
execute() is called twice!
Hi, I noticed that the execute method was called twice when the submit button was pressed once (resulting same action being performed twice). Has any one experienced this kind of behavior? I am unable to figure out the reason for this. Any suggestions will be helpful. Thanks, Deepak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML:SELECT
Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML:SELECT
Hi Josh, I need to print all the values which I have added in the Session to be in my HTML:OPTIONS How can I do that ? Deepak -Original Message- From: Josh McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:43 PM To: Struts Users Mailing List Subject: Re: HTML:SELECT What is the error you are getting. Your message shows you placing a variable in session scope, and then using a scriptlet to display a variable in request scope... Here is some code I find helpful to better debug these situations: Put this at the bottom of a jsp / footer: !-- if(com.whatever.Class.DEBUG_REQUEST) out.println(com.whatever.Class.getDumpContents(request); -- public static String getDumpContents(HttpServletRequest request) { StringBuffer content = new StringBuffer(4096); content.append(dumpRequest(request)); content.append(dumpSession(request.getSession(false))); return content.toString(); } public static String dumpSession(HttpSession session) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpSession)**\n); // Append non-attribute data here Enumeration enum = session.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(session.getAttribute(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } public static String dumpRequest(HttpServletRequest request) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpRequest)**\n); // Append non-attribute data here buf.append(\nAttributes:\n); Enumeration enum = request.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getAttribute(key)); buf.append(\\n); } buf.append(\nParameters:\n); enum = request.getParameterNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getParameter(key)); buf.append(\\n); } buf.append(\nHeaders:\n); enum = request.getHeaderNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getHeader(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } [EMAIL PROTECTED] wrote: Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML:OPTION from bean to JSP
I am new to struts framework. Can somebody let me know ,how to get data from bean into html:option which I am using my jsp page Thanks Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML:OPTION from bean to JSP
Thanks Steve for your help Deepak -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:30 PM To: Struts Users Mailing List Subject: RE: HTML:OPTION from bean to JSP In an Action that forwards to your form jsp, you do something like this: ArrayList flavours = new ArrayList(); flavours.add(new LabelValueBean(Vanilla, 0)); flavours.add(new LabelValueBean(Strawberry, 1)); flavours.add(new LabelValueBean(Chocolate, 2)); flavours.add(new LabelValueBean(Neopolitan, 3)); request.setAttribute(FLAVOURS, flavours); Then in your form jsp you can access the collection like this: html:select property=flavour html:options collection=FLAVOURS property=value labelProperty=label/ /html:select Steve -Original Message- From: Yinti, Deepak [mailto:[EMAIL PROTECTED] Sent: May 27, 2003 12:58 PM To: Struts Users Mailing List Subject: HTML:OPTION from bean to JSP I am new to struts framework. Can somebody let me know ,how to get data from bean into html:option which I am using my jsp page Thanks Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - 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] This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Difference between Struts 1.1 and Struts 1.0
Hi, Is there any web site that lists the differences between Struts 1.1 and Struts 1.0. regards Deepak
Re: selecting all the checkboxes
onClick of the link call the javascript function which checks all your checkboxes. - Original Message - From: Uday [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, January 24, 2003 4:16 PM Subject: RE: selecting all the checkboxes Hi, Yes in my jsp, but i use html:multibox control using structs. I know how to do with pure javascript. But when use html:multibox, the name for all the checkboxes is same and i am not able to get it dynamically. Can you tell me how to check all the checkboxes by clicking a link. Regards, Uday -Original Message- From: Kiss, Tibor (Contractor) [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 3:39 PM To: 'Struts Users Mailing List' Subject: AW: selecting all the checkboxes In your jsp. -Ursprüngliche Nachricht- Von: Uday [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 24. Januar 2003 11:11 An: [EMAIL PROTECTED] Betreff: selecting all the checkboxes Hi, I have a table in which i have one column with multiple checkboxes. I have one hyperlink below that table, using javascript if i click on the link all checkboxes should get select. I have one hyperlink below that table, using javascript if i click on the link all checkboxes should get deselect. Can you tell me how to do it. i am using html:multibox tag and it is working fine if i select individually. How to embedd javascript with structs. Have a nice day Regards, Uday -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: disable enter key
You can use something like this function captureEnter () { var keycode; if (window.event) keycode = window.event.keyCode; if (keycode == 13) { //Your processing } } You can call this function on keyPress event of your control - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, December 30, 2002 2:27 PM Subject: RE: disable enter key Another question: If I have no submit button. How do I make it that the 'Enter' key triggers a JavaScript function? This is because I need to do some processing before submitting. Regards, Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 2:07 AM To: [EMAIL PROTECTED] Subject: RE: disable enter key But the default behavior of Enter in a browser (IE?) is to invoke the form submission. For example, if you hit Enter on a login page, it acts like you click the Sing-In button. There is no JS involved. Regards, Phillip Qin This Guy Thinks He Knows Everything Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 1:03 PM To: Struts Users Mailing List Subject: RE: disable enter key No. Struts is a server-side platform. It can make client-side tasks easier, such as validation, but this falls outside it's realm of responsibility. You'll have to use JavaScript. -= J -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: disable enter key Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: disable enter key
Should work I have not tried it. Just try it out - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'deepak' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 5:12 PM Subject: RE: disable enter key Would that work if my control is a password input field ? Regards, Daniel -Original Message- From: deepak [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 7:41 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: disable enter key You can use something like this function captureEnter () { var keycode; if (window.event) keycode = window.event.keyCode; if (keycode == 13) { //Your processing } } You can call this function on keyPress event of your control - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, December 30, 2002 2:27 PM Subject: RE: disable enter key Another question: If I have no submit button. How do I make it that the 'Enter' key triggers a JavaScript function? This is because I need to do some processing before submitting. Regards, Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 2:07 AM To: [EMAIL PROTECTED] Subject: RE: disable enter key But the default behavior of Enter in a browser (IE?) is to invoke the form submission. For example, if you hit Enter on a login page, it acts like you click the Sing-In button. There is no JS involved. Regards, Phillip Qin This Guy Thinks He Knows Everything Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 1:03 PM To: Struts Users Mailing List Subject: RE: disable enter key No. Struts is a server-side platform. It can make client-side tasks easier, such as validation, but this falls outside it's realm of responsibility. You'll have to use JavaScript. -= J -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: disable enter key Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: disable enter key
This works with input type=text - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'deepak' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 5:12 PM Subject: RE: disable enter key Would that work if my control is a password input field ? Regards, Daniel -Original Message- From: deepak [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 7:41 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: disable enter key You can use something like this function captureEnter () { var keycode; if (window.event) keycode = window.event.keyCode; if (keycode == 13) { //Your processing } } You can call this function on keyPress event of your control - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, December 30, 2002 2:27 PM Subject: RE: disable enter key Another question: If I have no submit button. How do I make it that the 'Enter' key triggers a JavaScript function? This is because I need to do some processing before submitting. Regards, Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 2:07 AM To: [EMAIL PROTECTED] Subject: RE: disable enter key But the default behavior of Enter in a browser (IE?) is to invoke the form submission. For example, if you hit Enter on a login page, it acts like you click the Sing-In button. There is no JS involved. Regards, Phillip Qin This Guy Thinks He Knows Everything Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 1:03 PM To: Struts Users Mailing List Subject: RE: disable enter key No. Struts is a server-side platform. It can make client-side tasks easier, such as validation, but this falls outside it's realm of responsibility. You'll have to use JavaScript. -= J -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: disable enter key Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: defining style class with the iterate tag
You can do it this way logic:iterate name=mailFilterForm property=registredList id=mailView bean:define id=index name=mailView property=index/ tr td class=%= (Integer.parseInt(index)%2 == 0)?paire:impaire% bean:write name=mailView property=sender/ /td /tr /logic:iterate - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 4:02 PM Subject: defining style class with the iterate tag hi all, I'm using the iterate tag to display my arrayList element like this. logic:iterate name=mailFilterForm property=registredList id=mailView tr class=paire td align=centerbean:write name=mailView property=code//td tdbean:write name=mailView property=sender//td tdbean:write name=mailView property=dateStart//td tdbean:write name=mailView property=dateEnd//td tdbean:write name=mailView property=targetDir//td /tr /logic:iterate and it works fine. But I would like to define row style class in bold according to the index value of the iterated element. without using the tag is looked like this tr class=%= (index%2 == 0)?paire:impaire% where index is the index value of the iterated element. But I don't know how to perform this inside the iterate tag. The mailView object has a property named index could be used to perform some comparison. But I don't know how to use it. Can some one helps ? thanks. Meissa -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Help needed with Indexed Tags, Contributor taglib by Dave Hays
Try doing this logic:iterate id=mondayEvent name=calendarForm property=mondayEventList bean:define id=txtSubject name=mondayEvent property=subject/ td class=input width=30% html:text property=txtSubject indexed=true/ /td /logic:iterate - Original Message - From: Linnea Ahlbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 3:55 PM Subject: Help needed with Indexed Tags, Contributor taglib by Dave Hays Hi! I'm using the indexed tag lib written by Dave Hays. On my jsp page I have the following code: logic:iterate id=mondayEvent name=calendarForm property=mondayEventList td class=input width=30%html:text name=mondayEvent property=subject indexed=true//td /logic:iterate In my formbean I have a the following getters: public List getMondayEventList() { return mondayEventList; } public CalendarEvent getMondayEvent(int index) { return (CalendarEvent) mondayEventList.get(index); } In my CalendarEvent class I have the following getter: public String getSubject() { return subject; } Still, I get the following error message: javax.servlet.ServletException: No getter method for property subject of bean mondayEvent The 'mondayEvent' is found correctly I guess but the subject getter can't be reached. Have anyone experienced the same problem?? Thankful for help!! /Linnéa Linnéa Ahlbeck - Software Engineer phone +46 40 664 29 70 fax +46 40 30 32 62 mobile +46 708 96 14 56 Appium AB - Adelgatan 5, SE-211 22 Malmö, Sweden www.appium.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: html:options /
Yes you can. for e.g. bean:define id=carriers name=CarrierForm property=carrierVector/ - Original Message - From: Roland Carlsson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 5:04 PM Subject: Re: html:options / Can't carriers be a collection that I can get from the ActionForm? Regards Roland Carlsson - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 1:11 PM Subject: Re: html:options / html:select property=carrier %-- The form's property to be populated --% html:options collection=carriers property=id labelProperty =name/ /html:select carriers is a list of Carrier objects in my Session Context Roland CarlssonTo: Struts Users Mailing List [EMAIL PROTECTED] roland.c@swetra cc: vel.se Subject: html:options / 24/10/2002 01:04 PM Please respond to Struts Users Mailing List Hello! I'm trying to use html:options/ but the only thing I get get into the list are Object.toString() values witch is not very useful for the user. What I like to do is the equal to option value=%= myObj.getId() %%= myObj.getName() %/option Can this be done? Thanks in advance Roland Carlsson -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
unsubscribe me
Deepak Konale -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Javascript and struts compatibility
Hi, Here is a problem I'm dealing with. In a JSP textfields are formed dynamically using struts. Struts will name these dynamically created textfields in the form of array as txtName[0], txtName[1] ... txtName[i] respectively. The names txtName[i] correspond to the respective getTxtName(i) in the Form.java file. Now txtName[i] is not a valid control name in javascript. So how do i use these control names in JavaScript. Is there any other way I can name (javascript compatible name) my contols while they are created. Thanks Deepak
html:link tag question
I would like to display href from my object. html:link href=??? bean:write name=myObject property=item/ /html:link MyObject has item and Link property and I would like to put Link value at ??? in above example. Deepak -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
( Design advice: workflow)
Hi all, We have got a problem with maintaining the state of the web requests . We would like to achive following functionality on the web requests . 1. Maintain user's clicks and requests along with the form variables so tha we can maintain a history of the session and disable the cache. 2. Maintain a wizard like workflow and handle users jumping in between in the wizard gracefully. Enforce the steps . 3. Handle events by means of a register/subscribe mechanism . Has anybody who has extensive experience with these things in MVC pattern. I tried to go through workflow proposal but it still seems incomplete to perform these things. Please advise regarding these requirements or a possible source of information . Deepak Konale Architect, PFPC Inc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help needed on Bean:struts tag!
Hello Everyone, I am facing a problem while using the bean:struts tag in jsp file. Please see the problem description below: In my JSP file i have used bean tag in the following way: bean:struts id=test formBean=VehicleForm/ I have used this id test in the following way: %String temp = test.getYear();% In my struts-config file i have the following form bean definition: form-bean name=VehicleForm type=com.temp.VehicleForm/ My Action mapping is as follows: action path=/searchvehicle type=com.temp.VehicleAction name=VehicleForm scope=request input=/search3.jsp forward name=result path=/search2.jsp / /action When i access the JSP file i am getting the following exception: Method getYear() not found in class org.apache.struts.action.ActionFormBean. String temp = test.getYear(); ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Unknown Source) I am using struts 1.0.2 in Apache Tomcat 4.0. Please help me to rectify this problem. Thanks and Regards, Deepak. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com -- To unsubscribe, e-mail: mailto:[EMAIL
newbie question: HTML Taglib
Hi, I'm getting error like in my logon.jsp file: Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'title', (JSP 1.1 spec, 5.4.1) probably occurred due to an error in /logon.jsp line 3: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Here is my logon.jsp file %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html locale=true head html:base/ /head body bgcolor=white html:errors/ p Test /body /html:html Deepak winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error in running struts example in weblogic 6.1
Hello, I'm getting following error while running struts example: /index.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'title', (JSP 1.1 spec, 5.4.1) probably occurred due to an error in /index.jsp line 3: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Deepak winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error in running struts example in weblogic 6.1
Hi KK, There is not html:form. tag. I'm trying to run struts example. I have added struts-example.war file and trying to access index.jsp file Deepak -Original Message- From: Khalid, Khusro [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:55 PM To: 'Struts Users Mailing List' Subject: RE: Error in running struts example in weblogic 6.1 Deepak, im thinking u probably have something like html:form ... title= the form tag doesnt support any title attribute... you may want to check out: http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#form -KK -Original Message- From: Parmar, Deepak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 3:44 PM To: struts-user Subject: Error in running struts example in weblogic 6.1 Hello, I'm getting following error while running struts example: /index.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'title', (JSP 1.1 spec, 5.4.1) probably occurred due to an error in /index.jsp line 3: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Deepak File: ATT31459.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error in running struts example in weblogic 6.1
Hi KK, I checked it out and ApplicationResources.properties is in correct place. To clarify this i added another jsp file: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % titlebean:message key=logon.title//title bean:message key=logon.title/ and this does display TITLE from resource file but if i just add taglib directive %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % it give me error. I may be missing here because i just started playing with struts. Thanks Deepak -Original Message- From: Khalid, Khusro [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 5:19 PM To: 'Struts Users Mailing List' Subject: RE: Error in running struts example in weblogic 6.1 Deepak... first of all u werent clear on what u were doing ... if ur just trying out that example, then i think u need to check out the web.xml and verify that the ApplicationResources.properties is in the correct place. Your action servlet cant find it and hence the error..due to = bean:message key=index.title/ (in index.jsp). -KK -Original Message- From: Parmar, Deepak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:18 PM To: Struts Users Mailing List Subject: RE: Error in running struts example in weblogic 6.1 Hi KK, There is not html:form. tag. I'm trying to run struts example. I have added struts-example.war file and trying to access index.jsp file Deepak -Original Message- From: Khalid, Khusro [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:55 PM To: 'Struts Users Mailing List' Subject: RE: Error in running struts example in weblogic 6.1 Deepak, im thinking u probably have something like html:form ... title= the form tag doesnt support any title attribute... you may want to check out: http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#form -KK -Original Message- From: Parmar, Deepak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 3:44 PM To: struts-user Subject: Error in running struts example in weblogic 6.1 Hello, I'm getting following error while running struts example: /index.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'title', (JSP 1.1 spec, 5.4.1) probably occurred due to an error in /index.jsp line 3: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Deepak File: ATT31459.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]