html:cancel problem

2002-10-28 Thread Nicolas Parisé
Hi,
 
I have problem with the html:cancel tag in STRUTS 1.02
 
 
I have an Action class that create an instance of a ActionForm, populate
it with data and put it in the session (session.setAttribute). Then my
action class redirect the request to a JSP page that display the data
from the session’s actionForm. The problem
occur when someone modify one of the fields in the JSP and then click
the cancel button. The data in the session has been modified event if
that’s a cancel button.
 
Is it normal?
 
 
 
Can someone help me with that?
 
 
Thank you!
 
 
Nicolas



Re: Struts Tutorial

2002-04-10 Thread Nicolas Parisé

Great job Mark 

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
Newsgroups: Struts
Sent: Tuesday, April 09, 2002 8:10 AM
Subject: RE: Struts Tutorial


> Great initiative!
>
> -Original Message-
> From: Stephan Wiesner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 12:58 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Tutorial
>
>
> Hi, I'm writing a Struts tutorial. The actual version (30 pages at the
> moment) can be found
>
> at:
>
> http://rzserv2.fhnon.de/~lg002556/struts/
>
>
>
> It is written in englisch. And intended as an easy, step by step
> introduction.
>
>
>
> Stephan
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Installing Struts 1.0 on Websphere 3.5.4

2001-10-21 Thread Nicolas Parisé



I want to install Struts on WAS 3.5.4, should I do 
the steps
required for 3.5.2 explained on the Struts 
site?
 
 
Thank you
 
 
Nicolas Parise


View-Document approach

2001-10-24 Thread Nicolas Parisé



Hi,
 
I have a JSP page which display a list of elements 
from a Vector in a HTML table.
I want to put a button in each line of my table 
that let me view the element's detail (throught my elementForm)
I don't know how I can pass a specific element to 
my viewElementDetailAction which use an elementForm
I tried to use a standard form tag like this, but 
it doesn't works
 
Is this the correct approach?
Thanks for any 
suggestions,
 
 

Nicolas
 



">


 
 
 


Professional JSP Site Design BOOK

2001-11-02 Thread Nicolas Parisé

Anybody knows how much Struts related pages will be
in this book ? 


Nicolas



Roles based application security

2001-11-13 Thread Nicolas Parisé

Hi,

I work on a web application which require read-write permission
of certain fields on a web page.

For example, a field must be in read-only for certain users and
be editable for others users

I'm looking for a mechanism that can handle field level security in
a web page, is this possible with struts?

I already coded many web application using Lotus Notes where
we can use field based security(Edit,View,Hide) using Roles

Is this possible with Struts?

Nicolas



Re: If someone is interested

2001-11-15 Thread Nicolas Parisé

Hi,


I'm interested to see your code, i'm looking
for good examples of struts app

Thank you

Nicolas
- Original Message -
From: "Yuriy Zubarev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 15, 2001 4:45 PM
Subject: If someone is interested


> Hello colleagues,
>
> I've been developing a web app for myself and since
> it's not the first app using Struts I attempted
> to solve some general issues by providing some interfaces,
> custom tag and generic actions. More specifically I'm talking
> about tables, you know that questions about navigation,
> sorting, formatting and so on...
>
> To see what's done already, point your browser to
> http://english.yuriy-zubarev.com
>
> And if my work raises some interest among people,
> I'll beautify the code (if there is no big load in the office)
> and share it (with one of the purposes to get feedbacks
> and criticism).
>
> Best of luck,
> Yuriy Zubarev
>
>
>
>
> __
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Invalidating a session

2001-12-18 Thread Nicolas Parisé

Hi Rakesh,

Here a piece of my code,


<%
session.invalidate();
%>


...



here is the error message from Resin:

java.lang.IllegalStateException: session is invalid
at com.caucho.server.http.QSession.getAttribute(QSession.java:262)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:535)
at _widget1__jsp._jspService(/app1/widget1.jsp:48)
at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
at com.caucho.jsp.Page.service(Page.java:398)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)



