Re: Running a prepare method before the assigned action method

2008-03-25 Thread meeboo
Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( meeboo wrote: > > Hey again > > I'm posting via n

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
Hey again I'm posting via nabble, and it seems to strip out my wildcards, basically my action looks like this now < param name= " id " > { 1 } /models/objectModel/update.jsp Hopefully this is viewable. newton.dave wrote: > > -

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
thod, but not in the prepare method (i've tried using the newton.dave wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> I have a class for several actions and each action is mapped to a method, >> like this: >> >> >class="net.myapp

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
It seems as if the preparable method can't parse parameters if they are in the following format update/modelObject/10.action (where 10.action is the primary key) where as it works fine when using action urls like this update/modelObject?10.action Is this expected behavior? meeboo

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
alues populate the form in update.jsp. But the id property is never set so the form is never populated. I even tried setting paramsPrepareParamsStack as the default stack but with no luck. meeboo wrote: > > Hi all > > I have a class for several actions and each action is mapped to a me

Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
Hi all I have a class for several actions and each action is mapped to a method, like this: /index.jsp The above action will fire when a form is submitted and the modelObject properties are populated via the form fields. Now that I want is to invoke a prepare method before the update method s

Re:

2008-03-19 Thread meeboo
lso I noticed that there seems to be a bug with the var attribute in (it doesn't work at all) Maybe someone can shed some light on these issues? Alexis Pigeon wrote: > > Hi, > > On 18/03/2008, meeboo <[EMAIL PROTECTED]> wrote: >> >> Has

Re:

2008-03-18 Thread meeboo
Has anyone had success with and setting the struts.date.format property? meeboo wrote: > > Hi all > > I have set my struts.date.format properties but they seem to have no > effect at all. The set value is > struts.date.format=-MM-dd but when using the tag the forma

user@struts.apache.org

2008-03-16 Thread meeboo
Hi all I have set my struts.date.format properties but they seem to have no effect at all. The set value is struts.date.format=-MM-dd but when using the tag the format is for example "Jan 14, 2008 8:00:00 AM". All my other properties take effect so there's no problem with setting other valu

Re: Struts url problem

2007-09-06 Thread meeboo
try ... (other params) TonyD wrote: > > I'm trying to use a property value into a struts url but doesn't work > because > I can not use the (" character) twice into a url value, could somebody > help me? > Thanks in advance. > > "> > > ... (other params) > > -- V

Re: Struts2 - troubles with ParameterAware

2007-08-22 Thread meeboo
I think that you'll need to declare the param, something in the likes of... /ActionParam.jsp {1} not sure though since I don't have the time to thoroughly look through the code :p Riccardo Mollame wrote: > > file set: > > Launch JS

src.js in Struts2

2007-08-16 Thread meeboo
Hey all I've moved all the static Dojo stuff from the Struts2 jar to an external location, but my app constantly complains about not finding "src.js" - as far as I can see this file isn't even included in the S2 lib. I've tried googling for the file but can't seem to find it anywhere, any ideas?

Re: [S2] Problems loading css files in RestfulActionMapper

2007-07-31 Thread meeboo
Try using absolute URL:s for the CSS files, it might be a workaround but it's worked for me before. Srinivas.N. wrote: > > I am using the restful mapper through a CompositeActionMapper as in > > value="org.apache.struts2.dispatcher.mapper.CompositeActionMapper"/> > > > However, the css fil

Re: S2 + REST urls

2007-07-30 Thread meeboo
At the moment we are using URLRewrite to bypass all the trouble with S2 intercepting static content (we are also not using any action extension). But it would be even better if the filter was patched :) Ted Husted wrote: > > It's possible that the use case of a an empty action extension was not

Accessing constants in Struts.xml

2007-07-12 Thread meeboo
Hey all How can I access constants via my S2 mapping files? At the moment I have the following mapping: ${UMA_REDIRECT_URL}http://myapp:8080/app/upload.action /uploadMovie.jsp ${UMA_REDIRECT_URL} is a constant declared in UploadMovie - but I can't access it in Struts.xml. If I on the other ha

Set a session value in the view

2007-07-03 Thread meeboo
Hey all How can I achieve something like this: <%session.removeAttribute("successMessage");%> with the tag? I tried but it didn't work. Thanks! -- View this message in context: http://www.nabble.com/Set-a-session-value-in-the-view-tf4018422.html#a11412642 Sent from the Struts - User maili

[S2] Design patterns

2007-06-11 Thread meeboo
Hey all How do you build up your Struts 2 applications architecture wise? Say for instance that you have a User model object. Do you create an action class (e.g. UserAction.java) for all User actions, or do you separate them into UpdateUser.java/CreateUser.java etc...? We thought Struts 2 was a b

[S2] questions

2007-06-04 Thread meeboo
Hey all Is there a way to set a default value for a s:textfield? I am trying something like this: but am receiving a TLD error. I also discovered that a doesn't capture values from disabled input fields, now I know that there's already been a bug reported on s:textfield not being able to hand

URL question

2007-05-18 Thread meeboo
Hey all Can I somehow hide the action name in a URL to make it more search engine friendly? I am specifically talking about the index page (in for example http://www.myapp.com/index.action ). Cheers -- View this message in context: http://www.nabble.com/URL-question-tf3776809.html#a10679563 S

Redirecting from mapping error exceptions

2007-05-16 Thread meeboo
Hey all I have the following lines in Struts.xml /index But it won't catch exceptions where the user has typed in an unmapped address, all I get is There is no Action mapped for namespace / and action name xxx (with status report 500) Can I somehow redirect all these excep

Re: [S2] UTF-8 woes

2007-05-08 Thread meeboo
from IE6 to a application ran in Resin? Thanks! Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > meeboo, > > meeboo wrote: >> But that other poster was using Struts 1! Also, I am already using >> >> Has anyone had lu

Re: [S2] concurrency issues

2007-05-07 Thread meeboo
stead of the hibernateDaoTemplate. Thanks for the quick reply though Dave, you're a stand up S2 guy :) Dave Newton-4 wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> We just launched a webapp using Hibernate/Spring/S2. >> The architecture is pretty standard with

[S2] concurrency issues

2007-05-07 Thread meeboo
Hey all We just launched a webapp using Hibernate/Spring/S2. The architecture is pretty standard with a DAO, Service and a Web layer. Our problem is that we are receiving massive traffic which pretty much kills the application after just a couple of seconds. I am guessing this is since our S2 arc

Re: [S2]XML output problem

2007-05-05 Thread meeboo
Damn it, I feel stupid now :p Thanks, and have a good weekend! Dave Newton-4 wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> Where is this blank line coming from? > > The newlines in your JSP. Put it all on one line; just > because there's a JSP direct

[S2]XML output problem

2007-05-05 Thread meeboo
Hey all I am trying to output a RSS feed via a JSP page in S2. The problem is that I keep on getting a blank row/new line before the actual XML data is written to the page. The error message is "XML Parsing Error: xml declaration not at start of external entity" because of this . Here's the JSP

Re: [S2] UTF-8 woes

2007-05-03 Thread meeboo
But that other poster was using Struts 1! Also, I am already using Has anyone had luck using for example å ä ö in S2 ? I am a very savvy Struts 2 mailing list user you know :) Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > me

[S2] UTF-8 woes

2007-05-03 Thread meeboo
Hey all I am trying to submit form data with UTF-8 characters but am having no luck. The special characters are garbled when inserted in the database from a for example - this is regardless of what browser I am using. I am using a page content type declaration for each page, but that doesn't hel

Nested

2007-04-28 Thread meeboo
Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first form it automagically starts working. The action is mapped like: {1} user/${normalize

Re: question

2007-04-27 Thread meeboo
otherwise it > would print as a literal. > I'm not sure about what of % or # will work. > > > Dave Newton-4 wrote: >> >> --- meeboo <[EMAIL PROTECTED]> wrote: >>> But when I write >> value="getMovieCategory(category)"/> it >>&g

Re: question

2007-04-27 Thread meeboo
're calling binded in some action that result in this > form? > I mean, to call some method by OGNL this method should be on the stack. > > Make sure it is on the stack, if it is and keeps not working, post the > code of your action and your form here. > > Regards, > &g

question

2007-04-27 Thread meeboo
Hey all I am trying to populate the value of a s:textfield with some data from a method via OGNL. I tried value="getTagsAsString(movie.id)" which doesn't work at all (the textfield is populated with "getTagsAsString(movie.id)"). Then I tried the JSTL approach, by writing value="%{#getTagsAsString

Another file upload question

2007-04-24 Thread meeboo
Hey all I have an action class which handles file uploads via a setter method: private File uploadedMovie = null; public void setUploadedMovie(File uploadedMovie) {this.uploadedMovie = uploadedMovie;} The problem is that I can't set the name of the uploaded file before it is saved to the drive.

Re: Iterating through a map

2007-04-23 Thread meeboo
do that. > A good solution is create a keySet or a list from Map's keys and iterate > over that, using each object to get the Map values. > > Good look, > > > Felipe > > > > meeboo wrote: >> >> Hey all >> >> How do I iterate through

Iterating through a map

2007-04-23 Thread meeboo
Hey all How do I iterate through a map? My current method returns a LinkedHashMap - the map is populated and accessed by the view as my debugger shows, but it is never iterated through. Here's the JSP fragment Should iterate 12 times

Re: Problem with form action mapping

2007-04-18 Thread meeboo
gt; > It may not solve your problem, but are you using the > action context cleanup filter? > > d. > > --- meeboo <[EMAIL PROTECTED]> wrote: > >> >> Quick note, it seems as if I am reaching the >> uploadFile method when not >> specifying a file

Re: Problem with form action mapping

2007-04-18 Thread meeboo
Quick note, it seems as if I am reaching the uploadFile method when not specifying a file to upload. The movieTitle is then read in the action class. But if I also choose to upload a file alongside with it the method will not be reached. I'm stumped! :( meeboo wrote: > > Hey all >

Problem with form action mapping

2007-04-18 Thread meeboo
Hey all I've been trying to solve this problem for a couple of hours but to no prevail... struts.xml /uploadMovie.jsp /index.jsp /uploadMovie.jsp uploadMovie.jsp UploadMovie.java public String uploadFile() { if(movieTitle != null && uploadedMovie !=null)

Re: Nesting a in a

2007-04-18 Thread meeboo
Yeah it works, I tried > value="#session.user.username" />/"/> >> >> Are there other ways of including session values >> without nesting S2 components? > > Does using OGNL EL in the action attribute not work? > (It's never been entirely clear to me where I'm > allowed to use it.) > > d. > >

Nesting a in a

2007-04-18 Thread meeboo
Hey all I am trying to include a session property in a component, but get the following error: "Unterminated Are there other ways of including session values without nesting S2 components? -- View this message in context: http://www.nabble.com/Nesting-a-%3Cs%3Aproperty%3E-i

Re: struts.action.extension question

2007-04-11 Thread meeboo
at the moment. cilquirm wrote: > > I don't believe this can be cleanly handled with just the web 2.4 spec and > struts2. > > Some container, like Resin, allow for url-patterns to be regexes, which > would help in this scenario. > > > > meeboo wrote: >>

Re: struts.action.extension question

2007-04-11 Thread meeboo
ieTitle=* or something > else in your > filter. > > regards > joey > On 4/11/07, meeboo <[EMAIL PROTECTED]> wrote: >> >> >> No takers on this? >> >> >> meeboo wrote: >> > >> > Hey all >> > >&g

Re: struts.action.extension question

2007-04-11 Thread meeboo
No takers on this? meeboo wrote: > > Hey all > > I have a mapping pattern which looks like this > > > {1} > /movie.jsp > > > The wildcard is for backwards compability since our original JSP/Servlet > web-layer mapped movie titl

struts.action.extension question

2007-04-09 Thread meeboo
-- View this message in context: http://www.nabble.com/struts.action.extension-question-tf3548145.html#a9905001 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: resume after login feature

2007-04-06 Thread meeboo
maybe? Dave Newton-4 wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> Yeah Dave, the problem is passing the data. I have >> my Login.java action class which implements >> ServletRequestAware but it'll of course only > retrieve >> localhost:8080/login.

Re: resume after login feature

2007-04-05 Thread meeboo
Gotcha Dave... now all I need is clean URL:s before I can actually consider using this damned framework :) Dave Newton-4 wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> Yeah Dave, the problem is passing the data. I have >> my Login.java actio

Re: resume after login feature

2007-04-05 Thread meeboo
hat it can redirect back to that specific page. Dave Newton-4 wrote: > > --- meeboo <[EMAIL PROTECTED]> wrote: >> I'm kind of stumped on this problem too, how can I >> send the original request uri to the login action so > >> that it knows what page to redi

Re: resume after login feature

2007-04-05 Thread meeboo
I'm kind of stumped on this problem too, how can I send the original request uri to the login action so that it knows what page to redirect to? Jae K wrote: > > Hello all, this is a struts2 question. > > I'm trying to implement a feature where a custom AuthenticationInterceptor > would redir

Struts 2 URL mapping

2007-04-05 Thread meeboo
Hey all Is it possible to snap up URL parameters via wildcards in Struts.xml and then pass them on as request parameters to an action? For example, map all URL:s from localhost:8080/v/*/ to /localhost:8080/movie.action?myParam=? where the question mark is replaced with the wildcard value. --

Re: request.getParameterValues OGNL ?

2007-04-04 Thread meeboo
if you want to iterate over an array of strings. Implement ParameterAware to retrieve request parameters... http://struts.apache.org/2.0.6/docs/how-can-we-access-request-parameters-passed-into-an-action.html Will Berger wrote: > > I have seen this page. I don't see where it shows you how

RE: Common header and footer html

2007-03-30 Thread meeboo
Is there a good way of achieving this in Struts 2 without using Tiles? I'm new to Struts and coming from a Tapestry background my first hunch was to create classes for a header and a footer element, but is this even a viable option in an action based framework? If not, what's the best practice whe

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-09 Thread meeboo
fore* the > freemarker error in the log to see what the actual > problem is (and turn devMode on). > > d. > > --- meeboo <[EMAIL PROTECTED]> wrote: > >> >> I tried using the maven archetype but still get the >> same error (even with the >> Config

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-08 Thread meeboo
>> the app? >> >> musachy >> >> On 3/7/07, meeboo <[EMAIL PROTECTED]> wrote: >>> >>> >>> This might be well out of your reach, but I did as you said and >>> downloaded >>> the config browser plugin. Under namespaces I

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-07 Thread meeboo
them. > > musachy > > On 3/7/07, meeboo <[EMAIL PROTECTED]> wrote: >> >> >> Thanks for your quick reply, but I get a >> >> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action" >> >> When you typed "and acces

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-07 Thread meeboo
usachy Barroso wrote: > > Try setting namespace="/com/bubbleclip/web/example", in the package, and > access the action: > > {...}/com/bubbleclip/web/example/HelloWorld.action > > musachy > > On 3/7/07, meeboo <[EMAIL PROTECTED]> wrote: >> >> >

There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-07 Thread meeboo
Hey all I recently decided to evaluate Struts2 for a big project, but am having difficulties mapping actions. I get the "There is no Action mapped..." error when I try running the blank struts2 application. Here's my example.xml /web/example/HelloWorld.jsp