RE: Redirecting a Request With params

2004-09-16 Thread Frank Zammetti
It comes down to a question... Are you trying to post to an application in order to get some result, in which case you could just use the standard java.net.* package to do so, or are you actually trying to redirect the user's browser to an outside application? I suspect, based on what you wrote

RE: popup design (Off the subject)

2004-09-16 Thread Frank Zammetti
Yes, good point about SP2. I have an app here at work that does quite a bit of this sort of thing, and SP2 did cause problems (I fully expected it would). Just had to have the setting changed to allow popups from the site, no problem. If it's an internal-only app, that might not be a problem

Re: Working with hashmaps in my Jsp

2004-09-15 Thread Frank Zammetti
I agree Rick, although I'm not sure anyone should *ever* listen to me :) Like I said, I'm not saying NEVER use taglibs, just that SOMETIMES (well, MANY times, in my opinion) they are superfluous. THIS time, they made sense. :) Frank W. Zammetti Founder and Chief Software Architect Omnytex Techn

RE: Working with hashmaps in my Jsp

2004-09-15 Thread Frank Zammetti
There *IS* an easy way... don't use all the taglibs! :) It always amazes me how people will bend over backwards working with custom tags to do things that would be simple as hell with scriplets, all in the name of "clean code" and "complete separation of presentation from everything else". Whil

RE: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-14 Thread Frank Zammetti
1. java is free so learning it as a student was cheaper (well, legally anyway!) .Net is free as well. You can go download the SDK, same as with Java, and off you go. True, VS.Net costs, but VS.Net is NOT .Net. The one point that is absolutely true though is that .Net only runs on Windows, henc

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Frank Zammetti
vices (interoperability issues > aside, which aren't small concerns in some cases) " Becuase to me Web Services is how you do Distributed computing, so another comment on "Distributed Web Servicese" plusses and minuses for our education. Like what does .NET have as a WS ser

RE: detecting form data changes?

2004-09-13 Thread Frank Zammetti
I don't think there's any *easy* answer, but let me offer up some possibilities... (1) Start the process on the server to do the work. Immediately return a page that has a Javascript refresh (or a meta refresh) that calls another job on the server to check the status and return the same waitin

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Frank Zammetti
As someone who is 98% a J2EE developer but has done two reasonably complex .Net web projects... Forget comparing the two for a moment and just look at .Net by itself... There's not too much bad to say about it on it's own. Microsoft has frankly put out something that is technically a fine piece

Struts Web Service Enablement Project .03 now available

2004-09-09 Thread Frank Zammetti
I just wanted to let everyone know that version .03 of the Struts Web Services Enablement Project has just been released. I hadn't done much on it in a while, but a couple of people said they were actually using it (or thinking about using it), so I felt obligated to continue it to at least so

Re: Javascript: Access is denied when I try to upload a file

2004-09-07 Thread Frank Zammetti
14:03:36 +0300 Tanck you Frank. If you probably know if i put instead it's working but this is not a struts tag and I have an error in my Servlet java code. How did you get over this?? - Original Message - From: "Frank Zammetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

RE: Javascript: Access is denied when I try to upload a file

2004-09-06 Thread Frank Zammetti
Nothing is wrong... the browser is exercising some security so that scripts cannot initiate an upload without direct user intervention. I don't mean to toot my own horn (well, ok, yes I do! :) ) but I am generally considered a JavaScript/DHTML guru at work (but not at home?!?)... I've been tryi

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Frank Zammetti
got. I thought i'd be simpler if i just overwritte the request processor and put the above code inside it. What do you thing now? Is still not the better idea? I ask because i'm really a beginner, so i don't know if it would be the best architecture. --- Frank Zammetti <[EMAIL PRO

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Frank Zammetti
Maybe it would be enough to just write your own base class that extends ActionForm, have your "common" code in it, and then extend your ActionForms from that class? If not, take a look at my code from http://www.omnytex.com/strutsws for an example of writing your own command processor. I get t

Re: How to call multiple submits in a jsp form(in STRUTS other than using javascript)

2004-08-16 Thread Frank Zammetti
Alternatively, don't forget that Actions are just classes, and as such you can always instantiate an instance of an Action from within another and call it's execute() method yourself. Your app has to be designed to allow for this, but it's fairly trivial to do so. LookupDispatchAction is I thi

RE: struts and iText

2004-08-03 Thread Frank Zammetti
Another option: write the PDF out to a database BLOB field, then create an Action to retrieve that field. This I think gives you the best of all worlds. If you structure the table properly, you can share the PDF across various requests/users and you can even avoid PDF generation potentially by

RE: Popups with Struts.

2004-07-27 Thread Frank Zammetti
Perhaps I'm not getting it, but... Why couldn't you just add target="_blank" to your form? Then, it would be submitted to your Struts Action, and the result (a JSP rendering I presume) would go to the new window. If you need a little more control, another option is to make your page a frameset

Re: Multiple Values In Form Hidden Parameter

2004-07-20 Thread Frank Zammetti
Alternatively, tokenize the String parameter to your setter and store it as appropriate in your array in your bean. From: Rob McBride <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Multiple Values In Fo

RE: [OT] Tiles Calendar How-to

2004-07-02 Thread Frank Zammetti
There's tons of calendar "controls" on the web. Some are better than others, some are more cross-browser than others, but there's plenty of choice. Start by going to dynamicdrive.com, they are always good for dHTML stuff. If your looking for a Struts-specific solution, I'm not aware of any (t

RE: How to read a large XML file in the ActionServlet

2004-06-23 Thread Frank Zammetti
I don't care how good of an XML parser you are using, parsing virtually any XML file on a per-request basis is a Bad Idea (tm). You definitely want to find a way to (a) store the parsed information in memory, or (b) maybe read it from a database, which may or may not actually wind up being any

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Frank Zammetti
n the browser...). The tags are dynamically generated anyway, so I'm thinking additional style at run time may not be that bad, what do you think? Did you do any comparisons/benchmarks? Thank you very much, Marina -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Se

