RE: submitting back to opener page

2003-06-26 Thread El Harouchi, Jaafar [IT]
Try:
opener.document.forms[0].submit();
If that doesn't work, debug by doing
alert(opener.document.forms[0]);
We have this working in IE 5+, NS 4.7+
HTH
-jaafar
 

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 4:50 AM
To: [EMAIL PROTECTED]
Subject: RE: submitting back to opener page



hi,
window.opener.document.forms[0].submit();
does't work for me, says "object does't support this property" i am using IE5.0
window.opener.document.location.href="sdf.do" works for me ,but i want to submit the 
form to get the other form elements
 
any clues?
 
TIA
 
-nagi
 
---Original Message---
 
From: Struts Users Mailing   List
Date: Thursday, June 26, 2003 12:22:34 PM
To: 'Struts Users Mailing   List'
Subject: RE: submitting back to opener page
 
If you want to submit the form in the original page, you can try javascript
like:
window.opener.document.forms[0].submit();
If you need to first set some values from the child window:
window.opener.document.forms[0].elements["field name"].value =

HTH
-jaafar

ps: Matt will probably correct me to forms[0]["field name"] above.

-Original Message-
From: Andrew Hill [ mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:22 AM
To: Struts Users Mailing List
Subject: RE: submitting back to opener page


My app had a similar requirement so what I did was have the popup submit
directly to the action and then the action returned a forward to a page
(displayed in the popup) that had javascript to invoke a refresh method in
the opener window and then to close its own (popup) window.
-Original Message-
From: Nagendra Kumar O V S [ mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 14:13
To: [EMAIL PROTECTED]
Subject: submitting back to opener page


hi,
i have a jsp with a button which opens up a new pop-up window. when
i say submit on the pop-up window , i want to close the pop-up window and go
to the action class(do the needful) and now i want to refresh the opener
page(main jsp).
can i do this, if yes how??
any ideas...

--nagi

Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789



IncrediMail - Email has finally evolved - Click Here

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


.



    IncrediMail - Email has 
finally evolved -   Click Here 



RE: iteration to create dynamic form

2003-06-25 Thread El Harouchi, Jaafar [IT]
try with multibox instead of checkbox:
http://jakarta.apache.org/struts/struts-html.html#multibox
-jaafar


-Original Message-
From: Piers Dunleavy [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:32 AM
To: Struts Users Mailing List
Subject: iteration to create dynamic form


I have a  tag which is supposed to create a dynamic form, filled with a 
checkbox for every object in a collection. (The checkbox is an option to delete one of 
those records from the database.) The form itself is a Map-Backed Action form with two 
methods (public void setValue(String key, Object value) and public Object 
getValue(String key)). 




<%
(dataobjects.Record) l = (dataobjects.Record)pageContext.findAttribute("record");
String name= new String("value(" + r.getID()+")");
%>



  ..other stuff describing the record..



Is there a way in Struts to do this without calling the "record" object from the 
pageContext? Can't I get the  tag to recognize the 'record' bean 
directly without using that scriptlet and then creating a String to set the 
appropriate mapped value? 

Best,
Piers

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



RE: submitting back to opener page

2003-06-25 Thread El Harouchi, Jaafar [IT]
If you want to submit the form in the original page, you can try javascript
like:
window.opener.document.forms[0].submit();
If you need to first set some values from the child window:
window.opener.document.forms[0].elements["field name"].value =

HTH
-jaafar

ps: Matt will probably correct me to forms[0]["field name"] above.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:22 AM
To: Struts Users Mailing List
Subject: RE: submitting back to opener page


My app had a similar requirement so what I did was have the popup submit
directly to the action and then the action returned a forward to a page
(displayed in the popup) that had javascript to invoke a refresh method in
the opener window and then to close its own (popup) window.
  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 26 June 2003 14:13
  To: [EMAIL PROTECTED]
  Subject: submitting back to opener page


hi,
i have a jsp with a button which opens up a new pop-up window. when
i say submit on the pop-up window , i want to close the pop-up window and go
to the action class(do the needful) and now i want to refresh the opener
page(main jsp).
can i do this, if yes how??
any ideas...

--nagi

Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789


  
IncrediMail - Email has finally evolved - Click Here

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



RE: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread El Harouchi, Jaafar [IT]
And I highly recommend first doing:
response.reset();
if you are using HTTPS.
-jaafar

-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:47 PM
To: 'Struts Users Mailing List'
Subject: RE: How To Render Binary Output - spreadsheet - from Struts


Also, you will want to set some headers too:

response.setHeader("Content-Disposition","attachment;filename=\"" + fileName
+ "\"");

This will prompt the person to download the file (basically automates the
save as).  I just finished doing the same thing for a project and we wanted
to remove the confusion about what to save and what the file name was, etc.

-Jacob Hookom

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:59 PM
To: Struts Users Mailing List
Subject: RE: How To Render Binary Output - spreadsheet - from Struts

Make a servlet call, then set the response content type as

response.setContentType("application/vnd.ms-excel");

and then write the contents of the excel spreedsheet the the reponse output
stream.  If you have a hyperlink on a jsp page that has an href like this:

  http://localhost/context/do-export-mapping

then by setting the content type above will cause excel to open
automatically.

Mike

-
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: Download files over HTTPS

2003-06-24 Thread El Harouchi, Jaafar [IT]
I had exactly the same problem.
Try first doing : response.reset()
If this doesn't work then you can try:
  Adding  8192 bytes to be sure that IE shows the document:
ostream.write(new byte[8192]);
  Setting contentlength: response.setContentLength(data.length+8192);
  Flushing the buffer:  response.flushBuffer();
-jaafar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 2:22 PM
To: [EMAIL PROTECTED]
Subject: Download files over HTTPS


Hi,
I have a code segment which generates the file download dialog in the
browser. The file types supported are .qif, .xls

response.setContentType(download.getContextType());
response.setHeader("Content-Disposition", "attachment; filename=" +
download.getFileName() );

BufferedWriter out = new BufferedWriter(new
OutputStreamWriter(response.getOutputStream()));
out.write(download.getReport());
out.flush();
out.close();

This works great over HTTP in both IE 6.0 and Netscape 4.78.

But when I try this over HTTPS, the download dialog shows up with the file
name as the URL (download.do) and nothin in content type. So IE displays an
error message saying that download cannot be completed.  It works great in
Netscape 4.78

Has anybody come across this situations? Any solutions?

I am using Struts RC-1 on weblogic 5.1, JDK 1.3.1

Thanks
Shoba





-
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: Object-oriented encapsulation in Struts - merging Actions and ActionForms

2003-06-24 Thread El Harouchi, Jaafar [IT]
Dan,

You could treat the ActionForm similar to Transfer Objects, which is a
completely valid pattern.  Furthermore, they are self-contained in the sense
that they know how to validate and reset themselves.

Actions have a one to many relationship with ActionForms, since there is one
Action servicing multiple requests.  This in itself does not break any
encapsulation rules.  What you are suggesting would imply creating a new
Action(Form) for every request, and I'm not sure that Struts would remain as
performant.

Your point about partial view states and partial controller states is
relevant, but it is probably more related to HTTP limitations as a stateless
protocol.  I haven't look at jplates yet, so please bear with me.

thanks
-jaafar


-Original Message-
From: Dan Jacobs [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:52 PM
To: 'Jones, Ted'; 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: RE: Object-oriented encapsulation in Struts - merging Actions
and ActionForms


The MVC design pattern is an object-oriented design pattern.  It is not
inconsistent with object-oriented encapsulation!

A Struts ActionForm is not part the model in an MVC application.  It's
really just an odd combination of the dismembered state of the
controller and a dismembered partial state of the view.  The model, for
most Struts applications, is back in the EJB tier.

Take a look at the link at http://www.jplates.com about scriptlets.  It
talks a lot about this common misunderstanding.  Separation of
*independent* concerns is a driving force behind a lot of
object-oriented design patterns.  But separation of object-state from
the methods that should manage that state is a violation of
object-oriented encapsulation.

Dan Jacobs
JPlates Inc.
http://www.jplates.com


> -Original Message-
> From: Jones, Ted [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 24, 2003 10:50 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Object-oriented encapsulation in Struts - 
> merging Actions and ActionForms
> 
> 
> That makes sense ...but wouldn't that break the MVC pattern 
> by moving the Controller function into the Model?
> 
> Ted Jones 
> Maritz Inc. 
> [EMAIL PROTECTED]
> http://www.maritz.com/ 
> 
> 
> -Original Message-
> From: Dan Jacobs [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 10:40 AM
> To: [EMAIL PROTECTED]; 'Struts Users Mailing List'
> Subject: RE: Object-oriented encapsulation in Struts - 
> merging Actions and ActionForms
> 
> 
> The kind of change I'm suggesting is not small or 
> incremental.  It's pretty fundamental.
> 
> Suppose you've got an ActionForm that represents the state of 
> some presentation object.  It has no object-oriented behavior 
> at all.  Just ways to read and write its fields.
> 
> Now suppose you've got some Actions that are meant to do 
> things based on the ActionForm.  They're like "C" functions 
> in that they just compute, and are not associated with any 
> instance data.  They can access the equivalent of global data 
> from the session, but they're not really methods of objects.
> 
> Now combine them.  Define a class where the instance state is 
> basically the same as what was in the ActionForm, and that 
> defines methods that do the same things as were done by the 
> Actions.  But instead of passing an ActionForm to an Action, 
> just invoke a method on an object.
> 
> The rest of the implementation is a matter of reflection 
> tricks, and there probably has to be some additional 
> framework support to compensate for the lack of closures in 
> Java, and make the methods act like objects that conform to 
> some required interface.
> 
> Does that make sense?
> 
> Dan Jacobs
> JPlates Inc.
> http://www.jplates.com
> 
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 24, 2003 8:46 AM
> > To: Struts Users Mailing List
> > Subject: Re: Object-oriented encapsulation in Struts - 
> > merging Actions and ActionForms
> > 
> > 
> > Specifically, what would you change?
> > 
> > David
> > 
> > --- Dan Jacobs <[EMAIL PROTECTED]> wrote:
> > > [ potentially controversial topic ]
> > > Hi all,
> > > I have noticed that most of my Struts applications
> > > end up being
> > > implemented like dismembered objects.
> > > 
> > > I design the controller parts of my Struts
> > > applications using
> > > object-oriented design techniques, but then I have
> > > to transform my
> > > designs into an awkward, non-object-oriented form:
> > > 
> > > * What was originally encapsulated object state has
> > > to be extracted
> > >   and isolated as ActionForms.
> > > 
> > > * What were originally methods that acted on
> > > encapsulated object state
> > >   have to become stateless processors in the form of Actions.
> > > 
> > > * The Struts servlet acts like another 
> method-turned-C-function when
> > >   it resets and assigns property-values in the
> > > ActionForms.
> > > 
> > > I can tra

RE: Struts-menu

2003-06-23 Thread El Harouchi, Jaafar [IT]
The menu repository is stored in the application context.
Look at the plugin (i'm on struts 1.0 so load it through a startup servlet).
What you do on every page is use a tag library to invoke the appropriate
displayer which renders the menu.
What you do store in the session, or wherever is appropriate, is the
PermissionsAdapter.
I don't use the role based permissioning, but load a PermissionsAdapter for
each user, which contains the  ids they have access to from the DB.

Look at the Permissions example at: 
http://www.raibledesigns.com/struts-menu/index.jsp

The example code is available through:
http://sourceforge.net/projects/struts-menu/

hth
-jaafar

-Original Message-
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:19 PM
To: Struts Users Mailing List
Subject: Re: Struts-menu


How can I put menu into session? Which class to modify?
Recreate menu on each page isn't clever - it's always the same.


- Original Message - 
From: "Raible, Matt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 12:11 PM
Subject: RE: Struts-menu


> The easiest thing to do is to use container-managed authentication - i.e.
> Tomcat's JDBCRealm.  Since you'll have to hard-code your roles in
web.xml -
> why not code them in menu-config.xml as well.
>
> Of course, you could allow all roles by using * in web.xml.  This is the
way
> I've done it and it might take a bit to setup, but who has permissions to
> see what on a menu rarely changes (at least not on my projects).
>
> HTH,
>
> Matt
>
> -Original Message-
> From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 10:07 AM
> To: Struts Users Mailing List
> Subject: Struts-menu
>
>
> Hello,
>
> I couldn't get any response from Struts-menu mail list, so I'm wandering
if
> somebody here could help me.
> I'm new to struts-menu. I want to create a role-based expandable menu. I
> have an existing system with Roles DB table.
> How can I specify menu permissions for particular Role and save it to
> menu-config.xml?
> Does anybody has any examples?
>
>
> -
> 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: [FRIDAY] SIA Trivia Game - Re: [ANNOUNCEMENT] Struts 1.1 Release Candidate 2 released

2003-06-22 Thread El Harouchi, Jaafar [IT]
 I'm reading this right now.
-jaafar

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 1:06 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] SIA Trivia Game - Re: [ANNOUNCEMENT] Struts 1.1
Release Candidate 2 released


> "The mother of several children may be the father of several more."
> 
> If no one gets this now, then I'm *really* dating myself (so to
speak). =:0)
> 



http://www.amazon.com/exec/obidos/ASIN/0441478123/ref%3Dnosim/sealarksgo
odbook/002-1744259-1793629


Tib


-
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]



RESOLVED RE: Path Info for downloaded files

2003-06-19 Thread El Harouchi, Jaafar [IT]
We resolved the download issue by first doing:
response.reset();
I would still be interested in how to set the Path Info.
thanks,
jaafar

-Original Message-
From: El Harouchi, Jaafar [IT] 
Sent: Thursday, June 19, 2003 1:01 AM
To: [EMAIL PROTECTED]
Subject: Path Info for downloaded files


Hi,
I've been trying to get generated PDF and CSV files to be downloaed by my actions but 
can't get it to work in IE using HTTP 1.0 when my app is behind the corporate portal.  
It works when accessed directly through the app (but not when I try to reach the 
action by putting the full url).

I'm using all the tricks I could find:
  Setting ContentType:  response.setContentType("application/pdf");
  Setting the ContentDisposition: response.setHeader("Content-Disposition", 
"attachment; filename=file.pdf";
  Adding  8192 bytes to be sure that IE shows the document: ostream.write(new 
byte[8192]);
  /Setting contentlength: response.setContentLength(data.length+8192);
  // Flush the buffer:  response.flushBuffer();

It works in Netscape 4.7, Netscape 6.
Since IE is the problem and our corporate standard i have to try setting the Path 
Info, instead on relying on the content disposition.

So how would you set the path info if you have your actions mapped as follows:
  
action
/action/*
  
and configured as follows:
   


These are dispatch actions anf the url is something like:
http://.../action/dailyReports
If I change it to GET from POST it would be:
http://.../action/dailyReports?dispatchMethod=retrieve&reportRequest.reportIds=RDQQPB77&reportRequest.format=pdf&reportRequest.mgmtGroupNumber=51555&reportRequest.actMnemonic=XPBALC

Where would the path info go?
If I add it in between action/file.pdf/dailyReports the mapping fails and my action is 
not invoked.
If I add it at the very end &test/file.pdf I get the same stupid IE error after it 
prompts you to open/save.

Any ideas would be greatly appreciate it.

Sorry if it is a little incoherent but we really understimated our effort and have had 
to work looong hours.

thanks a lot
-jaafar

-
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: DispatchAction?

2003-06-18 Thread El Harouchi, Jaafar [IT]
Try
in your submit or url: onclick=setMethod(this.form, 'whatever');

A. function setMethod(form, method) {
form.action = form.action + "?dispatchMethod=" + method;
}

or B. have a hidden field and correspong ActionForm field
mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 1:01 AM
To: Struts Users Mailing List
Subject: RE: DispatchAction?


Other parameters can go as part of action. In your case you can put it as.


I have not tried this but mostly I feel it should work.

Cheers,
Ashutosh

-Original Message-
From: Bjorn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 10:16 AM
To: [EMAIL PROTECTED]
Subject: DispatchAction?

I am starting to use DispatchAction instead of some of my actions to
simplify CRUD operations, but I have a question.
How do I integrate which method to call in a html:form tag? I.e. if I could
write http://localhost/app/order?method=create then it wouldn't be a
problem, but how do I write the same thing using html:form?
( where should I put the method
parameter? )


Regards,

BTJ



---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no

---
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."

---


-
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]



Path Info for downloaded files

2003-06-18 Thread El Harouchi, Jaafar [IT]
Hi,
I've been trying to get generated PDF and CSV files to be downloaed by my actions but 
can't get it to work in IE using HTTP 1.0 when my app is behind the corporate portal.  
It works when accessed directly through the app (but not when I try to reach the 
action by putting the full url).

I'm using all the tricks I could find:
  Setting ContentType:  response.setContentType("application/pdf");
  Setting the ContentDisposition: response.setHeader("Content-Disposition", 
"attachment; filename=file.pdf";
  Adding  8192 bytes to be sure that IE shows the document: ostream.write(new 
byte[8192]);
  /Setting contentlength: response.setContentLength(data.length+8192);
  // Flush the buffer:  response.flushBuffer();

It works in Netscape 4.7, Netscape 6.
Since IE is the problem and our corporate standard i have to try setting the Path 
Info, instead on relying on the content disposition.

So how would you set the path info if you have your actions mapped as follows:
  
action
/action/*
  
and configured as follows:
   


These are dispatch actions anf the url is something like:
http://.../action/dailyReports
If I change it to GET from POST it would be:
http://.../action/dailyReports?dispatchMethod=retrieve&reportRequest.reportIds=RDQQPB77&reportRequest.format=pdf&reportRequest.mgmtGroupNumber=51555&reportRequest.actMnemonic=XPBALC

Where would the path info go?
If I add it in between action/file.pdf/dailyReports the mapping fails and my action is 
not invoked.
If I add it at the very end &test/file.pdf I get the same stupid IE error after it 
prompts you to open/save.

Any ideas would be greatly appreciate it.

Sorry if it is a little incoherent but we really understimated our effort and have had 
to work looong hours.

thanks a lot
-jaafar

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



RE: Struts Menu question

2003-06-17 Thread El Harouchi, Jaafar [IT]
Filip,
You can definitely do that.
Your menu definitions are in the xml configuration file, but the logic for
determining which ones to display and how to display them is handled by the
MenuDisplayers.  The MenuDisplayers can have a PermissionsAdapter which
encapsulates entitlement logic.

Look at the Permissions example at: 
http://www.raibledesigns.com/struts-menu/index.jsp

The example code is available through:
http://sourceforge.net/projects/struts-menu/

I recommend users to start sending Struts Menu questions to: 
struts-menu-user (subscribe via SourceForge)

HTH,
jaafar



-Original Message-
From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 4:02 AM
To: Struts Users Mailinglist
Subject: Struts Menu question


Hi,
i'm pretty new to Struts Menu and have one simple question before i start:

is it possible to display menuitems depending on some conditions. e.g. only
displaying an admin-menu if the user is logged on as Administrator?

thanks in advance

Filip Polsakiewicz


-
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 menu 1.2 question

2003-06-16 Thread El Harouchi, Jaafar [IT]
Ashish,
Most of the displayers bundled in with struts-menu go as many levels
down as defined.
The source code is available through:
http://sourceforge.net/projects/struts-menu/
They are demoed at :
http://www.raibledesigns.com/struts-menu/index.jsp

The idea of having the menu go on the other side once the bottom of the
page is interesting but might take some serious effort to implement.
The javascript bundled with struts-menu is from:
http://www.dhtmlcentral.com/projects/coolmenus/ 

This should be enough to get you started.

If you have more questions you can subscribing to the struts-menu-user
list via the sourceforge link above.

HTH,
Jaafar

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:31 PM
To: Struts Users Mailing List
Subject: RE: struts menu 1.2 question


Hi,
i want to go multiple leyels down, and may be any
level down, also i want the menu to be displayed on
left side if it reaches end of screen
do u have some code sample for writing these
displayers and java script
--- "El Harouchi, Jaafar [IT]"
<[EMAIL PROTECTED]> wrote:
> We have up to three levels down, but use our own
> displayers/javascript.
> How many levels down are you going?
> -jaafar
> 
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2003 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: struts menu 1.2 question
> 
> 
> Hi,
> has anyone used struts menu to build drop down menu
> to
> any level, 
> I was trying to use coolmenu3 and it fails when i go
> to levels down, 
> any  suggestions, about it
> 
> Ashish
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> 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]
> 


=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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 menu 1.2 question

2003-06-16 Thread El Harouchi, Jaafar [IT]
We have up to three levels down, but use our own displayers/javascript.
How many levels down are you going?
-jaafar

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: struts menu 1.2 question


Hi,
has anyone used struts menu to build drop down menu to
any level, 
I was trying to use coolmenu3 and it fails when i go
to levels down, 
any  suggestions, about it

Ashish

=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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] Application Security

2003-06-11 Thread El Harouchi, Jaafar [IT]
So what problem are you trying to address:
1) Users accessing data they are not entitled to access?
2) Users accessing data they are entitled to access, but in an automated 
manner which allows them to datamine, etc?
3) General hacks?

#1 is what we usually deal with, storing permissions and validating them against each 
resource they try to access.  There are a number of mechanisms, just search the 
archive for authentication and authorization.

#2 Is more of a workflow issue and sounds like a business requirement, like enforcing 
a maximum number of resources which can be accessed within a given period of time.

#3 If your app is well designed (proper authentication/entitlements, validations, 
separation of layers) you should be ok.  ActionForms act as buffers and provide a 
layer of security.  Make sure that users cannot access jsps directly... (I'm hoping 
someone else will give a more complete answer).

-jaafar


-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 9:15 AM
To: Struts Users Mailing List
Subject: Re: [OT] Application Security


Paul Thomas wrote:

>
> On 10/06/2003 17:47 Denis Avdic wrote:
>
>> Hello,
>>
>> This is really off topic, but since everyone is working in similar 
>> conditions I though I'd ask you all a question.
>>
>> How is everyone handling security in your applications?
>>
>> More specifically, we have a site where someone violated our 
>> acceptable use policy and basically tried to retrieve all our data 
>> through a previously unseen hole.  Now, we patched it and we can 
>> definitely go on and keep patching holes when we find them, but I 
>> would like to set up something to prevent that from happening in the 
>> first place.  I am talking about setting up an Intrusion detection 
>> system or something similar, where I could be at least alerted in 
>> real time that something funky is happening, and that I don't have to 
>> accidentaly stumble across the action in the log file.  How are you 
>> (if you are) handling this?  Are there open source tools to set this 
>> up?  Commercial?
>
>
>
> Sounds like you're following the M$ security model - throw any old 
> crap out of the door then patch, patch, patch ... Still, Bill Gates 
> has done very nicely out of it so maybe this method has commercial 
> benefits.
>
> Seriously though, how do you expect anyone to be able to give an 
> answer to this? At what level did the intrusion take place? OS? 
> Service? Application server? Application?
>
I'll ignore the thinly veiled insult there.

What our site is basically about is that people can access some 
information retrieved from a database.   This person registered and 
basically went and accessed all of the profiles stored on our server, 
sequentialy, using an automated process (2 per second).  This was in 
violation of our acceptable use policy.  My question is what do people 
use if something like this happens, or how do they handle any other 
intrusions on all other levels.

Denis


-
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: readonly of text

2003-06-10 Thread El Harouchi, Jaafar [IT]
Check: http://jakarta.apache.org/struts/userGuide/struts-html.html#text
It supports both readonly and disabled.
So try something like:

-jaafar

-Original Message-
From: lcl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 10:47 PM
To: [EMAIL PROTECTED]
Subject: readonly of text


Hi all,

In struts html tag , such as text ,there is not a readonly property, so How
can I set the readonly property of the text input control to "readonly" ,
for example, the output html will like this :


Could you give me some advice? Thank you very much.

Best Regards
lcl




-
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: StrutsMenu 1.2?

2003-06-09 Thread El Harouchi, Jaafar [IT]
Try:
http://sourceforge.net/projects/struts-menu/
http://www.raibledesigns.com/struts-menu/index.jsp
-jaafar

-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 8:59 AM
To: Struts Users Mailing List
Subject: RE: StrutsMenu 1.2?


Whats this Struts Menu ..Where could I find that ?? 

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 5:03 PM
To: Struts Users Mailing List
Subject: StrutsMenu 1.2?


I need some kind of dynamic generation of menu items in my webapp, is
StrutsMenu the way to go or should I look into something else, or
implement it myself?


Regards,

BTJ

-- 

---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no

---
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."

---


-
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: StrutsMenu 1.2?

2003-06-09 Thread El Harouchi, Jaafar [IT]
+1 for Struts Menu.
We were able to plug in our custom authentication seamlessly and just had to
write a couple of displayers to get the look and feel we needed.
Highly recommended and it is still being enhanced.
-jaafar

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 7:33 AM
To: Struts Users Mailing List
Subject: StrutsMenu 1.2?


I need some kind of dynamic generation of menu items in my webapp, is
StrutsMenu the way to go or should I look into something else, or
implement it myself?


Regards,

BTJ

-- 

---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no

---
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."

---


-
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: New York City Struts Group

2003-03-25 Thread El Harouchi, Jaafar [IT]
One newbie here interested
-jaafar

-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 3:22 PM
To: Struts Users Mailing List
Subject: New York City Struts Group


How many people would be intrested in the formation of a New York City
Struts User group.
If Atlanta GA, New Jersey can have one so should we.

Daniel Jaffa


-
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: [FRIDAY] List of sites using Struts

2003-03-14 Thread El Harouchi, Jaafar [IT]
You can add Citigroup.
It is a Recommended Technology here, but we only have 1.0.2.  I'm waiting
for 1.1 to become an official release to try to have it added as a supported
version.
cheers,
Jaafar

Jaafar El Harouchi
Sr. Programmer/Analyst
Salomon Smith Barney / Citigroup

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 9:39 AM
To: Struts Mailing List (E-mail)
Subject: [FRIDAY] List of sites using Struts


After the interesting exchange the other day, I went back through the emails
and composed a list of sites that use Struts. This list can be found on my
website and I offer it here for your consideration and abuse (mostly from
Mark and former Lisp programmers I expect! :-)

http://simonpeter.com/techie/java/struts/sites.html

Feel free to suggest other sites that you know of.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

-
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]