RE: [OT] Call remote servlet from struts appl through https

2004-02-18 Thread Peter Abbot
Have a look at commons package HttpClient, I have used it a little for
communicating with remote servers and is very handy. From memeory there
is the ability to add request attributes/parameters.

http://jakarta.apache.org/commons/httpclient/



-Original Message-
From: Pani R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 19 February 2004 12:00 p.m.
To: Struts Users Mailing List
Subject: [OT] Call remote servlet from struts appl through https


Hi:

I'm trying to call a servlet that is running on a remote(secured)
machine from my application which is built on Struts though a Secured
Connection (HTTPS).

I had couple of options to do this. 

First, tried to use response.sendRedirect(). I dropped it because that
will have an extra travel between client and server. Moreover, I learned
that I will be loosing my objects in Requset Scope.

Second, I tried to implement it using a small Java client which will
make a HttpUrlConnection. It works find as long as I make connection
using HTTP. Once I try HTTPS it throws me out saying "Malformed
Exception". I tried to implement it using JSSE but I was not able to
succeed.

Is there any other better way of accomplishing this?

Have any one of you all had tried this before. If yes, can you guide me
to the right path.

Thanks,
Pani




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10

-
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] RE: Java / J2EE Developer

2004-02-16 Thread Peter Abbot
Maybe you should have taken your own advice and maybe I should have too,
but your comments are too "one eyed american" not to comment.

Improving your self doesn't mean you would have to change jobs, you
surely have spare time to learn and read new things and there is plenty
of trial software out there to play with.

Don't think that because you are american you are special and the only
one in this situation. It is occuring all around the world, and that is
why people go to other countries because the same situation is occuring
in their own country. Maybe you should take note and go overseas to see
that there is other cultures than just the US.

-Original Message-
From: Smith, Darrin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 17 February 2004 7:39 a.m.
To: 'Struts Users Mailing List'
Subject: RE: Java / J2EE Developer


I know better to get involved in this but...

Improve yourself?  How will that protect you unless that improvement
happens to mean lowering your salary 80% or so?

This is a problem to us in the US.  Maybe folks from other countries
don't care, and that is understandable, but it doesn't mean that we
Americans shouldn't stand up and fight. I wonder why we allow people to
come over to the US, attend our colleges, work in our firms, and then
leave to better their countries...not ours.  It doesn't make any sense
to me.  Maybe back in the late 90's when there was a lot of work, but
now?

BTW, I have been both outsourced (other country) and downsized (with
only non-US workers left).  No, they were not better...but they were a
lot cheaper.



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 12:28 PM
To: Struts Users Mailing List
Subject: RE: Java / J2EE Developer


Looks like the only way to compete is to improve yourself.  That works
for me, what about you?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




> -Original Message-
> From: Andy Engle [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 12:59 PM
> To: Struts Users Mailing List
> Subject: RE: Java / J2EE Developer
>
>
> deepak saini <[EMAIL PROTECTED]> wrote:
>
> > Come to India, there are lots of jobs for you here.
>
> This drives me crazy -- our future is being exported and nobody seems 
> to care.
>
> http://www.wired.com/wired/archive/12.02/india.html
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] RE: Orkut (read what the original message said)

2004-02-09 Thread Peter Abbot
Cant people read, it said email Vic NOT the email list!

-Original Message-
From: Dirk Manske (Service Respond) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 February 2004 2:27 p.m.
To: 'Struts Users Mailing List'
Subject: AW: Orkut


add me please. thx. 

-Ursprüngliche Nachricht-
Von: Oliver Thiel [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 10. Februar 2004 00:41
An: 'Struts Users Mailing List'
Betreff: AW: Orkut

... me too ... thanks!



-Ursprüngliche Nachricht-
Von: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 10. Februar 2004 00:22
An: Struts Users Mailing List
Betreff: RE: Orkut

add me too :-)

-R

-Original Message-
From: Babu, Bharathi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 6:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Orkut


