[OT] Cookies enabled on browsers

2006-01-15 Thread Deepa Khetan
Hi!
My application requires, "per-session cookie" to be enabled on client
browser. How can i determine in my java code if it is enabled or not!
Deepa


How to create Dynamic Form elements using Struts ?

2006-01-15 Thread Amol Yadwadkar
Hi List,

Can anyone let me know the way to create the dynamic form elements in
the Struts Page?

I mean I want to add the selectboxes/textboxes etc on the click of the
link.

 

Thanks in advance 

Amol

 



How does work internally?

2006-01-15 Thread Josh McDonald
As far as I can tell, the  taglib creates local members in
the "__jspService()" (or whatever it's called in your implementation)
method. Is this how it works, or am I way off base? If so, can someone
point me towards some documentation on compile-time taglibs or however
it works? I can't seem to google an answer for myself.
 
Cheers,
-Josh
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]




***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




Re: [shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
Looks like I was onto something afterall.

When I dont have tiles running the navigation rule works fine, but
when i use tiles it gets blocked and only gets to the welcome page
when i request via the url bar. Not sure where to start looking, it
could be how view handler is playing with the web security stuff.

Is anyone else playing with with stuff?

On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote:
> Ignore me, its something else..
>
> On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote:
> > Hello
> >
> > I'm putting shale-tiles through its paces, all seems to work except
> > for when i have a navigation rule defined in
> > faces-config/navigation-rule.
> >
> > 
> > /login.jsp
> > 
> > success
> > /welcome.jsp
> > 
> > 
> > 
> >
> > /login.jsf is a tile def (/login) and works fine, as is welcome which
> > also works fine when I make a fresh request once the container has
> > logged the user in.  To my mind the backing bean should return the
> > string "success" and when it does forward (in this case redirect) to
> > the welcome page.
> >
> > /login.jsf only exists as a tiles defined path the jsp is in
> > /WEB-INF/faces/login.jsp likewise welcome.jsp. But the faces servlet
> > isn't compaining about not having a real jsp where it usually would
> > be, therefore i assume that its happy.
> >
> > Anybody have any thoughts what's happening or not as the case may be?
> >
> > Mark
> >
>

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



Re: [shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
Ignore me, its something else..

On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote:
> Hello
>
> I'm putting shale-tiles through its paces, all seems to work except
> for when i have a navigation rule defined in
> faces-config/navigation-rule.
>
> 
> /login.jsp
> 
> success
> /welcome.jsp
> 
> 
> 
>
> /login.jsf is a tile def (/login) and works fine, as is welcome which
> also works fine when I make a fresh request once the container has
> logged the user in.  To my mind the backing bean should return the
> string "success" and when it does forward (in this case redirect) to
> the welcome page.
>
> /login.jsf only exists as a tiles defined path the jsp is in
> /WEB-INF/faces/login.jsp likewise welcome.jsp. But the faces servlet
> isn't compaining about not having a real jsp where it usually would
> be, therefore i assume that its happy.
>
> Anybody have any thoughts what's happening or not as the case may be?
>
> Mark
>

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



[shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
Hello

I'm putting shale-tiles through its paces, all seems to work except
for when i have a navigation rule defined in
faces-config/navigation-rule.


/login.jsp

success
/welcome.jsp




/login.jsf is a tile def (/login) and works fine, as is welcome which
also works fine when I make a fresh request once the container has
logged the user in.  To my mind the backing bean should return the
string "success" and when it does forward (in this case redirect) to
the welcome page.

/login.jsf only exists as a tiles defined path the jsp is in
/WEB-INF/faces/login.jsp likewise welcome.jsp. But the faces servlet
isn't compaining about not having a real jsp where it usually would
be, therefore i assume that its happy.

Anybody have any thoughts what's happening or not as the case may be?

Mark

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



Re: Help!! - Dynamic validator form not working.

2006-01-15 Thread Ted Husted
One thing not shown here would be plugging in the validator via the
struts-config.

* http://struts.apache.org/struts-action/userGuide/building_view.html#validator

-- HTH, Ted.
http://www.husted.com/poe/


On 1/11/06, Maha Venkataraman <[EMAIL PROTECTED]> wrote:
> 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
> --
>
>  
>
> type="forms.ObjectTypeForm"
> dynamic="true">
>   type="java.lang.String"/>
>   type="java.lang.String"/>
>
>
>  
>
> the action - mappings contains
>
>   type="actions.ObjectTypeAction"
>name="ObjectTypeForm"
>scope="request"
>validate="true"
>input="/objecttype.jsp"
>parameter="function">
> path="/error.jsp" />
> path="/index.jsp" />
> path="/objecttype.jsp" />
>
>
> The ObjectTypeAction class extends DispatchAction.
>
> validate.xml
> 
>
> 
>  
>  
>   depends="required">
>  
>  
>  
>  
> 
>
> validation-rules.xml
> 
>
> 
>
>  
> classname="org.apache.struts.validator.FieldChecks"
>   method="validateRequired"
> methodParams="java.lang.Object,
>
> org.apache.commons.validator.ValidatorAction,
>
> org.apache.commons.validator.Field,
>
> org.apache.struts.action.ActionErrors,
>
> javax.servlet.http.HttpServletRequest"
>  msg="errors.required">
>  
>
> 

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