RE: Actions and Anchors

2004-06-22 Thread Frank Zammetti
I haven't tried this, but... Instead of doing what is usually done in an action, that is, ending with... return mapping.findForward("whatever"); ...get a reference to the ActionForward returned like so... ActionForward af = mapping.findForward("whatever"); ...then, add your anchor portion like so..

Re: How to use dynamically generated CSS style with Struts tags

2004-06-22 Thread Frank Zammetti
I had to do something almost identical... My solution was to make my CSS file a JSP, and when I referenced that stylesheet in all the other JSP's, I did: where styles.act is actually an ActionMapping. I then had my StylesAction class, just like any other Action, that got some info out of the

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
This is similar to some things we've done or thought about. Well, at least that makes me think I'm on the right track :) Personally, I'm a pretty big fan of using reflection to find methods (a la DispatchAction) although I do think that some folks find it less appealing. I've always been a bit con

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
od of an existing Action (I could see either being appropriate in some situations). Frank From: Joe Germuska <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: Pulling Pun

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
a second action to complete a business transaction is where we start sliding toward the dark side.". So, I figured getting the data to display was safe. Caring about the request data however seems to be where one draws the line, which this question clearly did. Am I wrong (again)? -Joe > ---

RE: Pulling Punches

2004-06-21 Thread Frank Zammetti
I don't know if it's the recommended solution (I would expect not), but one option is to instantiate your own instance of Action A and call execute() on it before returning your ActionErrors. The caveat there is that you won't have the form or the response object available to pass to it, and th

RE: problem with returning a pdf

2004-06-21 Thread Frank Zammetti
I assume the result of your form submission should be the PDF returned. I'm doing this in an app... you need to write out the results to ServletOutputStream, make sure you set the content type header and also the content-length header. Shoudl work then. I've also found that Acrobat is buggy w

RE: Detecting browser close

2004-06-21 Thread Frank Zammetti
It was my understanding that only signed scripts could open popups off-screen, or of too small a size (I think 100px in either direction). I use the approach you outline as well, although it's not critical that the user logs out of my app anyway but they do feel good about having an explicit lo