Please add me.

-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Orkut


Can some one add me to the list please??

Thanks,
Sree

>>> [EMAIL PROTECTED] 02/09/04 02:11PM >>>
Hi,

Can someone please add me to Orkut
Thanks in advance

Cheers, Matthias




-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 6:33 PM
To: 'Struts Users Mailing List'
Subject: RE: Orkut


Hello, Please add me to Orkut.
Thanks


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Sunday, February 08, 2004 8:16 PM
To: [EMAIL PROTECTED] 
Subject: Orkut

If you want to join Struts in Orkut Social Network send me an e-mail 
saying so.

.V
(if you do not know what it is don't worry)


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action mappings

2004-01-27 Thread Peter Abbot
Are you using something like .do for your servlet mapping in the web.xml
to map requests to the ActionServlet.

The forward "continue" you have defined for you action
"/setUpEmployeeForm" needs to have the servlet mapping extension, so it
should look something like:





Cheers

Pete


-Original Message-
From: struts fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 28 January 2004 8:45 a.m.
To: [EMAIL PROTECTED]
Subject: Action mappings


I t seems Struts lets you use action mappings that it figures out and
forwards for you, but I have had no luck testing this.















So basically SetUpEmployeeAction should be called when the user submits.
Then SetUpEmployeeAction forward to SteveAction and then that forwards
to employeeForm.jsp. It errors out trying to load the resource
SteveAction, but I see nothing else I need to declare in any properties
file or resource file. Struts should be able to do this from what I've
read.


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts across WARs

2003-11-10 Thread Peter Abbot
Have you tried without the "/..". 



I have links to other webapps (although not using tiles) in some of my
applications and I can use the following fine:

>From webapp b:
 Go to web application A 

Don't see why it wouldn't work with tiles.

Pete

-Original Message-
From: Ramakrishnan Priya [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 11 November 2003 7:05 a.m.
To: [EMAIL PROTECTED]
Subject: Struts across WARs


 
Hi...
 
I'm having difficulty using struts across WAR files within a single EAR.
I have a template defined in a.war and am trying to reference the
template in b.war - here's how I am doing it and it doesn't work. Assume
a is the context for a.war and b for b.war.
 

 
I get the following error -
 
  
<[WebAppServletContext(7234521,b, /b)] Root cause of ServletException
javax.servlet.jsp.JspException: Failed to resolve path:
/a/site/workitems/lmDis playTemplate.jsp
 
Any ideas? Is this even possible?? Thanks!
Priya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session-scoped form and synchronization...

2003-10-27 Thread Peter Abbot
Generally if you are using a browser based interface to execute a
servlet requests (except if using frames) the user can only send one
request at a time. So if you are using a action with a session form and
another action wants to use that form means that the user doesn't want
the result of the previous request that might still be using the form.

Pete

-Original Message-
From: Manish Singla [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 October 2003 8:25 a.m.
To: Struts Users Mailing List
Subject: Re: Session-scoped form and synchronization...


hmmm. may be this not an bug...as struts ActionServlet extends  Java

Servlets .
And Java Servlet is not not thread safe

FYI: same goes for application attributes..



Bob Lee wrote:
> I assume this is a bug then, because there's no way for me to do this.
> It has to be done within Struts.
> 
> Bob
> 
> Kris Schneider wrote:
> 
>> Nope, don't think so.
>>
>> Quoting Bob Lee <[EMAIL PROTECTED]>:
>>
>>  
>>
>>> Does Struts synchronize on session-scoped forms? For example, can I
>>> assume that Stuts won't modify the fields on a session-scoped form
in 
>>> response to one request while an action is still using it?
>>>
>>> Thanks,
>>> Bob
>>>   
>>
>>
>>  
>>
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Thanks
Manish Singla
x73166


-
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: Defining Struts in Terms of PofEAA

2003-10-19 Thread Peter Abbot
I recall a couple of weeks ago somebody responded to a similar question
breaking each component from the struts framework into the matching
design pattern(s). Try searching the list archives for it.


Pete

-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED] 
Sent: Monday, 20 October 2003 3:39 p.m.
To: 'Struts Users Mailing List'
Subject: RE: Defining Struts in Terms of PofEAA


Hi Martin

Thanks, but no it didn't ;-) 

I am wondering if (for example) the Action Classes would actually be
considered an ApplicationController(379) as opposed to an Input
Controller which is the term Martin uses for the Controller in the
MVC(330) pattern.  

Or maybe it's a PageController(333)???

Cheers
Shane


> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Monday, 20 October 2003 3:29 p.m.
> To: Struts Users Mailing List
> Subject: Re: Defining Struts in Terms of PofEAA
> 
> Shane-
> 
> Take a look at 
> http://martinfowler.com/eaaCatalog/modelViewController.html
> 
> To quote HyperDictionary:
> (MVC) A way of partitioning the design of interactive software. The 
> "model" is the internal workings of the program (the algorithms), the 
> "view" is how
> the user sees the state of the model and the "controller" is how the
user
> changes the state or provides input.
> 
> Hope this helps,
> 
> -Martin
> - Original Message -
> From: "Shane Mingins" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 19, 2003 10:20 PM
> Subject: Defining Struts in Terms of PofEAA
> 
> 
> > Hi
> >
> > I was wondering if someone could be so kind as to define the Struts 
> > architecture in terms of the patterns in Martin Fowler's Patterns of

> > Enterprise Architecture.
> >
> > Is it possible to define the following elements in the controller 
> > layer (from Struts In Action):
> >
> > ActionForwards
> > ActionForm Classes
> > ActionServlet
> > ActionMappings
> > Action Classes
> >
> > As I read about input controllers vs application controller and then
> page
> > controllers, I am wondering whether elements of the Struts framework
> fall
> > into these patterns or not?
> >
> > Could some one familiar with both Struts and PofEAA please enlighten

> > me?
> >
> > Thanks
> > Shane
> >
> > Shane Mingins
> > Analyst Programmer
> > Assure NZ Ltd
> > Ph 644 494 2522
> >
> >
> >
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts tags displaying in html

2003-09-01 Thread Peter Abbot
Hi

I know I have seen this on the list before but all the search phrases I
try don't seem to find what I am looking for.

I am having the problem that custom tags (such as struts-html and my own
custom tags) are not getting converting when the jsp pages goes through
the compiler and the html that I view through the browser still have the
custom tags.

Cheers

Pete

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent: generating PDF from form data

2003-08-14 Thread Peter Abbot
I have used FOP to generate PDF within struts and it works great.

In the beginning to save to with dealing with the formatting of the PDF
document I used FOP to translate genereate web pages into PDF. 

The only thing is that your generated webpage needs to be in xhtml
format. If using the struts html tags you will need to specify
 so the page gets generated properly.

If you want I can send you the xsl stylesheet for translating the xhtml
in creating the pdf document.

Pete

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 August 2003 6:33 a.m.
To: [EMAIL PROTECTED]
Subject: RE: Urgent: generating PDF from form data


What is FOP? I am a newbie in struts

--mohan


> Have you looked at FOP?
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 1:16 PM
> To: [EMAIL PROTECTED]
> Subject: Urgent: generating PDF from form data
>
>
> Hi All
> I use struts. I wanted to know if there is a we can generate a PDF 
> with the form data the user submits so that the users can print the 
> pages. Please let me know if there is any resource on it or if there 
> is something related to it.
>
>
> Thanks in Advance
>
> --Mohan
>
>
>
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] For

> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] For

> additional commands, e-mail: [EMAIL PROTECTED]




-
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: Problems removing (expiring Cookie) in Action

2003-06-25 Thread Peter Abbot
Setting it to 0 means that it will only be deleted once the browser
closes. I remember seeing a posting a while ago that suggested that if
you want to delete a cookie immediately then set the max age to 1.

Pete

-Original Message-
From: Jeremy Nix [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 26 June 2003 8:06 a.m.
To: [EMAIL PROTECTED]
Subject: Problems removing (expiring Cookie) in Action


Is there anything that I need ot be aware of in terms of
expiring/removing a Cookie within an Action?  I'm setting the maximum
age to 0 and then adding the cookie back to the response and somehow
that cookie shows up after I've forwarded my request to the next action.
I'm I missing a step?  

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Living in a frame

2003-06-23 Thread Peter Abbot
There is some javascript security issues when calling javascript in a
frame that is sourced from one server to another frame that is sourced
from a different server even though they might be in the same domain,
i.e. server1.adomain.com will think that server2.adomain.com is in a
different domain and any inter-frame javascript calls wont work.

Putting the following in the html  section is a way to get around
this. It tells the browser that both frames are acutally in the same
domain.

document.domain="adomain.com";



Pete


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 June 2003 9:04 a.m.
To: [EMAIL PROTECTED]
Subject: Living in a frame



So far I've resisted, but I have a feeling my next Struts app is going
to get sucked into a frame.  The department that handles "the website"
likes to appropriate content, and of course it looks more unified if
things don't pop out into their own browser window like I'm doing now.
They handle the static HTML with IIS, and there's a separate server
running Apache/Tomcat that serves up the Struts apps.

So... If they insist on stuffing my Struts webapp into a frame instead
of targeting a new window for me, is there anything I should be aware
of?  I'm concerned about the jsessionid, about how the tabbed tiles are
going to work, etc.  I know the real answer is to just try it, but I
wondered if anyone had any advice up front.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Public Affairs, Information Resources Management
Arizona State University, Tempe AZ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] JAAS

