RE: Sorting at client side

2001-10-31 Thread John Schroeder
Raj, I have implemented this. I have created an object called Table which holds tabular data (typically populated from a ResultSet). This object has a sort() method which takes the column index as a parameter and will sort the Table according to that column index. On the JSP side, I have 2 tag

RE: Pop-Up Window

2001-10-04 Thread John Schroeder
Hi Tricia, try adding a .do to showEmailFriend ("/util/showEmailFriend.do"). That should solve it. --John -Original Message- From: Tricia Ong Cheah Yen [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: Pop-Up Window Importance: High

RE: struts + pop-up windows

2001-09-06 Thread John Schroeder
Here's one way to do it function popUpWindow() { var url = '<%=request.getContextPath()%>/myAction.do?'; var win = window.open(url,'MyWindow','width=620,height=200'); popwin.focus(); } -Original Message- From: Campesato, Oswald [mailto:[EMAIL PROTECTED]] Sent: Th

RE: Using the "error page" in an Action

2001-08-28 Thread John Schroeder
Title: RE: Barracuda vs. Struts [LONG] Juha,   Here's one way to do so that was posted to the list recently...   struts-config.xml =         path="/jsp/error.jsp"/>    ApplicationResources.properties error.exception="Exception: {0}"   Action's perform()

RE: problem with submit

2001-08-15 Thread John Schroeder
Try removing the *.do from the action attribute in the form tag. Hope this helps... --John -Original Message- From: Larry Maturo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: problem with submit I have the following in a form i

RE: sorting of columns in JSP page

2001-08-15 Thread John Schroeder
Hi Earl, I've just had to tackle that same problem... I have created a Table object that currently consists of a List of Lists. I also have a set of tags that will display this type of object. You can sort the table by column (currently using the MergeSort algorithm). I haven't yet incorporate

transactional tokens

2001-07-02 Thread John Schroeder
Does anyone have experience using the transactional tokens in the action? I have seen the example in the struts-example application and I'm still not clear on quite how these are used. I am particularly confused as to how I would use the tokens in a 'wizard' style set of forms. A good example w

RE: beans and scope

2001-06-28 Thread John Schroeder
Try removing the scope="request" line below. The formbean will default to session scope (I believe). If you specify request scope, then the formbean will be accessible on the second page, but not the third... This worked for me after I banged my head against it as well!!

RE: Stylesheets and bean:message

2001-06-28 Thread John Schroeder
You can wrap the bean message in an html tag. For example: -Original Message- From: Tom Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:29 AM To: struts-user Subject: Stylesheets and bean:message What is the technique to use for affecting tags with stylesheets?

RE: View data

2001-06-25 Thread John Schroeder
The application I am developing uses a lot of view only data. We are doing exactly what you mention. We have DAOs that contact the database and return CachedRowSets. These RowSet objects are stored in the proper context and custom tags on the JSP handle the display. Hope this helps... --John

RE: Multiple Submit Buttons

2001-06-21 Thread John Schroeder
Yuri, I was successfully able to do this. Here is an example of the code I'm using... Hope this helps!! --John On the JSP: In form bean (ActionForm): You need a property, this example uses 'action'. private String action; public String getAction() {

RE: I want to override some struts classes

2001-05-29 Thread John Schroeder
Jonathan, It may be a typo, but the package where struts puts the ActionServlet is org.apache.struts.action you appear to be missing the "apache" dir. Also, I would not recommend putting your class in the same package structure with the same filename, as you may not get the ActionServlet that yo

RE: tricky mapping

2001-05-24 Thread John Schroeder
Yuri, I have run into something similar with Excel files, but I'm not sure if it will address your current issue. My problem: when users run a report, return to them an Excel worksheet instead of HTML. Our particular approach used JSP's to easily handle the formatting of the Excel doc, but you b