RE: ActionForm returning blank jsp

2004-06-21 Thread Frank Zammetti
a blank document. The errors should be displayed in the jsp using the tag. -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 9:30 AM To: [EMAIL PROTECTED] Subject: RE: ActionForm returning blank jsp When you say the JSP is blank, do you mean you a

RE: ActionForm returning blank jsp

2004-06-21 Thread Frank Zammetti
When you say the JSP is blank, do you mean you are literally getting a blank document back, or do you simply mean the errors are not being displayed? If the later, I don't see anywhere that you are displaying the errors. Trying adding the following before your form: Fro

RE: Theoretical debate

2004-06-18 Thread Frank Zammetti
controller framework. 3. I'm guessing you're NOT using EJBs, otherwise, they would be tightly coupled with Struts... Dennis "Frank Zammetti" <[EMAIL PROTECTED]> 06/18/2004 09:42 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL

RE: Theoretical debate

2004-06-18 Thread Frank Zammetti
ts (can't just use a business object I already have), and then create separate Action objects to manipulate that ActionForm. --- -Jacob Hookom -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 2:29 PM To: [EMAIL PROTECTED] Subject: Theoreti

RE: Theoretical debate

2004-06-18 Thread Frank Zammetti
27;m not so sure the current forms of this methodology are spot on just yet), so discussions of things like this are always of interest to me. Frank From: Hubert Rabago <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing Li

Theoretical debate

2004-06-17 Thread Frank Zammetti
Last night I was Googling for something and I stumbled across the Crysalis framework. I was actualyl intrigued by the underlying premise of it and I wanted to see what others thought about it. In a nutshell and in my own words, Crysalis (http://chrysalis.sourceforge.net/) has the underlying id

RE: Vexing session creation issue

2004-06-16 Thread Frank Zammetti
ve to go check through my code and make sure I'm not creating it myself somewhere. I'm 99% sure I'm not because I changed some code this morning to ensure I wasn't, but I can't be sure at this point :) Frank From: "Frank Zammetti" <[EMAIL PROTECTED]&g

Vexing session creation issue

2004-06-16 Thread Frank Zammetti
Argh, this one is hurting my head... I have an application that starts out by returning index.jsp (it's the welcome file). This JSP opens a new window via JavaScript and loads into it index1.jsp. index1.jsp populates five frames of a frameset. At the end of all this, my logon screen is seen.

RE: Enumerating sessions

2004-06-15 Thread Frank Zammetti
ng sessions > > > Wouldn't this do it? > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/jav > ax/servlet/http/HttpSessionListener.html > > Frank Zammetti wrote: > > > Hello all... is there any good way to enumerate all > sessions under a >

Enumerating sessions

2004-06-15 Thread Frank Zammetti
Hello all... is there any good way to enumerate all sessions under a given webapp? I know there used to be the SessionContext, but that has since been deprecated as of servlet spec 2.1 I believe... Is there anything in Struts that might help? Basically I'm just looking for an accurate way to d

RE: Help with Datavision + Struts

2004-06-14 Thread Frank Zammetti
I'm using Datavision in a Struts-based application. I'm not sure about passing an entire where clause, I've never tried that, but you can easily pass parameters to the report, which obviously you can use in your where clause. Here's some code for doing that: Report report = new Report(); repo

RE: Single ActionForm accross multiple Actions

2004-06-11 Thread Frank Zammetti
to be safe. Then if your session object is big, there will be a lot of IO involved to do the serialization. That may be the reason IBM suggest to keep session object under 4K. Am I right on this? Thanks, Yuanbo -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: Dynamically creating URLs w/o request?

2004-06-10 Thread Frank Zammetti
Seems like a lot of people are asking a very similar question the past few days, including myself! :) One POSSIBLE approach is to creats a Struts plug-in. In that you can get access to the ServletContext through the ActionServlet reference that is passed in by Struts. I THINK that will give y

RE: Application Resources Question

2004-06-10 Thread Frank Zammetti
ut)); saveMessages(request,messages); Can it be done this way so that the html is in the properties file still works when displayed on the resulting jsp? Thanks -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 14:52 To: [EMAIL PROTECTED] Subject: RE: Ap

RE: Application Resources Question

2004-06-10 Thread Frank Zammetti
I just tried this, and the get rendered properly and I get linebreaks. What version of Struts are you using? What code is in your JSP to display the message resource? From: "Ciaran Hanley" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts User Mailing

RE: Single ActionForm accross multiple Actions

2004-06-10 Thread Frank Zammetti
m is not the memory on the mid-tier server. You just must give them all the memory you can buy... These applications cache some data they must request from a backend. And the backend-mechanism make it perform and scale better when the data is cached in the session. But these apps are special cases!!

RE: Downloading a file from an Action class.

2004-06-10 Thread Frank Zammetti
The problem I think is that you are never writing your output to the Response object. I'm guessing you think that setting the filename in the header as you are doing will be sufficient, but it's not. Try something along these lines: ServletOutputStream out = response.getOutputStream(); ba.wri

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
eged( new PrivilegedAction() { /** * Main processing method for the Validator object * [EMAIL PROTECTED] Description of the Returned Value */ public Object run() { try {

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
izable interface for resolving clustering issues, etc. -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 2:02 PM To: [EMAIL PROTECTED] Subject: RE: Single ActionForm accross multiple Actions I had that thought too, but I don't know enough abou

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
oks/pdfs/sg246176.pdf I'm not 100% sure, but it seems that the recommendation for session size being < 4-5K is targeted to the scenario where the server has to serialize the session for persistence. Dennis "Frank Zammetti" <[EMAIL PROTECTED]> 06/09/2004 01:10 PM Please resp

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
uot;Enrique Medina" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: RE: Single ActionForm accross multiple Actions >Date: Wed, 09 Jun 2004 16:45:04 +0200 > >I am sure about this problem

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
na" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: Single ActionForm accross multiple Actions Date: Wed, 09 Jun 2004 16:45:04 +0200 I am sure about this problem, believe me. See http://www-3.ibm.com/software

Re: [OT] thick client functionality in the browser

2004-06-09 Thread Frank Zammetti
ECTED] Subject: Re: [OT] thick client functionality in the browser Date: Wed, 09 Jun 2004 10:06:47 -0400 Frank Zammetti wrote: You know what I discovered about a month ago? Instead of using iFrames, you can get the same functionality with a with style="overflow:scroll;". The problem wi

RE: Fw: design security issue

2004-06-09 Thread Frank Zammetti
/camino_doc/manual/strutsIntro/struts1_0.html Harjot > - Original Message - > From: "Frank Zammetti" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 09, 2004 5:22 AM > Subject: RE: design security issue > > > > Well, you could do so

RE: Single ActionForm accross multiple Actions

2004-06-09 Thread Frank Zammetti
ctionForm = httpServletRequest.getSession().getAttribute("myForm"); // ... // normal code follows!!! } == Also, would I be correct in saying that I will be unable to use the ValidatorActionForm. TIA, Kunal -Original Message- From: Frank Zammetti [mai

RE: Single ActionForm accross multiple Actions

2004-06-08 Thread Frank Zammetti
// normal code follows!!! } == Also, would I be correct in saying that I will be unable to use the ValidatorActionForm. TIA, Kunal -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 June 2004 23:21 To: [EMAIL PROTECTED] Subject: RE: S

RE: design security issue

2004-06-08 Thread Frank Zammetti
error page. Also since one manage has a lot of employees so I want to make sure the data is not somehow messed up. Thanks. -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 5:41 PM To: [EMAIL PROTECTED] Subject: RE: design security issue Ex

RE: design security issue

2004-06-08 Thread Frank Zammetti
2004 15:32:16 -0500 One comment. Make sure your ActionServlet intercepts all URL patterns so any HTTP request need to get session validated first. Yuanbo -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 3:34 PM To: [EMAIL PROTECTED] Subject:

RE: design security issue

2004-06-08 Thread Frank Zammetti
To really do security properly, you really should externalize it using a product like Netegrity's SiteMinder. That would be my first suggestion, but there is considerable cost in something like that, so it's not right for everyone or every situation. So, you can do some more minor things withi

RE: ServletContext in Action

2004-06-08 Thread Frank Zammetti
PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: RE: ServletContext in Action Date: Tue, 8 Jun 2004 10:07:05 -0700 Frank, You can also use the following, if you want: this.servlet.getSe

URL during app init

2004-06-08 Thread Frank Zammetti
Here's a good one... Assume I have a plug-in to initialize my webapp... Assume further that the URL used to access my webapp is: http://localhost:8181/toa/ What I need to be able to do is, from my plug-in, get that URL exactly as you see above. Further, it should reflect whatever the URL is, so

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
ED]> Subject: Re: ServletContext in Action Date: Tue, 8 Jun 2004 07:45:00 -0700 (PDT) There's also getServlet().getServletContext() in case you don't want to go through the HttpSession object. --- Frank Zammetti <[EMAIL PROTECTED]> wrote: > Ah! I knew it would be an obvio

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
o: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: ServletContext in Action Date: Tue, 8 Jun 2004 07:45:00 -0700 (PDT) There's also getServlet().getServletContext() in case you don't want to go through th

RE: Interaction with .NET web service

2004-06-08 Thread Frank Zammetti
Is the Struts side of it a service consumer or supplier? If it's a supplier, check out my little project: http://www.omnytex.com/strutsws It's a very simplistic thing and not suitable for every situation, but depending on your requirements, it may be enough. For consuming .Net services though

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
Date: Tue, 8 Jun 2004 10:39:20 -0400 request.getSession().getServletContext(); "Frank Zammetti" <[EMAIL PROTECTED]> 06/08/2004 10:36 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject ServletContext in Action Can anyone see

ServletContext in Action

2004-06-08 Thread Frank Zammetti
Can anyone see how to get access to the current ServletContext object from within an Action? I might be missing something obvious, but I don't see a way to do it. Specifically I need to get the real filesystem path to my WEB-INF folder... I have code that does this already, but it requires the

RE: Action Forward

2004-06-08 Thread Frank Zammetti
Cool, I didn't know that. Ignore my solutions Brati! (I suggested manually doing a forward via RequestDispatcher and returning null from the Action... I believe that would work as well, but certainly this is much better). Frank From: "Robert Taylor" <[EMAIL PROTECTED]> Reply-To: "Struts Users

RE: Single ActionForm accross multiple Actions

2004-06-08 Thread Frank Zammetti
This is more or less what a session-scope ActionForm is for. As long as the ActionForm class contains all the properties and methods for all the screen it will service, just putting it in session I think is your best bet. As someone else said, hidden form fields are your other choice. Actuall

Re: Controller for web services

2004-06-04 Thread Frank Zammetti
I probably wouldn't bother replying to this, since a lot of it is supplanted by what I did for the later public WS project. I would just ignore what I posted here, it's kind of old news at tis point :) Have you looked through the documentation on my quick project site? The Technical Details t

RE: [OT] thick client functionality in the browser

2004-06-04 Thread Frank Zammetti
;m not sure how appropriate it is to the Struts list. If people are interested though, and no one objects, it might make a nice thread, something like "Rich GUI tricks" or something. Frank Daniel. > -Original Message- > From: Frank Zammetti [mailto:[EMAIL PROTECTED] &g

Re: [OT] thick client functionality in the browser

2004-06-04 Thread Frank Zammetti
Geez, I hope your not talking about an app I did part of a couple of years ago! :) Sounds very familiar... We had some Cobol jobs on a mainframe who's output we ran through something from IBM called Web Templates... It's meant to generate HTML, but instead we generated XML from it, then sent th

RE: [OT] thick client functionality in the browser

2004-06-04 Thread Frank Zammetti
use of reduced network activity and server load), but it's not good architecturally. It's not that dHTML and scripting MAKES you make bad choices, just that it makes it easier and more attractive in many cases. That's what I was trying to say, hopefuly I did a better job this time

