Login Problem

2005-08-18 Thread d d
I am working on a struts web application with oracle as back end.I use tomcat. I am using filter so that if user has not logged in he cannot access any of the pages.I have a problem for logging.. I login into my application..Use the application..Now if suddenly i close Tomcat Server.. and rest

Re: Struts with XSLT

2005-08-18 Thread Peter Maas
We have been using stxx for a while now, mostly for output transformations only and it work perfectly. I would recommend you to consider it, and I have no stock in stxx ;-) ! Apart from this, we quite often use inline XSL transformations provided by JSTL nowadays not as flexible, but certainly

Using custom tags and struts together

2005-08-18 Thread Murray Collingwood
Hello all Has anybody successfully used Stuts tags and Custom tags together? For example: Consider a custom tag with the following code: out.println("" + entry[ix] + ""); The custom tag appears to write the output directly to the socket without further Struts tag evaluation, consequently the

Resizing output image from a Struts Action

2005-08-18 Thread C.F. Scheidecker Antunes
Hello all, I have an action to retrieve an image from a database BLOB field and display it. It works great. However I wanted to resize the image proportionaly. Hence I think on writing a second action, that would call the first in order to retrieve the image. Then, would work on this image t

Re: Shale ... where can I find out more?

2005-08-18 Thread Lixin Chu
thanks ! On 8/18/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Lixin Chu" <[EMAIL PROTECTED]> > > > is there a road map/milestone for Shale developemnt ? > > I am pretty comfortable with Struts now but would like to explore > > Shale in the next project. > > Craig has posted a roadmap on t

RE: How can I refer a control in javascript which hava a "." in i ts name

2005-08-18 Thread BHansard
Be aware that document.all is IE specific. [EMAIL PROTECTED] [EMAIL PROTECTED] 08/18/2005 06:43 PM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject RE: How can I refer a control in _javascript_ which hava a "." in i ts name Try th

RE: How can I refer a control in javascript which hava a "." in i ts name

2005-08-18 Thread Adrian_Rios
Try this: document.all['myForm'].value __ Senior Programmer Analyst, Tax Distributed Systems Development Tax & Compliance Development, ADP IT Phone: (909) 592-6411 Ext. 3863 e-mail: [EMAIL PROTECTED] -Original Message- From: Jeff Beal

Re: Question on log on with SecurityFilter and JDBCRealm

2005-08-18 Thread C.F. Scheidecker Antunes
Steven, Thanks! Yeah, great idea. In fact I was reading about that on O'Reilly's Struts Cookbook. I have one question to you though: How is the filter executed? After the login? Or after every http request to the server? What does fire the filter up? Is it like an event for a GUI app? I woul

Re: Struts and Laszlo

2005-08-18 Thread C.F. Scheidecker Antunes
Luc, I have designed Laszlo applications having both PHP and Servlets as controllers. It worked great and your idea is right on. In fact I am starting a Struts/Laszlo app pretty soon. Have in mind that Laszlo is the View of the MVC model. I understand that you can also use Laszlo as the control

RE: Struts with XSLT

2005-08-18 Thread Dharmendra . Sharan
Hi All, Seems a bit of the "silver bullet" scenario is going in the discussion of XSLT versus Struts approach, someone has correctly said "there's no silver bullet". You are required to use your judgement based on your experience on which tool/technique to use for what situation for opti

RE: Struts with XSLT

2005-08-18 Thread Eduardo Ribeiro da Silva
Anybody knows how I can generate JSP with struts tags with XSLT and pass JSP to JSPProcessor, for compile them? Because I have tags that client browse simple don't known. -Original Message- From: John Martyniak [mailto:[EMAIL PROTECTED] Sent: Thu 8/18/2005 7:08

AW: Struts with XSLT

2005-08-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 18. August 2005 22:11 > An: Struts Users Mailing List > Betreff: Re: Struts with XSLT > Ever heard of translets? But even if you call XSLT processor > for every request, I D-O-N'T C-

Re: How can I refer a control in javascript which hava a "." in its name

2005-08-18 Thread Jeff Beal
You also have the option of doing document.form[0]['myobject.subobject']. On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >property="myobject.subobject" styleId="subobject" .../> > > then get the field by using > > document.getElementById("subobject"); > > > Tony Sm

Testing Struts With JUnit

2005-08-18 Thread Luiz Godoy
I´m trying to test the action below : public class FamiliaDNCAction extends BasicAction { public ActionForward unspecified(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws BusinessException { Set msgs = new HashSet();

Re: Struts with XSLT

2005-08-18 Thread Michael Jouravlev
On 8/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote: > > > * Should I just stop fighting city hall and abandon XSLT in > > favour of JSP? > > Yes :-) Really. We did it a year ago, and gained A LOT of performance. Not > to mention that XSLT >

Re: Struts with XSLT

2005-08-18 Thread Graham Smith
On Thursday 18 August 2005 20:52, Leon Rosenberg wrote: > > I'm glad to see there is some support for XSLT. Makes me feel > > like I haven't been barking up the wrong tree for the last > > few years. Sending the XML to the client is a nice idea in > > principal but has so many problems that IMHO it

Re: Struts with XSLT

2005-08-18 Thread Leon Rosenberg
> I'm glad to see there is some support for XSLT. Makes me feel > like I haven't been barking up the wrong tree for the last > few years. Sending the XML to the client is a nice idea in > principal but has so many problems that IMHO it's not worth > it. Transformation server side is cheap

AW: Struts with XSLT

2005-08-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 18. August 2005 21:33 > An: Struts Users Mailing List > Betreff: Re: Struts with XSLT > > On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote: > > * Should I just stop fighting city ha

Re: Struts with XSLT

2005-08-18 Thread Graham Smith
On Thursday 18 August 2005 20:32, Michael Jouravlev wrote: > On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote: > > * Should I just stop fighting city hall and abandon XSLT in favour of > > JSP? > > No. XML/XSLT is more flexible than JSP and has been supported bunch of > other markup tecnhologies

Re: Struts with XSLT

2005-08-18 Thread Michael Jouravlev
On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote: > * Should I just stop fighting city hall and abandon XSLT in favour of JSP? No. XML/XSLT is more flexible than JSP and has been supported bunch of other markup tecnhologies like XML, XHTML and XPath for a long time. Keep it if it works. Don't fo

Re: Struts with XSLT

2005-08-18 Thread John Martyniak
I have also successfully used Struts and XSLT, Haven't had an issue. I currently use JSP to generate the dynamic top component, and then include the XSLT generated HTML in the main content area. I think that it is easier to manipulate XML with XSLT then it is to do it with JSP/Tags. -Jo

Re: - bis

2005-08-18 Thread Laurie Harper
Heh: even more of a hack, provided you're OK keeping with lists rather than tables as in your original example: #msgs { list-style: none; } Laurie Harper wrote: I can't think of a way to find out how many messages are queued for displ

Re: - bis

2005-08-18 Thread Laurie Harper
I can't think of a way to find out how many messages are queued for display, but you could do something like this (ugly, and untested): <%-- 2nd or subsequent messsage --%> <%-- This is the 2nd message of N; start the list --%> <%-- output previous mes

Re: How can I refer a control in javascript which hava a "." in its name

2005-08-18 Thread BHansard
  property="myobject.subobject" styleId="subobject" .../> then get the field by using document.getElementById("subobject"); Tony Smith <[EMAIL PROTECTED]> Tony Smith <[EMAIL PROTECTED]> 08/18/2005 01:07 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing

How can I refer a control in javascript which hava a "." in its name

2005-08-18 Thread Tony Smith
Hi everyone: Here is my jsp: ... ... If user change the selection in the "select", I would like to change the content of the "text". Thus, I write my change() function in javascript:

Re: Best way to store config variables

2005-08-18 Thread Konrad Billewicz
> Have you considered Spring and it's IOC framework? Works wonderfully with > Struts (even has a lovely plug-in to get the whole thing working together). > > The configuration is only one aspect of the whole Spring framework. I was reading about Sprint but I was unable to catch what the Spring

RE: Struts with XSLT

2005-08-18 Thread Mark Benussi
I used XSLT for all my applications to generate content as html files which Struts includes in a page template using tiles. It also allows me to search the pages as pure html content. If you are putting logic in your page you could... don't shudder, use XSLT to generate JSP's. -Original Mess

Re: Struts with XSLT

2005-08-18 Thread Craig McClanahan
On 8/18/05, Graham Smith <[EMAIL PROTECTED]> wrote: > * Should I just stop fighting city hall and abandon XSLT in favour of JSP? Two thoughts strike me as I read your discussion, and the reasoning for which you like XSLT: * You seem to be concluding that XSLT and JSP are mutually exclusive. Esp

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Thank you, for your very elaborate answer. After reading your post, it seems that there is really no big difference between the two approaches, so I guess I'll stick with what I've already implemented. I guess losing type safety is not a big issue, since I'll only use my "special" DTOs for d

RE: [OT] Loading data for view

2005-08-18 Thread McDonnell, Colm (MLIM)
Sounds like you're using a data transfer (tree)map pattern, this is largely similar to the rowset version except for the following: * You have to copy values from the underlying data access solution into the TreeMap * Your view component needs to know about the contract for attribute key

Need help using tiles taglib with JSTL

2005-08-18 Thread Michael Mattox
I'm trying to use the tiles taglib with JSTL (servlet spec 2.4).. if I use just the HTML tags they work file, and JSTL 1.1 by itself works fine. The problem comes when I need to use them together. Here I have a list of inscriptions in the request scope and I want to loop through them and pass each

link with img and request attribute

2005-08-18 Thread Sławek Tuleja
Hi EveryBody i have problem with this: 1) i have: ">add 2) and it works fine, but i want to put image button insted of link "add" 3) how do i have to do that? 4) where put ? thanks for reply regards Weź udział w naszym letnim k

Re: Struts with XSLT

2005-08-18 Thread Graham Smith
On Thursday 18 August 2005 16:02, Don Brown wrote: > Hmm...smell of death for stxx might be a bit harsh :) Yeah ok, it was a bit harsh - sorry. I'll take another look. It's sometimes hard to know when a project is on it's last legs though. A message from one of the core developers within an ho

Re: Struts with XSLT

2005-08-18 Thread Don Brown
Hmm...smell of death for stxx might be a bit harsh :) While it true I need to get a release out that better supports 1.2, I've been using it in production for over a year without problems, and would recommend you take another look. You, of course, are welcome to get involved, submit patches, even

Re: Struts and Laszlo

2005-08-18 Thread Guillaume Lederrey
On 8/18/05, Lucas Bern <[EMAIL PROTECTED]> wrote: > I´would it be a nosense to integrate Laszlo with struts??? Not a complete non-sense, but maybe an overkill ... > I think Laszlo is responsible for controlling the application, so, may be we > can hav struts incharge of generating data in XML

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Thanks for your answers. I added a new method to my DAO that allows me to execute predefined queries and returns kind of "general-purpose-dto"s, that only consist of a treemap which stores the requested values from the db. So I get one g-p-DTO per row in my ResultSet that can be passed to the

Struts with XSLT

2005-08-18 Thread Graham Smith
Hi folks, This isn't your usual "How do I do X?" type question so get ready. Hopefully it will fuel a good discussion. I'm fairly new to struts but have a solid grasp of Model 2 design ideas. The problem, I suppose, is that I am a lone developer (for my own company) which makes it hard to get t

Re: Modularizing struts-config.xml

2005-08-18 Thread Joe Germuska
At 11:44 AM +0530 8/18/05, sachin wrote: hi , Yes, you can use any number of struts-config files; there is a servlet init parameter which accepts a comma-separated list. I Have many struts-config files in one of my application and i initialized them with a comma separeted List ... EveryTh

Re: Shale ... where can I find out more?

2005-08-18 Thread Wendy Smoak
From: "Lixin Chu" <[EMAIL PROTECTED]> is there a road map/milestone for Shale developemnt ? I am pretty comfortable with Struts now but would like to explore Shale in the next project. Craig has posted a roadmap on the Struts Wiki: http://wiki.apache.org/struts/StrutsShale -- Wendy -

Re: Struts and Laszlo

2005-08-18 Thread BHansard
I am not sure I follow what you are wanting to do. You can already return data in XML from struts. It is all in how you create your output. You can return XML in the response. As for presentation, Struts is primarily a controller framework. You can implement any model or view structure you wi

RE: [OT] Loading data for view

2005-08-18 Thread McDonnell, Colm (MLIM)
If you are thinking about using a single query and bypassing your DTO's then consider using the Data Transfer RowSet pattern; it can be a useful pattern for easily transferring data from a DAO to a view component. If it's disadvantages (clients need to know something about the database metadata, it

- bis

2005-08-18 Thread glenn . deschenes
Greetings, I have sent this post more almost 2 days ago without one response. I hope it was simply lost with other posts but still worthy of attention. Here is the original post: I am unable to find a solution... even after searching... and waiting for the espresso to kick in. I have messages a

Struts and Laszlo

2005-08-18 Thread Lucas Bern
Hia guys... I´would it be a nosense to integrate Laszlo with struts??? I think Laszlo is responsible for controlling the application, so, may be we can hav struts incharge of generating data in XML format so that Laszlo presentation server show it??? I´m thinking of extending struts so that i

Re: [OT] Loading data for view

2005-08-18 Thread Frank W. Zammetti
Sometimes the simplest answer is the best... and even when it isn't the best, it's *still* simple :) ... How about just creating a new DAO/DTO that only contains the data you need? It would be a duplication to a degree, but that's not *always* an absolutely evil thing... especially since it sound

RE: Question on log on with SecurityFilter and JDBCRealm

2005-08-18 Thread Mitchell, Steven C
Have you considered using a Filter to put the extra stuff in your Session? We use an initialization Filter that looks up a User record based on the authenticated user id. We then place that User object both in the Session and a thread local variable so that it is available to all the layers of ou

How to write logic:iterate for the Collection of HashMap.

2005-08-18 Thread Amol Yadwadkar
Hello List, I need to display the results stored in the Hashmap. How can I achieve it by using logic:iterate I know the way to do it for List type data. Can anyone help me in this ? Thankx n regds, Amol

[OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Hi everybody! In my app, I am using DAOs/DTOs to perform CRUD operations on a legacy database packed with lots of triggers and stored procedures. Some of my DTOs are pretty complex, meaning, they have to be assembled from many tables. A simple example: Object a (loaded by aDAO) has a list of

Re: What do you do with ActionError in Struts 1.2

2005-08-18 Thread Gaet
use "saveMessages(request, errors);" instead - Original Message - From: "Tuan Jean Tee" <[EMAIL PROTECTED]> To: Sent: Thursday, August 18, 2005 6:06 AM Subject: RE: What do you do with ActionError in Struts 1.2 > David, > > Thank you for the good link. Base on it, I have change the c

RE: Tomcat 5.5.9 with Struts 1.2.7 -> ClassCastException - looks like a Tomcat bug

2005-08-18 Thread stewart.cambridge
Thank you Christian - you are correct. A colleague also referred me to: http://www.systemmobile.com/wp/?p=152 I had a copy of jsp-api.jar in my app (/WEB-INF/lib/jsp-api.jar) And Tomcat (both 5.0.28 and 5.5.9) has a copy under $CATALINA_HOME/common/lib/jsp-api.jar This makes the copy in my app

LookupDispatchAction, trying Ted Husted Tip #3

2005-08-18 Thread Tiller, Volker
Trying the example in http://husted.com/struts/tips/index.html #3 Use LookupDispatchAction ... I use following Action, Form, JSP, application.properties and struts-config +++Action public final class MyAction extends LookupDispatchAction { private static Log log = LogFactory.getLog(MyActi

SV: Tiles standalone jar

2005-08-18 Thread hermod . opstvedt
Thnx :) Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 17. august 2005 17:52 Til: Struts Users Mailing List Emne: Re: Tiles standalone jar On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > Does anbody know where to get hold of the Ti

Re: Problems declaring DataSources

2005-08-18 Thread C.F. Scheidecker Antunes
Hi all, Problem solved. So I will share the solution in case someone has the same problem. Just use the following class: com.mysql.jdbc.jdbc2.optional.MysqlDataSource as the DataSource class. so, the correct code is: type="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"> value

Re: Shale ... where can I find out more?

2005-08-18 Thread Lixin Chu
is there a road map/milestone for Shale developemnt ? I am pretty comfortable with Struts now but would like to explore Shale in the next project. thanks lixin On 8/18/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 8/17/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > > At 11:49 AM +0100 8/1

Re-call the former Action

2005-08-18 Thread Agoston Bejo
Re-call the former action Hi! My problem is the following: the workflow should be something like this: Page1 -> action1.execute(mapping1, form1, ...) { if(action2 is not performed) go to Page2 } Page2 -> action2.execute(mapping2, form2, ...) { do something indicate in the se

Problems declaring DataSources

2005-08-18 Thread C.F. Scheidecker Antunes
Hello All, I have the following datasource declared. The password, URL and user name as well as Database name (on the URL) are corrected and I have them tested. Here it is: However, when I put it in my

Pre-population of tag using multiple tags

2005-08-18 Thread Chatzinikos, Fotis, VF-GR Consultant
Hello Everybody, I am trying to pre-populate a jsp page form via the reset function of an ActionForm. All values appear correctly in the form except the select / option combinations. Could somebody have a look at the following and provide some pointers? (Have not used

Re: showing nested collections in a JSP

2005-08-18 Thread Tremal Naik
2005/8/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I think I can figure out how to display the tables using the nested:XX tags, > but cant figure out how to display the nested collection by radio button. I > guess I need to understand how to "index" a collection dynamiclly. I know > JSTL is the p