Re: problem in tiles

2006-04-14 Thread Ahmed Hashim
Thanks Antonio,

Actually in my application I didn't allow the user to expose any jsp using
the action. I used this techniques for a certain type of pages using a
specific pattern in the generic action.

So, I think it is more secure.

Thanks.

Ahmed Hashim

On 4/14/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> Ahmed Hashim ha scritto:
> > I solved the problem
> >
> > I think you are right, I can not call any tiles definition directly
> without
> > calling an action
> >
> > I made a generic action definition to view my pages
> >
> > check the solution in my blog
> >
> > http://www.egjug.org/struts_action_foward_to_Tiles
> >
> >
> > Ahmed Hashim
> >
>
> Uh at a first look, I did not like your solution, because I thought that
> it could break security, that it is just like exposing JSP pages without
> passing through an action. But then I thought "hey wait a moment, if I
> want to expose a definition, I NEED to call it 'viewSomething.page' and
> not 'blahblah'", so security is preserved if the programmer knows what
> to do.
> Congratulations, I really liked your solution!
> Ciao
> Antonio
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
In Life, it doesn't matter who you are, but whether someone appreciates you
for what you are, accepts you and loves you unconditionally. A Real Friend (
Friendship ) is one who walks in when the rest of the world walks away.


Re: problem in tiles

2006-04-14 Thread Antonio Petrelli

Ahmed Hashim ha scritto:

I solved the problem

I think you are right, I can not call any tiles definition directly without
calling an action

I made a generic action definition to view my pages

check the solution in my blog

http://www.egjug.org/struts_action_foward_to_Tiles


Ahmed Hashim
  


Uh at a first look, I did not like your solution, because I thought that 
it could break security, that it is just like exposing JSP pages without 
passing through an action. But then I thought "hey wait a moment, if I 
want to expose a definition, I NEED to call it 'viewSomething.page' and 
not 'blahblah'", so security is preserved if the programmer knows what 
to do.

Congratulations, I really liked your solution!
Ciao
Antonio

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



Re: problem in tiles

2006-04-13 Thread Ahmed Hashim
I solved the problem

I think you are right, I can not call any tiles definition directly without
calling an action

I made a generic action definition to view my pages

check the solution in my blog

http://www.egjug.org/struts_action_foward_to_Tiles


Ahmed Hashim

On 4/10/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Ahmed Hashim wrote:
> > I tried to forward to loginPage.page from the action and it is working
> fine,
> > but i remember that I can request the page directly...
> > any suggestion?
> >
>
> You can use tile definitions as "input" or "forward" attribute values in
> your Struts config file; is that what you mean?
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
In Life, it doesn't matter who you are, but whether someone appreciates you
for what you are, accepts you and loves you unconditionally. A Real Friend (
Friendship ) is one who walks in when the rest of the world walks away.


Re: problem in tiles

2006-04-10 Thread Dave Newton
Ahmed Hashim wrote:
> I tried to forward to loginPage.page from the action and it is working fine,
> but i remember that I can request the page directly...
> any suggestion?
>   

You can use tile definitions as "input" or "forward" attribute values in
your Struts config file; is that what you mean?

Dave



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



Re: problem in tiles

2006-04-09 Thread Antonio Petrelli

Ahmed Hashim ha scritto:

...
but i remember that I can request the page directly...
  


You remember wrong! You cannot request a Tiles definition directly. You 
have at least to write a simple JSP page with  tag.
You can invoke a Tiles definition directly only through a forward, if 
you are using TilesRequestProcessor

Ciao
Antonio


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



Re: problem in tiles

2006-04-09 Thread Ahmed Hashim
I tried to forward to loginPage.page from the action and it is working fine,
but i remember that I can request the page directly...
any suggestion?

On 4/9/06, Yang Sun <[EMAIL PROTECTED]> wrote:
>
> I think you should add an action in the action-mappings section for
> loginPage action. You request have not been processed by tiles yet.
>
> // Yang
>
> On 4/9/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote:
> >
> > what is wrong with this configuration?
> > 
> >  Struts
> > Configuration 1.2//EN" "
> > http://struts.apache.org/dtds/struts-config_1_2.dtd
> > ">
> >
> > 
> >   
> >
> >   
> >   
> >   
> >   
> >
> >   
> >   
> >
> >   
> >
> >
> >   
> >> />
> >
> >> />
> >
> > 
> >  
> >   
> >   
> >   
> >   
> >
> > 
> >
> >
> > 
> >  > Tiles
> > Configuration 1.1//EN" "
> > http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > 
> > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >   
> > action
> > org.apache.struts.action.ActionServlet
> 
> > 
> >   config
> >   /WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   3
> > 
> > 
> >   detail
> >   3
> > 
> > 2
> >   
> >   
> > action
> > *.do
> >   
> >
> > 
> >
> > when i try to request http://localhost:8080/Evote/loginPage.do i got the
> > message SEVERE: Invalid path /loginPage was requested
> >
> > what do you think the problem?
> >
> > --
> > In Life, it doesn't matter who you are, but whether someone appreciates
> > you
> > for what you are, accepts you and loves you unconditionally. A Real
> Friend
> > (
> > Friendship ) is one who walks in when the rest of the world walks away.
> >
>
>


--
In Life, it doesn't matter who you are, but whether someone appreciates you
for what you are, accepts you and loves you unconditionally. A Real Friend (
Friendship ) is one who walks in when the rest of the world walks away.


Re: problem in tiles

2006-04-09 Thread Yang Sun
I think you should add an action in the action-mappings section for
loginPage action. You request have not been processed by tiles yet.

// Yang

On 4/9/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote:
>
> what is wrong with this configuration?
> 
>  Configuration 1.2//EN" "
> http://struts.apache.org/dtds/struts-config_1_2.dtd
> ">
>
> 
>   
>
>   
>   
>   
>   
>
>   
>   
>
>   
>
>
>   
>/>
>
>/>
>
> 
>  
>   
>   
>   
>   
>
> 
>
>
> 
>  Tiles
> Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
>
> 
> http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   3
> 
> 
>   detail
>   3
> 
> 2
>   
>   
> action
> *.do
>   
>
> 
>
> when i try to request http://localhost:8080/Evote/loginPage.do i got the
> message SEVERE: Invalid path /loginPage was requested
>
> what do you think the problem?
>
> --
> In Life, it doesn't matter who you are, but whether someone appreciates
> you
> for what you are, accepts you and loves you unconditionally. A Real Friend
> (
> Friendship ) is one who walks in when the rest of the world walks away.
>


problem in tiles

2006-04-09 Thread Ahmed Hashim
what is wrong with this configuration?

http://struts.apache.org/dtds/struts-config_1_2.dtd
">


  

  
  
  
  

  
  

  


  
  

  
   

 
  
  
  
  





http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>















http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  3


  detail
  3

2
  
  
action
*.do
  



when i try to request http://localhost:8080/Evote/loginPage.do i got the
message SEVERE: Invalid path /loginPage was requested

what do you think the problem?

--
In Life, it doesn't matter who you are, but whether someone appreciates you
for what you are, accepts you and loves you unconditionally. A Real Friend (
Friendship ) is one who walks in when the rest of the world walks away.