Re: Including one JSP in another
Hey I have found the main cause. Actually when yopu are declaring the variable you are putting the value of tag right. When your 2.jsp file includes 1.jsp file it do use the value of variable which is coming as a html tag and it is not showing anyuthing. Try chaning the value of the cvarialble to something welse than that of html tag and it will show you the output. Hope this will help. Gary - Original Message - From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 19, 2004 2:16 PM 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=" src='/screens/enquiry/images'/>"; > > %> > > > /*###*/ > > /** 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] > > > > > - > 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: 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Re: Tomcat Shutdown Control
IS there any where through which I cna indicate my problem that service is going to be shutdown LIke you generally found the message before you shutdown the windows OS. AMan can you please put some light on using fault tolerance Load Balancer Regards Gary - Original Message - From: "Riaan Oberholzer" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 02, 2004 12:56 PM Subject: Re: Tomcat Shutdown Control > You cannot display a message, because there is no > service to handle the request > > > --- Gurpreet Dhanoa <[EMAIL PROTECTED]> > wrote: > > Hi Aman, > > > > Thanks for the quick answer. But it will get > > displayed when the Error 500 > > occurs and tomcat is running > > .What i exactly want is some message to the user > > that Tomcat is going to be > > shutdown. > > > > Thanks > > Gary > > > > - Original Message - > > From: "Amanpreet" <[EMAIL PROTECTED]> > > To: "'Struts Users Mailing List'" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, January 02, 2002 12:32 PM > > Subject: RE: Tomcat Shutdown Control > > > > > > > > > > Hi Gary > > > > > > Use the Web.xml file Exceptional Handling in > > tomcat with either > > > or > > > > > > > > > > > > 500 > > > > > /error-pages/servererror.jsp > > > > > > > > > Cheers > > > A > > > > > > -Original Message- > > > From: Gurpreet Dhanoa > > [mailto:[EMAIL PROTECTED] > > > Sent: Friday, January 02, 2004 12:27 PM > > > To: Struts Users Mailing List > > > Subject: Tomcat Shutdown Control > > > > > > Hi Guys, > > > > > > In my application I am generating left and right > > navigation pages of the > > > site dynamicaly. Now if my page is under the > > > processing . that means If tomcat is processing > > the page and i shutdown > > > the servcie of Tomcat then half of the page > > > display null coz full processing was not done. > > > > > > Now my concern is to control the Tomcat service.I > > want to display the > > > user friendly page whenever my Tomcat server > > > is going to be shutdown, > > > > > > > > > I expect to get some helps and sggestions. > > > Sincers Regards > > > Gary > > > > > > > > > > > > - > > > 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] > > > > > __ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > > - > 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: Tomcat Shutdown Control
Hi Aman, Thanks for the quick answer. But it will get displayed when the Error 500 occurs and tomcat is running .What i exactly want is some message to the user that Tomcat is going to be shutdown. Thanks Gary - Original Message - From: "Amanpreet" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, January 02, 2002 12:32 PM Subject: RE: Tomcat Shutdown Control > > Hi Gary > > Use the Web.xml file Exceptional Handling in tomcat with either > or > > > > 500 > /error-pages/servererror.jsp > > > Cheers > A > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Friday, January 02, 2004 12:27 PM > To: Struts Users Mailing List > Subject: Tomcat Shutdown Control > > Hi Guys, > > In my application I am generating left and right navigation pages of the > site dynamicaly. Now if my page is under the > processing . that means If tomcat is processing the page and i shutdown > the servcie of Tomcat then half of the page > display null coz full processing was not done. > > Now my concern is to control the Tomcat service.I want to display the > user friendly page whenever my Tomcat server > is going to be shutdown, > > > I expect to get some helps and sggestions. > Sincers Regards > Gary > > > - > 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]
Tomcat Shutdown Control
Hi Guys, In my application I am generating left and right navigation pages of the site dynamicaly. Now if my page is under the processing . that means If tomcat is processing the page and i shutdown the servcie of Tomcat then half of the page display null coz full processing was not done. Now my concern is to control the Tomcat service.I want to display the user friendly page whenever my Tomcat server is going to be shutdown, I expect to get some helps and sggestions. Sincers Regards Gary
Using JavaScript with Struts
HI All Can anybody help me out in guiding" How to use Java-Script in Struts" Regards Gary
Re: design question
hi Drik once the user have filled up the other 2 forms in the pop window u can make object of those two forms into your final action and can get the values like Form1 form=new Form1(); Form2 form2=new Form2(); from1.getUserAddress(); from1.getCity(); Hope this works Regards Gurpreet Dhanoa - Original Message - From: "dirk" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 2:54 PM Subject: design question I have 3 FormObjects. I have a newuser.jsp page containing the form userForm, in this form i put a javascript button with an onclick event, window.open with a popup (adresuser.jsp), with the form adresUserForm. Finally i have on the userForm another javascript button with a popup to specialinfo.jsp. This page contains the specialInfoForm. After closing these popups i want to have one action ( submitting the userForm ). How can i get the values from the 2 other formObjects ? Is there anybody that has a similar problem ... Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to put an object into the application scope from a plugin interface
Mehdi i am talking about the same interface which is working onto my end which versio you are using - Original Message - From: "EL AKARI Mehdi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 19, 2003 5:06 PM Subject: Re: How to put an object into the application scope from a plugin interface > Which interface are you talking about, i'am using > org.apache.struts.action.PlugIn > > isn't it the good one ? Actualy it is working for me ! > Mehdi > > > - Original Message - > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, December 19, 2003 11:10 AM > Subject: Re: How to put an object into the application scope from a plugin > interface > > > > hi THink you are slightly wrong > > > > > > syntax for init method is > > > > > > ublic void init(ActionServlet servlet, > > ApplicationConfig applicationConfig) throws > > javax.servlet.ServletException { > > } > > > > > > So you can access Application object and can set the attribute intop it > > > > > > Regards > > Gary > > - Original Message - > > From: "EL AKARI Mehdi" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, December 19, 2003 4:21 PM > > Subject: How to put an object into the application scope from a plugin > > interface > > > > > > Hi, > > I'm writing a struts plugin, and i need to put an object into the > > application scope. > > How can i do this. > > Note that the plugin interface contains the following methods: > > public void init(ActionServlet servlet, ModuleConfig config) throws > > javax.servlet.ServletException ; > > public void destroy() ; > > > > > > thanks > > Mehdi > > > > > > - > > 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]
Re: How to put an object into the application scope from a plugin interface
hi THink you are slightly wrong syntax for init method is ublic void init(ActionServlet servlet, ApplicationConfig applicationConfig) throws javax.servlet.ServletException { } So you can access Application object and can set the attribute intop it Regards Gary - Original Message - From: "EL AKARI Mehdi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 19, 2003 4:21 PM Subject: How to put an object into the application scope from a plugin interface Hi, I'm writing a struts plugin, and i need to put an object into the application scope. How can i do this. Note that the plugin interface contains the following methods: public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException ; public void destroy() ; thanks Mehdi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Check-boxes and formbeans
hi Just declare a property field with the datatype as array like String[] mycheckBox It will automatically populate all of the checkbox selected into the array property Regards Gary - Original Message - From: "vasudevrao gupta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 10:30 AM Subject: 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please Help With This Error Message
hi Caroline According to me this is perfectly fine. Please see there may be something worng in your JSP Regards Gary - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 17, 2003 12:11 PM Subject: Please Help With This Error Message > Please help me to figure out this error message that I > got in the browser: equal symbol expected. > > The error complains about this statement in my JSP: > scope="session" type="java.lang.String"/> > > and the above statement is intended to retrieve the > string "creator" from a session object. > > > > __ > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing. > http://photos.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session.invalidate() throws exception.
hi Antony Can you please briefly explaing the scope and the error Thanks Gary - Original Message - From: "Antony Paul" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 5:30 PM Subject: Re: session.invalidate() throws exception. > Then index.jsp is to be mapped to an action in web.xml. My situation is user > goes to another site then returns to home page of our application. > > rgds > Antony Paul. > - Original Message - > From: "Raman Garg" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, December 10, 2003 5:05 PM > Subject: Re: session.invalidate() throws exception. > > > > Hello Antony > > > > Here is a sample of code, hopes this solves your problem... > > > > public ActionForward execute(ActionMapping mapping, > > ActionForm form, > > HttpServletRequest request, > > HttpServletResponse response) throws > > Exception { > > > > // Extract attributes and/or parameters we will need > > Locale locale = getLocale(request); > > MessageResources messages = getResources(request); > > HttpSession session = request.getSession(); > > > > // Get already logged user info from session scope // We have > a > > Customer Bean in session > > Customer customer = (Customer)session.getAttribute(USER_KEY); > > > > // If customer has not logged in, return control to User Login > view > > with > > // that reason. > > if (customer == null) { > > return new ActionForward("/Login.do?reason=" + > > LOGIN_REASON_NOT_LOGGED_IN, true); > > } > > } > > > > > > -- Raman > > - Original Message - > > From: "Antony Paul" <[EMAIL PROTECTED]> > > To: "struts" <[EMAIL PROTECTED]> > > Sent: Wednesday, December 10, 2003 5:08 PM > > Subject: session.invalidate() throws exception. > > > > > > > Hi, > > > Calling session.invalidate() in index.jsp throws this exception > > > java.lang.IllegalStateException: getAttribute: Session already > invalidated > > > at > > > > > > org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav > > > a:954) > > > at > > > > > > org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi > > > onFacade.java:171) > > > at org.apache.struts.taglib.html.FormTag.renderToken(FormTag.java:641) > > > at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:513) > > > at org.apache.jsp.index_jsp._jspService(index_jsp.java:97) > > > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > > > > > > How to change this behavior. Better if possible to do some house keeping > > > before invalidating session like if a valid session and data is present > in > > > > > session then go to a certain page. > > > > > > rgds > > > Antony Paul. > > > > > > > > > > > > - > > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error message display in the case of redirect = true
HI Alok , here is the code for it Follwoing is the snapshot for the same. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes and/or parameters we will need // When "navigating" to this action, ActionForm is null, so // user's info is copied into the form and then saved in request scope if (form == null) { // Set a transactional control token to prevent double posting saveToken(request); } //IF this Action has been called of by Submit Form // Validate the transactional control token if (!isTokenValid(request))//This is an inbuild method of ACtion class to check the Token { request.setAttribute(DOUBLE_POST_ATTEMPT_KEY, "trapped"); return new ActionForward(mapping.getInput()); } HOpe this may help Cheers Gary - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 12:54 PM Subject: Re: Error message display in the case of redirect = true > > Hello Gurpreet, > Thanks for the input but can you please send me an example of how to do it. > > Alok Garg > Polaris Software Lab Ltd. > ( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > "Gurpreet Dhanoa" > <[EMAIL PROTECTED] To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > atainc.com> cc: (bcc: alok.garg/Polaris) > Subject: Re: Error message display in the case of redirect = true > 12/10/03 11:28 AM > Please respond to > "Struts Users > Mailing List" > > > > > > > hi ALok > > You can stop the resubmitting of form with the help of Tokens in struts > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, December 10, 2003 11:00 AM > Subject: RE: Error message display in the case of redirect = true > > > > > > > > You are right even I knew that it was the same problem. But then in that > > case if I make redirect = false and if the user refreshes the page then > the > > request is again submitted. > > So, can you throw some light on how to stop the user from re submitting > the > > same URL. > > > > Alok Garg > > Polaris Software Lab Ltd. > > ( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > > > > > "Navjot Singh" > > <[EMAIL PROTECTED] To: "Struts Users > Mailing List" <[EMAIL PROTECTED]> > > dia.net> cc: (bcc: > alok.garg/Polaris) > >Subject: RE: Error message > display in the case of redirect = true > > 12/09/03 06:02 > > PM > > Please respond > > to "Struts Users > > Mailing List" > > > > > > > > > > > > > > > not sure but the logic says that error messages are being stored in the > > REQUEST SCOPE and when you set redirect=true, naturally that's a new > > request > > so you won't get the errors set in earlier request. > > > > anybody else? > > > > >-Original Message- > > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > >Sent: Tuesday, December 09, 2003 5:53 PM > > >To: Struts Users Mailing List > > >Subject: Error message display in the case of redirect = true > > > > > > > > >Hello all, > > >I want to display the errors stack provided y Struts in the jsp page > using > > >the tag. I am able to display it but the moment I add the > > >redirect=true in the action mapping tag I am not able to see the error > > >messages. > > > > > >Please help with it. > > > > > >Alok Garg > > >Polaris Software Lab Ltd. > > >( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED
Re: PlugIn Scheduler
hi ALl It worked perfectly fine. Soon i will be posting the code for all of the buddies so that they can use it into there application. - Original Message - From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 11:24 AM Subject: PlugIn Scheduler hi I have created the following plug-in and using it into my application. The problem which I am facing is when I am running tomcat. The plug -in is not starting. The basic idea behind this plugin is to start a thread and peform some logic after some interval of time. ANy suggestions will be of great help. Following is the code for Plugin Class and the struts-config.xml PlugTest.java package efit; import java.io.PrintStream; import javax.servlet.ServletException; import org.apache.struts.action.ActionServlet; import org.apache.struts.action.PlugIn; import org.apache.struts.config.ApplicationConfig; public class PluginTest implements PlugIn, Runnable { public PluginTest() { t = null; } public void init(ActionServlet servlet, ApplicationConfig applicationConfig) throws ServletException { System.out.println("The Plugin is starting"); t = new Thread(this); t.start(); } public void destroy() { System.err.println("\u2212\u2212\u2212\u2212>The Plugin is stopping<\u2212\u2212\u2212\u2212"); } public void run() { do { System.out.println("Plugin is Running"); try { Thread.sleep(1000L); } catch(Exception t) { System.out.println("Exception in Thread" + t.getMessage()); } } while(true); } Thread t; } in the Struts-config.xml I m using the plugin usiong the following tag Thanks Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing Parameters from Action to JSP's
hi Sam IS your form associated with both of the Actions. - Original Message - From: "Samanth Athrey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 10:41 AM Subject: Passing Parameters from Action to JSP's > Hello All, > > I have a issue here. Any help would be of great help. > > I have an action class - Action_A which forwards the request to A.jsp. > A.jsp has 2 query parameters that are displayed correctly. The two > parameters are stored in hidden variables within the form tag. Now, when > this page is submitted, it calls Action_B which again forwards the > request back to A.jsp. But this time, the query parameters are lost! Is > there a way to send these two parameters from the Action class back to > JSP? Is it legal to do something like this? Or is there a better way to > achive this.? > > Regards > Sam > > > - > 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: Error message display in the case of redirect = true
hi ALok You can stop the resubmitting of form with the help of Tokens in struts - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 11:00 AM Subject: RE: Error message display in the case of redirect = true > > > You are right even I knew that it was the same problem. But then in that > case if I make redirect = false and if the user refreshes the page then the > request is again submitted. > So, can you throw some light on how to stop the user from re submitting the > same URL. > > Alok Garg > Polaris Software Lab Ltd. > ( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > "Navjot Singh" > <[EMAIL PROTECTED] To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > dia.net> cc: (bcc: alok.garg/Polaris) >Subject: RE: Error message display in the case of redirect = true > 12/09/03 06:02 > PM > Please respond > to "Struts Users > Mailing List" > > > > > > > not sure but the logic says that error messages are being stored in the > REQUEST SCOPE and when you set redirect=true, naturally that's a new > request > so you won't get the errors set in earlier request. > > anybody else? > > >-Original Message- > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, December 09, 2003 5:53 PM > >To: Struts Users Mailing List > >Subject: Error message display in the case of redirect = true > > > > > >Hello all, > >I want to display the errors stack provided y Struts in the jsp page using > >the tag. I am able to display it but the moment I add the > >redirect=true in the action mapping tag I am not able to see the error > >messages. > > > >Please help with it. > > > >Alok Garg > >Polaris Software Lab Ltd. > >( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > > > > > > - > 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]
PlugIn Scheduler
hi I have created the following plug-in and using it into my application. The problem which I am facing is when I am running tomcat. The plug -in is not starting. The basic idea behind this plugin is to start a thread and peform some logic after some interval of time. ANy suggestions will be of great help. Following is the code for Plugin Class and the struts-config.xml PlugTest.java package efit; import java.io.PrintStream; import javax.servlet.ServletException; import org.apache.struts.action.ActionServlet; import org.apache.struts.action.PlugIn; import org.apache.struts.config.ApplicationConfig; public class PluginTest implements PlugIn, Runnable { public PluginTest() { t = null; } public void init(ActionServlet servlet, ApplicationConfig applicationConfig) throws ServletException { System.out.println("The Plugin is starting"); t = new Thread(this); t.start(); } public void destroy() { System.err.println("\u2212\u2212\u2212\u2212>The Plugin is stopping<\u2212\u2212\u2212\u2212"); } public void run() { do { System.out.println("Plugin is Running"); try { Thread.sleep(1000L); } catch(Exception t) { System.out.println("Exception in Thread" + t.getMessage()); } } while(true); } Thread t; } in the Struts-config.xml I m using the plugin usiong the following tag Thanks Gary
Re: Have to re open browser each time
ohhh ANyway that is great,but Amjad i dont know the purpose behing this but what if someone has disabled the Cookies. How will you track it - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 7:58 PM Subject: RE: Have to re open browser each time > Thanks. But the problem has been solved. > > > And (as useual) there was a stupid reason for this. > ( simply the login action is associated with an actionForm in the struts > config at the session scope, given that we are not using actionForm for > this action) > > > thnx > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 5:21 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Have to re open browser each time > > Accoring to me nothing going wrong in this process.. > Amjad please give me few moments I want to test and run the same senario > out > here on my end and will get back to you ASAP > > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > Mailing > List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 7:30 PM > Subject: RE: Have to re open browser each time > > > > Ok , lets consider the following use senario: > > > > > > 1. user opens the system login screen ( JSP ). > > > > 2. user submits login pair to an authentication Action. ( struts). > > > > 3. the authentication action authenticate the user from the back end, > > and set a cookie that contains the login info that we need to share it > > with the ASP part. Then forward to the system main page ( ASP) > > > > 4. the main page (ASP) reads the cookie and get the needed information > > then destroy the cookie immediately. > > > > > > By now we have our user authenticaed on both ASP and JSP parts ( we > have > > two sessions) > > > > > > 5. if the session times out, or explicitly invalidated or even still > > alive [ not timed out] and the user tries to re login again ( starting > > again from step1) that exception is thrown. And the only work around > is > > to close the browser and start again. > > > > > > > > > > > > > > > > > > > > > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 4:44 PM > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > > Subject: Re: Have to re open browser each time > > > > i am not able to get the problem. > > Please explain me in breif when you are getting this type of error . > > Are you getting it when you are coming back from ASP to the Action > > > > Please exlapin it > > > > > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > > Mailing > > List'" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 7:07 PM > > Subject: RE: Have to re open browser each time > > > > > > > Who said that I am trying to access session variables? > > > > > > > > > Amjad Shahrour > > > Application Developer > > > Tel: +966.2.653.3334 ext 213 > > > [EMAIL PROTECTED] > > > www.labbaik.com > > > > > > > > > > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, December 09, 2003 4:28 PM > > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > > Subject: Re: Have to re open browser each time > > > > > > > > > Got it. > > > > > > > > > This may be the reason. AS ypur actions are running on Tomcat Server > > and > > > when you declare the session variable it will be declared inthe > memory > > > of > > > Tomcat . When you forward the request to ASP (IIS server) there you > > &
Re: Have to re open browser each time
Accoring to me nothing going wrong in this process.. Amjad please give me few moments I want to test and run the same senario out here on my end and will get back to you ASAP - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 7:30 PM Subject: RE: Have to re open browser each time > Ok , lets consider the following use senario: > > > 1. user opens the system login screen ( JSP ). > > 2. user submits login pair to an authentication Action. ( struts). > > 3. the authentication action authenticate the user from the back end, > and set a cookie that contains the login info that we need to share it > with the ASP part. Then forward to the system main page ( ASP) > > 4. the main page (ASP) reads the cookie and get the needed information > then destroy the cookie immediately. > > > By now we have our user authenticaed on both ASP and JSP parts ( we have > two sessions) > > > 5. if the session times out, or explicitly invalidated or even still > alive [ not timed out] and the user tries to re login again ( starting > again from step1) that exception is thrown. And the only work around is > to close the browser and start again. > > > > > > > > > > > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 4:44 PM > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > Subject: Re: Have to re open browser each time > > i am not able to get the problem. > Please explain me in breif when you are getting this type of error . > Are you getting it when you are coming back from ASP to the Action > > Please exlapin it > > > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > Mailing > List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 7:07 PM > Subject: RE: Have to re open browser each time > > > > Who said that I am trying to access session variables? > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 4:28 PM > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > Subject: Re: Have to re open browser each time > > > > > > Got it. > > > > > > This may be the reason. AS ypur actions are running on Tomcat Server > and > > when you declare the session variable it will be declared inthe memory > > of > > Tomcat . When you forward the request to ASP (IIS server) there you > > cannot > > access the server variables of TOmcat. This is due to the Security of > > Web > > servers. > > > > > > > > > > > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 6:56 PM > > Subject: RE: Have to re open browser each time > > > > > > > Both are using the SAME IIS server. ( ofcource jsp requests will be > > > forwarded to be handled by tomcat) > > > > > > > > > > > > Amjad Shahrour > > > Application Developer > > > Tel: +966.2.653.3334 ext 213 > > > [EMAIL PROTECTED] > > > www.labbaik.com > > > > > > > > > > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, December 09, 2003 4:12 PM > > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > > > Subject: Re: Have to re open browser each time > > > > > > hmm > > > AMjad are the JSp and ASP part of the same application or they are > > using > > > different we servers > > > > > > - Original Message - > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > > >
Re: Have to re open browser each time
i am not able to get the problem. Please explain me in breif when you are getting this type of error . Are you getting it when you are coming back from ASP to the Action Please exlapin it - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 7:07 PM Subject: RE: Have to re open browser each time > Who said that I am trying to access session variables? > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 4:28 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Have to re open browser each time > > > Got it. > > > This may be the reason. AS ypur actions are running on Tomcat Server and > when you declare the session variable it will be declared inthe memory > of > Tomcat . When you forward the request to ASP (IIS server) there you > cannot > access the server variables of TOmcat. This is due to the Security of > Web > servers. > > > > > > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 6:56 PM > Subject: RE: Have to re open browser each time > > > > Both are using the SAME IIS server. ( ofcource jsp requests will be > > forwarded to be handled by tomcat) > > > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 4:12 PM > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > > Subject: Re: Have to re open browser each time > > > > hmm > > AMjad are the JSp and ASP part of the same application or they are > using > > different we servers > > > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > > Mailing > > List'" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 6:42 PM > > Subject: RE: Have to re open browser each time > > > > > > > I see. > > > > > > I want to add one more thing, > > > After executing the login action, if the user is authenticated the > > user > > > is forwarded to an ASP page ( the main page is written uding ASP). > > > > > > Could this be the reason??? If yes, why is this happening? > > > > > > > > > > > > ( we have done integration between ASP and jsp coz we have modules > > > written in asp.) > > > > > > > > > anyhow, the application works greate with full functionality with no > > > problems except this one. > > > > > > > > > > > > Thank you very much for your presouce time. > > > > > > Regards, > > > > > > > > > Amjad Shahrour > > > Application Developer > > > Tel: +966.2.653.3334 ext 213 > > > [EMAIL PROTECTED] > > > www.labbaik.com > > > > > > > > > > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, December 09, 2003 4:02 PM > > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > > Subject: Re: Have to re open browser each time > > > > > > Amjad > > > > > > I have not faced such a problem as even we are handling the sessions > > in > > > the > > > same way as you are. > > > Which version of Tomcat you are using. Try to use it with 4.12 > > > This may also be the reason > > > - Original Message - > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 09, 2003 6:04 PM > > > Subject: RE: Have to re open browser each time > > > > > > > > > > Sessions are handled from Actions. > > > > > > > > Amjad Sh
Re: Have to re open browser each time
Got it. This may be the reason. AS ypur actions are running on Tomcat Server and when you declare the session variable it will be declared inthe memory of Tomcat . When you forward the request to ASP (IIS server) there you cannot access the server variables of TOmcat. This is due to the Security of Web servers. - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 6:56 PM Subject: RE: Have to re open browser each time > Both are using the SAME IIS server. ( ofcource jsp requests will be > forwarded to be handled by tomcat) > > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 4:12 PM > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > Subject: Re: Have to re open browser each time > > hmm > AMjad are the JSp and ASP part of the same application or they are using > different we servers > > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > Mailing > List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 6:42 PM > Subject: RE: Have to re open browser each time > > > > I see. > > > > I want to add one more thing, > > After executing the login action, if the user is authenticated the > user > > is forwarded to an ASP page ( the main page is written uding ASP). > > > > Could this be the reason??? If yes, why is this happening? > > > > > > > > ( we have done integration between ASP and jsp coz we have modules > > written in asp.) > > > > > > anyhow, the application works greate with full functionality with no > > problems except this one. > > > > > > > > Thank you very much for your presouce time. > > > > Regards, > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 4:02 PM > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > Subject: Re: Have to re open browser each time > > > > Amjad > > > > I have not faced such a problem as even we are handling the sessions > in > > the > > same way as you are. > > Which version of Tomcat you are using. Try to use it with 4.12 > > This may also be the reason > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 6:04 PM > > Subject: RE: Have to re open browser each time > > > > > > > Sessions are handled from Actions. > > > > > > Amjad Shahrour > > > Application Developer > > > Tel: +966.2.653.3334 ext 213 > > > [EMAIL PROTECTED] > > > www.labbaik.com > > > > > > > > > > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, December 09, 2003 3:26 PM > > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > > > Subject: Re: Have to re open browser each time > > > > > > Are you handling the sessions from Actions or from Views > > > - Original Message - > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > > > Mailing > > > List'" <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 09, 2003 5:33 PM > > > Subject: RE: Have to re open browser each time > > > > > > > > > > I have tried and put " struts-legacy.jar" at WEB-INF\lib\ > > > > Also I have thrown a copy of it in many other places wher tomcat > can > > > see > > > > it. > > > > > > > > But the problem still exist. > > > > > > > > > > > > Amjad Shahrour > > > > Application Developer > > > > Tel: +966.2.653.3334 ext 213 > > > > [EMAIL
Re: Refresh -submit relation
SUre In struts we have concept of savetokens() SaveToken is a method which you have to set to false/ture before the form get loaded and get submitted Follwoing is the snapshot for the same. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Extract attributes and/or parameters we will need // When "navigating" to this action, ActionForm is null, so // user's info is copied into the form and then saved in request scope if (form == null) { // Set a transactional control token to prevent double posting saveToken(request); } //IF this Action has been called of by Submit Form // Validate the transactional control token if (!isTokenValid(request))//This is an inbuild method of ACtion class to check the Token { request.setAttribute(DOUBLE_POST_ATTEMPT_KEY, "trapped"); return new ActionForward(mapping.getInput()); } HOpe this may help Cheers Gary - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 6:42 PM Subject: RE: Refresh -submit relation > Could you please provide some more details about this? > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 5:54 PM > To: Struts Users Mailing List > Subject: Re: Refresh -submit relation > > > Hi > > You need to use the concept of saveTokens Which prevent yoyr form from > getting submitted twice > > Cheers > gary > > - Original Message - > From: "Viral_Thakkar" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 5:17 PM > Subject: Refresh -submit relation > > > > I have a page for upload functionality which uploads the files to a > > folder. > > > > Here I am referring the struts example for uploading of files and I am > > inserting the record in table at the same time. > > > > This upload is working fine but problem is when I refresh the browser > > page, the page is getting submitted again. Due to this duplicate > records > > are inserted in the database. > > > > Is there any way, to stop the page to submit on refresh? > > > > > > > > > > > > - > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Have to re open browser each time
hmm AMjad are the JSp and ASP part of the same application or they are using different we servers - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 6:42 PM Subject: RE: Have to re open browser each time > I see. > > I want to add one more thing, > After executing the login action, if the user is authenticated the user > is forwarded to an ASP page ( the main page is written uding ASP). > > Could this be the reason??? If yes, why is this happening? > > > > ( we have done integration between ASP and jsp coz we have modules > written in asp.) > > > anyhow, the application works greate with full functionality with no > problems except this one. > > > > Thank you very much for your presouce time. > > Regards, > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 4:02 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Have to re open browser each time > > Amjad > > I have not faced such a problem as even we are handling the sessions in > the > same way as you are. > Which version of Tomcat you are using. Try to use it with 4.12 > This may also be the reason > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 6:04 PM > Subject: RE: Have to re open browser each time > > > > Sessions are handled from Actions. > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 3:26 PM > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > > Subject: Re: Have to re open browser each time > > > > Are you handling the sessions from Actions or from Views > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > > Mailing > > List'" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 5:33 PM > > Subject: RE: Have to re open browser each time > > > > > > > I have tried and put " struts-legacy.jar" at WEB-INF\lib\ > > > Also I have thrown a copy of it in many other places wher tomcat can > > see > > > it. > > > > > > But the problem still exist. > > > > > > > > > Amjad Shahrour > > > Application Developer > > > Tel: +966.2.653.3334 ext 213 > > > [EMAIL PROTECTED] > > > www.labbaik.com > > > > > > > > > > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, December 09, 2003 2:36 PM > > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > > Subject: Re: Have to re open browser each time > > > > > > You need to put struts-legacy.jar in the lib of tomcat > > > > > > Try with it > > > - Original Message - > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 09, 2003 4:34 PM > > > Subject: Have to re open browser each time > > > > > > > > > > I am facing this problem that I couldn't figure out the cause. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > We have an web based application (built using struts 1.0). > > > > > > > > > > > > > > > > After login to the application for the first time, if you relogin > > > again > > > > OR the session times out and you try to re login again > > > > > > > > > > > > > > > > I have the following exception thrown to the client: > > > > > > > > > >
Re: Have to re open browser each time
Amjad I have not faced such a problem as even we are handling the sessions in the same way as you are. Which version of Tomcat you are using. Try to use it with 4.12 This may also be the reason - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 6:04 PM Subject: RE: Have to re open browser each time > Sessions are handled from Actions. > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 3:26 PM > To: [EMAIL PROTECTED]; 'Struts Users Mailing List' > Subject: Re: Have to re open browser each time > > Are you handling the sessions from Actions or from Views > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users > Mailing > List'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 5:33 PM > Subject: RE: Have to re open browser each time > > > > I have tried and put " struts-legacy.jar" at WEB-INF\lib\ > > Also I have thrown a copy of it in many other places wher tomcat can > see > > it. > > > > But the problem still exist. > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -Original Message- > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 09, 2003 2:36 PM > > To: Struts Users Mailing List; [EMAIL PROTECTED] > > Subject: Re: Have to re open browser each time > > > > You need to put struts-legacy.jar in the lib of tomcat > > > > Try with it > > - Original Message - > > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 4:34 PM > > Subject: Have to re open browser each time > > > > > > > I am facing this problem that I couldn't figure out the cause. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > We have an web based application (built using struts 1.0). > > > > > > > > > > > > After login to the application for the first time, if you relogin > > again > > > OR the session times out and you try to re login again > > > > > > > > > > > > I have the following exception thrown to the client: > > > > > > > > > > > > > > > > > > > > > > > > java.lang.ClassCastException > > > > > > at > > > > > > org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.j > > > > > > ava:1674) > > > > > > at > > > > > > > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) > > > > > > at > > > > > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) > > > > > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > > > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > > > > > tionFilterChain.java:247) > > > > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > > > > > erChain.java:193) > > > > > > at > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > > > > > e.java:260) > > > > > > at > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > > > > > nvokeNext(StandardPipeline.java:643) > > > > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > > > > > 80) > > > > > > at > > > > > > > org.apache.catalina.core.Containe
Re: Have to re open browser each time
Are you handling the sessions from Actions or from Views - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 5:33 PM Subject: RE: Have to re open browser each time > I have tried and put " struts-legacy.jar" at WEB-INF\lib\ > Also I have thrown a copy of it in many other places wher tomcat can see > it. > > But the problem still exist. > > > Amjad Shahrour > Application Developer > Tel: +966.2.653.3334 ext 213 > [EMAIL PROTECTED] > www.labbaik.com > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 2:36 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Have to re open browser each time > > You need to put struts-legacy.jar in the lib of tomcat > > Try with it > - Original Message - > From: "Amjad Shahrour" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 4:34 PM > Subject: Have to re open browser each time > > > > I am facing this problem that I couldn't figure out the cause. > > > > > > > > > > > > > > > > > > > > > > > > We have an web based application (built using struts 1.0). > > > > > > > > After login to the application for the first time, if you relogin > again > > OR the session times out and you try to re login again > > > > > > > > I have the following exception thrown to the client: > > > > > > > > > > > > > > > > java.lang.ClassCastException > > > > at > > > org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.j > > > > ava:1674) > > > > at > > > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) > > > > at > > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > > > tionFilterChain.java:247) > > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > > > erChain.java:193) > > > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > > > e.java:260) > > > > at > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > > > nvokeNext(StandardPipeline.java:643) > > > > at > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > > > 80) > > > > at > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > > > > e.java:191) > > > > at > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > > > nvokeNext(StandardPipeline.java:643) > > > > at > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > > > 80) > > > > at > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > at > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 > > > > 5) > > > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > > > :180) > > > > at > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > > > nvokeNext(StandardPipeline.java:643) > > > > at > > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa > > > > lve.java:170) > > > > at > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > > > nvokeNext(StandardPipeline.java:641) > > > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > &
Re: Refresh -submit relation
Hi You need to use the concept of saveTokens Which prevent yoyr form from getting submitted twice Cheers gary - Original Message - From: "Viral_Thakkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 5:17 PM Subject: Refresh -submit relation > I have a page for upload functionality which uploads the files to a > folder. > > Here I am referring the struts example for uploading of files and I am > inserting the record in table at the same time. > > This upload is working fine but problem is when I refresh the browser > page, the page is getting submitted again. Due to this duplicate records > are inserted in the database. > > Is there any way, to stop the page to submit on refresh? > > > > > > - > 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: Error message!
hi It seems your tld file for HTML is not right. Try to open the tld file and check it - Original Message - From: "Zakaria khabot" <[EMAIL PROTECTED]> To: "struts-user-help" <[EMAIL PROTECTED]>; "struts-user" <[EMAIL PROTECTED]> Sent: Sunday, December 08, 2002 9:24 PM Subject: Error message! Hi, I received this error message and don't understand the soiurce of error : javax.servlet.jsp.JspException: No getter method for property action of bean org.apache.struts.taglib.html.BEAN java.lang.Object org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext, java.lang.String, java.lang.String, java.lang.String) RequestUtils.java:968 int org.apache.struts.taglib.html.BaseFieldTag.doStartTag() BaseFieldTag.java:176 int org.apache.struts.taglib.html.HiddenTag.doStartTag() HiddenTag.java:123 void _detail._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) [/detail.jsp] detail.jsp:29 My detail.jsp file is the following : <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="/WEB-INF/app.tld"prefix="app" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Consultation et modification des données. Les données sur le DVD. function go(action) { document.forms["myform"].action.value=action; } : : : :    Thanks. Zakaria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Have to re open browser each time
You need to put struts-legacy.jar in the lib of tomcat Try with it - Original Message - From: "Amjad Shahrour" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 4:34 PM Subject: Have to re open browser each time > I am facing this problem that I couldn't figure out the cause. > > > > > > > > > > > > We have an web based application (built using struts 1.0). > > > > After login to the application for the first time, if you relogin again > OR the session times out and you try to re login again > > > > I have the following exception thrown to the client: > > > > > > > > java.lang.ClassCastException > > at > org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.j > > ava:1674) > > at > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) > > at > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:247) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:193) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > e.java:260) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:643) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > 80) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > > e.java:191) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:643) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > 80) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 > > 5) > > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > :180) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:643) > > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa > > lve.java:170) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:641) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > > :172) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:641) > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509 > > ) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:641) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > 80) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > > java:174) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i > > nvokeNext(StandardPipeline.java:643) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 > > 80) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) > > at > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) > > at > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) > > at > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) > > at > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > 590) > > at > > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) > > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > > .java:530) > > at java.lang.Thread.run(Thread.java:536) > > > > > > > > > > > > > > > > So the user is forced to close and re open the browser inorder to login > again to the system successfully. > > > > > > > > Any ideas?? > > > > > > Amjad Shahrour > > Application Developer > > Tel: +966.2.653.3334 ext 213 > > [EMAIL PROTECTED] > > www.labbaik.com > > > > > > > > > > -
Re: session taglib
hi Try String username=(String)session.getAttribute("username"); You have explicitly cast it into String as it is Serialized. Regards Gary - Original Message - From: "John Ferguson Smart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 7:13 PM Subject: Re: session taglib > Try something like > String username = session.getAttribute("username"); > or > String username = request.getSession(à .getAttribute("username"); > > > struts wrote: > > >In the Jsp i have: > > > > > > > >witch prints the username. Now i want something like: > > > ><% > > > >String username= ; > > > >%> > > > >but that doesn't work. How can i assign the session variable to the String username ? > > > >Thanks ! > > > > > > > > > > > > > > -- > John Ferguson Smart, PhD > Directeur de Projet > Département informatique Communicante > AACOM > email : [EMAIL PROTECTED] > > - > AACOM - L'Informatique communicante > 120 rue du Marin Blanc - Z.I. des Paluds > 13685 Aubagne Cedex > tel : 04.42.72.65.69 - fax : 04.42.72.65.68 > Web : http://www.aacom.fr > - > > > > - > 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: iterate over one collection two times in a jsp
hi Ralf I am facing the same trouble. If u come to know the answer Please let me know as well Thanks in Advance Gary - Original Message - From: "Ralf Rapude" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 4:49 PM Subject: iterate over one collection two times in a jsp > Hi, > with a logic:iterate tag I run over a Collection: > > > > ...output > > > > It works well but if I try to iterate over the same collection after > changing the id (but still in the same jsp): > > > > ... output > > > > I got this Exception -> Cannot create iterator for this collection > > It works if I put my collection under a different name in the > session-scope, but in my Opinion there must be a more proper way to > handle the problem. > > Thanks a lot > Ralf > > > > > - > 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: Database with struts
hi You have to Configure DataSource and then u can get the refernce of the same it in the ACtion and can use it Regards gary - Original Message - From: "Divya B Sridhar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 04, 2003 7:03 PM Subject: Database with struts > Hi all, > I am trying to do a database connectivity using struts. > Actually, the database resides on another machine and I have tomcat > running on my local machine. > The other machine is a linux box(a linux machine) which has the database > installed(PostgreSQL). > So, apart from the tags to be specified in the > struts-config.xml file, the Action class containing the Connection and > the queries, what other configuration is required. Any ideas on this?(I > mean to ask the other steps required in order that a simple sample > database example with struts works - drivers etc. Any input is welcome) > Thanks in advance, > > Regards, > Divya. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:link
USe - Original Message - From: "Zakaria khabot" <[EMAIL PROTECTED]> To: "struts-user" <[EMAIL PROTECTED]> Sent: Wednesday, December 04, 2002 5:00 PM Subject: html:link Hi, In a JSP file a have done But I received the error : action is not a property of org.apache.struts.taglib.html.LinkTag What can I do (I am usinf Jdevelopper 9i) Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing SessionId at every request
Hi Andrew You are right . I can implement SSL but there must be a solution for this trouble right Thanks Gary - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 3:14 PM Subject: RE: Changing SessionId at every request > ahhh... ok I think I see what you mean > > So by 'hand rolled' sessionId what you mean is some kind of token that must > be submitted with each request to verify that it came from the real client? > (Rather like the token mechanism used to detect double submissions) > > If he is after real security though, I would think using SSL might be a > safer option - though the performance is lower. > > > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 3 December 2003 17:33 > To: Struts Users Mailing List > Subject: Re: Changing SessionId at every request > > > I assume that Gurpreet wants to do it for security reasons and it's not > a bad idea. It certainly means that nobody would be able to share a > session, and so therefor a session-hijack would become obviously > immediately. > > I think expiring the session is overkill - I would just leave the > session as it is and use the filter to check and change my own > hand-rolled session id. > > Adam > > On 12/03/2003 08:20 AM Navjot Singh wrote: > > don't know why do you wish to do so? > > but it an be done. Write a filter. pass every request thru that. > > > > 1. Fetch the session, expire it. Server will assign new. > > 2. Fetch the session, don't expire the session, just append a timestamp to > > it. set a cookie and use that to maintain session. > > > > HTH > > navjot singh > > > > > >>-Original Message- > >>From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, December 03, 2003 11:44 AM > >>To: Struts Users Mailing List > >>Subject: Changing SessionId at every request > >> > >> > >>HI, > >> > >>IS it possible to change the Session Id generated by the Web > >>Server at every request for the same client. I wil make it much > >>more clear. > >> > >>Say i have a Servlet running on Tomcat. what i want is when ever > >>any User lets assume USER A ask for a request i want to change the > >>sessionId server variable which has been gerenrated by the Web > >>Server to uniquely identify the client. > >> > >>Purpose behind doing this is to make every request safe. > >> > >> > >>Any suggections will be higly appreciated. > >> > >> > >>Thanks in Advance > >>Gary > >> > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > struts 1.1 + tomcat 5.0.14 + java 1.4.2 > Linux 2.4.20 RH9 > > - > 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]
Re: Changing SessionId at every request
hi Adam You are on the right track in understanding my concern. Anyway i have madeit possible. But now there is a small new issue. it is I want to access the sessionId of another Web Server into some other web server. I meant say i have a domain A on Server A, I want to access the sessionId of Domain A onto the Domain B on Server B. I think this is a very strange question but i have been asked the same. ANy help of you guys Thanks Gary - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 3:03 PM Subject: Re: Changing SessionId at every request > I assume that Gurpreet wants to do it for security reasons and it's not > a bad idea. It certainly means that nobody would be able to share a > session, and so therefor a session-hijack would become obviously > immediately. > > I think expiring the session is overkill - I would just leave the > session as it is and use the filter to check and change my own > hand-rolled session id. > > Adam > > On 12/03/2003 08:20 AM Navjot Singh wrote: > > don't know why do you wish to do so? > > but it an be done. Write a filter. pass every request thru that. > > > > 1. Fetch the session, expire it. Server will assign new. > > 2. Fetch the session, don't expire the session, just append a timestamp to > > it. set a cookie and use that to maintain session. > > > > HTH > > navjot singh > > > > > >>-Original Message- > >>From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, December 03, 2003 11:44 AM > >>To: Struts Users Mailing List > >>Subject: Changing SessionId at every request > >> > >> > >>HI, > >> > >>IS it possible to change the Session Id generated by the Web > >>Server at every request for the same client. I wil make it much > >>more clear. > >> > >>Say i have a Servlet running on Tomcat. what i want is when ever > >>any User lets assume USER A ask for a request i want to change the > >>sessionId server variable which has been gerenrated by the Web > >>Server to uniquely identify the client. > >> > >>Purpose behind doing this is to make every request safe. > >> > >> > >>Any suggections will be higly appreciated. > >> > >> > >>Thanks in Advance > >>Gary > >> > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > struts 1.1 + tomcat 5.0.14 + java 1.4.2 > Linux 2.4.20 RH9 > > - > 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: MySQL Driver List
Hey I accesed the page the page is coming up but when u try to download the installer for windows it taked to FtP address andhangs on Can u look into it. Thanks Gary - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 3:05 PM Subject: Re: MySQL Driver List > It's working fine ... > check back in a while, maybe your internet access is acting up at the > moment. > > Gurpreet Dhanoa wrote: > > >this URl is not working > > > >Please advise > > > >Thanks > >Gary > >- Original Message - > >From: "Christian Burger" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Sent: Wednesday, December 03, 2003 2:00 PM > >Subject: RE: MySQL Driver List > > > > > >Use this for Java!! Not the ODBC! > > > >http://www.mysql.com/downloads/api-jdbc-stable.html > > > > > > > >_ > >Please be advised that the information contained herein is confidential and > >intended only for use by the individual stated above. If you are not the > >named recipient, you are hereby notified that any disclosure, distribution, > >dissemination, or copying is prohibited. If this information has been > >directed to you in error, please contact the sender immediately at the > >telephone number listed above. > > > > > > > >- > >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]
Re: MySQL Driver List
ok Thanks Gary - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 3:05 PM Subject: Re: MySQL Driver List > It's working fine ... > check back in a while, maybe your internet access is acting up at the > moment. > > Gurpreet Dhanoa wrote: > > >this URl is not working > > > >Please advise > > > >Thanks > >Gary > >- Original Message - > >From: "Christian Burger" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Sent: Wednesday, December 03, 2003 2:00 PM > >Subject: RE: MySQL Driver List > > > > > >Use this for Java!! Not the ODBC! > > > >http://www.mysql.com/downloads/api-jdbc-stable.html > > > > > > > >_ > >Please be advised that the information contained herein is confidential and > >intended only for use by the individual stated above. If you are not the > >named recipient, you are hereby notified that any disclosure, distribution, > >dissemination, or copying is prohibited. If this information has been > >directed to you in error, please contact the sender immediately at the > >telephone number listed above. > > > > > > > >- > >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]
Re: MySQL Driver List
this URl is not working Please advise Thanks Gary - Original Message - From: "Christian Burger" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 2:00 PM Subject: RE: MySQL Driver List Use this for Java!! Not the ODBC! http://www.mysql.com/downloads/api-jdbc-stable.html _ Please be advised that the information contained herein is confidential and intended only for use by the individual stated above. If you are not the named recipient, you are hereby notified that any disclosure, distribution, dissemination, or copying is prohibited. If this information has been directed to you in error, please contact the sender immediately at the telephone number listed above. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL Driver List
Thanks alot - Original Message - From: "Christian Burger" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 2:00 PM Subject: RE: MySQL Driver List Use this for Java!! Not the ODBC! http://www.mysql.com/downloads/api-jdbc-stable.html _ Please be advised that the information contained herein is confidential and intended only for use by the individual stated above. If you are not the named recipient, you are hereby notified that any disclosure, distribution, dissemination, or copying is prohibited. If this information has been directed to you in error, please contact the sender immediately at the telephone number listed above. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing SessionId at every request
HI, IS it possible to change the Session Id generated by the Web Server at every request for the same client. I wil make it much more clear. Say i have a Servlet running on Tomcat. what i want is when ever any User lets assume USER A ask for a request i want to change the sessionId server variable which has been gerenrated by the Web Server to uniquely identify the client. Purpose behind doing this is to make every request safe. Any suggections will be higly appreciated. Thanks in Advance Gary
MySQL Driver List
hi ALl I want to connect my strut application with mySQL database. Can some one refer me to the URL from where i can download the thin drivers for the same. Thanks in Advance Regards Gary
Re: Scheduler
Hi HG I will surely share the sucess after sucessfully implementing it. Understand the value of this mailing list. Dont wory dude. Thanks for help Cheers gary - Original Message - From: "HG" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 5:38 PM Subject: Re: Scheduler > Please share your success with the rest of us... > > I am in need of similar functionality...very soon... > > - Original Message - > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 02, 2003 1:04 PM > Subject: Re: Scheduler > > > > hi HG > > > > Thanks for the thought i have found the path tomove on. Hope it may work > > out. Anyway thread problem is related to EJB Container as such strut > allows > > one to use Thread > > > > Thanks > > Gary > > - Original Message - > > From: "HG" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 02, 2003 5:26 PM > > Subject: Re: Scheduler > > > > > > > Hi Gurpreet > > > > > > I haven't tried this...but it came across my mind as I need something > > > similar very soon. > > > > > > You could write a Struts plugin... init() method called on start of > webapp > > > and destroy() method called on shutdown of webapp. > > > > > > In the init() method you could start a thread that "wakes up" at > specified > > > interval, say each minute, to check if there is some tasks that need to > be > > > done, eg sending mails, cleaning up, make some coffee (;-)) > > > > > > In the destroy method you could stop the thread again > > > > > > I don't know if this violates with the J2EE spec...I remember reading > > > something about threads...but that might be for EJBs only...Anyone can > > shed > > > some light on this issue? > > > > > > Regards > > > > > > Henrik > > > > > > - Original Message - > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 02, 2003 12:47 PM > > > Subject: Scheduler > > > > > > > > > hi All > > > > > > > > > I want to implement a scheduler program something at the starting of the > > > application or at the starting of tomcat. > > > > > > Basically i need one of my program to track all of the reminders i have > > set > > > in an web-application. > > > > > > Say if i have set a reminder to send an email to client at 1400 hrs then > > it > > > should send that email at that time without the need of signing into the > > > account. > > > > > > > > > > > > Any help will be of great use. > > > > > > > > > Thanks > > > Gary > > > > > > > > > > > > - > > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scheduler
hi HG Thanks for the thought i have found the path tomove on. Hope it may work out. Anyway thread problem is related to EJB Container as such strut allows one to use Thread Thanks Gary - Original Message - From: "HG" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 5:26 PM Subject: Re: Scheduler > Hi Gurpreet > > I haven't tried this...but it came across my mind as I need something > similar very soon. > > You could write a Struts plugin... init() method called on start of webapp > and destroy() method called on shutdown of webapp. > > In the init() method you could start a thread that "wakes up" at specified > interval, say each minute, to check if there is some tasks that need to be > done, eg sending mails, cleaning up, make some coffee (;-)) > > In the destroy method you could stop the thread again > > I don't know if this violates with the J2EE spec...I remember reading > something about threads...but that might be for EJBs only...Anyone can shed > some light on this issue? > > Regards > > Henrik > > - Original Message - > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 02, 2003 12:47 PM > Subject: Scheduler > > > hi All > > > I want to implement a scheduler program something at the starting of the > application or at the starting of tomcat. > > Basically i need one of my program to track all of the reminders i have set > in an web-application. > > Say if i have set a reminder to send an email to client at 1400 hrs then it > should send that email at that time without the need of signing into the > account. > > > > Any help will be of great use. > > > Thanks > Gary > > > > - > 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]
Scheduler
hi All I want to implement a scheduler program something at the starting of the application or at the starting of tomcat. Basically i need one of my program to track all of the reminders i have set in an web-application. Say if i have set a reminder to send an email to client at 1400 hrs then it should send that email at that time without the need of signing into the account. Any help will be of great use. Thanks Gary
Re: Bean:write \problem
hi KulKarni Thanks for it It worked Cheers gary - Original Message - From: "Ravi Kulkarni" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 4:54 PM Subject: RE: Bean:write \problem > u can try something like this : > > > > > Thanks, > Kulkarni > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 02, 2003 4:50 PM > To: Struts Users Mailing List > Subject: Bean:write \problem > > > Hi All, > > I am trying to display the content to the front end user which contains some > HTML TAGS. > > say i have into the database " HI I am bold tag" > > > when i am tryiong to display the data using > > > > OR > > > > It is not letting the HTML TAGS to reflect instead it is dispaying the value > same as above > > HI I am bold tag. > > > ANy suggestion how i can make my struts bean tag to display the data by > making the present HTML TAG work > > Thanks in advance > > Regards > Gary > > > - > 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]
Bean:write \problem
Hi All, I am trying to display the content to the front end user which contains some HTML TAGS. say i have into the database " HI I am bold tag" when i am tryiong to display the data using OR It is not letting the HTML TAGS to reflect instead it is dispaying the value same as above HI I am bold tag. ANy suggestion how i can make my struts bean tag to display the data by making the present HTML TAG work Thanks in advance Regards Gary
Simple Tiles Question
hi ALL, When we incluse dtd while declaring tile-def.xml file which looks something like. http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> IS IT NESECCARY I SHOULD BE CONNECTED TO INTERNET WHILE USING THIS dtd. Regards Gary
Re: Urgent Help Struts on Linux
Hi ALl WE have finally sorted out the problem wioth the help of David, who did the great job. Actually it was the problem of Tomcat version. If somebody want to run tiles on Linux use it on Tomcat 4.1.29 .It wont work fine on Tomcat 4.0 . we tested it out. All have fun Cheers Gary - Original Message - From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 10:58 PM Subject: Re: Urgent Help Struts on Linux > > We are using 1.1 > > - Original Message - > From: "James Mitchell" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, November 27, 2003 10:52 PM > Subject: Re: Urgent Help Struts on Linux > > > > On Thu, 27 Nov 2003, Gurpreet Dhanoa wrote: > > > > What version of Struts are you using? > > > > > > > HI David, > > > > > > Thanks and i realy appreciate your Help. We have found we are using > > > Tomcat4.0 and now we are going to install Tomcat 4.1 same as you used. > Yes, > > > we are getting all of the jar files and strut-config as well. I think > trying > > > on Tomcat4.1 may solve the issue. Well now i am innstalling Tomcayt4.1 > and > > > will be needing your assistance further ifnothing work work > > > > > > Once again Thanks for your support. > > > > > > Regards > > > Gary > > > > > > - Original Message - > > > From: "David Friedman" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Thursday, November 27, 2003 10:30 PM > > > Subject: RE: Urgent Help Struts on Linux > > > > > > > > > > I've developed on a Windows platform and ported to Linux for > > > > Struts/Tiles/Tomcat before and not had this problem. I've used Tomcat > > > > 4.1.24 and higher, not 4.0.6. Is your deployment bringing over all > .jars > > > > and putting them in WEB-INF/lib as well as bringing over your > > > > WEB-INF/struts-config.xml (and any modular ocnfigurations if you use > > > them?) > > > > ? > > > > > > > > Regards, > > > > David > > > > > > > > -Original Message- > > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, November 27, 2003 11:51 AM > > > > To: Struts Users Mailing List > > > > Subject: Urgent Help Struts on Linux > > > > > > > > > > > > Hi > > > > > > > > We are facing a problem of running an application in Struts using > Tiles on > > > > the Tomcat running on linux . WE have ran the application on Windows > and > > > it > > > > is working absolutely fine but when we are trying it to run on Linux > we > > > are > > > > not able to call Action Servlet and got the error. Then we debuged the > > > > application and found if we dont use the Tiles then it works fine, but > as > > > > soon as we are trying to run the application with tiles it just hang > on. > > > > > > > > Following are the some of the major contents of log file which has > been > > > > generated when we used tiles > > > > > > > > 2003-11-27 17:57:05 ApplicationDispatcher[/efit]: Servlet action is > > > > currently unavailable > > > > 2003-11-27 17:59:49 StandardHost[localhost]: Removing web application > at > > > > context path /webdav > > > > 2003-11-27 17:59:51 StandardHost[localhost]: Removing web application > at > > > > context path /examples > > > > 2003-11-27 17:59:52 StandardHost[localhost]: Removing web application > at > > > > context path /efit > > > > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application > at > > > > context path /jamesj2ee > > > > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application > at > > > > context path /efitAdmin_20Nov > > > > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application > at > > > > context path /manager > > > > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application > at > > > > context path /efitAdmin_old > > > > 2003-11-27 17:59:57 action: Error - TilesRequestProcessor : Definition > > > > Factory not found for subapp ''. Do you have decl
Re: Urgent Help Struts on Linux
We are using 1.1 - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 10:52 PM Subject: Re: Urgent Help Struts on Linux > On Thu, 27 Nov 2003, Gurpreet Dhanoa wrote: > > What version of Struts are you using? > > > > HI David, > > > > Thanks and i realy appreciate your Help. We have found we are using > > Tomcat4.0 and now we are going to install Tomcat 4.1 same as you used. Yes, > > we are getting all of the jar files and strut-config as well. I think trying > > on Tomcat4.1 may solve the issue. Well now i am innstalling Tomcayt4.1 and > > will be needing your assistance further ifnothing work work > > > > Once again Thanks for your support. > > > > Regards > > Gary > > > > - Original Message - > > From: "David Friedman" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Thursday, November 27, 2003 10:30 PM > > Subject: RE: Urgent Help Struts on Linux > > > > > > > I've developed on a Windows platform and ported to Linux for > > > Struts/Tiles/Tomcat before and not had this problem. I've used Tomcat > > > 4.1.24 and higher, not 4.0.6. Is your deployment bringing over all .jars > > > and putting them in WEB-INF/lib as well as bringing over your > > > WEB-INF/struts-config.xml (and any modular ocnfigurations if you use > > them?) > > > ? > > > > > > Regards, > > > David > > > > > > -Original Message- > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, November 27, 2003 11:51 AM > > > To: Struts Users Mailing List > > > Subject: Urgent Help Struts on Linux > > > > > > > > > Hi > > > > > > We are facing a problem of running an application in Struts using Tiles on > > > the Tomcat running on linux . WE have ran the application on Windows and > > it > > > is working absolutely fine but when we are trying it to run on Linux we > > are > > > not able to call Action Servlet and got the error. Then we debuged the > > > application and found if we dont use the Tiles then it works fine, but as > > > soon as we are trying to run the application with tiles it just hang on. > > > > > > Following are the some of the major contents of log file which has been > > > generated when we used tiles > > > > > > 2003-11-27 17:57:05 ApplicationDispatcher[/efit]: Servlet action is > > > currently unavailable > > > 2003-11-27 17:59:49 StandardHost[localhost]: Removing web application at > > > context path /webdav > > > 2003-11-27 17:59:51 StandardHost[localhost]: Removing web application at > > > context path /examples > > > 2003-11-27 17:59:52 StandardHost[localhost]: Removing web application at > > > context path /efit > > > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at > > > context path /jamesj2ee > > > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin_20Nov > > > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at > > > context path /manager > > > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin_old > > > 2003-11-27 17:59:57 action: Error - TilesRequestProcessor : Definition > > > Factory not found for subapp ''. Do you have declared appropriate plugin > > in > > > struts-config.xml ? > > > 2003-11-27 17:59:58 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin_old20Nov > > > 2003-11-27 17:59:59 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin_29_10_2003 > > > 2003-11-27 18:00:00 action: Error - TilesRequestProcessor : Definition > > > Factory not found for subapp ''. Do you have declared appropriate plugin > > in > > > struts-config.xml ? > > > 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at > > > context path /tomcat-docs > > > 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin_Nov24,2003 > > > 2003-11-27 18:00:01 StandardHost[localhost]: Removing web application at > > > context path /efitAdmin > > > 2003-11-27 18:00:04 StandardHost[localhost]: Remo
Re: Urgent Help Struts on Linux
HI David, Thanks and i realy appreciate your Help. We have found we are using Tomcat4.0 and now we are going to install Tomcat 4.1 same as you used. Yes, we are getting all of the jar files and strut-config as well. I think trying on Tomcat4.1 may solve the issue. Well now i am innstalling Tomcayt4.1 and will be needing your assistance further ifnothing work work Once again Thanks for your support. Regards Gary - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 10:30 PM Subject: RE: Urgent Help Struts on Linux > I've developed on a Windows platform and ported to Linux for > Struts/Tiles/Tomcat before and not had this problem. I've used Tomcat > 4.1.24 and higher, not 4.0.6. Is your deployment bringing over all .jars > and putting them in WEB-INF/lib as well as bringing over your > WEB-INF/struts-config.xml (and any modular ocnfigurations if you use them?) > ? > > Regards, > David > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 27, 2003 11:51 AM > To: Struts Users Mailing List > Subject: Urgent Help Struts on Linux > > > Hi > > We are facing a problem of running an application in Struts using Tiles on > the Tomcat running on linux . WE have ran the application on Windows and it > is working absolutely fine but when we are trying it to run on Linux we are > not able to call Action Servlet and got the error. Then we debuged the > application and found if we dont use the Tiles then it works fine, but as > soon as we are trying to run the application with tiles it just hang on. > > Following are the some of the major contents of log file which has been > generated when we used tiles > > 2003-11-27 17:57:05 ApplicationDispatcher[/efit]: Servlet action is > currently unavailable > 2003-11-27 17:59:49 StandardHost[localhost]: Removing web application at > context path /webdav > 2003-11-27 17:59:51 StandardHost[localhost]: Removing web application at > context path /examples > 2003-11-27 17:59:52 StandardHost[localhost]: Removing web application at > context path /efit > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at > context path /jamesj2ee > 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at > context path /efitAdmin_20Nov > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at > context path /manager > 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at > context path /efitAdmin_old > 2003-11-27 17:59:57 action: Error - TilesRequestProcessor : Definition > Factory not found for subapp ''. Do you have declared appropriate plugin in > struts-config.xml ? > 2003-11-27 17:59:58 StandardHost[localhost]: Removing web application at > context path /efitAdmin_old20Nov > 2003-11-27 17:59:59 StandardHost[localhost]: Removing web application at > context path /efitAdmin_29_10_2003 > 2003-11-27 18:00:00 action: Error - TilesRequestProcessor : Definition > Factory not found for subapp ''. Do you have declared appropriate plugin in > struts-config.xml ? > 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at > context path /tomcat-docs > 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at > context path /efitAdmin_Nov24,2003 > 2003-11-27 18:00:01 StandardHost[localhost]: Removing web application at > context path /efitAdmin > 2003-11-27 18:00:04 StandardHost[localhost]: Removing web application at > context path > 2003-11-27 18:13:33 WebappLoader[/manager]: Deploying class repositories to > work directory > /home/ashish/tomcat/jakarta-tomcat-4.0.6/work/Standalone/localhost/manager > 2003-11-27 18:13:33 StandardManager[/manager]: Seeding random number > generator class java.security.SecureRandom > 2003-11-27 18:13:33 StandardManager[/manager]: Seeding of random number > generator has been completed > > > > ARe we missing something on Linux server which is required to make Tiles run > . > > > Any help will be of great use. > > Regards > Gary > > > - > 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]
Urgent Help Struts on Linux
Hi We are facing a problem of running an application in Struts using Tiles on the Tomcat running on linux . WE have ran the application on Windows and it is working absolutely fine but when we are trying it to run on Linux we are not able to call Action Servlet and got the error. Then we debuged the application and found if we dont use the Tiles then it works fine, but as soon as we are trying to run the application with tiles it just hang on. Following are the some of the major contents of log file which has been generated when we used tiles 2003-11-27 17:57:05 ApplicationDispatcher[/efit]: Servlet action is currently unavailable 2003-11-27 17:59:49 StandardHost[localhost]: Removing web application at context path /webdav 2003-11-27 17:59:51 StandardHost[localhost]: Removing web application at context path /examples 2003-11-27 17:59:52 StandardHost[localhost]: Removing web application at context path /efit 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at context path /jamesj2ee 2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at context path /efitAdmin_20Nov 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at context path /manager 2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at context path /efitAdmin_old 2003-11-27 17:59:57 action: Error - TilesRequestProcessor : Definition Factory not found for subapp ''. Do you have declared appropriate plugin in struts-config.xml ? 2003-11-27 17:59:58 StandardHost[localhost]: Removing web application at context path /efitAdmin_old20Nov 2003-11-27 17:59:59 StandardHost[localhost]: Removing web application at context path /efitAdmin_29_10_2003 2003-11-27 18:00:00 action: Error - TilesRequestProcessor : Definition Factory not found for subapp ''. Do you have declared appropriate plugin in struts-config.xml ? 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at context path /efitAdmin_Nov24,2003 2003-11-27 18:00:01 StandardHost[localhost]: Removing web application at context path /efitAdmin 2003-11-27 18:00:04 StandardHost[localhost]: Removing web application at context path 2003-11-27 18:13:33 WebappLoader[/manager]: Deploying class repositories to work directory /home/ashish/tomcat/jakarta-tomcat-4.0.6/work/Standalone/localhost/manager 2003-11-27 18:13:33 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2003-11-27 18:13:33 StandardManager[/manager]: Seeding of random number generator has been completed ARe we missing something on Linux server which is required to make Tiles run . Any help will be of great use. Regards Gary
Re: Display Problem using Struts
Thanks HG - Original Message - From: "HG" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 4:01 PM Subject: Re: Display Problem using Struts > Hi Gurpreet > > Try setting the filter attribute on the bean:write tag to false. It is set > to true default, and so filters all HTML sensitive characters... > > Regards > > Henrik > > - Original Message - > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, November 27, 2003 11:22 AM > Subject: Display Problem using Struts > > > hi > > I have an application, In which i want to display the contents posted by the > Administrator using HTML tags. Problem is when i am using > > > > > > > > > > IT is displyaing me the following content without giving the effect of HTML > tags which were posted during content Managem,ent > > > HI this is an Simple text > > > It is not showing the effect of TAG. > > > Any Help will of great use > > > Regards > gary > > > - > 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]
Display Problem using Struts
hi I have an application, In which i want to display the contents posted by the Administrator using HTML tags. Problem is when i am using IT is displyaing me the following content without giving the effect of HTML tags which were posted during content Managem,ent HI this is an Simple text It is not showing the effect of TAG. Any Help will of great use Regards gary
Re: [OT] Need Free database
hi Try to Use postgreSQL. it is a free based database and can be downloaded easily from http://www.postgresql.org Regards Gary - Original Message - From: "Agashivala, Vishal" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 5:34 PM Subject: [OT] Need Free database > Hi All, > Can any buddy suggest me Database which is free and has JDBC driver. If > possible get me the URL. > > Regards, > Vishal Agashivala > > - > 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: ACtion Form within an ACtion
hi Dennis , Thanks for your prompted answer but in this case i'll be forwarding to another action from one action.BUt i dont want to do that. I want to execute perform method of Action2 in the perform method of ACtion1 then I want to forward it to the JSP from the Action1 itself. Is this something possible Thanks Gary - Original Message - From: "Hunziker Dennis" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 5:23 PM Subject: RE: ACtion Form within an ACtion > Hi > > Something like that (taken from the Struts example) should work. > > private String page = "/action.do"; > pageContext.forward(page); > > Kind regards > Dennis Hunziker > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 25. November 2003 12:47 > To: Struts Users Mailing List > Subject: ACtion Form within an ACtion > > > HI All > > Can anybody link me to the track of calling one Action within another > Action. > > I have one Action File in which I want to call one more ACtion File and then > I want to forward to the JSP > > Can anybody Help > > > Thanks > gary > > > > > > - > 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]
ACtion Form within an ACtion
HI All Can anybody link me to the track of calling one Action within another Action. I have one Action File in which I want to call one more ACtion File and then I want to forward to the JSP Can anybody Help Thanks gary
Integration of two Different Applications In Tomcat
hi , I have been implementing an application using Struts1.1. We have basic two parts of the application as front end and Admin end. Administrator of the application can access Admin end and front end users can access front section of the site. Currently, we are delpoying both of the applications as diffrent entities as differnt applications under webapps directory of Tomcat. Now, the problem which couured is , Administrator can upload some images to the site which will be get reflected to the front end users of the site.When administrator uploads a file we are stroring the file in a folder named as "uploadedImages" on the root of Admin appliaction under webapp. Our concern is how to get the images which are lying in different appliaction into the front end appliaction. OR Is there any way we can integrate the application like under front end application we can keep the admin application and can access the application something like http://www.frontend.com/Admin I tried but I am confused ANy suggestions or help on this will be higly apprectiable, Thanks in Advance Gary
Re: logic:iterate help
try this > > > : > : > > > cheers Gurpreet DHanoa - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 3:24 AM Subject: logic:iterate help > Hi All > I have a Vector called as testScoresVector (Vector of testScores Objects) > stored in the session > > I am trying this > > > SAT-1 > SAT-2 > : > : > > > > > The idea is to add the selected value into the TestScores Object for each > object in the Vector. > > This gives an error saying :No getter method available for property > tsv.testName for bean under name org.apache.struts.taglib.html.BEAN > I think the "tsv" holds a TestScoresVector object for each iteration. Am i > right or not. Please let me know > > Thank you > > --Mohan > > > > > > > - > 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: logic:iterate help
hi MOhan Error is coming coz your syntax is not upto the mark. Try with the following > > > Cheers gary - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 3:24 AM Subject: logic:iterate help > Hi All > I have a Vector called as testScoresVector (Vector of testScores Objects) > stored in the session > > I am trying this > > > SAT-1 > SAT-2 > : > : > > > > > The idea is to add the selected value into the TestScores Object for each > object in the Vector. > > This gives an error saying :No getter method available for property > tsv.testName for bean under name org.apache.struts.taglib.html.BEAN > I think the "tsv" holds a TestScoresVector object for each iteration. Am i > right or not. Please let me know > > Thank you > > --Mohan > > > > > > > - > 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: System Exception Handling in Struts
hi As such you cannot control when system exception occur not in EJB also. THough using follwoing code you can always transfer the user to the well formed error page if in case it occurs. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ if (this.isCancelled(request)){ System.out.println("*The user pressed cancelled!!!"); return (mapping.findForward("poststory.success")); } PostStoryForm postStoryForm = (PostStoryForm) form; //org.apache.struts.action.DynaActionForm postStoryForm = (org.apache.struts.action.DynaActionForm) form; HttpSession session = request.getSession(); MemberVO memberVO = (MemberVO) session.getAttribute("memberVO"); try{ System.out.println("I am in post story**"); StoryVO storyVO = new StoryVO(); storyVO.setStoryIntro(postStoryForm.getStoryIntro()); storyVO.setStoryTitle(postStoryForm.getStoryTitle()); storyVO.setStoryBody(postStoryForm.getStoryBody()); /*storyVO.setStoryIntro((String)postStoryForm.get("storyIntro")); storyVO.setStoryTitle((String)postStoryForm.get("storyTitle")); storyVO.setStoryBody((String)postStoryForm.get("storyBody"));*/ storyVO.setStoryAuthor(memberVO); storyVO.setSubmissionDate(new java.sql.Date(System.currentTimeMillis())); storyVO.setComments(new Vector()); StoryManagerBD storyManager = new StoryManagerBD(); storyManager.addStory(storyVO); System.out.println("I am done with post story**"); } catch(Exception e){ System.err.println("An application exception has been raised in PostStory.perform(): " + e.toString()); return (mapping.findForward("system.failure")); } return (mapping.findForward("poststory.success")); } Hoope this will help Cheers Gary - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 24, 2003 3:12 PM Subject: System Exception Handling in Struts > Hello, > How can I handle a system exception in Struts? > Is Logging an internal part of Struts if yes how to configure it. > > Please help with an example if possible. > > Alok Garg > Polaris Software Lab Ltd. > ( + 91 - 022 - 28290019 Ext. # 1308 ) > > > > - > 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]
Problem
hi ALl I am in a trouble as when i shifted my site from windows to Linux it has been stopped working and giving me the following error Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. Any help will be highly appreciated Regards Gary
Re: [OT] How do you deprecate a method?
Thanks alot Thomas - Original Message - From: "Thomas Cornet" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 4:55 PM Subject: Re: [OT] How do you deprecate a method? > > By adding a special tag in the method's javadoc. Example > > /* > * Function to deprecate > * > * @deprecated > */ > public void foo() > { ... } > > Thus, the method foo will appear as deprecated in generated javadoc. > For other tags > : > http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#javadoctag s > > Thomas > > At 12:02 20/11/2003, you wrote: > >hi ALl > > > > > >Sorry for posting this question here, but it will be highly appreciated if > >anyone can explain > > > >Ques: CAn anyone tell me how to depreciate a method in Java > > > > > > > >Regards > >Gary > > > > > > > >- > >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]
How do you deprecate a method?
hi ALl Sorry for posting this question here, but it will be highly appreciated if anyone can explain Ques: CAn anyone tell me how to depreciate a method in Java Regards Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Latest vesrion of sturts
hi Well this is a 1.1 neta 2 release and we are using it in a live project so u can use it - Original Message - From: "Meenakshi Dhawale" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 3:35 PM Subject: RE: Latest vesrion of sturts > Hi, > > Thanks for your prompt reply. > > I am also bit confused as on Jakarta site I saw Sturt 1.1 beta 2, Sturt > 1.1 beta 3 relaese and so on... > So I wondered which one is latest. > > So please let me know which beta version is this which you have told to > download from > http://mirror.ehpg.net/apache/jakarta/struts/binaries/jakarta-struts-1.1.zip > > regards, > Meenakshi > > At 15:37 03/11/20 +0530, Agashivala, Vishal wrote: > >Latest version of struts 1.1 and you can download it by clicking the > >following link- > > > >http://mirror.ehpg.net/apache/jakarta/struts/binaries/jakarta-struts-1.1.zi p > > > >you also get the documentation with this. > > > >Regards, > >Vishal Agashivala > > > >-Original Message- > >From: Meenakshi Dhawale [mailto:[EMAIL PROTECTED] > >Sent: Thursday, November 20, 2003 3:22 PM > >To: [EMAIL PROTECTED] > >Subject: Latest vesrion of sturts > > > > > >Hi, > > > >I am very new to Sturts Architecture. > > > > > >I want to know the latest version of Sturts and also the URL > >from where I > >can download it. > > > > > >Also the example or documents which help me to know basics of > >Sturts and > >its architecture. > > > > > >regards, > >Meenakshi > > > > > >- > >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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tokens
hi Ramadoss Thanks for your help. But this is not i m looking for. I may not be able to explain my question proeprly . But i m looking for saveTOken() method implementation in struts which does not allow duplicate entry of records into the database when the user click on submit button twice. - Original Message - From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 7:56 PM Subject: RE: Tokens > Hi Gurpreet, > If what I understand is correct from your question, you can use split function the same way as you use String Token...following is sample snap shot > > String str = "botherouioero:and:foroffo:mar:ssod:slave"; > String[] arr = str.split(":", 9); > System.out.println("length of arr[] is:" + arr.length); > for (int i = 0; i < arr.length; i++) { > System.out.println("value is :" + arr[i]); > } > String[] ar = str.split("o", 8); > System.out.println("length of arr[] is:" + ar.length); > for (int i = 0; i < ar.length; i++) { > System.out.println("value is :" + ar[i]); > } > Where the number 9 and 8 denotes number of occurences you want to consider after which it will be treated as whole single string and will be included into your String Array. > > Hope this help, > > -Ram > > > > > -Original Message- > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 6:19 AM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Tokens > > > hi All > > Can somebody explain small code snap shot of using Tokens. AS i am trying > to use it in one of my application. but due to some unknown reason it is not > working. I may be doing something wrong. > > > Any help will be appreciated > > > Regards > GAry > > > - > 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]
Tokens
hi All Can somebody explain small code snap shot of using Tokens. AS i am trying to use it in one of my application. but due to some unknown reason it is not working. I may be doing something wrong. Any help will be appreciated Regards GAry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nested iterate problem
hi Sumit Can u sedn the code snapshot for nested iterate. I have 2 beans .Oneis for category and secound is for sub category. I m returning one collection to the JSp File which contain the category name and subcategory beans List.Subcategory bean list is further having its own properties which are name and id now I want to show something like this. Category Name1 Subcategory Name1 Subcategory Name1 Category Name2 Subcategory Name2 Subcategory Name2 and so on But i want to use a iterate inside another iterate. Any help will ne appreciated. Cheers Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-legacy.jar
Hi All, Can anyone please explain the real funda of struts-legacy.jar. I faced a big problem of image uploading and was getting error when i was posting the form by setting enctype but when i kept struts-legacy.jar into my webserver classpath. My code is running perfectly What is the logic behind it ANy help will be appreciated regards Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple question
you can use OR Where key is the key defined in resources file Cheers Gary - Original Message - From: "Shyam A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 9:40 PM Subject: simple question > Hi, > > Is there any Struts tag for an expression like > > <%= request.getAttribute("attributeName")%> > > where the attribute is a String. > > Thanks, > Shyam > > __ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > - > 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: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
no worries. It is simple Can u send me the code and steps u r follwoing Cheers Gary - Original Message - From: "Gali, Sreenivasalu Naidu (Cognizant)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 2:42 PM Subject: RE: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi, am using "Tomcat 4.1" -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: "Gali, Sreenivasalu Naidu (Cognizant)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing "org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message" exception...i tried to set the "structs.jar" to classpath...still am getting the same error... pls advice me... sreeni > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sturts
HI is there any way to call a action within an JSP file without using Submit button and any other html:form element I want to call a action with in a logic:iterate which is further containing one more logic:iterate
Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: "Gali, Sreenivasalu Naidu (Cognizant)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing "org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message" exception...i tried to set the "structs.jar" to classpath...still am getting the same error... pls advice me... sreeni > - > 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: Definition for form bean
Can you please send the code of your action mapping also. AS i think u may be using attribute not the name while associating the form with the Action. - Original Message - From: "Ipsita" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 2:21 PM Subject: Definition for form bean > Hi, > > I am getting > [ > org.apache.jasper.JasperException: Cannot retrieve definition for form > bean null > ] > > but I have given it in my struts-config.xml > [ > > name="loginForm" >type="com.globalRad.LoginForm"/> > > ] > > the class LoginForm.class exists in the specified directory structure... > > Where can I be going wrong? Pls advice. > > Thanks! > > Ipsita > > > -- > http://www.fastmail.fm - mmm... Fastmail... > > - > 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]