How to use struts for multiple records..
Hi All, I have a search page through which the user will enter the search criteria.I constructed an ActionForm to hold the search criteria.In the Action class, I populate the values of Action Form in a DTO object and pass it my business service class.Business service class calls the Data Access object which make a database query and gives me a result set containing multiple records and each record contains multiple attribute. Now, can anyone please suggest me on how to display these records in a simpler way using struts. Regards VasudevRao Gupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Databse configuration
Hi, can anyone throw some light on how can the database configuration be done using struts? How to use the connection obtained efficiently.. Regards VasudevRao Gupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Select
I have 20-25 combo-boxes in a single page.Each combo-box contains number of values and corresponding description. If I use a collection to populate all the options in all the combo-box,I have to define 20 javabeans and then keep them in scope. Is there any other easier way to do it using Struts Regards VasudevRao Gupta -Original Message- From: Tiago Henrique Costa Rodrigues Alves [mailto:[EMAIL PROTECTED] Sent: 08 December 2003 23:36 To: Struts Users Mailing List (E-mail) Subject: Struts User Roles Where can I find Struts Roles documentation? Tiago Henrique C. R. Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing data between two browser windows in struts
Hi All, We have a requirement where there will be a search results of a screen should be populated in a new browser window. But, both of them will be in the same session. I want to know if there is any support from struts for passing data from one browser window to another browser window. Regards VasudevRaoGupta -Original Message- From: Julia Weaver [mailto:[EMAIL PROTECTED] Sent: 09 December 2003 09:45 To: Struts Users Mailing List Subject: Re: how to Remove the cached JSP's? Martin, thank you very much for the informaion. I found one of errors about my menu is I have 2 menu.jsp in different directory. I still need work on other problems... --- Martin Gainty <[EMAIL PROTECTED]> wrote: > for caching properties on IBM http server: > http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/w as/040502.html > > Specifically look at httpd.conf in the IBM Http > Server: > AfpaEnable > AfpaCache on > AfpaLogFile "c:/Program Files/IBM HTTP > Server/logs/afpalog" V-ECLF > AfpaDynaCacheMax 10 > The above settings enable the Cache Accelerator and > limit the dynamic cache > size to 10 Meg. If you use these directive to > increase the cache size, do > not make the cache so large that all physical memory > is consumed. You can > determine how much memory is available, when all the > applications are > running, by using the Windows Task Manager. > > Assign no more than 50% of available physical memory > to the dynamic cache. > Specifying too large a cache not only decreases the > performance of other > applications, but also puts you at risk for > completely running out of > memory. > > The default configuration does not include the > AfpaDynaCacheMax directive > where the cache size is automatically calculated as > 1/8 of physical memory. > > > for configuraing cahcing thru WebSphere console try > and configure the > dynacache.xml > > http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/w as/0606001601.html > > usually there is a websphere admin that can help you > with this..be mindful > the greater anount of storage allocated the greater > the capacity that the > program will cache > > let me know.. > > Martin > > - Original Message - > From: "Julia Weaver" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > Sent: Monday, December 08, 2003 10:10 AM > Subject: Re: how to Remove the cached JSP's? > > > > Thanks. > > > > I did Stop Websphere, restart my computer, and > then > > Start Websphere again. But still not work. Maybe I > > should change something in configuration. Could > you > > please give me further instruction how to change > in > > configuration? or something wrong in the tile > > definition? > > > > > path="/basic/myLayout.jsp"> > >> /> > > > > > > > > > > > > > > > > > > > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > in that case you should Stop Websphere and then > > > Start Websphere > > > most appservers and webservers will load JSPs on > > > startup and will the > > > program will retain jsps after precompiling into > > > memory unless configured > > > NOT to do so.. > > > Bouncing the server ALWAYS works > > > -Martin > > > - Original Message - > > > From: "Julia Weaver" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" > > > <[EMAIL PROTECTED]> > > > Sent: Monday, December 08, 2003 9:53 AM > > > Subject: RE: how to Remove the cached JSP's? > > > > > > > > > > Thanks. > > > > I deleted java n class from 'WORK' directory, > but > > > > still keep getting same/similar error: > > > > in the manu.jsp, I changed app.menu.profile to > > > > app.menu.po, but still show the value of > > > > app.menu.profile. > > > > > > > > > > > > app.menu.po > > > > > > > > app.menu.po.browse > > > > PoBrowse.do > > > > > > > > > > > > > > > > In application.properties, I have following: > > > > app.menu.po=PO > > > > app.menu.po.browse=Po browse > > > > app.menu.profile=Profile > > > > app.menu.profile.mbs=Default Region > > > > > > > > I am using IBM WebSphere Studio Application > > > Developer. > > > > Please give me more help, thanks. > > > > > > > > > > > > > > > > --- "Agashivala, Vishal" > > > > <[EMAIL PROTECTED]> wrote: > > > > > Remove the .java and .class file for that > JSP > > > from > > > > > > > > > > > > > > > %Tomcat_home%\work\Standalone\localhost\%virtualdirectory% > > > > > Although path depends upon the version of > > > > > tomcat..you wont find exact path > > > > > as shown above but try to remove java n > class > > > from > > > > > 'WORK' directory under > > > > > your tomcat installation. > > > > > > > > > > Regards, > > > > > Vishal Agashivala > > > > > Atos Origin India > > > > > O: +91-22-5691 3870 > > > > > > > > > > > > > > > -Original Message- > > > > > From: shivanjali > [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, December 08, 2003 4:45 AM > > > > > To: 'Struts Users Mailing List' > > > > > Subject: RE: how to Remove the cach
Clearing all fields or resetting the form to original state
Is there any option in struts to reset the screen to the initial state on click of a button and also clearing all the fields on the screen on click of button? Regards vasudevRao Gupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Config files
Yes ..u can have multiple config files in your application for each module .. you need to define them in web.xml file where you give the initialization paramter for "config" of your action servlet seperated by comma. config /WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml Cheers gupta -Original Message- From: Tiago Henrique Costa Rodrigues Alves [mailto:[EMAIL PROTECTED] Sent: 09 December 2003 18:18 To: Struts Users Mailing List (E-mail) Subject: Multiple Config files Hi, I am working in a project with many developers, sometimes the developers need to change the struts-config.xml file at the same time (one developer needs to add a action-form and other developer needs to add a form-bean or even make some changes...) How can I add multiple config file support for struts?? OFF-TOPIC : Does anyone know a cvs mailing list ? Thanks, Tiago Henrique C. R. Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on form reset
Hi, I am new to struts.. I understand that the validate method of the Action form can be called based on the "validate" attribute in struts_config.xml. Similarly, for the reset method, can we configure in the xml file. Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on setting multiple values in Action form from client side
Hi , I have a screen with number of records and each record has an associated check-box. User clicks on single/multiple checkboxes to select the records and clicks on delete button(same as in Yahoo mail). I have an associated action form to this screen with one of the attributes of String[] array type.When the used clicks on delete button,I want to set all the record numbers in the action from attribute and submit the form. Can I do this in an easier way using struts when compared to a normal javascript? Regards VasudevRaogupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Check-boxes and formbeans
Hi All, I have many checkboxes with the same name in my html form. I use struts framework. When i submit the form, will i be able to access the checkboxes as an array in the form bean? Or should i have a seperate field for each checkbox in the formbean? Regards Vasudevrao gupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help needed in form beans
Hi All, I have a same form bean for 5 JSP's(JSP1,JSP2,JSP3,JSP4,JSP5) All the JSP's use the same form bean.I am keeping the form bean in the session scope. When ever I use JSP1, JSP3, I want to see the blank screen even if there are some values in the formbean. But, in other JSP's, I want to see the screen with prepopulated values. I tried using reset() for this and I have set all the values in formbean to null.But reset is getting called for all the action.I want reset to be called only for JSP1,JSP3. Please provide any direction on this Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validate method in action form
I have a single action form bean for multiple JSP pages. Validation of fields for JSP1 is different from validation of fields in JSP2. How should I write the validate() method in the form so that depending on the action, appropriate validation of fields is done. Regards Vasudevraogupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Examples of HTML-based user interfaces?
Can we enhance the script to transfer multiple values from one list box to other..(Currently it's a single value) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 December 2003 14:09 To: [EMAIL PROTECTED] Subject: AW: Examples of HTML-based user interfaces? Sorry. Forgot to attach file. Here we go again. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two "boxes" of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically "grow" a field, when the user types something in a text box and clicks a button, that item "moves up" and a new, blank field appears. I'm currently doing this with an "add" button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a "new line", it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF file in browser
Hi All, I am using Struts frame work for our application with Web sphere app server. We have a some PDF files on the app server .When the user clicks on a particular link on the JSP page, we have show a pdf file to the user in a new browser window. Can any one pls tell me the easier procedure to do this?? Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: any tool which can generate formbeans from jsp or html
HI, WSAD(Websphere studio development) has a facility to generate actionform beans from JSP Regards Vasudevraogupta -Original Message- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: 24 December 2003 18:40 To: Struts (E-mail) Subject: any tool which can generate formbeans from jsp or html hi, Is it possible to generate the formbeans from jsp or html. Is there any tool available ? Regds Ashwani This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Paging for table...
Hi, I have a requirement where in user executes a query and gets some x number of records. I have to show the user 1-y records per page and when user clicks "next" button, he should be be able to see next y number of records.(Similar to yahoo site ). Can any one pls tell me if struts frame work provides any inbuilt framework to do this kind of paging Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging for table...
.Can you please send across the sample code that you have developed??? -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: 03 January 2004 20:57 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Paging for table... I use displaytag, www.displaytag.org, for that. Regards, David -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 7:40 AM To: 'Struts Users Mailing List' Subject: Paging for table... Hi, I have a requirement where in user executes a query and gets some x number of records. I have to show the user 1-y records per page and when user clicks "next" button, he should be be able to see next y number of records.(Similar to yahoo site ). Can any one pls tell me if struts frame work provides any inbuilt framework to do this kind of paging Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception handling in struts
Hi All, Please give me some inputs on how to handle exceptions in struts. It would be easier for me understand with a sample code. Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Linking CSS
Dear All, I am usign WebSphere Application Development Studio for development of our application in struts. When I am linking .css files to a JSP using normal HTML tag, its not getting identified,..Do we need to use a different syntax for linking .css files for JSP in struts??? Eg: Regards vasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linking CSS
Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /theme/Master.css has not been defined Is the error which it displays -Original Message- From: Mike Deegan [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 10:31 To: Struts Users Mailing List Subject: Re: Linking CSS works for me ... what is the error you are getting? may require use of the tag ? - Original Message - From: "vasudevrao gupta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 9:48 PM Subject: Linking CSS > > > > Dear All, > > I am usign WebSphere Application Development Studio for development of > our application in struts. > When I am linking .css files to a JSP using normal HTML tag, its not > getting identified,..Do we need to use a different syntax for linking > .css files for JSP in struts??? > Eg: > type="text/css"> > Regards > vasudevRaoGupta > > > Confidentiality Notice > > The information contained in this electronic message and any attachments to this message are intended > for the exclusive use of the addressee(s) and may contain confidential or privileged information. If > you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately > and destroy all copies of this message and any attachments. > > - > 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] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Images as links in struts
Hi All, Can anyone help me about how to put images as links using struts tags??? Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Images as links in struts
This is how I have given...
RE: Images as links in struts
Now, below is the code which I am using... I have included set and get methods for property "custImage" in "enquiryFormBean"."custImage" is declared as a "String" type in the form bean. I get the below erro while executing the jsp: [14/01/04 22:07:30:484 GMT+05:30] 777a5f8a WebGroup E SRVE0026E: [Servlet Error]-[Object must be of type Map]: javax.servlet.jsp.JspException: Object must be of type Map at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:628) at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410) at org.apache.jsp._ADS_5F_ELS_5F_CreateEnquiry._jspService(_ADS_5F_ELS_5F_C reateEnquiry.java:796) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java :89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:344) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet .java:598) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:6 96) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe rvletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi fecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle Servlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif ecycleServlet.java:116) Please provide guidance Regards VasudevRaoGupta -Original Message- From: Hooper, Brian [mailto:[EMAIL PROTECTED] Sent: 14 January 2004 19:51 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Images as links in struts At first glance you've got some quote problems, and I think you want an img tag, not a input type=image tag. Try this: -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 9:15 AM To: 'Struts Users Mailing List' Subject: RE: Images as links in struts This is how I have given...
RE: WSAD 5 setup
Use tag in .css to locate the Web Group... Regards VasudevRaoGupta -Original Message- From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED] Sent: 16 January 2004 20:51 To: [EMAIL PROTECTED] Subject: WSAD 5 setup Hi All, I recently moved my application to WSAD 5 from WSAD 4.. The application runs fine on 4 but on 5 I get the following error. Virtual Host/WebGroup Not Found : The web group /styles/style.css has not been defined I doubt about the context root not setting properly. Is there any place where I can find exactly how to setup these on wsad 5.. > Warm Regards > Shreekanth > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Including one JSP in another
Hi All, I have jsp1 which contains the below code as the scriplet: ** <%! //Enquiry module images private static final String ENQUIRY_IMG_PATH=""; %> *** Jsp2 includes jsp1 using <[EMAIL PROTECTED] page="jsp1.jsp" %> But, when I try to access any of the constants of jsp1 from jsp2 in the below way, its not getting the value of the constant.. Can anyone help me in this regard..??? Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Including one JSP in another
Hi All, I have jsp1 which contains the below code as the scriplet: ** <%! //Enquiry module images private static final String ENQUIRY_IMG_PATH=""; %> *** Jsp2 includes jsp1 using <[EMAIL PROTECTED] page="jsp1.jsp" %> But, when I try to access any of the constants of jsp1 from jsp2 in the below way, its not getting the value of the constant.. Can anyone help me in this regard..??? Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Including one JSP in another
I tries that also..but, even then its not recognising the String -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 14:03 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Including one JSP in another try to using instead of <%@ include> Gary - Original Message - From: "vasudevrao gupta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 19, 2004 1:56 PM Subject: Including one JSP in another > > > > Hi All, > > I have jsp1 which contains the below code as the scriplet: > > ** > > <%! > //Enquiry module images > private static final String ENQUIRY_IMG_PATH=" src='/screens/enquiry/images'/>"; > > %> > > > *** > > Jsp2 includes jsp1 using > <[EMAIL PROTECTED] page="jsp1.jsp" %> > But, when I try to access any of the constants of jsp1 from jsp2 in the > below way, its not getting the value of the constant.. > /> > > Can anyone help me in this regard..??? > > Regards > VasudevRaoGupta > > > Confidentiality Notice > > The information contained in this electronic message and any attachments > to this message are intended > for the exclusive use of the addressee(s) and may contain confidential > or privileged information. If > you are not the intended recipient, please notify the sender at Wipro or > [EMAIL PROTECTED] immediately > and destroy all copies of this message and any attachments. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Confidentiality Notice > > The information contained in this electronic message and any attachments to this message are intended > for the exclusive use of the addressee(s) and may contain confidential or privileged information. If > you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately > and destroy all copies of this message and any attachments. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Including one JSP in another
That was a typo mistake..but in the actual program , I used "file" Regards VasudevRaoGupta -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 14:16 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Including one JSP in another Hey your syntax is inccorect try this /**1.jsp */ <%! //Enquiry module images private static final String ENQUIRY_IMG_PATH=""; %> /*###*/ /** 2.jsp */ <[EMAIL PROTECTED] file="1.jsp" %> But, when I try to access any of the constants of jsp1 from jsp2 in the below way, its not getting the value of the constant.. <%= ENQUIRY_IMG_PATH%> You should use <[EMAIL PROTECTED] file="something"% > instead of [EMAIL PROTECTED] page="soimethjing% The above code is working on my end Gary - Original Message - From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 19, 2004 2:03 PM Subject: Re: Including one JSP in another > try to using instead of <%@ include> > > > Gary > - Original Message - > From: "vasudevrao gupta" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Monday, January 19, 2004 1:56 PM > Subject: Including one JSP in another > > > > > > > > > > Hi All, > > > > I have jsp1 which contains the below code as the scriplet: > > > > ** > > > > <%! > > //Enquiry module images > > private static final String ENQUIRY_IMG_PATH=" > src='/screens/enquiry/images'/>"; > > > > %> > > > > > > *** > > > > Jsp2 includes jsp1 using > > <[EMAIL PROTECTED] page="jsp1.jsp" %> > > But, when I try to access any of the constants of jsp1 from jsp2 in the > > below way, its not getting the value of the constant.. > > > /> > > > > Can anyone help me in this regard..??? > > > > Regards > > VasudevRaoGupta > > > > > > Confidentiality Notice > > > > The information contained in this electronic message and any attachments > > to this message are intended > > for the exclusive use of the addressee(s) and may contain confidential > > or privileged information. If > > you are not the intended recipient, please notify the sender at Wipro or > > [EMAIL PROTECTED] immediately > > and destroy all copies of this message and any attachments. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > Confidentiality Notice > > > > The information contained in this electronic message and any attachments > to this message are intended > > for the exclusive use of the addressee(s) and may contain confidential or > privileged information. If > > you are not the intended recipient, please notify the sender at Wipro or > [EMAIL PROTECTED] immediately > > and destroy all copies of this message and any attachments. > > > > - > > 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] > Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with <%= ... %> inside struts tags
Hi All, I have the following code in my JSP file, and I am using the STRUTS framework. code: where showOtherExceptions is a javascript function I have already written. The problem is that this doesn't work as expected. The part that should be filled with "ELSEnquiryConstantsIF.EXCEPTION" stays as "ELSEnquiryConstantsIF.EXCEPTION" in the final HTML output.. When I view source on the outputted HTML page, the html:submit tag converts to the following: code: Please help Regards VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
RE: img tag with action as src
Hi, Try using -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Greg Blomquist Sent: 03 February 2004 23:44 To: [EMAIL PROTECTED] Subject: img tag with action as src I apologize in advance if this question has already been answered somewhere. Looks like basebeans is down so I can't search the struts-user archives. I'm trying to do the following: The only problem is that it doesn't like the relative path. I have to code the absolute path: http://localhost:/MyApp/some/dir/myAction.do";> Which is fine until I move to production. Is there a way to use a relative path when using an action for the src attribute of an image tag? Thanks! Btw, I'm running WSAD 5.1 and the error message I get when trying a relative path is: Virtual Host/WebGroup Not Found : The web group /secure/isa/performance/graph.do has not been defined - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple struts-config files
This is the answer to your third question: Yes, you can forward an action in one struts-config from within another struts-config... All the mapping(from all config file) will be in put in a single ActionMapping class at the start of the web server Regards VasudevRaoGupta -Original Message- From: koen boutsen [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 23:10 To: [EMAIL PROTECTED] Subject: multiple struts-config files Hi I've read some mails about multiple struts-config files, but still have some questions: -what's the advantage of using multiple struts-config files in one application ? Is it better for performance ? -how can I call a forward or action in my second struts-config from within a jsp ? -can I call a forward or action in one struts-config from within another struts-config ? Any help is very appreciated Koen Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default .asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4J configuration -- Regarding
Hi All, I am trying to configure Log4j to your application.I am trying to configure with Log4j1.2.8 using xml file. I am getting the below error: [2/23/04 20:34:12:719 IST] 105af116 SystemErr R log4j:ERROR Could not parse input source [EMAIL PROTECTED] [2/23/04 20:34:12:719 IST] 105af116 SystemErr R java.net.MalformedURLException: unknown protocol: dummy Please help me in gettign away with this. ThankYou VasudevRaoGupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Viewing .pdf files usign struts frames work..
Hi All, I am trying to view a pdf file using struts frame work.. I am able to view the file ,but it throws an illegalStateException as struts forward the request after I send the output stream. Below is the action mapping: below is the action class execute() method: try { MessageResources resource = this.getResources(request); String scannedFileFolder = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_LOCATN); System.out.println("scannedFileFolder>>"+scannedFileFolder); String scannedFileExtn = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_EXTN); System.out.println("scannedFileExtn>>"+scannedFileExtn); String scannedFileLocation = scannedFileFolder + request.getParameter("scannedFileReference") + scannedFileExtn; System.out.println("scannedFileLocation>>"+scannedFileLocation); String contentType = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_CONTENT); System.out.println("contentType>>"+contentType); response.setContentType(contentType); File pdfFile = new File(scannedFileLocation); response.setContentLength((int) pdfFile.length()); FileInputStream in = new FileInputStream(pdfFile); request.setAttribute("FILE",in); OutputStream out = response.getOutputStream(); byte[] buf = new byte[4096]; int count = 0; while ((count = in.read(buf)) >= 0) { out.write(buf, 0, count); } out.flush(); in.close(); out.close(); } catch (Exception e) { // Report the error using the appropriate name and ID. System.out.println("Exception found while viewing>>"+e); errors.add("name", new ActionError("id")); } return (mapping.findForward("SUCCESS")); } Please suggest me anyother alternative using the struts framework Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Viewing .pdf files usign struts frames work..
I tried that..It does not give an error but when I close the browser window in which the .pdf is displayed, it gives a microsoft error and closes all other browsers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 8:23 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Viewing .pdf files usign struts frames work.. return null from the action instead of returnign a forward. -Original Message- From: Vasudevrao Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 3:58 PM To: 'Struts Users Mailing List'; 'Satya Narayan Dash' Subject: Viewing .pdf files usign struts frames work.. Hi All, I am trying to view a pdf file using struts frame work.. I am able to view the file ,but it throws an illegalStateException as struts forward the request after I send the output stream. Below is the action mapping: below is the action class execute() method: try { MessageResources resource = this.getResources(request); String scannedFileFolder = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_LOCATN); System.out.println("scannedFileFolder>>"+scannedFileFolder); String scannedFileExtn = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_EXTN); System.out.println("scannedFileExtn>>"+scannedFileExtn); String scannedFileLocation = scannedFileFolder + request.getParameter("scannedFileReference") + scannedFileExtn; System.out.println("scannedFileLocation>>"+scannedFileLocation); String contentType = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_CONTENT); System.out.println("contentType>>"+contentType); response.setContentType(contentType); File pdfFile = new File(scannedFileLocation); response.setContentLength((int) pdfFile.length()); FileInputStream in = new FileInputStream(pdfFile); request.setAttribute("FILE",in); OutputStream out = response.getOutputStream(); byte[] buf = new byte[4096]; int count = 0; while ((count = in.read(buf)) >= 0) { out.write(buf, 0, count); } out.flush(); in.close(); out.close(); } catch (Exception e) { // Report the error using the appropriate name and ID. System.out.println("Exception found while viewing>>"+e); errors.add("name", new ActionError("id")); } return (mapping.findForward("SUCCESS")); } Please suggest me anyother alternative using the struts framework Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Viewing .pdf files usign struts frames work..
But, i am able to open .pdf documents from other web sites with out any problems... -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 8:32 PM To: Struts Users Mailing List Subject: RE: Viewing .pdf files usign struts frames work.. Well thats a browser/pdf plugin issue. Nothing to do with struts. -Original Message- From: Vasudevrao Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 March 2004 23:14 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Viewing .pdf files usign struts frames work.. I tried that..It does not give an error but when I close the browser window in which the .pdf is displayed, it gives a microsoft error and closes all other browsers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 8:23 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Viewing .pdf files usign struts frames work.. return null from the action instead of returnign a forward. -Original Message- From: Vasudevrao Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 3:58 PM To: 'Struts Users Mailing List'; 'Satya Narayan Dash' Subject: Viewing .pdf files usign struts frames work.. Hi All, I am trying to view a pdf file using struts frame work.. I am able to view the file ,but it throws an illegalStateException as struts forward the request after I send the output stream. Below is the action mapping: below is the action class execute() method: try { MessageResources resource = this.getResources(request); String scannedFileFolder = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_LOCATN); System.out.println("scannedFileFolder>>"+scannedFileFolder); String scannedFileExtn = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_EXTN); System.out.println("scannedFileExtn>>"+scannedFileExtn); String scannedFileLocation = scannedFileFolder + request.getParameter("scannedFileReference") + scannedFileExtn; System.out.println("scannedFileLocation>>"+scannedFileLocation); String contentType = (String) resource.getMessage(ELSEnquiryConstantsIF.SCANNED_FILE_CONTENT); System.out.println("contentType>>"+contentType); response.setContentType(contentType); File pdfFile = new File(scannedFileLocation); response.setContentLength((int) pdfFile.length()); FileInputStream in = new FileInputStream(pdfFile); request.setAttribute("FILE",in); OutputStream out = response.getOutputStream(); byte[] buf = new byte[4096]; int count = 0; while ((count = in.read(buf)) >= 0) { out.write(buf, 0, count); } out.flush(); in.close(); out.close(); } catch (Exception e) { // Report the error using the appropriate name and ID. System.out.println("Exception found while viewing>>"+e); errors.add("name", new ActionError("id")); } return (mapping.findForward("SUCCESS")); } Please suggest me anyother alternative using the struts framework Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: