I guess that would work if you have validations corresponding to a
form i.eyou are extending DynaValidatorForm.
If you need to extend DynaValidatorActionForm, i.e give validations
corresponding to a action (as single form can be reused in different actions
and not all fields need to be validated i
No mr.vishal i tried thats y im telling.
u try without using validate method in local form.
we have to mention the validation for each field in validation.xml file itself.
no need of calling validate() in local form.
definitely it will work.
> You are right that there is no need to create a for
On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote:
>
>after running the web application, when i see the source of that
> page,
> there are lots and lots of space between each line.
> what is the reason for that, anyone can help me plz.
> i not used any &nbsb in that jsp page...
It's per js
You are right that there is no need to create a form bean if you are using
dyna form.
However if you want to link your form with the validation framework then you
do need to create a local form bean. This form bean would not have any
attributes and their getter and setter methods as they all are d
Hi
after running the web application, when i see the source of that page,
there are lots and lots of space between each line.
what is the reason for that, anyone can help me plz.
i not used any &nbsb in that jsp page...
Regards
vasu
-
no need to create a Form class in local. if we are using DynaActionForm, then
no need of create form class in local.
i tried in struts_config.xml only, it is working well.
Quoting Vishal Gaurav <[EMAIL PROTECTED]>:
> Hi,
>
> Simply having your dyna form bean of the type Dyna Validator form
JEEVANATHAM P. /BPCRP/INFOTECH/VASHI,您好!
Maybe I didn't catch you.
just change your query string.
=== 2006-01-12 14:46:39 您在来信中写道:===
>Hi all,
>
>
>
>I am using display tag in my application for LOV. For that I set values from
>database at runtime that is dynamically.
>
Hi all,
I am using display tag in my application for LOV. For that I set values from
database at runtime that is dynamically.
Using org.apache.commons.beanutils.RowSetDynaClass. it is setting data fine
way.
But not in correct order which is in my query, which is passed at runtime.
Here i
Hi,
To check the users access the best approach is to check the access on the
action by giving the roles attributes in the Struts Config and overriding
the processRoles() method of action class.
In addition to this if you want to limit weather a link is dispalyed to the
user or not you can take h
Quick question, is it possible to make generate an id="" ?
Or to generate a name="" that's not based on the name of the form bean?
The whole setup of the taglib doesn't make a lot of sense
from where I sit really :(
Cheers,
-Josh
--
"His comrades fought beside him, Van Owen and the rest.
Hi,
Simply having your dyna form bean of the type Dyna Validator form will not
work. You have to declare your form bean in the Struts Config as type any
local form bean you have. ( )
Then your ABCForm will extend DynaValidatorForm or DynaValidatorActionForm
depending on yor requirement.
It would
Hi all,
In my screen I used data repeater tag from jsf. It's working fine me. Now I
need to call a popup called as LOV from that textbox. When we click an image
it will open a popup window. From that popup we need to set values to the
main window.
Here is my problem for setting values I need
sorry u try this one. not previous one.
>
>
>
>
>
>
>
>
> Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > I am having some problems in getting struts to
> > validate my input form. It seems to completely ignore
> > the validation and starts exe
Try like this in struts-config.xml file.
i hope it will work.
Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
> Hi,
>
> I am having some problems in getting struts to
> validate my input form. It seems to completely ignore
> the validation and starts executing the acti
While login itself you can have the permissions in the session and based on the
permissions you can hide the links. Just for one variable i think there is no
need to call the database.use can use or for
this.
-Original message-
From: "Rivka Shisman" [EMAIL PROTECTED]
Date: Wed, 11 Jan
Gary,
Thank you a lot! Your solution works well.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
So you know how I like to spin RiA, nothing to do w/ Struts?
here is some Swing thread:
http://www.theserverside.com/news/thread.tss?thread_id=38473
;-P
.V
ps otoh: Anyone building a portal should consider Drupal, it can now run
on Resin.
---
I agree with you Michael since our designer is a big fan of Zen Garden
and I must say I don't miss working with tables :) I would like a
strict XHTML rendererkit but I must say that at least the JSF standard
components don't produce garbage . What I am doing right now is
developping new renderers f
Not sure, but you may need to reference that property as L1082CODE
instead of l1082CODE (i.e. use a capital 'L' instead of lower-case).
L.
Ashish Kulkarni wrote:
Hi
Thanx now it works,
but i have another issue,
what i am trying is this
viewName.nameDescis workig fine, and
Did you put a copy of log4j.jar in WEB-INF/lib?
L.
Jim Reynolds wrote:
Hello,
I am creating a Struts webapp, and I would like to get some of the
internal messages that struts throws out ... eg. Bean Creation, scope,
etc.
I created a log4j.properties and laid it into my /WEB-INF/classes directo
Thanks for your comments ... I'll try to give you answers based on that
below.
On 1/11/06, Angel Navarro <[EMAIL PROTECTED]> wrote:
>
> Hi Craig,
>
> thanks for you reply.
>
> > For the purposes of this reply, I'm going to assume by your use of the
> term
> > "Struts" that you mean the existing
Raghuveer wrote:
Dear AGary and Alexandre
I changed my Message KEY " msg.insert.failed" as below
msg.insert.failed = Insert failed.
In my JSP PAGE message is displayed with FONT tags.
HTML tags are not being executed with message .
Insert failed.
so from above when HTML font tag could not b
That may be true, but my point is that I hear a lot of developers asking
"why is JSF better?", and my contention is that very few, if any,
examples that exists today really provides that answer. Craig mentioned
MailReader as the cannonical application around these parts, and I just
said that M
On 1/11/06, Torgeir Veimo <[EMAIL PROTECTED]> wrote:
> On Wed, 2006-01-11 at 15:07 -0800, Michael Jouravlev wrote:
> >
> > Form, Link and Submit tags
>
> What about a component that works with commons-upload to give visual
> progress feedback for uploading large files?
The primary goal for my libr
Mailreader is for developers, not for people from marketing
department. It is not supposed to be beautiful, it is supposed to show
how common tasks are done with Struts: data in, processing, data out.
How it is presented is not that important. I mean it is important that
a framework can generate li
On 1/11/06, Torgeir Veimo <[EMAIL PROTECTED]> wrote:
> What about a component that works with commons-upload to give visual
> progress feedback for uploading large files?
Someone posted about one on commons-user recently:
http://marc.theaimsgroup.com/?l=jakarta-commons-user&m=113656376413509&w=2
On Wed, 2006-01-11 at 15:07 -0800, Michael Jouravlev wrote:
>
> Form, Link and Submit tags
What about a component that works with commons-upload to give visual
progress feedback for uploading large files?
--
Torgeir Veimo <[EMAIL PROTECTED]>
-
Craig McClanahan wrote:
Someone earlier on this thead mentioned that they would deal with this using
managed beans and the dependency injection mechanism it supports to inject
request parameters (not associated with a component) into the backing bean.
Great idea! By far the simplest thing to do.
I would agree, except for the fact that MailReader is not by any measure
an impressive application (sufficient yes, but not impressive)... in the
context of JSF (and Shale), where at least part of the point is to
enable easily building more advanced types of applications (that *IS*
part of the
General Info
The JSP Controls Tag Library allows to build page-embeddable
components that work in both Ajax and non-Ajax mode using nothing more
than JSP 1.2 (JSTL is optional). If browser has Javascript turned on
and supports XMLHTTPRequest object, the component is updated in-place,
On 1/11/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
>
> My major complaint is that every single example and tutorial I've found is
> so simplistic and frankly ugly as hell that it can't help but cast JSF in
> a bad light
Sure sounds a lot like a canonical example program that's been around
On 1/11/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
>
> First thing I did was to create a helper base class with methods like the
> following
>
> public Object getRequestParameter(String key)
> {
> return
> FacesContext.getCurrentInstance
> ().getExternalContext().getRequestParameterMa
> p
>From: "Garner, Shawn" <[EMAIL PROTECTED]>
>
> First thing I did was to create a helper base class with methods like the
> following
>
> public Object getRequestParameter(String key)
> {
> return
> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);
>
Hello
I did a typing mistake here, i did have
in my code,
corcoresponding to getL082CODE method in my bean
Ashish
--- Rahul Akolkar <[EMAIL PROTECTED]> wrote:
> On 1/11/06, Ashish Kulkarni
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > Thanx now it works,
> > but i have another issue,
> > what i am tr
On 1/11/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> Thanx now it works,
> but i have another issue,
> what i am trying is this
>
> items="${viewlinephase.map.viewNames}">
>
>
>
>
>
>
> viewName.nameDescis workig fine, and value is getting
> substituated, but viewName.l1082CO
>Hi,
>
>I am new to Shale and Clay and am getting the following error during page
>rendering even the generated page looks ok:
>
>org.apache.myfaces.renderkit.html.HtmlRendererUtils
>findUIOutputConverterFailSafe
>SEVERE: Error finding Converter for component with id
>clayView:_id0:formListenerSig
Hi
Thanx now it works,
but i have another issue,
what i am trying is this
viewName.nameDescis workig fine, and value is getting
substituated, but viewName.l1082CODE is not getting
substituted
my bean is as follows
public class PL1082Bean
{
private String l082CODE;
Hello
On Jan 11, 2006, at 12:32 PM, Gaet wrote:
Hi the list,
I know this is not a struts question (unless there is a simpler
solution
with struts :o))
My goal : Add a back button on each of my pages with the url from
where the
user comes (or another url if it comes from a page at a deepe
On 1/11/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> I have defined a DynaValidatorForm in
> struts-config.xml file like this
> type="org.apache.struts.action.DynaActionForm">
> type="java.util.Collection" />
>
>
> In My jsp i have defined a Action class which uses
> this bean
> I want
Dakota Jack wrote:
The view "controller" is not a controller in the Web-MVC sense and is
completely misleading, in my opinion, Mark. So part of this just may be
who's dog is in the hunt?
The point of the tool-based and VB analogy is that JSF tries to hide from
you, to do it for you, what other
Hi
I have defined a DynaValidatorForm in
struts-config.xml file like this
In My jsp i have defined a Action class which uses
this bean
I want to iterate through all viewNames in my jsp
using tag
How do i go it
I tried
But i get Unable to find a value for "viewNames" in
object o
On Wed, January 11, 2006 2:36 pm, Garner, Shawn said:
> Better than a framework where it's done for you and you have to edit
> source
> code to customize it.
Fair enough :)
> Shawn
Frank
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January
Better than a framework where it's done for you and you have to edit source
code to customize it.
Shawn
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 1:32 PM
To: Struts Users Mailing List
Cc: 'Struts Users Mailing List'
Subject: RE
Anyway *usually* you don't need to use this method unless you are
developping a new component. It is supposed to be the responsability of the
components to retrieve the request parameters, so the application developper
doesn't have to deal with the Http protocol details.
On 1/11/06, Garner, Shawn
On Wed, January 11, 2006 2:18 pm, Garner, Shawn said:
> First thing I did was to create a helper base class with methods like the
> following
>
> public Object getRequestParameter(String key)
> {
> return
> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMa
> p().get
On 1/11/06, Brantley Hobbs <[EMAIL PROTECTED]> wrote:
> You're not Dave are you? :-)
Dave's not here.
Al.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
First thing I did was to create a helper base class with methods like the
following
public Object getRequestParameter(String key)
{
return
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMa
p().get(key);
}
Doesn't seem very hard to me.
Shawn
-Original Message
Looks like you think it should be doing it conditionally.
The order of operations is.
Request Page A --> Always sets "backUrl" to "/initA.do" in session -->
Render JSP Page to User --> User clicks link --> Requests Page B --> Same
session so "backUrl" is still "/initA.do" --> Render Page B --> U
LOL ok last post in this thread, but this is pathetic. He hijacks the
majority of threads about Shale to say how JSF sucks compare to Struts. He
even says JSF is visual basic and Struts is C++, wich I can't believe he's
doesn't see as a provocative post. He's not polite and he's unrespectful to
a l
> There's a reason why executioners wore a mask.
Because they couldn't stand the smell of Dakota Jack? *snicker*
Well, I've said my two snide comments as the moon nears full so I'll return you
to your regularly scheduled code
discussions.
Regards,
David
P.S. Struts-Shale, that means you! ;) <
Wait.
You're not Dave are you? :-)
B.
> -Original Message-
> From: Albany Rose [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 11, 2006 1:54 PM
> To: user@struts.apache.org
> Subject: Re: [OT] Re: Advice for Struts expert wanting to try Shale?
>
> On 1/11/06, Dave Newton <[EMAIL P
>Let me get this right, he _told on you_ ... as in tattletale???
Opinion... If I were his employer, I would like to know what how he was
behaving if:
1) He was doing/posting things from a corporate email address that might
reflect badly on my company.
2) Spreading inflammatory comments while
On 1/11/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> If you'd rather I posted only from one of my non-work email accounts
Better yet, take out a gmail account under a pseudonym, and then refer
to Dave Newton in the third person. :)
There's a reason why executioners wore a mask.
Al.
Problem is, I think the iSeries is different, and also, I am passing in
variable to tell the iSeries to use the ones I load.
I want to add the missing Sun entry...
K
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 11, 2006 11:47 AM
On 1/11/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> Unfortunately I have to run out to do some things this afternoon, and
> can't reply in as much detail as I'd like to the below, but I'll quickly
> comment...
>
> Werner Punz wrote the following on 1/11/2006 10:51 AM:
> > Hi Rick the confusion
Assuming you want to do "form-based" validation, can you check if your
forms.ObjectTypeForm extends from one of the valid validationform objects?
If it extends a simple "ActionForm", validation will not work.
HTH,
Raghu
On 1/11/06, Mahadevan Venkataraman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I
Hello,
I am creating a Struts webapp, and I would like to get some of the
internal messages that struts throws out ... eg. Bean Creation, scope,
etc.
I created a log4j.properties and laid it into my /WEB-INF/classes directory ...
log4j.rootCategory=DEBUG, R
log4j.appender.R=org.apache.log4j.Rollin
Unfortunately I have to run out to do some things this afternoon, and
can't reply in as much detail as I'd like to the below, but I'll quickly
comment...
Werner Punz wrote the following on 1/11/2006 10:51 AM:
Hi Rick the confusion you are talking about, is basically the same you
have by jumpin
Thats too broad a question - :-) So you will get "broad" answers for that!
:-)
You can take a look at jBPM project - I think jboss has taken up the
"ownership" for the project. While I have not used it, I believe there is
some activity and interest in the project.
If you are looking at providing
Hi,
I am having some problems in getting struts to
validate my input form. It seems to completely ignore
the validation and starts executing the action.
Here are the relevant files. Any help regarding this
is highly appreciated.
TIA
Maha
struts-config.xml
--
MockServletContext.log throws a UnsupportedOperationException, making it hard
to test many core parts of MyFaces. Was the intention here for the tester to
override MockServletContext.log, or does MockServletContext assume the tested
code simply would/should not call ExternalContext.log() ?
news <[EMAIL PROTECTED]> wrote on 01/11/2006 11:34:12 AM:
> Frank W. Zammetti wrote:
> >
> > String var =
> > (String)FacesContext.getCurrentInstance().getExternalContext().
> getRequestParameterMap().get("variableName");
> >
> A yes the lovely Request Factory->context...-> cascade
>
> I per
On 1/11/06, Gaet <[EMAIL PROTECTED]> wrote:
> Hi the list,
>
> I know this is not a struts question (unless there is a simpler solution
> with struts :o))
>
> My goal : Add a back button on each of my pages with the url from where the
> user comes (or another url if it comes from a page at a deeper
Hi,
I am new to Shale and Clay and am getting the following error during page
rendering even the generated page looks ok:
org.apache.myfaces.renderkit.html.HtmlRendererUtils
findUIOutputConverterFailSafe
SEVERE: Error finding Converter for component with id
clayView:_id0:formListenerSignup:addre
[EMAIL PROTECTED] wrote:
Let me get this right, he _told on you_ ... as in tattletale???
Yeah :D
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rafael Taboada wrote:
> Please. Do u know a calendar project made in struts??? I mean, when u make
> an appointemnt, an event
> thanks
>
> --
> Rafael Taboada
> Software Engineer
>
> Cell : +511-97753290
>
> "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
>
Ther
Let me get this right, he _told on you_ ... as in tattletale??? That's
just repugnant and pitiful.
Did we not learn anything last year when Mark lost his job?
-Dennis
Dave Newton <[EMAIL PROTECTED]>
01/11/2006 11:27 AM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailin
Hi,
I am having some problems in getting struts to
validate my input form. It seems to completely ignore
the validation and starts executing the action.
Here are the relevant files. Any help regarding this
is highly appreciated.
Thanks in advance
Maha
struts-config.xml
--
Frank W. Zammetti wrote:
>
> String var =
> (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("variableName");
>
A yes the lovely Request Factory->context...-> cascade
I personally always use either ioc for managed beans
or some utils classes (there i
Hi the list,
I know this is not a struts question (unless there is a simpler solution
with struts :o))
My goal : Add a back button on each of my pages with the url from where the
user comes (or another url if it comes from a page at a deeper level)
So i code the following simple code :
Page A.j
I'm thinking you _still_ don't know what "libel" is, but feel free to
sue me.
Leave my employer out of it. As we're fond of saying, "no jumping in."
If you'd rather I posted only from one of my non-work email accounts I'm
happy to do that as well if it makes you feel better.
If you'd like to
Ashish Kulkarni wrote the following on 1/11/2006 11:08 AM:
Hi
I am a bit confused about using and
tag
I hate that optionsCollection tag:) I think the naming of the attributes
is confusing. I prefer using html:select and using html:option withing a
JSTL forEach loop. Slightly more verbose t
You are welcome.
On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply, I also noticed , I had a typo in my method name...
> now the below code works..
>
> -Original Message-
> From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 11, 200
Thanks for the reply, I also noticed , I had a typo in my method name...
now the below code works..
-Original Message-
From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 11:08 AM
To: Struts Users Mailing List
Subject: Re: Form has Inner Object..
*NoSu
Hi
I am a bit confused about using and
tag
Suppose i have defined following in struts-config.xml
file
I have a bean where in i have get and set method for
name and desctiption, suppose the bean is called
MyBean and viewNames vector is populated by MyBean
class
How do i define it in jsp page
*NoSuchMethodException *Thrown when a particular method cannot be found. Your
Object (dmaClient) may not be having the methods required..that is getters
and setters
On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> My struts form (newClientForm) have an Object(dmaClient) a
Hi All,
My struts form (newClientForm) have an Object(dmaClient) and I want to
set the Objects methods.. Like this ...
But it cannot recognize the Object...java.lang.NoSuchMethodException:
Unknown property 'dmaClient'
Any suggestions.
Hi Rick the confusion you are talking about, is basically the same you
have by jumping onto any framework.
Mind you that I had to move from JSF to Struts for a project a while
ago, and I had the same feeling backwards ;-)
A very good entry point into jsf is:
www.jsftutorials.net/
But as is I can
On Wed, January 11, 2006 10:06 am, Rick Reumann said:
> Anyway, I'm totally babbling now, but am I the only one that feels this
> confusion? It's more confusing when you try to think of how you can use
> these different technologies together (ie Shale and MyFaces).
You are most definitely NOT alon
Chan, Jim wrote:
> I am refactoring my company's JSP website because the code uses only JSP to
> control navigation. You can imagine its pretty ugly. Anyway, I decided to
> use JSF and possibly move to Shale once I've gained a handle on the
> framework. I successfully deployed some of the pages
Depends on which web sever you're using.
JRun doesn't support some of the newer specifications yet and then I wonder
if they really fully support some of them.
Shawn
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 9:31 AM
To: Struts Users
Rick Reumann wrote:
>
> Actually you bring up one of the reasons I'm not in love JSF at the
> moment. I know most people like the idea of using pre-built or custom
> renderers and get all googly eyed over the nice things you can get
> out-of-the-box from MyFaces or Oracle ADF, but I guess I'm sti
On 1/11/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I got eclipse to recognize my custom tag but in the process I noticed that
> the xml web-app definition version 2.4 doesn't support the taglib element
> anymore. Why did this go away and what version of the Servlet/JSP servlet
> spec did it g
I got eclipse to recognize my custom tag but in the process I noticed that
the xml web-app definition version 2.4 doesn't support the taglib element
anymore. Why did this go away and what version of the Servlet/JSP servlet
spec did it go away?
Shawn
-Original Message-
From: Garner, Shawn
--snip--
> Try to pretend you just know a little about the buzz words.. JSF and
> Shale. Now start googling to try to understand JSF. The Sun site I
think
> is pretty poorly organized. This article
--snip--
>
> I guess what I'm getting at is there really should be a simple page
that
> dumbs dow
On 1/11/06, Rivka Shisman <[EMAIL PROTECTED]> wrote:
> From what i know, i can hold a DB table that indicates for each user and
> table - which operations are allowed.
> But, my question is - what is the right way to do that on the JSP page?
> Do i call this security table on each page load and hi
Craig McClanahan wrote the following on 1/10/2006 7:37 PM:
Not really. Shale is a completely separate framework that leverages the
fact that JSF already provides a controller servlet, plus support for
navigation and other simiklar things. It shares no code with the
Struts 1.xcontroller framewo
my case goes like this
inside SetupAssignUserSystemAction class,
it associates with another form,
UserSystemForm userSystemForm = (UserSystemForm)form;
userSystemForm.setMethod("create");
Can it be casted to "UserForm userForm = (UserForm )form;"
to get the value of previous page
"Thomas Joseph" <[EMAIL PROTECTED]> wrote on 01/11/2006
05:16:16 AM:
> Hi All,
>
> What is the best way to implement workflow for an interactive
application.
> Any good architecture, best practices, patterns etc.
>
> Please indicate if I should address this to a different mailing list.
Hi Th
Hi Rivka,
You could do something like this for the custom tag. You'll need to setup how you store the current
user in the session and the implementation of you security session.
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
public class CheckPermissionTag
Hi Danny
When the user logs in, he can work with say 10 JSP pages in the
application, each page works on different table in the DB (so each page
can give a user a maximum of 4 links to the DB table) - do you mean that
the PERMISSIONS property will hold 40 permission flags (10*4)?
I'm not sure I u
Hi Gareth
Can you please send me an example of the tag? And
also an example of how to change the request processor?
Thanks a lot
Rivka
-Original Message-
From: Gareth Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 3:25 PM
To: Struts Users Mailing List
Subject: Re:
Let me tell you how I do it. It may not be the best way, but works fine for
our system.
I show or hide the links using JSTL, like this:
That's all it is for the JSP. On each (yes, each) of my actions, I have:
if (up.getLogged()==false){
return mapping.findForward("notLogged");
Do it simple,
put a User bean into session scope just after user loged-in.
Every user have a User.PERMISSIONS property.
Then in JSP you do surround the links with JSTL
the link, otherwise not.
In all Actions you check the User too, and if there a problem (which
means he put the forbiden actio
Hi Rivka,
You could hide the links by creating a custom tag that only evaluates its body content if the
current user has the required permission. e.g.
But in addition to this you could stop the request from taking place at the requestprocessor level.
i.e. i
Hi again,
Letícia - Does hiding the links mean that I should put a heavy security
checking code on each such JSP page? Or is there a nicer way?
Gareth - I'm not sure I understand - by "If permission is denied you could
forward to a different page." - do you mean that if I can have 4 links on my
You are trying to use maven 2. Struts is built with maven 1 :)
mvn = Maven 2, maven = Maven 1.
On 1/11/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>
> The web site says to use 'mvn build-all' .
>
> http://struts.apache.org/acquiring.html#Source_Code
>
> Using build-all gives me the following error
In addition to hiding the links, extend the requestprocessor to check against the current user and
your security table. If permission is denied you could forward to a different page.
the best place to do this is in the processPreprocess(HttpServletRequest, HttpServletResponse )
method.
Just
Well, of course each action should have its control of the access.
I meant: hide the links and control through the actions, so no one will
access them with a direct link.
On 1/11/06, Thomas Joseph <[EMAIL PROTECTED]> wrote:
>
> > Hide the links.This way, you won't let him lose time trying to acces
On 1/10/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> The web site says to use 'mvn build-all' .
>
> http://struts.apache.org/acquiring.html#Source_Code
The page needs to be clearer about what version of Maven is required,
but it does actually say 'maven build-all' (not 'mvn'). We are still
usin
1 - 100 of 107 matches
Mail list logo