Re: Linking to another application

2011-06-24 Thread Greg Akins
the two apps at the session level and treat them like two different web applications. Use web services to send the requests from one app1 - app2; then save the responses in app1? In your case, maybe app2 can just be a web API (RESTful, or WS*) without any UI. -- Greg Akins http://twitter.com

Re: Linking to another application

2011-06-24 Thread Greg Akins
? RequestManager needs to know what type of interface it's expecting.. so there probably needs to be some commonality between the forms in RequestHandler.. that's the abstraction that needs defined. Am I on the right track, or still missing something? -- Greg Akins http://twitter.com/akinsgre

Re: Problem with OGNL in FieldExpressionValidator

2011-04-30 Thread Greg Akins
for listening. -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Greg Akins
, the annotation logs WARN - Got result of null when trying to get Boolean. I also tried #session.birthYearDisplayed #session['birthYearDisplayed'] Struts 2.2.1 -- Greg Akins http://twitter.com/akinsgre

Re: Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Greg Akins
to be null) I've tested this by executing the action.execute() and by calling the annotations from a JUnit Test. -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: Using Strut in Desktop Application

2011-04-19 Thread Greg Akins
afterall. Are you hoping to use some of the controller aspects in a Desktop application? Maybe it would be better if you explain more about what you're hoping to achieve by integrating Struts into a Desktop application. -- Greg Akins http://twitter.com/akinsgre

Re: Help with JQuery plugin

2011-02-18 Thread Greg Akins
other attempts using SimpleModal) for a day now and am hoping someone can point me in the right direction. Thanks. -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Help with JQuery plugin

2011-02-17 Thread Greg Akins
that form to an action as the dialog is closed. The examples in the struts-jquery-plugin wiki don't seem to cover this case; though I've been fighting this (along with some other attempts using SimpleModal) for a day now and am hoping someone can point me in the right direction. Thanks. -- Greg

XSS Validation

2011-02-10 Thread Greg Akins
and other types of non-checked input vulnerabilities? -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Problem with SessionAware across a redirect

2010-12-30 Thread Greg Akins
and Tomcat6.. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr

Re: Problem with SessionAware across a redirect

2010-12-30 Thread Greg Akins
On Thu, Dec 30, 2010 at 10:42 AM, Greg Akins angryg...@gmail.com wrote: I have an action which implements SessionAware  When that action is redirected to, the session map is null. Nevermind.. I'm an idiot. Forgot to include the default-stack when I added an interceptor. -- Greg Akins http

Authorization/ Authentication

2010-12-27 Thread Greg Akins
- that confused me a bit). I'm still Googling for some more information, but if anyone could point me to a specific resource it would be greatly appreciated. Thanks! -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre

Re: Authorization/ Authentication

2010-12-27 Thread Greg Akins
for clearing that up. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr

Re: Authorization/ Authentication

2010-12-27 Thread Greg Akins
to the login page if the user isn't authenticated. The security for this application is binary so I don't need anything additional for Authorization. Thanks for pointing it out though.. I'll definitely do some research into that. -- Greg Akins http://insomnia-consulting.org http

namespace vs package

2010-12-27 Thread Greg Akins
) } ) public String execute() { return SUCCESS; } } -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Re: namespace vs package

2010-12-27 Thread Greg Akins
On Mon, Dec 27, 2010 at 11:21 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: Did you try ParentPackage Annotation? Also I'm not sure that empty string for namespace is the best value. No. I put them in the same package to get them working and figured I could experiment from there.

Re: namespace vs package

2010-12-27 Thread Greg Akins
class in sigmm.interceptors I'd expect the actions in mobile to be in the /mobile namespace; think they'd be in the sigmm.actions.mobile package and don't know what package/namespace the Interceptor would be in (Other than the java package sigmm.interceptors). -- Greg Akins http://insomnia

EmailValidator

2010-12-13 Thread Greg Akins
is the best approach? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr

Re: EmailValidator

2010-12-13 Thread Greg Akins
On Mon, Dec 13, 2010 at 12:20 PM, Dave Newton davelnew...@gmail.com wrote: IIRC the default email validator isn't as robust as the page- long RFC email regex. I'd suggest either a patch, ora custom validator. Thanks. I'll try to submit a patch after I get something more robust working

Re: EmailValidator

2010-12-13 Thread Greg Akins
.. It looks like the API docs don't quite match the source then, either. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Re: Cancel in a form re: bypass Validation

2010-12-10 Thread Greg Akins
to understand how to get the button to work, in case I have to use a cancel button either in this case, or in the future. So, when it be clicked, browser will jump to the next page, and your form will not be submitted. And of cause, the validation will not be executed. -- Greg Akins http

Cancel in a form re: bypass Validation

