Re: namespace headpain

2008-07-23 Thread mujoko mujoko
It was happen to me also, then I just used annotation to replace struts
configuration and
I used config-browser/index.action to list available  action and the detail.

if my app is http://localhost:8080/kopkar
then i will check to
http://localhost:8080/kopkar/config-browser/index.action


but you need to add lib struts2-config-browser-plugin in your webb appp lib
(WEB-INF/lib)
http://struts.apache.org/2.x/struts2-plugins/struts2-config-browser-plugin/


Mujoko


On 7/23/08, Lyallex <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm having a problem getting my head around namespaces
>
> I have the folowing link
>
> ">Create New
> Establishment
>
> in the main struts.xml I have the following
>
> 
>
> 
>
> 
>  name="success">/establishment/getEstablishmentDetails.jsp
> 
>
> ...
>
> 
>
> This works fine
>
> Now I want to move the establishment stuff out of the main struts.xml file
>
> So I create a new struts.xml file called estab.xml
> and place it in the relevant class directory on the server
>
> 
>
> 
>
> 
>  name="success">/establishment/getEstablishmentDetails.jsp
> 
>
>
> 
>
> the main struts.xml file now looks like this
>
> 
>
>
>
>
>
>...
>
> 
>
> The following still works works
>
> ">Create New
> Establishment
>
> so does this
>
> ">Create New
> Establishment
> (absolutely no idea why this works)
>
> so now I want to restrict access to anything in the 'estab' namespace
> so I think the new url should look like this
>
> ">Create
> New Establishment
>
> This works of course (see above, no idea at all).
>
> Now I want to restrict access so in estab.xml I do this
>
> 
>
> 
>
> 
>  name="success">/establishment/getEstablishmentDetails.jsp
> 
>
>
> 
>
> all I ever get is the message
> 'There is no Action mapped for action name passThroughToNewEstablishment.'
>
> If I take the namespace bit out it all works, if I put it back in it fails.
> I've tried all sorts of things to try and get it to work
> , I think it may have something to do with the way the  it's thing
> (the original path is still appended to the url for example)
>
> Any pointers much appreciated.
>
> TIA
>
> lyallex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Mujoko


Popup window

2008-08-07 Thread mujoko mujoko
Dear Struts 2 users


I'm trying to create poup window in struts 2,
Could you please to give sample code for this task in struts 2?


regard
-- 
Mujoko


Annotation for interceptor

2008-08-25 Thread mujoko mujoko
Hi all


All my action is configured with annotation and now I just realized that I
need scope interceptor for some actiions.
Do i need to break some action and put in xml configuration or any better
idea for this case?

Thanks all
-- 
Mujoko


Re: Result Annotations

2008-08-29 Thread mujoko mujoko
Annotation Result is a part of of configuration (struts config) that read on
start up and load on startup, I dont think you can use dinamic
value on annotation.

Mujoko


On 8/29/08, rakeshxp <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am using Result annotations in the following manner ( static way )
> @Results({
> @Result(name = "index", value = "/jsp/en_US/help.jsp")
> })
>
> How can I pass a dynamic value to the result annotation, so that I can
> achieve something like this
> @Results({
> @Result(name = "index", value = "/jsp/${locale}/help.jsp"),
> @Result(name = "show", value = "${show}" )
> })
> public class HelpController {
> private String locale;
> private String show;
> ...
> }
>
> Thanks!
>
> --
> View this message in context:
> http://www.nabble.com/Result-Annotations-tp19214472p19214472.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Mujoko