RE: Strus Web Service Enablement

2004-06-04 Thread Frank Zammetti
>> I can't really say where to modify things... > >> > >>Another way would be, for each CustomAction written, write an > >>CustomActionXml that extends CustomAction. This CustomActionXml will Be > >> invoked whenever the path is for CustomAction AN

RE: [OT] thick client functionality in the browser

2004-06-04 Thread Frank Zammetti
I've personally made something of a career out of doing what your talking about. The applications I've built at work are known to have very Windows-like look, feel and functionality, much more so than most other web-based applications. To pull it off, two things are true... first, it is IE onl

RE: Strus Web Service Enablement

2004-06-04 Thread Frank Zammetti
ked whenever the path is for CustomAction AND the request is in >> XML. The logic will be done in the original CustomAction, difference >> being in the fact that CustomActionXml instead of redirecting to the >> 'original' forward of CustomAction, writes the response to outp

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-04 Thread Frank Zammetti
ost the only thing I have found I like about an IDE, and feel I can't do without.. ..but i agree with you: ultimately it's the coder and not the tools that count..:) Geeta > -Original Message- > From: Frank Zammetti [mailto:[EMAIL PROTECTED] > Sent: Friday, June

RE: HTTP header for dynamic pdf and IE6

2004-06-04 Thread Frank Zammetti
I'm doing this as well, and three things come to mind... (1) For IE, you must set the response size or it'll choke. Looks like your doing that already. (2) Try adding response.setContentType("application/pdf"); to your code. That's the only extra thing I'm doing in my code. (3) Acrobat integrat

Re: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-04 Thread Frank Zammetti
-INF/lib dir... Date: Fri, 04 Jun 2004 07:12:37 -0700 Frank, Great suggestion, I'll look into doing this as it is troublesome that hibernate and struts have the same deps (diff vers) on most of commons Frank Zammetti wrote: I'm pretty sure the answer is no. I just took all the JARs for

RE: Sorry : Semi-OT: Organizing WEB-INF/lib dir...

2004-06-04 Thread Frank Zammetti
Geez, and I just replied to your post! :) I guess you can ignore my post too. From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> CC: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Sorry : Semi-OT: Organ

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-04 Thread Frank Zammetti
. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Frank Zammetti" <[EMAIL PROTECTED]> 06/04/2004 09:41 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject RE: Semi-OT: Orga

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-04 Thread Frank Zammetti
Just curious, why do you say UltraEdit isn't good for Java development? It seems like, and this is the case here at work as well, that there is two schools of thought... one group says that IDEs and the like are better because of all the added development-specific tools you get (i.e., code insig