2010-12-09 Thread Greg Akins
the form is submitted, even if it's submitted from the cancel button. The HelloWorld application looks like it's using serverside validation (since there isn't any javascript in the page.. but the error messages and labels still appear). Any thoughts on what I might be missing? -- Greg Akins

Re: Cancel in a form re: bypass Validation

2010-12-09 Thread Greg Akins
is fine if I can figure out why the errormessage labels are disappearing.. Seems like it might be a function of using the Convention plugin. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com

Bad Struts Day s:property/

2010-12-09 Thread Greg Akins
/11/index.jsp my img src will be /App/11/logo.gif If I simply do s:url value=//s:text name=IMAGE/ oftentimes the jsessionid value get's placed on the end of the url and corrupts the intended results. Using struts 2.2.1 .. any suggestions? -- Greg Akins http://insomnia-consulting.org http

Re: Question about OGNL / EL

2010-12-06 Thread Greg Akins
original- De: Greg Akins [mailto:angryg...@gmail.com] Enviado el: Monday, December 06, 2010 11:16 AM Para: user@struts.apache.org Asunto: Question about OGNL / EL This might not be specifically a OGNL question.  I've got some code that doesn't appear to behave correctly

Re: Initial setup

2010-11-22 Thread Greg Akins
convenience try this http://struts.apache.org/2.2.1/docs/getting-started.html -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Problem with Validation lifecycle

2010-11-19 Thread Greg Akins
to redirect to an action because the action determines whether certain fields need displayed.. if the INPUT goes straight to a jsp, the jsp is blank because of the logic I'm using to display fields. Struts 2.2.1 -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http

Re: Problem with Validation lifecycle

2010-11-19 Thread Greg Akins
, I'm not sure of how I'd do that either. 2010/11/19 Greg Akins angryg...@gmail.com I've written an action, with validation, that uses a redirectAction instead of a .jsp for the INPUT result. When the final INPUT jsp is displayed, the actionErrors aren't present.  I believe this is because

Re: Problem with Validation lifecycle

2010-11-19 Thread Greg Akins
was looking for. One question to you, or to the list, someone that commented on your blog mentioned the MessageStoreInterceptor. Any pros or cons of using that over your interceptor? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http

Re: Another stupid question re: Interceptors

2010-11-17 Thread Greg Akins
return a result [success], show the Identify-success.jsp page. (5)another thing need to notice is, method [execute] should be marked by [skipvalidation] annotation -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com

Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
annotations, rather than validator.xml, for validations. Struts 2.2.1. There is no struts.xml file in the project (everything is through annotations.). Any hints? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre

Re: Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
to be returned to identify-success.jsp to fix the appropriate fields. Am I doing this wrong? On Tue, Nov 16, 2010 at 4:17 PM, Gena Ganebnyi gganeb...@nebulent.com wrote: Why not to name your original page page-input.jsp? On Tue, Nov 16, 2010 at 10:31 PM, Greg Akins angryg...@gmail.com wrote

Putting an Image (in Bytes) on the session

2010-11-15 Thread Greg Akins
${image} Thoughts on this, or other ways to do something similar? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Re: Putting an Image (in Bytes) on the session

2010-11-15 Thread Greg Akins
a c:out value=${data}/ in an Img/ tag like img id=${caption} src=data:image/gif;base64,${data} alt=Image -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Getting rid of session state

2010-11-01 Thread Greg Akins
other ideas, or is there just a standard Struts2 way to do this? 1. Implementing something similar to ViewState in aspx 2. Managing values by manually keeping them in the request 3. Storing everything in a db and looking it up with each request 4. Scope Interceptor -- Greg Akins http

Where is the JIRA?

2010-10-20 Thread Greg Akins
https://issues.apache.org/struts/ gives me a 404 -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Re: URLRewrite, maybe?

2010-09-20 Thread Greg Akins
, Paweł Wielgus. 2010/9/17 Matt Meola matt.me...@gmail.com: I have used URLRewrite with struts2, and it works quite well. On Fri, 2010-09-17 at 12:24 -0400, Greg Akins wrote: I'm having a bit of a mental block on this one. Using Struts2, I want to redirect paths like example.com/Partner55

URLRewrite, maybe?

2010-09-17 Thread Greg Akins
place to start? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr

Re: URL format advice

2010-09-06 Thread Greg Akins
using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html Especially if you couple that with the Url Rewrite Filter. http://www.tuckey.org/urlrewrite/ -Dale -- Greg Akins http://insomnia-consulting.org http

URL format advice

2010-08-25 Thread Greg Akins
Ultimately, this would avoid problems with keeping the value in the session, as it could always be retrieved from the URL -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
a static initializer with a System.out.println in DbResourceBundle, it never get's executed; I'm not sure when I should expect the class to get loaded, but it seems like the constant declaration isn't doing anything right now. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
the app with mvn tomcat:run ) -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
Yippee!! After a little more Googling it occurred to me that the default might be still set in struts.properties; it was.. and when I removed it my DbResourceBundle started working Thanks for bearing with me -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
and using them as shown above works. My question is..can we do the same for struts2. Can we forcefully load the resourcebundles inside java.util.ResourceBundle and then have them be used in s:text tag? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
.. is there anyway to define that globally? I'm using SiteMesh, so maybe defining it in a decorator might be good enough? -Original Message- From: Greg Akins [mailto:angryg...@gmail.com] Sent: Friday, July 16, 2010 7:58 AM To: user@struts.apache.org Subject: Re: Any way to load

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
that extends ResourceBundle I specify it as a constant in struts.xml and then wrap my s:text with the s:i18n using the fully qualified class When I load the page I get this logged message WARNING: Could not find method [getTexts('com.insomnia.common.bundles.DbResourceBundle')] -- Greg Akins http

Re: [FRIDAY] Mime Type Validation

2010-07-16 Thread Greg Akins
I've used this before, and it seemed to work well. http://jmimemagic.sourceforge.net Some more alternatives are here http://www.rgagnon.com/javadetails/java-0487.html -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
mean struts.xml? I have it in struts.xml, but it doesn't seem to be getting called. Maybe it should be in web.xml .. in that case as an init-param on the Dispatcher filter. Right? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http

Help with Skinning

2010-07-15 Thread Greg Akins
- about.jsp And the URL is http://localhost/user1/index.jsp I would like to return content/index.jsp.. Does that make sense? I can probably do this with some type of filter, but wondered if Struts2 had a better mechanism -- Greg Akins http://insomnia-consulting.org http

Advice on new Project

2010-07-14 Thread Greg Akins
up specific content in a database and a directory hierarchy that serves html/css out of subdirectory depending on a Session variable. Any advice is appreciated. -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http