[ANNOUNCE] JSFCentral.com site expanded
I'm pleased to announce that JSFCentral.com has been expanded to cover news, products, and links related to JavaServer Faces, in addition to the FAQ that has been there for the past few months. You can find the site at http://www.jsfcentral.comhttp://www.jsfcentral.com. Kito D. Mann Author, JSF in Action
RE: how to change this logic into tags
This could/should be put into an Action /* ArrayList al = (ArrayList) request.getAttribute(al); if (al != null) { for (int i=0;ial.size()/2;i++) { SystemProfileData spd = (SystemProfileData) al.get(i); if (i==0) int topmsg = spd.getSentCount(); */ The spd.getSentCount() should give u the correct top message. No need to count it. But if you can't then you could either create a new property which shows this or create a bean which you could hold your values /* td width=%=topmsg!=0?spd.getSentCount()*80/topmsg:0%%/td */ for writing out properties you could use bean:write name=beanName property=propertyName / for html link html:link Look here for more info http://jakarta.apache.org/struts/userGuide/ Amin -Original Message- From: Mohd Fadhly [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:05 PM To: Struts Users Mailing List Subject: how to change this logic into tags hello, how do i change this scriptlet logic into struts tag, % ArrayList al = (ArrayList) request.getAttribute(al); if (al != null) { for (int i=0;ial.size()/2;i++) { SystemProfileData spd = (SystemProfileData) al.get(i); if (i==0) int topmsg = spd.getSentCount(); % table border=0 width=100% trtd width=20%%=spd.getName()%/td td table border=0 width=100% cellspacing=0 cellpadding=0 td width=%=topmsg!=0?spd.getSentCount()*80/topmsg:0%%/td td width=%=topmsg!=0?100-(spd.getSentCount()*80/topmsg):0%%%=spd.get SentCount()%/td /table /td /tr/table % } } % - 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: [OT] Lightweight helper libraries for reporting?
Maybe you could use http://jasperreports.sourceforge.net/ -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:23 AM To: Struts Users Mailing List Subject: RE: [OT] Lightweight helper libraries for reporting? David: The main reason I'm not ready to use displaytag is because I need to generate reports for more than just HTML output; my users will have the choice to get a delimited file as well, or instead of HTML, and they'll have the option to get the report mailed to them as well as generated while-they-wait. I know that displaytag has some support for export files, but I'm figuring it's more work than it's worth to use a JSP tag library for asynchronous generation of a CSV file sent as an email attachment. My design is to have a model-level report returned from a report service to a controller which can then send the report to various renderers. I just haven't yet written classes to deal with common report functions like grouping and totalling, and it seems like something that would be generally useful. I think displaytag is pretty impressive, and totally appropriate for a model where the web page is the primary output form. I actually find the decorator model a little frustrating, as it requires writing and compiling code for view things which I'd prefer to have more flexibly changeable in a JSP (at least it did a year ago when I used it last) -- I'm pretty sure I had to compile a date format into a column decorator; what happens when the client decides they want that to change? I have to recompile the class? Or find someplace other than displaytag to set a runtime property for the date format; that seems awkward. I think instead of a single table tag, it would be nice to have a table tag which defined beans and made them available to nested tags for various purposes, like many Struts tags do (html:messages, logic:iterate, etc). This might be hard to do and still achieve everything that displaytag does, but if I were really motivated, I'd look at adapting displaytag to a model more like that... Joe At 22:59 -0400 9/19/03, David G Friedman wrote: Joe, I've been planning on using the displaytag library for that stuff when I get to it next week. Why won't the decorator classes work for you to perform summations of rows, groups, and so forth? I'm wondering why it won't work for you in case the same reasons might apply to my application For reference, an example of the decorators for summations of groups and rows is here: http://edhill.its.uiowa.edu/display-examples/example-callbacks.jsp With their Java decorator class code example code here: http://edhill.its.uiowa.edu/display-examples/TotalWrapper.java.txt -- -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com If nature worked that way, the universe would crash all the time. --Jaron Lanier - 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 Design Question
That hits on some points, I did read that thread earlier this week(I'll even read it again), and I'm starting to agree on not shoving everything in the ActionForm, but I don't recall it hitting on an Action needing one form for input and one form for output. If I totally ignore it, the second page will render, but what if I need my html form in the second JSP(JSPB) to be prepopulated with the results of the processing in ActionA? Scenario: I have jspA that is rendered with ActionFormA. Now user submits that data to ActionA. ActionA recieves an ActionFormA as its input form in execute. Now ActionA needs to forward to jspB which expectes an ActionFormB, what is the cleanest way to handle this in struts(see code below). Do struts users run across this case often or do I need to rethink my Action/Form design? --m Robert Taylor wrote: This was discussed earlier this week. Some solutions are addressed here: http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg81101.html robert -Original Message- From: Michael Thompson [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 6:10 PM To: struts-user Subject: Action Form Design Question I've hit a stumbling block and I'm not quite sure how to work around it. I've written struts apps in the past and I've taken the approach of putting everything in the ActionForm so that the jsp has a one stop shop for all it's display needs. So where I've hit an issue is when say I have jsp A that is rendered with form A. When user submits data to action A, the ActionForm pushed to execute is form A. What happens when I need to forward from action A to jsp B which is rendered with form B? I need to populate an ActionForm B to send to jsp B, but I don't have one. Is it normal to create a form of a different type in your Action? So essentially the code would look something like: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { FormA inputForm = (FormA)form; Result result = doSomeCrunchingOnDataSubmittedViaFormA(inputForm); FormB outputForm = getInstanceOfFormB(mapping, request); //this would stash in request/session also populateFormBWithResults(outputForm, result); return mapping.findForward(success); } getInstanceOfFormB is a little hazy, but I did notice a method in RequestUtils that might help. Seems like this might be breaking some struts abstractions by knowing what form to create etc. Is this the correct way to approach this or should I think about a redesign of my forms and actions? Thanks in advance! --m - 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]
write values: objects of bean
Hi All, I have a bean like bellow..how can i retrive and write the values of TrainingModuleDTO in my struts page? public class TrainingScheduleDTO implements java.io.Serializable { private Vector trainingTypes_=null; private Vector locationTypes_=null; private Vector triningCategory_=null; private TrainingModuleDTO trainingModule_=null; public TrainingScheduleDTO() { } public Vector getLocationTypes() { return locationTypes_; } ... public class TrainingModuleDTO implements java.io.Serializable{ private long moduleUId_; private String moduleId_; private String moduleDate_; private long moduleMonth_; private long moduleYear_; private long moduleDays_; private long moduleHours_; private long modulelocationTypeId_; private String moduleCountry_; private String moduleSubject_; private String moduleDetails_; Thnaks in advance, Kannan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
binaries for struts 1.0.2
does anyone knows the link where i can download the old struts 1.0.2 release? i need it for test/development purposes. thanks.
Re: [ANNOUNCE] JSFCentral.com site expanded
Hi All, I am Getting this error while deploying the war file into websphere 5.0 thru admin console. Has anyone incountered this problem. Can u suggest the answer to me. Please java.lang.ClassCastException: com.ibm.etools.commonarchive.impl.ArchiveImpl at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:402) at com.ibm.ws.console.appmanagement.action.UploadAction.formUpload(UploadAction.java:181) at com.ibm.ws.console.appmanagement.action.UploadAction.perform(UploadAction.java:99) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java(Inlined Compiled Code)) at org.apache.struts.action.ActionServlet.process(ActionServlet.java(Compiled Code)) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code)) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code)) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code)) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled Code)) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code)) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code)) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code)) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code)) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code)) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code)) Thanks abhijeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple rows of editable data
Hi, I have a master detail form where the detail section has multiple rows which have one field to be updated per row. There is one submit button at the end of the form which will allow the data in the form to be updated in to the data store. How do I make the field represent a unique number, putting the detail row id? Thanks Amin
Re: multiple rows of editable data
Yes If you are having ur data in the Xml then generate one tag srlNo aong with other tags and add this tag for each row and id of each tag in the row has to be the same as well as it has to be row id. Then u can retireve this activelement.getAttribute(id) ; and get the TR of the table depends on this id value then retrieve cell value of this row.. this way you can retireve the values as well as you can maintain uniqeness in each row of the table.. if you do not understand pls tell me i will forward a sample code for you.. regards asbhijeet - Original Message - From: Mohd Amin Mohd Din [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 1:10 PM Subject: multiple rows of editable data Hi, I have a master detail form where the detail section has multiple rows which have one field to be updated per row. There is one submit button at the end of the form which will allow the data in the form to be updated in to the data store. How do I make the field represent a unique number, putting the detail row id? Thanks Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles excessive memory usage
Hi All, Just now I went through the mail-list Tiles excessive memory usage on the struts mail archive. What I could get from that mail list is, there is some excessive memory usage problem with the tiles. Can anybody tell me whether the problem discussed in that mail list is solved in the struts 1.1 ? I am pasting the mail list from the mail archive for your reference. If that problem is not solved, can anybody tell me what is the exact solution of that problem? I am using struts 1.1 in my application. Re: Tiles excessive memory usage From: cwilling Subject: Re: Tiles excessive memory usage Date: Mon, 10 Mar 2003 20:47:12 -0800 Thanks Christophe. I will take my time seeing what youve done and to see how it best fits to 1.1. I would like to hear from Cedric too as soo as possible to be sure there's ot something we've missed. If I have succes with 1.1 I'll be sure to offer it to this mail list But I truly hope to hear from Cedric before I move to far ahead. Thanks agin, Chris - Original Message - From: Christophe Warland [EMAIL PROTECTED] To: 'Struts Developers List' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 10, 2003 7:00 PM Subject: RE: Tiles excessive memory usage Patch is attached. Once again, please note that this is based on Tiles as of 2001-09-10. I would send my sources to the list, but I have only just joined struts-dev today and I don't know the etiquette in use here with regards to attachments. FWIW, my modified sources fit in a 17k zip file (non-uuencoded). If you are not interested in my patch and prefer to implement it your way, here is my advice: 1. go to ComponentDefinition and ComponentContext and delete the following 'evil' methods public Map getAttributes() public ComponentContext(Map attributes) public void addAll(Map newAttributes) public void addMissing(Map defaultAttributes) 2. then refactor/recompile/refactor the rest of Tiles until you have something usable (pass along and keep track of ComponentDefinition objects as much as you can -- never access the HashMap directly). Regards, -- Christophe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 6:22 PM To: Struts Developers List Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Tiles excessive memory usage Chris, I'm just now getting to profiling our struts/tiles app and have always had some concern about the efficiency of the tiles. Not that I'm a suspecting type of person but I just didn't have any information and that caused me to wonder. Regardles when or if this fix gets placed in a release, would you be willing to offer sufficient code snippets that will give me enough understanding to implement your fix in my app? I'm now getting deeper into tiles and getting a good feel for what's going on so this would be a perfect time for me before we enter client phase. Also, I'd be willing to contribute this efficiency gain to the project(with your help or ok) if Cedric and the other powers agree this is something that should be done. But in the meantime, could you supply me with some more detailed information and snippets. This could potentially kill my project since performance is the major hot word amoung manager types these days where I work. You can reply to [EMAIL PROTECTED] with details that don't pertain to the developer's group if you like. Thanks for posting this!!! Chris Willingham - Original Message - From: Christophe Warland To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' ; '[EMAIL PROTECTED]' Sent: Monday, March 10, 2003 4:47 PM Subject: Tiles excessive memory usage At my company, we have been recently forced to patch Tiles to solve some major memory problems where Tiles was eating a lot of memory for no apparent reasons. We wish to share our findings with you. And we will be happy to send our code change to Cedric if he wishes so. Here are some quick numbers about our J2EE runtime after complete bootup (appserver and EAR file are up, deployed and ready to serve HTTP requests): - With original Tiles code: 79 MB of RAM is used - After our custom code change: 28 MB of RAM is used Note that the Tiles version that we use is an old one (our source zip shows 09/10/2001). However, a quick analysis of the more recent Tiles source found in Struts 1.1 RC1 shows that most the code where the defect lies is still in there. But we haven't actually been able to confirm the problem at runtime since our app is not compatible with the latest Struts and Tiles development. Here are a few excerpt of our internal analysis so that you can understand the issue. -- Our application does not actually make use of the Tiles template mechanism but instead builds on top of Tiles' i18n concept to offer localized Web pages based on an individual's language, country,
Tiles feature required - Struts friendly exception handling.
Delving into the Tiles source has revealed that its not Struts friendly when it comes to dealing with exceptions. In a Struts environment you ideally want to specify a global error handler so that any exception, be it Struts, JSP or application, is gracefully handled and the user is presented with the usual 'Sorry, an error has occured'. However, when using Tiles this functionality doesnt seem possible. Within the InsertTag class, doEndTag() method, all Exceptions are caught and reported by squirting a message out to the JSP writer. This prevents any handling by the Struts framework and results in a nasty, user unfriendly message appearing within the page. Has anyone addressed this problem? Is there a fix in the pipeline for Tiles so that the error handling can be either internal to Tiles or bubbled out to the encompassing framework? Regards Richard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4J and Struts
Hi, I am moving my current web application to struts and I am facing a problem. We use Log4J for our logging (Log4J version 1.2.8) If I have the log4j-1.2.8.jar in my WEB-INF/lib directory, the Action servlet does not initialize Tomcat log file says: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:429) ... 29 more If I remove the log4J.jar from WEB-INF/lib, the ActionServlet initializes(but then my app. cant log). I searched the archive and implemented the solution provided by Sgarlata Matt http://www.mail-archive.com/[EMAIL PROTECTED]/msg79448.html Howeve, putting the commons-logging.properties in the WEB-INF/classes/ folder didnt help either. (note that our log4J config file has been kept in the WEB-INF folder. Even if I keep the commons-logging.properties in the WEB-INF folder, it doesnt work). Please help! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DynaActionForm Boolean properties
It appears that DynaActionForm Boolean properties that were not specified with an initial value and that were not set by the request (checkbox left unchecked) are returned as null from form.get (), why? Is it a must to specify an initial value? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4J and Struts
hi Mahesh, No u have to keep ur log4j-1.2.8.jar into websphere\appserver\lib dir not web-inf. here it will not give any error. I was working on the same kind of error an hr before but copy paste into websphere\appserver\lib solved my problem... regards abhijeet - Original Message - From: Mahesh Joshi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:59 PM Subject: Log4J and Struts Hi, I am moving my current web application to struts and I am facing a problem. We use Log4J for our logging (Log4J version 1.2.8) If I have the log4j-1.2.8.jar in my WEB-INF/lib directory, the Action servlet does not initialize Tomcat log file says: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:429) ... 29 more If I remove the log4J.jar from WEB-INF/lib, the ActionServlet initializes(but then my app. cant log). I searched the archive and implemented the solution provided by Sgarlata Matt http://www.mail-archive.com/[EMAIL PROTECTED]/msg79448.html Howeve, putting the commons-logging.properties in the WEB-INF/classes/ folder didnt help either. (note that our log4J config file has been kept in the WEB-INF folder. Even if I keep the commons-logging.properties in the WEB-INF folder, it doesnt work). Please help! Mahesh - 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]
web site usage statistics
Any pointer to implement this for struts appliation. Deepak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Concept.
Hi All , A Small Request... We always ask those questions only, for which we don't get solutions easily. So somebody from the group solves that question. But what about those question which we do ask and later on we only get the solution of it. In such a case we have to keep informed the other developers about the solution appeared for the question. And also if we get some small small problems which we solve ourself within 1 - 2 hrs... Please keep informed others also about those problems as well as solutions of it. So every time we will not wait for the solutions to get appeared in the list. It may be ready in the list. regards, Abhijeet Mahalkar.
Re: New Concept [SOLVED]
An old usenet protocol was to post a summary of responses to a question back to the list, so that someone else would have a convenient point of reference. I've noticed here that people often add [SOLVED] to the subject line when they work something out, especially if its on their own. There's also a StrutsNewFaws page on the wiki http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsProjectPages where people are invited to summarize useful threads. With the traffic here, it's sometimes hard to separate the wheat from the chaff. -Ted. Abhijeet Mahalkar wrote: Hi All , A Small Request... We always ask those questions only, for which we don't get solutions easily. So somebody from the group solves that question. But what about those question which we do ask and later on we only get the solution of it. In such a case we have to keep informed the other developers about the solution appeared for the question. And also if we get some small small problems which we solve ourself within 1 - 2 hrs... Please keep informed others also about those problems as well as solutions of it. So every time we will not wait for the solutions to get appeared in the list. It may be ready in the list. regards, Abhijeet Mahalkar. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change this logic into tags
Don't! =:) Put logic in an *Action*, or in this case maybe a business class, and place the result in a JavaBean and use the tags to display the result. (Or put the logic in the JavaBean that the tags can invoke.) If you want to use a MVC architechture, which Struts encourages, the pages are viewed as output only devices. Any real processing takes place in an Action or in a business class invoked by the Action. HTH, Ted. Mohd Fadhly wrote: hello, how do i change this scriptlet logic into struts tag, % ArrayList al = (ArrayList) request.getAttribute(al); if (al != null) { for (int i=0;ial.size()/2;i++) { SystemProfileData spd = (SystemProfileData) al.get(i); if (i==0) int topmsg = spd.getSentCount(); % table border=0 width=100% trtd width=20%%=spd.getName()%/td td table border=0 width=100% cellspacing=0 cellpadding=0 td width=%=topmsg!=0?spd.getSentCount()*80/topmsg:0%%/td td width=%=topmsg!=0?100-(spd.getSentCount()*80/topmsg):0%%%=spd.getSentCount()%/td /table /td /tr/table % } } % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action/Form Design Q
What you can do is make your action forward a redirect in the mapping, so that the browser is told to make a new request to that mapping. Then you can specify the form in your new mapping and struts takes care of it all. You just have to watch out for request parameters - that info will get lost unless you put it in a cookie or a session etc. Adam On 09/19/2003 06:06 PM Michael Thompson wrote: I've hit a stumbling block and I'm not quite sure how to work around it. I've written struts apps in the past and I've taken the approach of putting everything in the ActionForm so that the jsp has a one stop shop for all it's display needs. So where I've hit an issue is when say I have jsp A that is rendered with form A. When user submits data to action A, the ActionForm pushed to execute is form A. What happens when I need to forward from action A to jsp B which is rendered with form B? I need to populate an ActionForm B to send to jsp B, but I don't have one. Is it normal to create a form of a different type in your Action? So essentially the code would look something like: public void execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { FormA inputForm = (FormA)form; Result result = doSomeCrunchingOnDataSubmittedViaFormA(inputForm); FormB outputForm = getInstanceOfFormB(mapping, request); //this would stash in request/session also populateFormBWithResults(outputForm, result); return mapping.findForward(success); } getInstanceOfFormB is a little hazy, but I did notice a method in RequestUtils that might help. Seems like this might be breaking some struts abstractions by knowing what form to create etc. Is this the correct way to approach this or should I think about a redesign of my forms and actions? Thanks in advance! --m - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS Login using LoginAction...
Hi Keith, I'm using JAAS with tomcat and it's not incredibly well supported, if at all. I'm not sure if it's the same as what you are talking about. I am using org.apache.catalina.realm.JAASRealm, configured in my tomcat's server.xml. Since I am using container-managed authentication, there is no need for struts to do anything. Struts only ever receives authenticated requests since tomcat sorts that out before letting any through. Adam On 09/22/2003 05:49 AM Keith Pemberton wrote: I'm having a bit of trouble trying to login to a Database Realm that I have setup with JBoss. What I would like to do is to be able to login to the JAAS SecurityManager using a LoginAction. How is the best way to go about this. I have tried just doing it by calling the LoginContext login method after having passed the LoginModule and CallbackHandler. Do I need to create a specialized ActionServlet to do this? What are all the important things that I should know on how to authenticate users by using a Struts Action class? Thanks in advance for your tips! Keith Pemberton -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:base/ tag
The HTML base tag tells the browser where it should resolve relative URLs from. The struts taglib will create it for you. Alternately you can put html:rewrite around all your relative links. Adam On 09/22/2003 07:50 AM Kalra, Ashwani wrote: hi, I could not understand the use of base tag from the example. Can any one explain ? Regds Ashwani Kalra http://www.geocities.com/ashwani_kalra http://www.geocities.com/ashwani_kalra This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing errors that occur in an Action to the presentation tier
How do you guys pass error information, about an error, to the presentation tier when a call within an action results in an error (either a nonfatal error in the form of a statuscode, or a fatal error in the form of an exception) ? I find the mechanism for sending form validation errors to the presentation tier extremely usefull, i was wondering if there is anything similar for errors that occur within an action ? //Linus Nikander - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Passing errors that occur in an Action to the presentation tier
There is a protected method in Action class Called saveErrors (ActionErrors, HttpServletRequest) So when you detected an error you can create ActionErrors Object and use the method above right before you redirect to The view. As for exceptions: you can declare exceptions handlers In your struts-config.xml. HTH, Alex. -Original Message- From: Linus Nikander [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 7:31 AM To: [EMAIL PROTECTED] Subject: Passing errors that occur in an Action to the presentation tier How do you guys pass error information, about an error, to the presentation tier when a call within an action results in an error (either a nonfatal error in the form of a statuscode, or a fatal error in the form of an exception) ? I find the mechanism for sending form validation errors to the presentation tier extremely usefull, i was wondering if there is anything similar for errors that occur within an action ? //Linus Nikander - [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: Passing errors that occur in an Action to the presentation tier
Solved it myself. myErrors.add(createUser, new ActionError(error.createUser.2)); this.saveErrors(request, myErrors); return (mapping.findForward(failure)); where myErrors is an ActionErrors() object. Works like a charm //Linus Linus Nikander [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do you guys pass error information, about an error, to the presentation tier when a call within an action results in an error (either a nonfatal error in the form of a statuscode, or a fatal error in the form of an exception) ? I find the mechanism for sending form validation errors to the presentation tier extremely usefull, i was wondering if there is anything similar for errors that occur within an action ? //Linus Nikander - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent:Webshpere Admin Concole Problem
I got this error while starting the websphere admin console... Please Suggest how to cure it? Or do i need to reinstall the Websphere Server ? But rest of the Application is working very fine. I can easili work on the Sample applications. what could be the problem javax.servlet.jsp.JspException at com.ibm.ws.console.taglib.common.DetectLocaleTag.doStartTag(DetectLocaleTag.java:129) at org.apache.jsp._error._jspService(_error.java:132) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher thanks Abhijeet mahalkar
Errors...help urgently
Hi Friemds I am using html tag library inside JSP page. When i tried to use form tag for a login form like html:form action=/login --- /html:form then i got following error Error: 500 Location: /mystrutsapp6/login.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460) at login_1._jspService(login_1.java:474) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:479) Root cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506) at login_1._jspService(login_1.java:250) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:479) why this error is coming? please help urgently Regards Mahavir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors...help urgently
check for the mappings either the form bean mapping is missing or the one where you are forwarding to has a form with action that is missing in the config file. Panchasheel -Original Message- From: Mahavir [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 8:40 AM To: [EMAIL PROTECTED] Subject: Errors...help urgently Hi Friemds I am using html tag library inside JSP page. When i tried to use form tag for a login form like html:form action=/login --- /html:form then i got following error Error: 500 Location: /mystrutsapp6/login.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:460) at login_1._jspService(login_1.java:474) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:479) Root cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506) at login_1._jspService(login_1.java:250) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:479) why this error is coming? please help urgently Regards Mahavir - 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: Errors...help urgently
Set the classpath for struts.jar if u r using any application server like weblogic or websphere then put the file in websphere\apppserver\lib dir and also put commons-beanutils in the class path.. this works any thing else let me know... regards Abhijeet Mahalkar Pune - Original Message - From: Mahavir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:10 PM Subject: Errors...help urgently Hi Friemds I am using html tag library inside JSP page. When i tried to use form tag for a login form like html:form action=/login --- /html:form then i got following error Error: 500 Location: /mystrutsapp6/login.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460) at login_1._jspService(login_1.java:474) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:479) Root cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506) at login_1._jspService(login_1.java:250) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:479) why this error is coming? please help urgently Regards Mahavir - 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]
Help Regarding Dynamic AddRow
here is the sample program that i have done for dynamic addrow. but when i submit the form the action form gets resetted and i am not able to retrieve the rows that i have dynamically added. please help me. Thanks in advance ?xml version = '1.0' encoding = 'windows-1252'? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config form-beans form-bean name=addbean type=mypackage1.frmAddRowForm/ /form-beans action-mappings action path=/ActionMap type=mypackage1.AddRowAction name=addbean scope=session forward name=Success path=/AddRow.jsp//action /action-mappings /struts-config //AddRowAction.java package mypackage1; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import mypackage1.frmAddRowForm; public class AddRowAction extends Action { /** * This is the main action called from the Struts framework. * @param mapping The ActionMapping used to select this instance. * @param form The optional ActionForm bean for this request. * @param request The HTTP Request we are processing. * @param response The HTTP Response we are processing. */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { frmAddRowForm af=(frmAddRowForm)form; if(af.getaction().equals(Check)) { String[] aid=af.getaId(); String[] adesc=af.getaDesc(); System.out.println(Total Rows=+af.gettxtRows()); for(int i=0;iaf.getaId().length;i++) System.out.println(aid[i]+ -$$- +adesc[i]); af.setRows(); System.out.println(Total Rows=+af.gettxtRows()); System.out.println(af.getlstBean().size()); af.settxtRows(new Integer( af.getlstBean().size()).toString()); return mapping.findForward(Success); } return mapping.findForward(Success1); } } //frmAddRowForm.java package mypackage1; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionMapping; import javax.servlet.http.HttpServletRequest; import java.util.ArrayList; import java.util.Collection; import mypackage1.AccIdBean; public class frmAddRowForm extends ActionForm { public frmAddRowForm() { lstBean=new ArrayList(); txtRows=0; System.out.println(Add Row Form Constructor Called); } /** * Reset all properties to their default values. * @param mapping The ActionMapping used to select this instance. * @param request The HTTP Request we are processing. */ public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); } /** * Validate all properties to their default values. * @param mapping The ActionMapping used to select this instance. * @param request The HTTP Request we are processing. * @return ActionErrors A list of all errors found. */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { return super.validate(mapping, request); } public String[] getaId() { return this.aId; } public String[] getaDesc() { return this.aDesc; } public String getaction() { return this.action; } public String gettxtRows() { return this.txtRows; }public String getcheck() { return this.check; } public ArrayList getlstBean() { return this.lstBean; } public void setaId(String[] str) { this.aId=str; } public void setaDesc(String[] str) { this.aDesc=str; } public void setaction(String act) { this.action=act; } public void settxtRows(String act) { this.txtRows=act; } public void setcheck(String act) { this.check=act; } public void setlstBean(ArrayList lstArr) { this.lstBean=lstArr; } public void setRows() { final int size = Integer.parseInt(this.txtRows); if(lstBean.size()0) lstBean.clear(); for (int i = 0; i size; i++) { AccIdBean aBean=new AccIdBean(this.aId[i],this.aDesc[i]); lstBean.add(aBean); } } private String[] aId=null; private String[] aDesc=null; private String action=; private String txtRows=; private String check=0; private ArrayList lstBean=null; }
Errors...help urgently
hi panchsheel all the action mappings are correct. when i remove the html:form tag and when i used the simple form tag then the application runs correctly. Mahavir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors...help urgently
html:form action=/login --- /html:form javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection Your mapping in struts-config.xml does probably not match with the on used above (an ending like *.do for filtering the URIs is missing for example...) Regards Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IDE for Struts Examples
Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDE for Struts Examples
WSAD has an extended support for Struts and you can find tutorials (free) in the IBM Redbooks, including code. If that is what you mean. Stephan Martin Gainty wrote: Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - 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]
Struts greaterThen with 2 propertys
hello, i want to compare 2 propertys with struts. is it possible with struts-syntax ? logic:greaterThen ... or i have to use jsp ? Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts greaterThen with 2 propertys
Look here: http://jakarta.apache.org/struts/userGuide/struts-logic.html#greaterThan Here is an example using equal: logic:equal value=aaa parameter=option aaa=aaa br /logic:equal logic:notEqual value=aaa parameter=option aaa!=aaa br /logic:notEqual hr % String option = request.getParameter(option); if (option == null) { out.println(JSP:aaa=null);} else if (option.equals(aaa)) { out.println(JSP:aaa=aaa);} else { out.println(JSP:aaa!=aaa);} % [EMAIL PROTECTED] wrote: hello, i want to compare 2 propertys with struts. is it possible with struts-syntax ? logic:greaterThen ... or i have to use jsp ? Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications - 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 Design Question
On 09/21/2003 09:02:43 PM Robert Taylor wrote: H. Well, yes, you could call this chaining to some degree. But I think its necessary chaining or even (dare I say it?) good chaining :) IMHO the following is a good design pattern: SetupPageAAction == PageA == ProcessPageAAction == SetupPageBAction == PageB == ProcessPageBAction Agreed. I use this throughout my application and it works well. The only coupling here is that SetupPageBAction needs to know that the data needed to populate the form used for PageB is found in some scope (request, session, or application) under a name. The only reason to do this is to prevent from having to manually create the form needed for PageB in ProcessPageAction. Yes, there is some loose coupling but the cohesion is tighter within actions and as we discussed before, we allow Struts to do it is allowed to manage the action form life cycle. So, the bottom line is that somewhere you have to prepare PageB for display. Should you do it in ProcessPageAction or should you place the data in request scope and pass it along to an action dedicated to preparing PageB? Setting up PageB from SetupPageBAction (instead of within ProcessPageAAction) allows you to reuse the Setup/Page/Process for B from elsewhere in your application, not just after PageA has completed. I tend to keep these Setup/Page/Process units distinct for my pages so that they can be called from various places in the web app ... menu options, page links, and page forwards ... as is often a requirement for my application. Susan Bradeen I think when you here others speak of chaing as bad, they mean using actions as business components and trying to use (or reuse) them in a sequence. This type of logic or use of objects should be reserved for the business tier and not the presentation tier. robert -Original Message- From: Michael Thompson [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 5:43 PM To: Struts Users Mailing List Subject: Re: Action Form Design Question Thanks Robert! I agree on letting struts do it's job where available, that's why I thought my code snippet below was a little goofy. My only question about your suggestions is in solution 2 you mention having a second action. You're not suggesting action chaining are you? If not, how do you hook into second action the struts way? Or would this be one place where action chaining is accepted? Thanks again! --m Robert Taylor wrote: I would say the solution depends on the process. If the process of going from pageA to pageB to ... pageN, is a wizard style process then you might think of placing all your data in the same form and putting the form in session scope. If you don't want to put your form in session scope AND the data you capture along the way can be stored in hidden fields, then you could also use a single form placed in request scope. If the process is somewhat disjoint and you have separate forms, then is the data to be rendered in pageB unique to the user? Is it static data? If so, place that data in ServletContext and make it available to all users and you don't need a set up action for pageB. If the data IS unique to the user AND you have separate forms then in this situation, I would still let Struts perform the form creation. -Soluation 1: Place the data retrieved from processing pageA in request scope and forward to the page and tell the particular html component to look for the data in the request under some defined name. -Solution 2: Insert and additional preparation action in between the action processing pageA and pageB; call it ShowPageB or something of the sort. ShowPageB action would access the data out of request scope and populate the form defined for pageB and forward to pageB. There are so many ways to approach this solution. It's subjective to the complexity of the process. I wouldn't stress over the fact of having to place data in the request scope temporarily. What I would stress is let Struts do its job where possible - like creating action forms. robert -Original Message- From: Michael Thompson [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 11:09 AM To: Struts Users Mailing List Subject: Re: Action Form Design Question // /// //I've been having issues with posting to this list, so I apologize if this is a repost. // /// That hits on some points, I did read that thread earlier this week(I'll even read it again), and I'm starting to agree on not shoving everything in the ActionForm, but I don't recall it hitting on
Access propertys within an iterate with jsp
hello, how can i access propertys within a struts logic:iterate with jsp ? logic:iterate id=tempObjekt name=name property=collection //Standard: bean:write name=tempObjekt property=theName/ //i want it this way: % out.println(tempObjekt.gettheName(); % //but it doesnt work /logic:iterate Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications GRASS GmbH Programme für Menschen - IT - Consulting - MES - Development - Web - Applications Bad Kreuznach Kreuzstraße 24, 55543 Bad Kreuznach München Franz-Joseph-Straße 18, 80801 München Magdeburg Allee-Center Ernst-Reuter-Allee 5, 39104 Magdeburg Telefon und Fax gebührenfrei 0800 GRASSGMBH oder 0800 4727746 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?open new browser window after struts action
Hello everybody, I have a search page with a few fields and two buttons : search, clear Search is supposed to query for some data in the database. Clear to reset all form fields to . How can I do the following: 1. If user presses search - SearchAction gets results from search - open popup window - display search results in the popup window. 2. If user presses clear - clear form fields - redisplay the search page. I have a problem figuring out how to open a popup just after SearchAction completes... Thanks a lot, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validWhen
Has validWhen been released yet?? Does anyone know? Thanks for the information, Natalie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet size issue in struts
Hi, Please help me solve out this particular problem.. When I call my particular jsp , server returns the error given below I found that if i split my jsp into two jsp's the page runs well without any error. Kindly tell me the alternate and the correct way of solving this problem Thanks Regards -Arpit server returns : - java.lang.VerifyError: (class: com/pramati/jsp/generated/pages_AssetLoan_pmt_0, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet(PramatiServle tFactory.java:220) at com.pramati.web.servlet.core.PramatiServletFactory.getServlet(PramatiServlet Factory.java:317) at com.pramati.web.servlet.core.PramatiRequestDispatcher.include(PramatiRequest Dispatcher.java:188) at com.pramati.jsp.runtime.PageContextImpl.include(PageContextImpl.java:229) at com.pramati.jsp.generated.pages_DetailAssetLoan_pmt_0._jspService(pages_Deta ilAssetLoan_pmt_0.java:1494) at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward(PramatiRequest Dispatcher.java:112) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 58) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:451) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run(ServiceInt erceptor.java:294) at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:14 5) at java.lang.reflect.Method.invoke(Native Method) at com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:13 0) at com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceIntercepto r.java:141) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:47) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.FilterInterceptor.process(FilterInterceptor.jav a:92) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultPro cessContainer.java:88) at com.pramati.web.core.WorkerThread.run(WorkerThread.java:54) at com.pramati.web.core.AcceptorThread.run(AcceptorThread.java:121) Unhandled Error/ exception thrown from service method of org.apache.struts.action.ActionServlet. Error is: (class: com/pramati/jsp/generated/pages_AssetLoan_pmt_0, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Lightweight helper libraries for reporting?
At 14:43 +0800 9/22/03, Mohd Amin Mohd Din wrote: Maybe you could use http://jasperreports.sourceforge.net/ Ah, I think you missed my first post. My users have almost infinite flexibility both in entering search criteria as well as with what data fields are displayed in the resulting output. I don't see how to do that with JasperReports. If I were a power user, maybe I could figure out some way to do all of that at runtime, but JasperReports looks to me like its designed mostly for running statically defined reports. I know you can pass in some parameters and such, but my case seems like it's out of line with what JasperReports is designed to do. It does look promising for its target cases, and I plan to give it a closer look when I have a project that is a better fit... Joe -- -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com If nature worked that way, the universe would crash all the time. --Jaron Lanier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAAS Login using LoginAction...
http://www.theserverside.com/resources/article.jsp?l=JAAS -Original Message- From: Keith Pemberton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 11:50 PM To: [EMAIL PROTECTED] Subject: JAAS Login using LoginAction... I'm having a bit of trouble trying to login to a Database Realm that I have setup with JBoss. What I would like to do is to be able to login to the JAAS SecurityManager using a LoginAction. How is the best way to go about this. I have tried just doing it by calling the LoginContext login method after having passed the LoginModule and CallbackHandler. Do I need to create a specialized ActionServlet to do this? What are all the important things that I should know on how to authenticate users by using a Struts Action class? Thanks in advance for your tips! Keith Pemberton -- Keith Pemberton [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]
Strange File Uploading behaviour in recompiled 1.0.2
Hi All We are working on internationalization of an application, which uses Struts 1.0.2, with jdk1.4.1 and Servlet 2.3 on JBoss/Jetty. In order to specify a encoding in URL, we modified the struts code to use URLEncoder.encode( s, UTF-8) and recompiled it to create a struts.jar file. Everything worked fine, except that now we are experiencing a problem in file uploads.What is happening is that the file gets uploaded correctly and everything seems to work fine on the server, but the request never completes. What i mean is that the browser keeps on waiting for something , and the onLoad method in the result jsp is never called. If i close the browser, Jetty throws the following warning [WARN,Jetty] WARNING: POST /exponline/projectrestore.do HTTP/1.1 HttpException(400,Bad Request,Missing Content) The strange thing, is that the same code works with the struts.jar (1.0.2), that we downloaded from apache. Even if i undo my changes for URLEncoder and recompile struts, i still see this problem. Whats puzzling me is that, the fact that we are recompiling struts is breaking file uploads. Can anybody point me in the right direction. Is is possible that the source code i downloaded was not the stable 1.0.2 source I used the following link http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/ Thanks in advance - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
problem with String[]
In the dynaActionForm i have specified paidAmount as String[]. In jsp, html:text indexed=true name=transactionVO property=paidAmount / is used. The html:text is in an logic:iterate/logic:iterate loop. Somehow the data doesn't want to move to the dynaactionform. What is the best way to do this? Thanks in advance Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with String[]
Something to note, i have also html:text indexed=true name=transactionVO property=transactionId / in the logic:iterate/logic:iterate loop In the dynaActionForm i have specified paidAmount as String[]. In jsp, html:text indexed=true name=transactionVO property=paidAmount / is used. The html:text is in an logic:iterate/logic:iterate loop. Somehow the data doesn't want to move to the dynaactionform. What is the best way to do this? Thanks in advance Amin - 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: Access propertys within an iterate with jsp
Try to specify the type in logic:iterate to class of tempObjekt... example: logic:iterate id=tempObjekt name=name property=collection type=yourpackage.TempObjektClass /logic:iterate -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 22 de Setembro de 2003 14:34 To: Struts-User Subject: Access propertys within an iterate with jsp hello, how can i access propertys within a struts logic:iterate with jsp ? logic:iterate id=tempObjekt name=name property=collection //Standard: bean:write name=tempObjekt property=theName/ //i want it this way: % out.println(tempObjekt.gettheName(); % //but it doesnt work /logic:iterate Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications GRASS GmbH Programme für Menschen - IT - Consulting - MES - Development - Web - Applications Bad Kreuznach Kreuzstraße 24, 55543 Bad Kreuznach München Franz-Joseph-Straße 18, 80801 München Magdeburg Allee-Center Ernst-Reuter-Allee 5, 39104 Magdeburg Telefon und Fax gebührenfrei 0800 GRASSGMBH oder 0800 4727746 - 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]
Can't uncheck multibox
Can anyone help??? I have the following multibox in a dyanValidatorForm: logic:iterate id=defectsList name=reviewRecordForm property=defectsList indexId=i html:multibox property=actionItemIndicator bean:write name=defectsList property=defectId/ /html:multibox /logic:iterate I am having trouble unchecking the checkboxes. Everytime I uncheck a checkbox, hit submit, when the screen comes back the checkbox is still checked. When I extract, the form data from this property, the form still indicates that the checkbox is checked even though I unchecked it in the form How do I uncheck a box once it has been unchecked by the user??? Thanks in advance, Natalie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet size issue in struts
Visual age has a JSP debigger which has some restrictions..Ie it can take only upto 64kb size jsp.We had lot of trouble with that and when we moved to WSAD things are fine.. -Original Message- From: Tarun Dewan [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:03 AM To: Struts Users Mailing List Subject: servlet size issue in struts Hi, Please help me solve out this particular problem.. When I call my particular jsp , server returns the error given below I found that if i split my jsp into two jsp's the page runs well without any error. Kindly tell me the alternate and the correct way of solving this problem Thanks Regards -Arpit server returns : - java.lang.VerifyError: (class: com/pramati/jsp/generated/pages_AssetLoan_pmt_0, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet(PramatiServle tFactory.java:220) at com.pramati.web.servlet.core.PramatiServletFactory.getServlet(PramatiServlet Factory.java:317) at com.pramati.web.servlet.core.PramatiRequestDispatcher.include(PramatiRequest Dispatcher.java:188) at com.pramati.jsp.runtime.PageContextImpl.include(PageContextImpl.java:229) at com.pramati.jsp.generated.pages_DetailAssetLoan_pmt_0._jspService(pages_Deta ilAssetLoan_pmt_0.java:1494) at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward(PramatiRequest Dispatcher.java:112) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 58) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:451) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run(ServiceInt erceptor.java:294) at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:14 5) at java.lang.reflect.Method.invoke(Native Method) at com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:13 0) at com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceIntercepto r.java:141) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:47) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.FilterInterceptor.process(FilterInterceptor.jav a:92) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultPro cessContainer.java:88) at com.pramati.web.core.WorkerThread.run(WorkerThread.java:54) at com.pramati.web.core.AcceptorThread.run(AcceptorThread.java:121) Unhandled Error/ exception thrown from service method of org.apache.struts.action.ActionServlet. Error is: (class: com/pramati/jsp/generated/pages_AssetLoan_pmt_0, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi Form Tutorial
Hi list, I wrote a little example on how to handle the filling of a bean divided over several pages. Early draft version. Comments are welcome. http://rzserv2.fhnon.de/~lg002556/struts/ Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles feature required - Struts friendly exception handling.
Richard Tomlinson wrote: I don't use tiles but this does sound like a bug. If your aren't looking at the nightly Struts 1.2 source code grab a copy from CVS http://jakarta.apache.org/site/cvsindex.html or the nightly build http://cvs.apache.org/builds/jakarta-struts/nightly/src/. Wait another day or so for responses then file a Bugilla bug report. [Some of us here in the U.S .lost power for a few days, and are just now getting back on line, and it may take a few days to get caught up on e-mail.] Delving into the Tiles source has revealed that its not Struts friendly when it comes to dealing with exceptions. In a Struts environment you ideally want to specify a global error handler so that any exception, be it Struts, JSP or application, is gracefully handled and the user is presented with the usual 'Sorry, an error has occured'. However, when using Tiles this functionality doesnt seem possible. Within the InsertTag class, doEndTag() method, all Exceptions are caught and reported by squirting a message out to the JSP writer. This prevents any handling by the Struts framework and results in a nasty, user unfriendly message appearing within the page. Has anyone addressed this problem? Is there a fix in the pipeline for Tiles so that the error handling can be either internal to Tiles or bubbled out to the encompassing framework? Regards Richard. - 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]
page size
hi all, I've a jsp which size is about 110 kbyte. It' taking about 20 second to be displayed some times. Is there a way to reduce the displayig time ? The only way we know is to reduce the page's size. But in our case, we can't reduce it anymore. any help would be greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: Tiles excessive memory usage
Hi All, Just now I went through the mail-list Tiles excessive memory usage on the struts mail archive. What I could get from that mail list is, there is some excessive memory usage problem with the tiles. Can anybody tell me whether the problem discussed in that mail list is solved in the struts 1.1 ? I am pasting the mail list from the mail archive for your reference. If that problem is not solved, can anybody tell me what is the exact solution of that problem? I am using struts 1.1 in my application. I've reopened this bug recently since it was scheduled for fix in Struts 1.2, please add your comments and suggestions (or votes ;-) ): http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18237 Cheers, Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page size
You can apply a filter to compress ur output. [EMAIL PROTECTED] wrote: hi all, I've a jsp which size is about 110 kbyte. It' taking about 20 second to be displayed some times. Is there a way to reduce the displayig time ? The only way we know is to reduce the page's size. But in our case, we can't reduce it anymore. any help would be greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: page size
Meissa, What kind of information is in your page that makes it so large? Are you using cascading style sheets? If not, using one may help you reduce the size of your page by moving repeating html formatting attributes to a separate file. If a lot of your size is from repeating html tags, you also could send the page data as data to JavaScript functions that would then generate the HTML for the page. Another thing some people do is to compress the response and have the browser decompress it. I think you need to examine the user interface to see if it is really necessary to have a page that large. Do your users access the site over a high-speed connection/corporate network or do they access from dialup connections? Rgds, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 8:33 AM To: [EMAIL PROTECTED] Subject: page size hi all, I've a jsp which size is about 110 kbyte. It' taking about 20 second to be displayed some times. Is there a way to reduce the displayig time ? The only way we know is to reduce the page's size. But in our case, we can't reduce it anymore. any help would be greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles feature required - Struts friendly exception handling.
The InsertTag exception handling issue has been fixed for 1.2. David --- Robert Leland [EMAIL PROTECTED] wrote: Richard Tomlinson wrote: I don't use tiles but this does sound like a bug. If your aren't looking at the nightly Struts 1.2 source code grab a copy from CVS http://jakarta.apache.org/site/cvsindex.html or the nightly build http://cvs.apache.org/builds/jakarta-struts/nightly/src/. Wait another day or so for responses then file a Bugilla bug report. [Some of us here in the U.S .lost power for a few days, and are just now getting back on line, and it may take a few days to get caught up on e-mail.] Delving into the Tiles source has revealed that its not Struts friendly when it comes to dealing with exceptions. In a Struts environment you ideally want to specify a global error handler so that any exception, be it Struts, JSP or application, is gracefully handled and the user is presented with the usual 'Sorry, an error has occured'. However, when using Tiles this functionality doesnt seem possible. Within the InsertTag class, doEndTag() method, all Exceptions are caught and reported by squirting a message out to the JSP writer. This prevents any handling by the Struts framework and results in a nasty, user unfriendly message appearing within the page. Has anyone addressed this problem? Is there a fix in the pipeline for Tiles so that the error handling can be either internal to Tiles or bubbled out to the encompassing framework? Regards Richard. - 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!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read the messages specified in properties files
Hello, how can i read the messages that i have specified in my .properties files ? usualy i use it with bean:message or in actionclasses with errors.add(). is there a function like this: String key = my.messages.helloworld; String message = objekt.getActionMessage(key); thnx anyway Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDE for Struts Examples
The standard Struts-example.war file is shipped with JDeveloper 10g, You can create a project from the supplied War file using: 1) File-New from the Menu or context menu, 2) Select General-Projects in the Categories pane 3) Project from WAR file in the Items pane 4) To view the visual pageflow editor drill down through Web Content /WEB_INF to find the struts-config.xml and choose Edit page flow from the context menu. Regards Duncan Mills - Original Message - From: Martin Gainty To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:12 PM Subject: IDE for Struts Examples Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles excessive memory usage
I've reopened this bug recently since it was scheduled for fix in Struts 1.2, please add your comments and suggestions (or votes ;-) ): http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18237 It's not scheduled for a fix in 1.2, only for further review. It appears that it would require a rewrite of Tiles to fix the problem. I'm not opposed to such a rewrite but I don't have the time nor inclination to do it myself. This isn't likely to get fixed without an approved method of fixing it and a volunteer to do the work. David Cheers, Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ?open new browser window after struts action
No problem. You can have the URL that you pass to the window.open be a struts action that does the search, if you can arrange for the search criteria to be in session or passed as parameters to the URL. If you are on the search criteria page and you must submit that to get the search criteria, then you can have your submit action forward back to the search page and have the search page contain some conditional java script in the body onload= ... that open the window (which will do the search) and show the results. Regards, Rich -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:34 AM To: Struts Users Mailing List Subject: ?open new browser window after struts action Hello everybody, I have a search page with a few fields and two buttons : search, clear Search is supposed to query for some data in the database. Clear to reset all form fields to . How can I do the following: 1. If user presses search - SearchAction gets results from search - open popup window - display search results in the popup window. 2. If user presses clear - clear form fields - redisplay the search page. I have a problem figuring out how to open a popup just after SearchAction completes... Thanks a lot, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New Concept.
huh? -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:04 AM To: Struts Users Mailing List Subject: New Concept. Hi All , A Small Request... We always ask those questions only, for which we don't get solutions easily. So somebody from the group solves that question. But what about those question which we do ask and later on we only get the solution of it. In such a case we have to keep informed the other developers about the solution appeared for the question. And also if we get some small small problems which we solve ourself within 1 - 2 hrs... Please keep informed others also about those problems as well as solutions of it. So every time we will not wait for the solutions to get appeared in the list. It may be ready in the list. regards, Abhijeet Mahalkar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAAS Login using LoginAction...
I don't think that the things in this article work. For one thing, they are using an auth.conf file and now everything for login module configuration is stored in the login-config.xml file. Anyway, tried the ideas from this website using JBoss 3.2.1 and Struts 1.1? Keith On Mon, 2003-09-22 at 09:05, Parmar, Dipakkumar wrote: http://www.theserverside.com/resources/article.jsp?l=JAAS -Original Message- From: Keith Pemberton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 11:50 PM To: [EMAIL PROTECTED] Subject: JAAS Login using LoginAction... I'm having a bit of trouble trying to login to a Database Realm that I have setup with JBoss. What I would like to do is to be able to login to the JAAS SecurityManager using a LoginAction. How is the best way to go about this. I have tried just doing it by calling the LoginContext login method after having passed the LoginModule and CallbackHandler. Do I need to create a specialized ActionServlet to do this? What are all the important things that I should know on how to authenticate users by using a Struts Action class? Thanks in advance for your tips! Keith Pemberton -- Keith Pemberton [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Concept.
Come on Mark it's Monday ! Give him / her a break. Not a bad request really ... if you work on some Struts related problem for more than an hour and you think the list would benefit from how you solved your problem - it wouldn't hurt to take a couple of minutes and document the problem and solution and post it back to the list - mainly helpful for newcomers to Struts one thinks - maybe helpful to all depending on the problem - and maybe a new take on the solution. Just my $0.02 ! Later Mike - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 10:16 AM Subject: RE: New Concept. huh? -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:04 AM To: Struts Users Mailing List Subject: New Concept. Hi All , A Small Request... We always ask those questions only, for which we don't get solutions easily. So somebody from the group solves that question. But what about those question which we do ask and later on we only get the solution of it. In such a case we have to keep informed the other developers about the solution appeared for the question. And also if we get some small small problems which we solve ourself within 1 - 2 hrs... Please keep informed others also about those problems as well as solutions of it. So every time we will not wait for the solutions to get appeared in the list. It may be ready in the list. regards, Abhijeet Mahalkar. - 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]
(OT) Multiple domain single webapp how?
Hi All, How can I make a single webapp (Struts site) serve multiple hosts (domain names)? Is it possible? How do I configure Apache and Tomcat? / h e n r i k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What does M constitutes in MVC-2
Hi, What are the different ways to represent Model in Struts? Does model constitutes Business Logic apart from underlying Data? What are the various methods of representing model, using which, I can leverage the features like transactional, distributable..blah blah blah features of a good db app...using model M in struts...i will be happy if i dont go for EJB or JDO...can anybody give me a prototype Thanks Regards, Ch.V.J. Kumar |Associate Consultant | iGATE Global Solutions Limited | Office: 5521701 xtn 3031 | 9886219429| [EMAIL PROTECTED] | lane #1,Off Sarjapur Road, Jakkasandra, Koramangala, Banglore | Website: www.igate.com -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 4:56 PM To: Struts Users Mailing List Subject: Re: html:base/ tag The HTML base tag tells the browser where it should resolve relative URLs from. The struts taglib will create it for you. Alternately you can put html:rewrite around all your relative links. Adam On 09/22/2003 07:50 AM Kalra, Ashwani wrote: hi, I could not understand the use of base tag from the example. Can any one explain ? Regds Ashwani Kalra http://www.geocities.com/ashwani_kalra http://www.geocities.com/ashwani_kalra This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to iGATE Global Solutions Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED] Before opening attachments, please scan for viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New Concept.
I was serious! I reread the post 4 times and could not tell what the msg was until I read Ted's reply, then read it again, and I'm still not sure. On the other hand, I have advocated your position before. Mark -Original Message- From: Mike Deegan [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:43 PM To: Struts Users Mailing List Subject: Re: New Concept. Come on Mark it's Monday ! Give him / her a break. Not a bad request really ... if you work on some Struts related problem for more than an hour and you think the list would benefit from how you solved your problem - it wouldn't hurt to take a couple of minutes and document the problem and solution and post it back to the list - mainly helpful for newcomers to Struts one thinks - maybe helpful to all depending on the problem - and maybe a new take on the solution. Just my $0.02 ! Later Mike - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 10:16 AM Subject: RE: New Concept. huh? -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:04 AM To: Struts Users Mailing List Subject: New Concept. Hi All , A Small Request... We always ask those questions only, for which we don't get solutions easily. So somebody from the group solves that question. But what about those question which we do ask and later on we only get the solution of it. In such a case we have to keep informed the other developers about the solution appeared for the question. And also if we get some small small problems which we solve ourself within 1 - 2 hrs... Please keep informed others also about those problems as well as solutions of it. So every time we will not wait for the solutions to get appeared in the list. It may be ready in the list. regards, Abhijeet Mahalkar. - 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: What's an ActionForm? - best practice?
Hello All, I just want to confirm what seems to be alluded to in some of the documentation regarding ActionForms. Is it appropriate or recommended to have properties in an ActionForm that are not to be taken from the request? For instance, I'm using my ActionForm to carry data from the Action back to the JSP. These data originated in the business object, not the request, and are held in beans themselves. I'm assuming that this is a better strategy than simply putting the business object-supplied beans into the request or session scopes. Thanks for the advice! -- john Ted Husted wrote: When discussing patterns, like View Helper and Context, it's important to remember that these are *patterns* not architectural elements. In an implementation, a class will often use several patterns. An ActionForm is both a Context and a View Helper. It's a Context when the Request Processor passes it to the Action, and a View Helper when the ActionServlet passes it back to the Server Page. From a Core J2EE Patterns Catalog perspective, Struts is most like a Service to Worker. It combines several simpler patterns, like Front Controller, Application Controller, and View Helper. But in each case, more than one class is used to fulfill each of these roles. The ActionServlet and Request Processor serve as the Front Controller, the ActionMappings and Actions comprise an Application Controller, and the ActionForm and Server Page (with any associated taglibs or tools) act as the View Helper. An ActionForm may represent *input* that a business object requires, but an ActionForm is not itself a business object. As it stands, Actions and ActionForms are coupled to Struts and the web layer and should not thought of as proper business classes. For more about ActionForms generally, see http://jakarta.apache.org/struts/faqs/newbie.html#actionForms and http://jakarta.apache.org/struts/userGuide/building_controller.html#action_form_classes -Ted. Yansheng Lin wrote: In J2EE pattern catalog, where does an ActionForm Bean fit in? I thought it was a Business Object, but then what is a view helper and a context object? A decorator? Thanks! -- = John Cartwright Associate Scientist Geospatial Data Services Group CIRES, National Geophysical Data Center/NOAA (303) 497-6284 [EMAIL PROTECTED] = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What's an ActionForm? - best practice?
This issue was discussed in two different threads last week: http://www.mail-archive.com/[EMAIL PROTECTED]/msg81101.html and also in a post called action form design question which i am having trouble bringing up b/c of the very generic subject line ;) Matt - Original Message - From: John C Cartwright [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:12 PM Subject: Re: What's an ActionForm? - best practice? Hello All, I just want to confirm what seems to be alluded to in some of the documentation regarding ActionForms. Is it appropriate or recommended to have properties in an ActionForm that are not to be taken from the request? For instance, I'm using my ActionForm to carry data from the Action back to the JSP. These data originated in the business object, not the request, and are held in beans themselves. I'm assuming that this is a better strategy than simply putting the business object-supplied beans into the request or session scopes. Thanks for the advice! -- john Ted Husted wrote: When discussing patterns, like View Helper and Context, it's important to remember that these are *patterns* not architectural elements. In an implementation, a class will often use several patterns. An ActionForm is both a Context and a View Helper. It's a Context when the Request Processor passes it to the Action, and a View Helper when the ActionServlet passes it back to the Server Page. From a Core J2EE Patterns Catalog perspective, Struts is most like a Service to Worker. It combines several simpler patterns, like Front Controller, Application Controller, and View Helper. But in each case, more than one class is used to fulfill each of these roles. The ActionServlet and Request Processor serve as the Front Controller, the ActionMappings and Actions comprise an Application Controller, and the ActionForm and Server Page (with any associated taglibs or tools) act as the View Helper. An ActionForm may represent *input* that a business object requires, but an ActionForm is not itself a business object. As it stands, Actions and ActionForms are coupled to Struts and the web layer and should not thought of as proper business classes. For more about ActionForms generally, see http://jakarta.apache.org/struts/faqs/newbie.html#actionForms and http://jakarta.apache.org/struts/userGuide/building_controller.html#action_form_classes -Ted. Yansheng Lin wrote: In J2EE pattern catalog, where does an ActionForm Bean fit in? I thought it was a Business Object, but then what is a view helper and a context object? A decorator? Thanks! -- = John Cartwright Associate Scientist Geospatial Data Services Group CIRES, National Geophysical Data Center/NOAA (303) 497-6284 [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: IDE for Struts Examples
My struts-example.war has 1 index.jsp that has nothing in it.. Drilling down to struts-config.xml shows No indication of Edit Page flow I think my war file is hammered.. Any ideas where to pickup a viable struts war? Thanks, -Martin - Original Message - From: Duncan Mills [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:47 AM Subject: Re: IDE for Struts Examples The standard Struts-example.war file is shipped with JDeveloper 10g, You can create a project from the supplied War file using: 1) File-New from the Menu or context menu, 2) Select General-Projects in the Categories pane 3) Project from WAR file in the Items pane 4) To view the visual pageflow editor drill down through Web Content /WEB_INF to find the struts-config.xml and choose Edit page flow from the context menu. Regards Duncan Mills - Original Message - From: Martin Gainty To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:12 PM Subject: IDE for Struts Examples Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - 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: JAAS Login using LoginAction...
Anyway, tried the ideas from this website using JBoss 3.2.1 and Struts 1.1? There's nothing specific to Struts you need concern yourself with. The only thing that's struts related is how you get your login information. I've used one of 2 methods: 1. Used a login.jsp, with username and password. LoginAction and LoginForm or 2. No login form. Use Servlet Filter to see if there's a UserView in the session. If not, redirect to a login screen (see #1 above). Now, the details are more specific to JBoss than Struts, and is really beyond the scope of this mailling list. But.. Here's what I suggest: LoginContext loginContext = new LoginContext(client-login, (CallbackHandler)handler); loginContext.login(); Make sure you have client-login defined in your login-config.xml, and its using the org.jboss.security.ClientLoginModule. Your application must define the authentication policy that contains your DatabaseLoginModule. Contact me offlist if you have any other questions. Or better yet, visit the JBoss forums. -- Bryce Fischer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDE for Struts Examples
You can take it from this URL: http://forum.exadel.com/viewtopic.php?t=120 Martin Gainty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My struts-example.war has 1 index.jsp that has nothing in it.. Drilling down to struts-config.xml shows No indication of Edit Page flow I think my war file is hammered.. Any ideas where to pickup a viable struts war? Thanks, -Martin - Original Message - From: Duncan Mills [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:47 AM Subject: Re: IDE for Struts Examples The standard Struts-example.war file is shipped with JDeveloper 10g, You can create a project from the supplied War file using: 1) File-New from the Menu or context menu, 2) Select General-Projects in the Categories pane 3) Project from WAR file in the Items pane 4) To view the visual pageflow editor drill down through Web Content /WEB_INF to find the struts-config.xml and choose Edit page flow from the context menu. Regards Duncan Mills - Original Message - From: Martin Gainty To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:12 PM Subject: IDE for Struts Examples Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - 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]
What Could Lead To NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource?
Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource Here is the log: description: The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 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.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1079) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
What Could Lead To NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource?
Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource Here is the log: description: The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 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.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1079) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
What Could Lead To NoClassDefFound Error?
Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource Here is the log: description: The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 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.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1079) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
RE: What Could Lead To NoClassDefFound Error?
99 times out of 100 this is due to a classpath issue, usually due to a misplaced or nonexistant jar file. I don't believe the legacy components are included in the Struts 1.1 jar, so if you're using that stuff you'll need to get it separately: http://archive.apache.org/dist/jakarta/struts/struts-legacy/ HTH, -= J -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:21 PM To: [EMAIL PROTECTED] Subject: What Could Lead To NoClassDefFound Error? Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Could Lead To NoClassDefFound Error?
Do you have struts-legacy.jar in your classpath? On Mon, 2003-09-22 at 15:21, Caroline Jen wrote: Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource Here is the log: description: The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 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.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1079) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at
Struts reusable jsp design question?
Warning I am new to Struts, so I appoligize if this has been addressed before, however I have not found a discussion on this. I want to create a jsp that is reusable from several jsps, for this discussion I will call it Resuable.jsp. Here is the problem I am trying to solve. CallerOne.jsp requires 3 pieces of data(key1, key2, key3), so I have CallerOnePreparePageAction that prepares the data for the jsp. CallerOne.jsp calls ResuablePreparePageAction passing in the data needed by Reusable.jsp. Reusable.jsp call ReusableAction to perform its task. If successful ReusableAction needs to return to who ever called it and needs to pass back the required pieces of data needed by the caller, in this case (key1, key2, key3). I want this to work if CallerTwo.jsp that requires, 4 different pieces of information calls Reusable.jsp as well. Some ideas: I could require that the return action, and a list of return fields be specified, but that would seem to require building hidden fields on the Reusable.jsp and building a dynamic forward in ReusableAction. I could put the caller's form bean in session scope, and pass in the return action, but what about multiple browser windows being opened on the caller? Is there a Struts best practices approach to this problem? thanks in advance, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDE for Struts Examples
Also find that under 10g Projects and Web Tier disappear from the File/New/General Menu.. The majority of examples in OTN for Struts are geared towards 9 and I am having great difficulty creating these projects in 10g.. Is there updated doc for 10g for Struts? Thanks, Martin - Original Message - From: Duncan Mills [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:47 AM Subject: Re: IDE for Struts Examples The standard Struts-example.war file is shipped with JDeveloper 10g, You can create a project from the supplied War file using: 1) File-New from the Menu or context menu, 2) Select General-Projects in the Categories pane 3) Project from WAR file in the Items pane 4) To view the visual pageflow editor drill down through Web Content /WEB_INF to find the struts-config.xml and choose Edit page flow from the context menu. Regards Duncan Mills - Original Message - From: Martin Gainty To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:12 PM Subject: IDE for Struts Examples Hello I am seeking a suitable IDE to use to build and deploy Struts examples. Oracle JDeveloper 10 does not have Struts examples. Does WSAD have build and deploy support for Struts Examples? Many Thanks, Martin Gainty - 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: Struts reusable jsp design question?
Have you looked at Tiles? -Original Message- From: Bob Jensen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 3:49 PM To: [EMAIL PROTECTED] Subject: Struts reusable jsp design question? Warning I am new to Struts, so I appoligize if this has been addressed before, however I have not found a discussion on this. I want to create a jsp that is reusable from several jsps, for this discussion I will call it Resuable.jsp. Here is the problem I am trying to solve. CallerOne.jsp requires 3 pieces of data(key1, key2, key3), so I have CallerOnePreparePageAction that prepares the data for the jsp. CallerOne.jsp calls ResuablePreparePageAction passing in the data needed by Reusable.jsp. Reusable.jsp call ReusableAction to perform its task. If successful ReusableAction needs to return to who ever called it and needs to pass back the required pieces of data needed by the caller, in this case (key1, key2, key3). I want this to work if CallerTwo.jsp that requires, 4 different pieces of information calls Reusable.jsp as well. Some ideas: I could require that the return action, and a list of return fields be specified, but that would seem to require building hidden fields on the Reusable.jsp and building a dynamic forward in ReusableAction. I could put the caller's form bean in session scope, and pass in the return action, but what about multiple browser windows being opened on the caller? Is there a Struts best practices approach to this problem? thanks in advance, Bob - 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: What Could Lead To NoClassDefFound Error?
James and Nate, thank you very much. My application works now after I placed the struts-legacy.jar in the ContextRoot/WEB-INF/lib directory. -Caroline --- James Childers [EMAIL PROTECTED] wrote: 99 times out of 100 this is due to a classpath issue, usually due to a misplaced or nonexistant jar file. I don't believe the legacy components are included in the Struts 1.1 jar, so if you're using that stuff you'll need to get it separately: http://archive.apache.org/dist/jakarta/struts/struts-legacy/ HTH, -= J -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 2:21 PM To: [EMAIL PROTECTED] Subject: What Could Lead To NoClassDefFound Error? Your help is greatly appreciated: what could lead to NoClassDefFound Error: org/apache/struts/legacy/GenericDataSource? the error message is HTTP Status 500. The root cause is: java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changes for Nightly builds
Hello, Trying to upgrade from struts 1.1Final to nightly build. I'm getting the following error for html:form action=Login.do name=loginForm type=com.childrencare.LoginForm Attribute name invalid according to the specified TLD If I remove the name and type tags form appears to work. Question I have is what do I reference for changes in the nightly build as related to form tags. I checked the TLD and do find a name definition Where do I get the newer required form tags? Thanks, Barry
[SCAFFOLD] Elegant way to expose more than one object using Proc essAction
Hi, When using the Scaffold ProcessAction, a data-bean is instantiated by the framework and it's execute() method is called, returning a ProcessResult object to the view layer. The ProcessResult object may contain a single object or a collection (of values or objects). Suppose I want to return to the view layer a collection of some sort AND a single object which has nothing to do with that collection. In order to do that, what I do now is to create another helper collection in which I store both the single object\s and the collection I wish to send to the view layer. Then I return this helper collection as a ProcessResult object to the view layer, where I have to extract back both the collection and the single object as separate entities, and define them as beans. Is there a more elegant way to expose a number of objects\collections of different types using a single call to ProcessAction? Thanks, Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forward question
Hi. How I can invoke a login action from any pages thats require user be logged, and after valid logon, return to the page that the user was. TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Frames Question
Hi All, Have an app that mixes struts, tiles and inline frames. The frames are there as the design team likes them. I tried to talk them out of it. Problem seems to be that when i send a request to an action, the attribute added to the request can be seen by the main page but not the iframe when the page is rendered. Can anyone shed light on what is actually happening? Does anyone have any suggestions, other than get rid of the frames? Regards Ross Rotherham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] STL startup times - is caching going on?
Thanks for the ideas. I am using both types of includes - %@ include file=/common/taglibs.jsp%, and jsp:include page=chartHeader.jsp/. If I understand correctly, the first type is included at compile time, the second is compiled separately and included at runtime. But the large response time occurs, even if the page has already been compiled (i.e. no changes have occurred to the page since it was last compiled). I did change the Tomcat 4.1.24 Jasper2 setting enablePooling to false. This seems to have improved things greatly. Now the first request in takes about 10 seconds, subsequent requests less than a second. But once in a while I still get a very, very long response time (1 minute). Most of the time occurs during the page rendering process (after the action has returned control). We just put the above changes in production last night and are monitoring it to see how much improvement we get. Thanks - Richard -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 10:30 PM To: Struts Users Mailing List Subject: Re: [OT] STL startup times - is caching going on? On Sat, 20 Sep 2003, Richard Mixon (qwest) wrote: Date: Sat, 20 Sep 2003 21:34:45 -0700 From: Richard Mixon (qwest) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [OT] STL startup times - is caching going on? This is a little off-topic, but I am using the Struts EL taglibs in the applications this is happening. Any suggestions, ideas are appreciated. (I also posted on the Jakarta taglibs list). I am having an issue with large startup times the first time one of my pages runs that uses JSTL mostly the core library. Subsequent requests (even for different users on different data) take much, much less time. Here is a little more detail. Any ideas are much appreciated. My ISP is pretty irate because we suck up huge amounts of CPU each time it happens. We are using Tomcat 4.1.24, Java 1.4.1 and Struts 1.1. OK, the page uses a couple of nested foreach loops to generate a grid/chart of SVG markup language. It also uses a couple of small foreach loops to generate tick marks on an axis. It looks something like: Chart page embed tag include JSP/JSTL page to generate footer. include JSP/JSTL page to generate x and y axis JSTL markup to generate main body of chart include JSP/JSTL page to generate footer. The request takes a half second to build the Java objects that the JSTL code uses to render on the page. But the rendering takes 45 second on a 650MHZ Sun SPARC III machine and almost that long on a fast Windows machine (2500 MHZ). The second and subsequent times the chart rendering drops down to less than 200 milliseconds. Then about five minutes later, if the chart is requested again, it takes the 45 seconds to generate, then 200 milliseconds for subsequent requests. Thanks in advance - Richard The time delay you're describing sounds more like the typical compile a JSP page the first time it is encountered delay more than anything specific to a particular tag library. Are you seeing this kind of thing on JSP pages that do not include JSTL tags, or is it specific to this library. If it's the usual generic case, you should investigate using tools like jspc (shipped with Tomcat) to precompile your JSP pages into the corresponding servlets. One other factor to note -- if by include in your description above you mean jsp:include or c:import, then each individual page you're importing also has to be compiled that very first time. Craig - 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: Page Title
How do i assign different title for each page using tiles. Following is my tile layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer. Should i have title/title in each BODY jsp ? Is there any short cut to get the page name and over ride the main layout title ? Thanks for the help. Raj titleMy Site Name/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 table width=770 border=0 cellspacing=0 cellpadding=0 align=center tr td width=770 tiles:insert attribute=header / /td /tr tr td table width=770 border=0 cellspacing=0 cellpadding=0 tr td width=144 valign=toptiles:insert attribute=menu //td td width=626 valign=toptiles:insert attribute=body //td /tr /table /td /tr tr td width=770 tiles:insert attribute=footer / /td /tr /table /body /html - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
How do I mix html jsp files?
Hi; I have a large web site that is all html running on IIS. It's all in c:/inetpub/wwwroot/... I need 2 jsp files. And I want the jsp files to use the same DreamWeaver template files with the same menu bars, etc. The problem is my application server wants the jsp files over in it's directories. But all my links are relative. Any suggestions to get the jsp file relative links to go back to the c:/inetpub/wwwroot? (I can't use html:link.../ because the links come from a DreamWeaver template and is used by all the html files.) thanks - dave
Re: Frames Question
Frames are like indivdual request. So think about it this way, how would you send the information from one request to next request in the same sesssion. Usual way is to pass parameters in url's, another way is to do form posts with the data, the other way is to put info in session and the retrieve it. So, it depends on your particular problem, amount of data, nature of data etc, on how to organize that. But the basic thing is that when you use frames, they are seperate request for the server and should be handled accordingly. Varun usually try to send parameters to --- [EMAIL PROTECTED] wrote: Hi All, Have an app that mixes struts, tiles and inline frames. The frames are there as the design team likes them. I tried to talk them out of it. Problem seems to be that when i send a request to an action, the attribute added to the request can be seen by the main page but not the iframe when the page is rendered. Can anyone shed light on what is actually happening? Does anyone have any suggestions, other than get rid of the frames? Regards Ross Rotherham - 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: forward question
There are many ways to store the requested page and then redirect to the login action and once it is done pass it back to thr requested resource, if it is a matter of just the url with the query parameters you can use the HTTP-REFERER from the header to see if a different page was requested. Or another way to do is before doing the forward to the login action, put the requested resource info (url, form post etc) inside the session or hidden fields in the login page and get them back and forward accordingly. Varun --- Lázaro_Miguel_Fung [EMAIL PROTECTED] wrote: Hi. How I can invoke a login action from any pages thats require user be logged, and after valid logon, return to the page that the user was. TIA LFung - 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: Changes for Nightly builds
Did further investigating and it looks like name and type are no longer used when defining a Form tag. Makes sense since they are already defined in struts-config. - Original Message - From: Barry Volpe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 3:00 PM Subject: Changes for Nightly builds Hello, Trying to upgrade from struts 1.1Final to nightly build. I'm getting the following error for html:form action=Login.do name=loginForm type=com.childrencare.LoginForm Attribute name invalid according to the specified TLD If I remove the name and type tags form appears to work. Question I have is what do I reference for changes in the nightly build as related to form tags. I checked the TLD and do find a name definition Where do I get the newer required form tags? Thanks, Barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
It works on Weblogic8.1Struts1.0.2 but not on Weblogic8.1Struts1.1
Hi all, I got: cannot resolve symbol When trying to define: bean:define id=borrowerIndex name=borrowerIndex scope=request / And later access using Runtime Expression: bean:write name=%=(String) formName% property='%=borrower[ + borrowerIndex + ].name%' / The actual output: D:\opt\weblogicapps\ecommerce\.\.tmp_jsp_store\jsp_servlet\_loanorig_jsp\_mo difymoredata\_optiontable\__tablecell.java:281: cannot resolve symbol symbol : variable borrowerIndex location: class jsp_servlet._loanorig_jsp._modifymoredata._optiontable.__tablecell _bean_write1.setProperty(borrower[ + borrowerIndex + ].name); //[ /loanorig_jsp/modifyMoreData/optionTable/tableCell.jsp; Line: 26] Can anyone tell me why this used to work on 1.0 and not on 1.1? Thanks, --danny This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments.
Re: [SCAFFOLD] Elegant way to expose more than one object using Proc essAction
You can also return a ProcessResult that is a collection of ProcessResults. Just setAggregate to true on the outer result and then start adding the others. When it comes back, the ProcessAction will run through the collection of ProcessResults and handle each in turn. (Composite pattern.) Handling would include automatically exposing each result in the chosen scope. So, yes, there is =:) HTH, Ted. [EMAIL PROTECTED] wrote: Hi, When using the Scaffold ProcessAction, a data-bean is instantiated by the framework and it's execute() method is called, returning a ProcessResult object to the view layer. The ProcessResult object may contain a single object or a collection (of values or objects). Suppose I want to return to the view layer a collection of some sort AND a single object which has nothing to do with that collection. In order to do that, what I do now is to create another helper collection in which I store both the single object\s and the collection I wish to send to the view layer. Then I return this helper collection as a ProcessResult object to the view layer, where I have to extract back both the collection and the single object as separate entities, and define them as beans. Is there a more elegant way to expose a number of objects\collections of different types using a single call to ProcessAction? Thanks, Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error : No Action Instance for path could be Created
It usually means that the Action class couldn't be found on the classpath. Another, albeit unlikely cause, would be if there were a member that could be instantiated for some reason. -Ted. guruprasad jakka wrote: Hi, I am using action chaining to call an action for an action. The new action has a different actionform to that of the calling action. But, When I run the application, I get the error, No action instance for path /srfailure could be created. srfailure is the path for the new action. what might be the error? All the action and form classes are present. My entries in struts-config.xml is as follows, action-mappings !-- Registration Action -- actionpath=/registration type=RegistrationAction name=registrationForm scope=request validate=true input=/registration.jsp forward name=success path=/success.jsp/ /action action path=/srfailure type=SRFailureAction name=srfailureForm scope=session forward name=failure path=/SRFailure.jsp/ /action /action-mappings J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC ) Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to populate the 2nd action's FormBean in Action Chaining??
Struts has no idea whether you are chaning Actions or not. (Which is one reason why it's not recommended.) The request to second Action will be handled like any other. The formbean will be instantiated and populated from the request parameters. There are a number of things that can cause the error, including typographical errors, but the problem wouldn't be related to whether it's the first, second, or fifty-third Action =:0) -Ted. guruprasad jakka wrote: Hi, I have used action chaining in my web-application. I have formbean associated with the 2nd action. When a call is made to this action,the form bean is not getting populated. hence,when I try to use the bean's property I get the error message -Connot find bean in any scope. I would like to know whether I could populate the formbean ( associated with the 2nd Action class ) to be used in the 2nd action class. Thanks, J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC ) Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Get Ready, We're Moving Out!! - http://www.clark04.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Title
How do i assign different title for each page using tiles. Following is my tile layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer. Should i have title/title in each BODY jsp ? Is there any short cut to get the page name and over ride the main layout title ? Definitely. Put this in your header: titletiles:getAsString name=title//title Now, in your tiles-def.xml file, put this: definition extends=default.layout name=browse.costcenters put name=title value=BIS-Web Browse Cost Centers/ put name=body-content value=/custom/browse-costcenters.jsp/ /definition -- Bryce Fischer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Title
Bryce Fischer wrote: How do i assign different title for each page using tiles. Following is my tile layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer. Should i have title/title in each BODY jsp ? Is there any short cut to get the page name and over ride the main layout title ? Definitely. Put this in your header: titletiles:getAsString name=title//title Now, in your tiles-def.xml file, put this: definition extends=default.layout name=browse.costcenters put name=title value=BIS-Web Browse Cost Centers/ put name=body-content value=/custom/browse-costcenters.jsp/ /definition I'm almost embarrassed to ask this :-), but is there a way to localize the replacement title? Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with String[]
Hi, i really need to get this working. anyone experienced the same thing? Something to note, i have also html:text indexed=true name=transactionVO property=transactionId / in the logic:iterate/logic:iterate loop In the dynaActionForm i have specified paidAmount as String[]. In jsp, html:text indexed=true name=transactionVO property=paidAmount / is used. The html:text is in an logic:iterate/logic:iterate loop. Somehow the data doesn't want to move to the dynaactionform. What is the best way to do this? Thanks in advance Amin - 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: Page Title
definition extends=default.layout name=browse.costcenters controllerclass=org.apache.struts.tiles.ActionController put name=title value=BIS-Web Browse Cost Centers/ put name=body-content value=/custom/browse-costcenters.jsp/ /definition Look up ActionController in the http://jakarta.apache.org/struts/api/index.html ( http://jakarta.apache.org/struts/api/org/apache/struts/tiles/ActionController.html ) in particular you can extend that class, put your localized title in the ComponentContext context argument. - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:45 PM Subject: Re: Page Title Bryce Fischer wrote: How do i assign different title for each page using tiles. Following is my tile layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer. Should i have title/title in each BODY jsp ? Is there any short cut to get the page name and over ride the main layout title ? Definitely. Put this in your header: titletiles:getAsString name=title//title Now, in your tiles-def.xml file, put this: definition extends=default.layout name=browse.costcenters put name=title value=BIS-Web Browse Cost Centers/ put name=body-content value=/custom/browse-costcenters.jsp/ /definition I'm almost embarrassed to ask this :-), but is there a way to localize the replacement title? Craig McClanahan - 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: Page Title
Craig R. McClanahan wrote: Bryce Fischer wrote: How do i assign different title for each page using tiles. Following is my tile layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer. Should i have title/title in each BODY jsp ? Is there any short cut to get the page name and over ride the main layout title ? Definitely. Put this in your header: titletiles:getAsString name=title//title Now, in your tiles-def.xml file, put this: definition extends=default.layout name=browse.costcenters put name=title value=BIS-Web Browse Cost Centers/ put name=body-content value=/custom/browse-costcenters.jsp/ /definition I'm almost embarrassed to ask this :-), but is there a way to localize the replacement title? Not directly that I know of. However, I put the resource key for the page in the tiles definition eg put name=title value=page.xyz.key type=String/ Then you can use this to write out the localised page title in the JSP page: tiles:importAttribute name=title/ bean:message name=title/ Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't uncheck multibox
Hi Natalie I also work with html:multibox and have similar problem with you + problem to get the value from html:multibox, how did you solve it? Thank you, for your answer Natalie... -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:57 PM To: Struts Users Mailing List Subject: Can't uncheck multibox Can anyone help??? I have the following multibox in a dyanValidatorForm: logic:iterate id=defectsList name=reviewRecordForm property=defectsList indexId=i html:multibox property=actionItemIndicator bean:write name=defectsList property=defectId/ /html:multibox /logic:iterate I am having trouble unchecking the checkboxes. Everytime I uncheck a checkbox, hit submit, when the screen comes back the checkbox is still checked. When I extract, the form data from this property, the form still indicates that the checkbox is checked even though I unchecked it in the form How do I uncheck a box once it has been unchecked by the user??? Thanks in advance, Natalie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors...help urgently
Put your action class name in action html:form action=youActionClass -Original Message- From: Mahavir [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 7:40 PM To: [EMAIL PROTECTED] Subject: Errors...help urgently Hi Friemds I am using html tag library inside JSP page. When i tried to use form tag for a login form like html:form action=/login --- /html:form then i got following error Error: 500 Location: /mystrutsapp6/login.jsp Internal Servlet Error: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:460) at login_1._jspService(login_1.java:474) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:57 4) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Htt p10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:49 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:516) at java.lang.Thread.run(Thread.java:479) Root cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506) at login_1._jspService(login_1.java:250) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:57 4) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Htt p10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:49 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:516) at java.lang.Thread.run(Thread.java:479) why this error is coming? please help urgently Regards Mahavir - 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]