Re: Help with syntax struts 2

2019-03-10 Thread Yasser Zamani
On 3/9/2019 3:34 AM, Deborah White wrote: > Can someone help me with the syntax on this? > > Hi Deborah, I tested the syntax and it works. If it doesn't work there then I guess if reportId is String then try else then try . Also try replacing || with && or != with

Re: Help with syntax struts 2

2019-03-09 Thread Paul Zepernick
unless you recognize the sender and know the > content is safe. > > What kind of help? > > On Fri, Mar 8, 2019 at 7:05 PM Deborah White > wrote: > >> Can someone help me with the syntax on this? >> >> >> >> CONFIDENTIALITY NOTICE: This com

Re: Help with syntax struts 2

2019-03-08 Thread Dave Newton
What kind of help? On Fri, Mar 8, 2019 at 7:05 PM Deborah White wrote: > Can someone help me with the syntax on this? > > > > CONFIDENTIALITY NOTICE: This communication with its contents may contain > confidential and/or legally privileged information. It is solely fo

Help with syntax struts 2

2019-03-08 Thread Deborah White
Can someone help me with the syntax on this? CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited

RE: if/elseif tag syntax

2013-06-27 Thread Martin Gainty
> Date: Thu, 27 Jun 2013 13:21:35 +0200 > From: frich...@mtg.de > To: user@struts.apache.org > Subject: Re: if/elseif tag syntax > > Am 27.06.2013 12:59, schrieb Antonios Gkogkakis: > > But how would the framework know with what to populate it? > > > > You

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 12:59, schrieb Antonios Gkogkakis: But how would the framework know with what to populate it? You either do it manually in the body of the action that you execute to reach the view ,e.g., certificate = //logic to get the certificate or you can implement the ModelDriven interface

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
But how would the framework know with what to populate it? You either do it manually in the body of the action that you execute to reach the view ,e.g., certificate = //logic to get the certificate or you can implement the ModelDriven interface which has a method (prepare I think) that gets call

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 12:43, schrieb Antonios Gkogkakis: I assume you are on Struts2. Yes, I am, more precisely I am migrating an application from Webwork to Struts2. I'm not familiar with the ${} expression, but you are right, there is an OGNL null handler that will instantiate objects for you if

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
I assume you are on Struts2. I'm not familiar with the ${} expression, but you are right, there is an OGNL null handler that will instantiate objects for you if they are null, so the behaviour we see makes sense, which means that you don't have a certificate in the value stack. How do you access y

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
I have an update: I enabled the ${certificate.status} in the else branch again and checked the tomcat logs: getStatus called: 0 getStatus called: 0 getStatus called: 0 getStatus called: 0 getStatus called: 1 That would mean that for each if/elseif he doesnt actually call getStatus on the actua

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
if it's called then there is something wrong with the comparison, are you sure that you don't have a String getStatus somewhere? What I would do is instead of checking the == 1 in the jsp create a method on the certificate boolean isValid() { return status==1} and so on. I know it doesn't answer y

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 11:20, schrieb Antonios Gkogkakis: I would temporarily remove ${certificate.status} from the else and I would check if the getStatus is called for the conditionals Yes, it is called. I was hoping it wasn't :( What now? smime.p7s Description: S/MIME Kryptografische Unterschrif

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
I would temporarily remove ${certificate.status} from the else and I would check if the getStatus is called for the conditionals Antonios On 27 June 2013 09:56, Fabian Richter wrote: > All objects have getters/setters set, this is the except of the jsp code > with the problem (trying to write

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
All objects have getters/setters set, this is the except of the jsp code with the problem (trying to write a text that depends on the value of certificate.status into a table cell): ${certificate.status} The result is that in every of these table cells o

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
Long would be fine as well, I tested option 2 and 3 and it works, the important thing is to have gettersfor certificate and status. and an object that has a certificate field in your value stack, Your last option is probably not valid unless you have used s:set to push a bean in the value stack wi

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Stupid me, getStatus was what I was reading and that one returns an int. Am 27.06.2013 10:33, schrieb Fabian Richter: Hi Antonios, you mean the java source Code or something I can extract from the jsp? The source code is confidential. I checked the get/set methods and getId on certificate ret

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Hi Antonios, you mean the java source Code or something I can extract from the jsp? The source code is confidential. I checked the get/set methods and getId on certificate returns a Long if thats what you wanted to know... Best Fabian Am 27.06.2013 10:24, schrieb Antonios Gkogkakis: Hi Fab

Re: if/elseif tag syntax

2013-06-27 Thread Antonios Gkogkakis
Hi Fabian, Can you give as the code of the Action that is in the Value Stack? Antonios On 27 June 2013 09:16, Fabian Richter wrote: > Hey, > > so I tried to use the tag in one of my jsps and couldnt get > neither working: > > isTrue > isTrue > isTrue > isTrue > > but > > ${certificate.status

if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Hey, so I tried to use the tag in one of my jsps and couldnt get neither working: isTrue isTrue isTrue isTrue but ${certificate.status} outputs a 1. Using ${certificate.status} within test="" throws a JSP exception that "attribute test does not accept any expressions" The only thing th

RE: getText syntax for jsp tags

2012-08-15 Thread Cozart, Michele L
Thanks René!! It works perfectly. ** The key attribute is for simple resource properties lookup only, without MessageFormat. The tag is able to deal with MessageFormat in particular. In your case you could either use specialized properties in your bundle: reject.t

Re: getText syntax for jsp tags

2012-08-14 Thread Rene Gielen
5.08.12 03:56, schrieb Cozart, Michele L: > I've been searching for hours but can't find the correct syntax for sending > parameters into the messageResources.properties file and using the resulting > message in a tag. > > For instance, I have submit buttons that will s

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-21 Thread mead
e should be changed to test[followed >> by iteration count] >> >> so that at the end of iteration i get like >> >> > list="test1" >> >> > list="test2" >> >> > list="test3" >> and so on.. >>

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-21 Thread Dave Newton
test2" > > list="test3" > and so on.. > > > > > > > -- > View this message in context: http://struts.1045723.n5.nabble.com/syntax-for-passing-java-contents-inside-jsp-using-struts-2-2-1-tp4406269p4411815.html > Sent from the Struts - User mail

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-21 Thread inception
so that at the end of iteration i get like and so on.. -- View this message in context: http://struts.1045723.n5.nabble.com/syntax-for-passing-java-contents-inside-jsp-using-struts-2-2-1-tp4406269p4411815.html Sent from the Struts - User mailing list archive at

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 3:54 AM, inception wrote: > My actual requirement is that i have to generate dynamic comboboxes [usig > select tag] inside iterator . > > > /> > That doesn't help me understand what you're trying to do, though, or why you believe you need to use a scriptlet, or how

RE: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-19 Thread inception
I tried but it dint work .. My actual requirement is that i have to generate dynamic comboboxes [usig select tag] inside iterator . -- View this message in context: http://struts.1045723.n5.nabble.com/syntax-for-passing-java-contents-inside-jsp-using-struts-2-2-1-tp4406269p4409032.html

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-18 Thread Dave Newton
On Wed, May 18, 2011 at 7:49 AM, inception wrote: > <% String test ="#session.levelList"/> > > > i am not able to pass the sting test inside the select tag.. > > it gives me an exception Normally you'd give details, like what the exception actually is, otherwise... In any case, what are you try

RE: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-18 Thread Biesbrock, Kevin
> I think you need to wrap test in either single or double quotes. Seems like double. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

syntax for passing java contents inside jsp using struts 2.2.1

2011-05-18 Thread inception
Hi Everyone i am not able to get the syntax for passing java contents inside jsp using struts 2.2.1. my requirement being : Myjsp : <% String test ="#session.levelList"/> i am not able to pass the sting test inside the select tag.. it gives me an exception -- View

Re: Incorrect test syntax

2010-09-24 Thread Li Ying
t; constant. > > in your case, it should be: > > ... > > ... > > check this page: > http://www.opensymphony.com/ognl/html/LanguageGuide/staticFields.html > to see the syntax to reference [Static Fields] in OGNL. > > >

Re: Incorrect test syntax

2010-09-24 Thread Li Ying
constant, rather than a string constant. in your case, it should be: ... ... check this page: http://www.opensymphony.com/ognl/html/LanguageGuide/staticFields.html to see the syntax to reference [Static Fields] in OGNL. 2010/9/24 Michaël JERUSALMI > > Dave, you were so right ! > > It wa

Re: Incorrect test syntax

2010-09-24 Thread Dave Newton
tring object that is returned by config.getProject(), > but the value of an enum of type Project. > So I made that method returning a String instead, and it's working ! > > Thank you for your help. > > But by curiosity, what does the OGNL espace do? Because, searching on > forum

RE: Incorrect test syntax

2010-09-24 Thread Michaël JERUSALMI
cause, searching on forums, i saw many times that syntax, and tried it, but I never knew what it was for. > Date: Fri, 24 Sep 2010 09:39:38 -0400 > Subject: Re: Incorrect test syntax > From: davelnew...@gmail.com > To: user@struts.apache.org > > First I'd try wrapping the e

Re: Incorrect test syntax

2010-09-24 Thread Li Ying
think i need see what the property "config.project" exactly is to find out what's going wrong. 2010/9/24 Michaël JERUSALMI > > Sorry, it didn't change a thing. It still goes by the else... > > > Date: Fri, 24 Sep 2010 22:32:04 +0900 > > Subject: Re: In

Re: Incorrect test syntax

2010-09-24 Thread Dave Newton
> Sorry, it didn't change a thing. It still goes by the else... > > > Date: Fri, 24 Sep 2010 22:32:04 +0900 > > Subject: Re: Incorrect test syntax > > From: liying.cn.2...@gmail.com > > To: user@struts.apache.org > > > > Hi Michael: > > > >

RE: Incorrect test syntax

2010-09-24 Thread Michaël JERUSALMI
Sorry, it didn't change a thing. It still goes by the else... > Date: Fri, 24 Sep 2010 22:32:04 +0900 > Subject: Re: Incorrect test syntax > From: liying.cn.2...@gmail.com > To: user@struts.apache.org > > Hi Michael: > > Maybe you can not check if a String has sam

Re: Incorrect test syntax

2010-09-24 Thread 李颖
ere it is : > > > Unsolved > Tickets > > >//config.project contains > the value "dba2" > > > The result so far as always been to write the content of the value > config.project, ie dba2 instead of writing the ex

Incorrect test syntax

2010-09-24 Thread Michaël JERUSALMI
ent of the ProjectName property. Here it is : Unsolved Tickets //config.project contains the value "dba2" The result so far as always been to write the content of the value config.project, ie dba2 instead of writing the expected tab. I

Re: ognl syntax to populate maps

2010-05-06 Thread Dave Evans
It was not, and now is, and the rankMap.get(id) is now returning a String. Thanks so much. Dave On Thu, May 6, 2010 at 6:36 PM, Dale Newfield wrote: > On 5/6/10 8:38 PM, Dave Evans wrote: >> >> My action has a rankMap property with a getter and setter. > > And is setRankMap()'s argument Map? > >

Re: ognl syntax to populate maps

2010-05-06 Thread Dale Newfield
On 5/6/10 8:38 PM, Dave Evans wrote: My action has a rankMap property with a getter and setter. And is setRankMap()'s argument Map? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

ognl syntax to populate maps

2010-05-06 Thread Dave Evans
Hello, I am trying to populate a HashMap property of an action. I am using straight jstl in a form with a textbox like this: My action has a rankMap property with a getter and setter. The map is being populated, but when I fetch the value from the map it returns a String[] instead of a String

@Interceptor annotaion syntax

2010-04-09 Thread RogerV
tereptor reference correct, and what is the correlation between the delaySleepInterval and the refresh on the "wait".jsp page? -- View this message in context: http://old.nabble.com/%40Interceptor-annotaion-syntax-tp28190849p28190849.html Sent from the Struts - User mailing list arch

Re: Syntax problem: Trying to display label for Select while iterating

2010-04-08 Thread RogerV
or the labels as struts won't generate this markup. > > Doh! Thanks Alex. Regards -- View this message in context: http://old.nabble.com/Syntax-problem%3A-Trying-to-display-label-for-Select-while-iterating-tp28175030p28176168.html Sent from the Struts -

Re: Syntax problem: Trying to display label for Select while iterating

2010-04-08 Thread Alex Rodriguez Lopez
I had similar problems with labels, most times they where related to themes. http://struts.apache.org/2.x/docs/themes-and-templates.html For example, if you turn on simple theme you'll have to provide your own tags for the labels as struts won't generate this markup. Em 08-04-2010 08:18, Roge

Syntax problem: Trying to display label for Select while iterating

2010-04-08 Thread RogerV
27;t work either. I've stuck a System.out.println in my getName() method and with both examples, the getName() method on my block class get called and return the correct value. What on earth am I doing wrong? Regards -- View this message in context: http://old.nabble.com/Syntax-problem%3A-Tryin

Re: s:if tag syntax help needed

2010-04-07 Thread RogerV
x27;s a 6 day Easter break in my locale. Anyway, using the fully qualified class name solves the issue; Regards -- View this message in context: http://old.nabble.com/s%3Aif-tag-syntax-help-needed-tp28093648p28165320.html Sent from the Struts - User ma

Re: s:if tag syntax help needed

2010-03-31 Thread Dale Newfield
Felipe A. Lorenz wrote: Im not sure that you can use it (instanceof). The problem might not be with instanceof but rather StringElement. Did you try a fully qualified classname? On 31/3/2010 06:49, RogerV wrote: is the closest you listed. Try that one (or replace "structure.elements[#

Re: s:if tag syntax help needed

2010-03-31 Thread Felipe A. Lorenz
7;ve tried with none of which work. Could some kind soul show me the correct syntax for this? Regards

s:if tag syntax help needed

2010-03-31 Thread RogerV
Hi I'm iterating over a List with and I want to test that the element returned is an instanceof a specific type of element, so I've tried with none of which work. Could some kind soul show me the correct syntax for this? Regards -- View this message in context: http://old.na

Re: [S2] xhtml theme freemarker syntax

2009-12-03 Thread mailtolouis2020-struts
Thanks for the info. From: Greg Lindholm To: Struts Users Mailing List Sent: Wed, December 2, 2009 8:55:51 PM Subject: Re: [S2] xhtml theme freemarker syntax Easy to find in the Freemarker docs. http://freemarker.org/docs/ref_directive_t.html On Wed, Dec 2

Re: [S2] xhtml theme freemarker syntax

2009-12-02 Thread Greg Lindholm
Easy to find in the Freemarker docs. http://freemarker.org/docs/ref_directive_t.html On Wed, Dec 2, 2009 at 10:47 AM, wrote: > Hi, > > I'm trying to modify xhtml theme to suite our need, but I'm not familiar with > freemarker. Could someone explain these few tags mean? > > <#rt/> > <#lt/> > <#

[S2] xhtml theme freemarker syntax

2009-12-02 Thread mailtolouis2020-struts
Hi, I'm trying to modify xhtml theme to suite our need, but I'm not familiar with freemarker. Could someone explain these few tags mean? <#rt/> <#lt/> <#t/> Regards LV

Re: tag syntax question

2009-07-24 Thread Musachy Barroso
I totally agree with Dale, using %{..} will save you a lot of headaches. musachy On Fri, Jul 24, 2009 at 7:31 AM, Dale Newfield wrote: > Mitch Claborn wrote: >> >> Is either of the following more or less efficient than the other? >> >> >> > > I always argue that the latter should be used, just

Re: tag syntax question

2009-07-24 Thread mailtolouis2020-struts
Hi, I've another tag syntax question This not work: This work This also work Why we need to use %{} for fieldValue but value doesn't require? Regards Louis From: Dale Newfield To: Struts Users Mailing List Sent: Friday, July 24, 2009

Re: tag syntax question

2009-07-24 Thread Dale Newfield
Mitch Claborn wrote: Is either of the following more or less efficient than the other? I always argue that the latter should be used, just to avoid unnecessary confusion later on. -Dale - To unsubscribe, e-mail: user-uns

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Is either of the following more or less efficient than the other? mitch Musachy Barroso wrote: > other attributes are expected to be expressions, so you can do: > > > > instead of the more verbose, but also correct: > > > > > -

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Thanks to both. The haze on the subject is beginning to clear. mitch Musachy Barroso wrote: > yes that's a good catch Dale, from the API point of view they are > stored in a map in the ValueStack instance, but from a user point of > view you could say they are stored in the "valuestack context"

Re: tag syntax question

2009-07-23 Thread Musachy Barroso
yes that's a good catch Dale, from the API point of view they are stored in a map in the ValueStack instance, but from a user point of view you could say they are stored in the "valuestack context". musachy On Thu, Jul 23, 2009 at 9:03 PM, Dale Newfield wrote: > Musachy Barroso wrote: >> >> Objec

Re: tag syntax question

2009-07-23 Thread Dale Newfield
Musachy Barroso wrote: Objects can be put in the stack by name, like the HttpServletRequest object. Theseobjects are accessed using the "#" notation, like "#request". The "set" tag can add things to the stack by name(for example). The only confusing bit about the way that was just described is

Re: tag syntax question

2009-07-23 Thread Musachy Barroso
literals, and for anything else I add %{...}, because I cant spent my insufficient memory remembering which one is which :) musachy On Thu, Jul 23, 2009 at 4:01 PM, Mitch Claborn wrote: > I'm a big confused about the syntax in struts tags.  For example, I have > the following: > &

tag syntax question

2009-07-23 Thread Mitch Claborn
I'm a big confused about the syntax in struts tags. For example, I have the following: "display" is a property on the action. The first one does not need the #, but the second one does. Why? What does the # signify? Some tags seem to need the ognl construct %{.}. Wha

Re: How to correct this syntax for multiple submit buttons?

2009-06-28 Thread Paweł Wielgus
Hi Sam, remove "submit" word. Best greetings, Paweł Wielgus. 2009/6/27 Sam Wun : > Hi, > > here are the offending lines in my jsp file: > > > /> > > > Errors on console: > > org.apache.jasper.JasperException: > /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol > expected > o

How to correct this syntax for multiple submit buttons?

2009-06-27 Thread Sam Wun
Hi, here are the offending lines in my jsp file: Errors on console: org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol expected org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol expecte

Re: Simple syntax question

2009-06-19 Thread Musachy Barroso
${property} or musachy On Fri, Jun 19, 2009 at 12:40 PM, Jim Collings wrote: > I have an action with a property that I want on my result jsp in plain > text, no controls. > > Can't remember the syntax for this. > >

Simple syntax question

2009-06-19 Thread Jim Collings
I have an action with a property that I want on my result jsp in plain text, no controls. Can't remember the syntax for this. lil help? Jim C. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addit

Re: Syntax for Action property that is not being used in a control?

2009-05-27 Thread Dave Newton
formation in my jsp but NOT in a control what syntax would I use? If it were a text box, for example, I would set the name attribute of the text box to "userName" and it would work. I want to use it in a welcome message though as in "Welcome user

Re: Syntax for Action property that is not being used in a control?

2009-05-27 Thread Wes Wannemacher
Welcome user -W On Wed, May 27, 2009 at 3:20 PM, Jim Collings wrote: > So if I have property "userName" in my action with a getter and a > setter and then I want to use that information in my jsp but NOT in a > control what syntax would I use? > If it were a text box, fo

Syntax for Action property that is not being used in a control?

2009-05-27 Thread Jim Collings
So if I have property "userName" in my action with a getter and a setter and then I want to use that information in my jsp but NOT in a control what syntax would I use? If it were a text box, for example, I would set the name attribute of the text box to "userName" and it wo

RE: What's the correct expression syntax?

2009-02-06 Thread Griffith, Michael *
t: Re: What's the correct expression syntax? Griffith, Michael * wrote: > > ... Do work > Is the correct one, except for the one-character-string gotcha: http://struts.apache.org/2.1.6/docs/why-wont-the-if-tag-evaluate-a-one-c har

RE: What's the correct expression syntax?

2009-02-06 Thread Richard Gundersen
rs (sorry, I cant verify myself right now) -Original Message- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Fri 06/02/2009 19:27 To: Struts Users Mailing List Subject: What's the correct expression syntax? Hi, I don't think I fully understan

Re: What's the correct expression syntax?

2009-02-06 Thread Dale Newfield
Griffith, Michael * wrote: ... Do work Is the correct one, except for the one-character-string gotcha: http://struts.apache.org/2.1.6/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html -Dale - To unsubscribe,

What's the correct expression syntax?

2009-02-06 Thread Griffith, Michael *
Hi, I don't think I fully understand OGNL and I need some help with an expression... I have a param that I am passing to an action. the parameter is called selectedType, and it has a getter and setter on the action. It is getting set correctly. When I try to evaluate the expression using the

Using JSP 2.0 syntax inside Sitemesh decorator

2008-09-24 Thread Zarar Siddiqi
I can't believe I haven't run into this issue before but I just noticed that you can't use JSP 2.0 syntax inside a Sitemesh decorator. My Sitemesh config is exactly like as described here: http://struts.apache.org/2.x/docs/sitemesh-plugin.html The only difference is that I

Re: REST plugin URL syntax

2008-07-14 Thread Jeromy Evans
Mike Watson wrote: BTW, if I want a controller to work in multiple namespaces do I need to declare seperate packages in struts.xml instead of just relying on the @Namespace annotation? Thanks again for all your help. Unfortunately when using Codeheind, you do have to create a new package

Re: REST plugin URL syntax

2008-07-14 Thread Mike Watson
Jeromy, Thanks *heaps* for finfing the time to do that. I'd pretty much done everything your demo does except for one little detail: Doh! Now to see if that's broken my fancy pants image handler... BTW, if I want a controller to work in multiple namespaces do I need to declare seperate pack

Re: REST plugin URL syntax

2008-07-11 Thread Jeromy Evans
Jeromy Evans wrote: Dusty, you're right. I just had a quick look and I do have a custom action mapper that checks whether the pattern above references an action or method for that exact reason (it checks the list of available actions and gives precedence to those). Works great for me. I r

Re: REST plugin URL syntax

2008-07-10 Thread Wes Wannemacher
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html The instructions are pretty straight-forward. If you've never used maven before, it's a bit tricky at first, but once you run through it a few times, it's pretty easy. If you're building from trunk, then you might want t

Re: REST plugin URL syntax

2008-07-10 Thread Dave Newton
--- On Thu, 7/10/08, Mike Watson <[EMAIL PROTECTED]> wrote: > So what's the best way to get the latest 2.1.3 snapshot as source? Via SVN. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: REST plugin URL syntax

2008-07-10 Thread Mike Watson
So what's the best way to get the latest 2.1.3 snapshot as source? Only the jars seem to be in the maven snapshot repo... Are there any instructions on doing that somewhere? I've looked but can't find them... 2008/7/3 Jeromy Evans <[EMAIL PROTECTED]>: > Mike Watson wrote: >> >> Hi Jeromy, >> >> I

Re: REST plugin URL syntax

2008-07-08 Thread Jeromy Evans
Mike Watson wrote: The trick (I believe) is that the url should be parsed from right to left, not left to right. I don't think it's a hijack; for the application I'm working on context is very important so knowing that a given resource is being accessed in the context of another resource has a bi

Re: REST plugin URL syntax

2008-07-06 Thread Mike Watson
Controller implements ModelDriven { } >> >> >> @Namespace("/book/{bookId}") >> public class ChapterController implements ModelDriven { } >> >> >> Now that's what *should* happen. I use it in a large application that >

Re: REST plugin URL syntax

2008-07-05 Thread dusty
t it somewhere. > > I'll come back to the authorization issue separately. The quick answer > is that you can omit methods that are never permitted and/or filter URLs > based on a URI pattern and/or user's role. > > regards, > Jeromy Evans > > >

Re: REST plugin URL syntax

2008-07-02 Thread Mike Watson
Thanks heaps Jeromy, I'll grab the 2.1.3 snapshot and try again. A vanilla sample app would be great (others would probably find it useful too). Cheers Mike 2008/7/3 Jeromy Evans <[EMAIL PROTECTED]>: > Mike Watson wrote: >> >> Hi Jeromy, >> >> I've finally found time to try to resolve this but

Re: REST plugin URL syntax

2008-07-02 Thread Jeromy Evans
Mike Watson wrote: Hi Jeromy, I've finally found time to try to resolve this but haven't had much luck. Just to recap, I'm looking to be able to do something similar to the following: /book -> returns a list of books /book/123 -> returns book with id 123 /book/123/chapter/1 -> return chapter wi

Re: REST plugin URL syntax

2008-07-01 Thread Mike Watson
Hi Jeromy, I've finally found time to try to resolve this but haven't had much luck. Just to recap, I'm looking to be able to do something similar to the following: /book -> returns a list of books /book/123 -> returns book with id 123 /book/123/chapter/1 -> return chapter with id 1, retrieved fr

Re: REST plugin URL syntax

2008-06-18 Thread Jeromy Evans
Don Brown wrote: I believe it is technically possible to do this, but not at all intuitive right now. This is probably my number one improvement request for the REST plugin. You should be able change the wildcard mapper to one that recognizes named wildcards then use them in your namespace anno

Re: REST plugin URL syntax

2008-06-17 Thread dusty
scribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e

Re: REST plugin URL syntax

2008-06-17 Thread Mike Watson
Hmmm, I haven't come across the Namspace annotation stuff. I'll investigate that and see how I get on. If anyone can point me at some useful examples of how I might achieve this it'd be greatly appreciated. Thanks again for all the responses... 2008/6/17 Don Brown <[EMAIL PROTECTED]>: > I believe

Re: REST plugin URL syntax

2008-06-17 Thread Mike Watson
low you to have separate file stores to spread the data accross. > > Al. > > Mike Watson wrote: >> >> Thanks for the feedback. >> >> I actually disagree regarding whether my url syntax is restful. >> >> Have you read the O'Reilly book: "

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
ad the data accross. Al. Mike Watson wrote: Thanks for the feedback. I actually disagree regarding whether my url syntax is restful. Have you read the O'Reilly book: "RESTful Web Services" by Leonard Richardson; Sam Ruby? If not please take a look (you can probably see sample

Re: REST plugin URL syntax

2008-06-16 Thread Don Brown
I believe it is technically possible to do this, but not at all intuitive right now. This is probably my number one improvement request for the REST plugin. You should be able change the wildcard mapper to one that recognizes named wildcards then use them in your namespace annotation like this: @

Re: REST plugin URL syntax

2008-06-16 Thread Mike Watson
Well that'd be nice but I'm really struggling to get it to behave the way I want. Any thoughts on how I might do this? 2008/6/17 Dave Newton <[EMAIL PROTECTED]>: > --- On Mon, 6/16/08, Mike Watson <[EMAIL PROTECTED]> wrote: >> Can anybody suggest where I would start in an attempt to >> implement t

Re: REST plugin URL syntax

2008-06-16 Thread Dave Newton
--- On Mon, 6/16/08, Mike Watson <[EMAIL PROTECTED]> wrote: > Can anybody suggest where I would start in an attempt to > implement this hierarchical model? The existing REST plugin? Just an idea. Dave - To unsubscribe, e-mail

Re: REST plugin URL syntax

2008-06-16 Thread Mike Watson
Thanks for the feedback. I actually disagree regarding whether my url syntax is restful. Have you read the O'Reilly book: "RESTful Web Services" by Leonard Richardson; Sam Ruby? If not please take a look (you can probably see sample chapters on Safari if you don't have an ac

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book control

Re: REST plugin URL syntax

2008-06-16 Thread Laurie Harper
o something with multiple IDs my suggestion would be URLs along the lines of; http://www.mydomain.com/rest/bookAndChapter/123_1 Al. Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydom

Re: REST plugin URL syntax

2008-06-15 Thread Al Sutton
along the lines of; http://www.mydomain.com/rest/bookAndChapter/123_1 Al. Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.my

REST plugin URL syntax

2008-06-15 Thread Mike Watson
Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book controller doesn

Re: Problem with OGNL syntax

2008-03-04 Thread oscar perez
Hi, Thank you for your quick reply. I tried your suggested syntax and didn't work either. However, I like a lot more your last proposal so I will give it a shot. Thanks! Oscar On Tue, Mar 4, 2008 at 1:05 AM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > oscar perez wrote: > > &

Re: Problem with OGNL syntax

2008-03-03 Thread Jeromy Evans
oscar perez wrote: I see what you're trying to do; you're asking OGNL to evaluate companyType first, and use the string result in the outer expression to evaluate. The %{} notation won't do this for you. According to the OGNL guide you should use parentheses to evaluate part of the

  1   2   3   >