Thank you
- Original Message -
From: "Rakesh" <[EMAIL PROTECTED]>
Newsgroups: Struts
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 11:26 PM
Subject: Re: Invalidating a session


> Can you please elaborate on the error message that you got ?
> Were you trying to access any attribute from the session after the point
> where you invalidated it ?
>
> --Rakesh
> ---
>
> - Original Message -
> From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 18, 2001 9:40 AM
> Subject: Invalidating a session
>
>
> > Subject: Invalidating a session
> > From: "Nicolas Parisé" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> >
> > I got error message when I invoke session.invalidate() inside
> > JSP page that contains Struts form tag, any1 can help me?
> >
> > Thank you
> >
> > Nicolas
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Working with tokens

2002-01-08 Thread Nicolas Parisé

Thanks a lot for your ideas, I finally decide to store the
last Action executed in the session, so I can re-execute it and this
Action lead the the page that the user was supposed to be.

For example, in all my Action I put the following code :

...

if (session.getAttribute("doNothing") != null) {
 session.removeAttribute("doNothing");
 return mapping.findForward("success");
}

if (!this.isTokenValid(req)) {
  // The token is not valid
  session.setAttribute("doNothing","1");
  forward = new
ActionForward((String)session.getAttribute("curAction"));
  return forward;
}
else {
 // Execute normal operattions here
 this.saveToken(req);
 forward = mapping.findForward("success");
}


if (!errors.empty()) {
// Save the errors list and forward to the input form JSP
saveErrors(req, errors);
forward = new ActionForward(mapping.getInput());
}

session.setAttribute("curAction",mapping.getPath()+".do");
return forward;


Thank you all again.


NIcolas


- Original Message -
From: "Keith Bacon" <[EMAIL PROTECTED]>
Newsgroups: Struts
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 2:05 PM
Subject: Re: Working with tokens


> hi Nicolas ,
> We stored, in the session, the id of the page we last sent, if the tokens
don't match (user has
> messed with the flow) we re-send the page we sent last time. (Could put a
message on it saying
> 'please don't mess with the flow' but we felt that wasn't needed.)
> keith.
>
> --- Peter Pilgrim <[EMAIL PROTECTED]> wrote:
> >
> > Search the archive for transaction forward. Because I proposed a
solution.
> > Put a forward mapping in the action mapping that redirect to the state
to the initial prompt
> > form.
> > --
> > Peter Pilgrim ++44 (0)207-545-9923
> >   //_\\
> > "Mathematics is essentially the study of islands of  ===
> > disparate subjects in a sea of ignorance."   || ! ||
> > Andrew Wiles _
> >
> >
> >  Message History
> > --------
> >
> >
> > From: Struts Newsgroup (@Basebeans.com)  >
> > Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> >
> > To:   [EMAIL PROTECTED]
> > cc:
> > Subject:  Working with tokens
> >
> >
> > Subject: Working with tokens
> > From: "Nicolas Parisé" <[EMAIL PROTECTED]>
> >  ===
> > Hi all,
> >
> > I work on an application in which each form submission must
> > be submitted once, I use the Struts built-in token mechanism to achieve
> > that.
> >
> > My problem is, when the user broke the normal sequence of forms
submission
> > (because
> > he used the browser navigation buttons instead of HTML button),I would
like
> > to redirect him to the
> > jsp page he was supposed to be ... instead of redirect him on an error
page.
> >
> > Somebody here ever doing this with Struts?
> >
> >
> > Thank you, and happy new year to all Struts users!
> >
> >
> > Nicolas
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> > --
> >
> > This e-mail may contain confidential and/or privileged information. If
you are not the intended
> > recipient (or have received this e-mail in error) please notify the
sender immediately and
> > destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in
> > this e-mail is strictly forbidden.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
>
> __
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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