2003-05-29 Thread Peter Abbot
We were looking at the same thing a while back and all the articles we
found stated that JAAS doesn't integrate (very well) with Role based
security yet, it is still in the pipelines for the next version of the
j2ee standard.

What we are looking at doing is creating a some security modules that
utilize our application servers (EAServer) security extensions with the
view of migrating the code to use JAAS when role based security is
better supported.

Another option is to look (as suggested many times before on the list)
at the security filter package that is on source forge.

http://securityfilter.sourceforge.net/


Pete

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 29 May 2003 9:00 a.m.
To: [EMAIL PROTECTED]
Subject: [OT] JAAS


 

Part of this is on topic and part off topic.

 

Off topic:

 

I want a web based Authenitication and Authorization scheme which is

web server independent (but for my web app).  I started down the road

of writing my own LoginModule, CallbackHandler, and Principal
implementation.

Those are done and I use the LoginContext in my LoginAction to start
things

off.  So far so good.  A couple of questions. Do I need to worry about
setting

remote user and user principal (as in req.getXX() ) or ...  Basically, I
am at

the point where I can get the Subject with a Principal (consisting of
login
name)

and I don't know how to connect all the web stuff OR is there another
way

to do Auth without a server dependent mechanism out there?

 

On topic:

 

Does struts 1.1 have role capabilities in the action mapping
specification

(roles per action) or any other built in mechanism for doing roles with
actions?

If so, what needs to get set (e.g. session.setAttribute("User",
someSubject); )

etc???

 

Basically I need to get an Authentication and Authorization mechanism
implemented

by Monday and I would like to have a very write once run with any web
server solution

but that part is secondary.  I am using JRun4.  Any suggestions?

 

TIA


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts link to map viewer

2003-03-31 Thread Peter Abbot
Last week someone posted a link to a site that used struts and ArcIMS to
display maps. 
There was an example of a version of the application that was targeted
to the PDA. 

I have searched the archives but cant seem to find it. 
Can whoever sent it, send it again. I would like to show it to my boss
because we are looking at extending our ArcIMS/struts application doing
something similar for PDA's and tablets.

Cheers
Pete

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]