RE: Struts Web Services Enablement Project : version .02

2004-06-04 Thread Frank Zammetti
lazy users like me who generates struts-config etc via xdoclet..) regards marco -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 19:51 To: [EMAIL PROTECTED] Subject: Struts Web Services Enablement Project : version .02 Ok, I just posted version .0

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Frank Zammetti
I'm pretty sure the answer is no. I just took all the JARs for a test app I had installed and moved them from WEB-INF/lib to WEB-INF/lib/stuff, and the app no longer works. This is in Tomcat, so possibly it would work with another app server, but I tend to doubt it. One suggestion that I can

Struts Web Services Enablement Project : version .02

2004-06-03 Thread Frank Zammetti
Ok, I just posted version .02 of the newly-named Struts Web Services Enablement Project (prounced 'SWISS EP' I guess?!?). Here's the address again: http://www.omnytex.com/wst.zip This version I think is considerably more useful, but I'm still eager to hear anyone's opinions, comments, suggesti

Re: Action messages.

2004-06-03 Thread Frank Zammetti
ling List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Action messages. Date: Thu, 3 Jun 2004 13:55:11 -0300 Thanks Frank, Do you have any sample code of using ? I think this is also good to avoid 2 submit´s click. Am I rig

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
just curious..how do u pick the ActionForm from request? Each ActionForm has potentially a different name is it a struts trick? Take a look at the webServiceResponse.jsp... The pertinent lines are: ActionConfig mapping = (ActionConfig)request.getAttribute("org.apache.struts.action.mapping.i

RE: Action messages.

2004-06-03 Thread Frank Zammetti
You can "fake it" and do this... have a hidden in your page that, just before you submit your form, you display. You will probably also want to wrap everything else in your page in a and hide it at the same time. I say this is "faking it" because the browser won't have any idea what's going

Re: How to get requested path?

2004-06-03 Thread Frank Zammetti
Date: Thu, 3 Jun 2004 10:51:01 -0400 Frank- the Path Follows the URI and precedes the Query String http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated() Does this help?? Martin ----- Original Message - From: "Frank Zammetti" <[E

RE: How to get requested path?

2004-06-03 Thread Frank Zammetti
Never mind... I told you it would be obvious... request.getServletPath(). Argh. WAKE UP FRANK!! Frank From: "Frank Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: How to get requested path?

How to get requested path?

2004-06-03 Thread Frank Zammetti
I've been looking through javadocs for a couple of hours and I haven't found the answer to what seems like a straight-forward question... Assume I am writing a sublcass of RequestProcessor... how can I, in the processPreprocess() method, get the path that was called? In other words, if I submi

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
ated automatically via reflection. Regards marco -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 14:53 To: [EMAIL PROTECTED] Subject: RE: Strus Web Service Enablement >Also, I realized on the drive in that there's no need to put the

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Exactly! Actually...not sure about the template, but when u go via WS (webservices) all the client is interested is in getting back XML... The XML generated by you action class as a response... That's the thing I want to avoid though... I don't want the Actions to be altered at all (and the Action

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Also, I realized on the drive in that there's no need to put the parameters as a query string as I'm doing... I can just put the parsed parameters directly into the request object as an attribute. Since only the second pass of a Web Service request would know or care about that object, it will

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
h right now I have no clue on how to do it...maybe u or some struts expert which knows inner logic of struts knows? Will AOP help in any way here? Regards marco Extends -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 13:33 To: [EMAIL PROTECTED] Subjec

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
se will help? Last year I did something similar (wrote a Struts-based webapp That I was talking to using J2ME and KSOAP..but all I was able To do was to extend existing action and dump the generated XML Into the response.getWriter().write()... I was using axis btw for XML stuff on the serverside

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Frank Zammetti
I'm going to pull a Bill Gates here... "UltraEdit and a command prompt should be enough for anybody!" Seriously though... I know many people swear by this IDE or that IDE, but I've done a large number of projects ranging from small ones to huge ones, and each and every one was done with nothing m

RFC: Strus Web Service Enablement

2004-06-02 Thread Frank Zammetti
Hello all... I wanted to post this here and get any comments that people had so I could decide where to go with it... For the past two days I've been working on a mechanism that would allow you to expose existing Struts-based business logic as Web Services without changing any existing code. W

RE: RequestProcessor POST-processing

2004-06-02 Thread Frank Zammetti
Duh! Never mind... nothing like forgetting basic Java programming... Override processActionPerform() and be sure to call super.processActionPerform() first. I'll just be off in the corner flaying myself for a while... From: "Frank Zammetti" <[EMAIL PROTECTED]> Re

RequestProcessor POST-processing

2004-06-02 Thread Frank Zammetti
Hi all... I'm writing a custom RequestProcessor implementation where I need to do some pre-processing and some post-processing. Pre-processing is easy, I just overrode processPreprocess(). My question though is can I do the same thing post-request? What I mean is this... Assume I want to exe

Re: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
Isn't hideMessages() still a scripting element? I'm not familiar with that... From: Brad Balmer <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: How to display error msgs in a pop up window Date: Wed, 02

Re: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
ECTED]> Subject: Re: How to display error msgs in a pop up window Date: Wed, 02 Jun 2004 11:13:46 -0500 Another way would be to use some JavaScript on the input page that opens a new window, the popup, and writes the error messages directly to that using the document.write(...) function. Pret

RE: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
One way to do this (the only way I can actually think of) is this... write your logon page as you would normally in Struts, i.e., pretend your going to display your error message there. That means re-displaying the user's entries, all that. But, instead of displaying the messages, open a new

  1   2   >