Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-23 Thread Nils-Helge Garli Hegvik
t; > Thanks for all the suggestions! > > Todd Kofford > tkoff...@ku.edu > University of Kansas - IT > > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] > Sent: Thursday, April 16, 2009 6:02 AM > To: Struts Users Mailing List > Subje

Re: Issue in Action Chaining

2009-04-21 Thread Nils-Helge Garli Hegvik
I'm not sure if this applies to the chain result, but you could give it a shot: http://struts.apache.org/2.1.6/docs/parameters-in-configuration-results.html Nils-H On Wed, Apr 22, 2009 at 6:36 AM, satyanarayana katta wrote: > Hi All, > I have a Action class > > class BaseAction extends ActionSu

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread Nils-Helge Garli Hegvik
Maybe you should try a Hibernate list/forum instead? Nils-H On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . wrote: > Hi > > I am getting Exception while reconnecting to the Oracle database.with > Hibernate 3. I was getting this problem when Data Base server restarts. its > start working when > >

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-18 Thread Nils-Helge Garli Hegvik
Have you tried deploying the Struts 2 sample app and see if it's the same problem there? And which version of Oracle Portal are you using? Nils-H On Thu, Apr 16, 2009 at 11:44 PM, Nils-Helge Garli Hegvik wrote: > Thanks. If they say it's not an Oracle problem, it would be great if

Re: Data Grid in struts 1.2.9

2009-04-17 Thread Nils-Helge Garli Hegvik
I have used displaytag for this before. http://displaytag.sourceforge.net/1.2/ Nils-H On Sat, Apr 18, 2009 at 8:19 AM, abhishek reddy wrote: > hi all, > > How to display data in Data Grid using struts 1.2.9.is there any > mechanism of doin it in struts > currently iam display data in a

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
Thanks. If they say it's not an Oracle problem, it would be great if you created a JIRA issue and attached a small example to reproduce the problem. Nils-H On Thu, Apr 16, 2009 at 9:17 PM, Stephen Turner wrote: > > On Thu, 16 Apr 2009 15:14:31 -0400, Nils-Helge Garli Hegvik > wro

Re: Struts2 WebApp Portlet Bridge

2009-04-16 Thread Nils-Helge Garli Hegvik
Struts 2 portlet support is provided through the portlet-plugin: http://struts.apache.org/2.1.6/docs/portlet-plugin.html There's a tutorial here: http://struts.apache.org/2.1.6/docs/struts-2-portlet-tutorial.html Nils-H On Thu, Apr 16, 2009 at 10:48 PM, Rohit Srivastava wrote: > Have been tryin

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
Not sure why this should have anything to do with the problem, but anyway, calling clear() on the map would invalidate the session. Nils-H On Thu, Apr 16, 2009 at 9:15 PM, Stephen Turner wrote: > On Thu, 16 Apr 2009 12:24:13 -0400, Martin Gainty > wrote: > >> >> 30 second solution seems to indi

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
wrote: > On Thu, 16 Apr 2009 14:02:31 -0400, Nils-Helge Garli Hegvik > wrote: > >> That does indeed seem a little odd... The portlet framework expects >> these parameters, so I'm not sure there is a way around it. Did you >> try upgrading to 2.1.6? >> >&g

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
That does indeed seem a little odd... The portlet framework expects these parameters, so I'm not sure there is a way around it. Did you try upgrading to 2.1.6? Nils-H On Thu, Apr 16, 2009 at 4:26 PM, Stephen Turner wrote: > Hello all - > > We've had some trouble using Struts 2 portlets (2.0.14)

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
erver. I've also > been cleaning up a lot of code, and I'm still not ruling out a logic (code) > error. > > No I'm not calling session.clear(), when I remove objects from session, I > specifically remove the object that I put there in the first place, > session.

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Nils-Helge Garli Hegvik
Nils-H On Wed, Apr 15, 2009 at 3:40 PM, Kofford, C Todd wrote: > I'm using session scope (implements SessionAware). > > No, I haven't deployed to a different portlet container. > > Todd Kofford > tkoff...@ku.edu > University of Kansas - IT > > > -Ori

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Nils-Helge Garli Hegvik
em does not happen when the application(s) are > run outside the portal (i.e. as standalone webapps). > > Todd Kofford > tkoff...@ku.edu > University of Kansas - IT > > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] > Sent: Friday

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-10 Thread Nils-Helge Garli Hegvik
Hi! The PortletStateInterceptor does nothing special with the Session. It certainly does not invalidate it or remove stuff that's already there. The debug statement that you see is an indication that the portlet has been executed in the event phase, and the result has been properly configured with

Re: struts2-showcase on OC4J

2009-04-08 Thread Nils-Helge Garli Hegvik
> Servlet error: An exception occurred. The current application deployment > descriptors do not allow for including it in this response. Please consult > the application log for details. And what does the application log say? Nils-H ---

Re: what is the equivalent of method in struts 2 for retrieve data?

2009-04-08 Thread Nils-Helge Garli Hegvik
Struts 1 and Struts 2 are quite different in philosophy. I would recommend that you go through the Struts 2 tutorials/guides, which will give you an introduction to the concepts of the framework: http://struts.apache.org/2.1.6/docs/home.html Nils-H On Wed, Apr 8, 2009 at 10:07 PM, john lee wrote

Re: Pass parameter to ActionSupport class

2009-04-08 Thread Nils-Helge Garli Hegvik
Hi! Passing parameters to the action is handled automatically for you by the framework if you have the appropriate setters on the action. I suggest that you start with the tutorials from the documentation: http://struts.apache.org/2.1.6/docs/bootstrap.html Nils-H On Wed, Apr 8, 2009 at 12:19 PM,

Re: please help me

2009-04-07 Thread Nils-Helge Garli Hegvik
What's the role of your action in this? Do you have a getter that returns the list? Do you use it in the select tag? Nils-H On Tue, Apr 7, 2009 at 7:14 PM, PEGASUS84 wrote: > > please can you say me any solution > because i don't undestand the documentation > > > > > Security Management wrote: >

Re: my first struts 2 HelloWord.action still not working

2009-04-07 Thread Nils-Helge Garli Hegvik
Do you have any errors in the log (errors during startup)? Does the tomcat manager show the application as running? Nils-H On Tue, Apr 7, 2009 at 6:52 PM, john lee wrote: > please help me. > > after i did all the necessary configuration, i did the following > > http://localhost:8080/jiong2/Hello

Re: Error with ActionForward

2009-04-07 Thread Nils-Helge Garli Hegvik
Does it actually fail, or does it just print the exception in the log? Do you have devMode on? Nils-H On Tue, Apr 7, 2009 at 6:08 PM, Security Management wrote: > Struts 2.1.6, here's my action. > > >         >                addExceptionForm >                ${rule} >         > > > public cla

Re: how to re-init / update parameter of an interceptor during runtime?

2009-04-02 Thread Nils-Helge Garli Hegvik
Why do you need to do that? Nils-H On Fri, Apr 3, 2009 at 5:05 AM, Joe Lam wrote: > > I got this in action mapping > >        value01 > > > that parameter actually is an instance property of that interceptor > instance. > > private String param01; > public void setParam01(String value){ >    

Re: How do I execute this action servlet on startup?

2009-04-02 Thread Nils-Helge Garli Hegvik
terface instead. Nils-H On Thu, Apr 2, 2009 at 10:33 PM, laredotornado wrote: > > Hi, > > I'm looking into this plug-in idea, and although it forces you to define an > "init" method, it is not a servlet so how do you call it's init method upon > application

Re: how to read JSON data properties from struts2-ModelDriven?

2009-04-02 Thread Nils-Helge Garli Hegvik
Haven't tried it myself, so can only give you a couple of pointers. If you're using the json plugin, there's a lot of information in the documentation[1]. Other than that, use firebug or equivalent tool to inspect the response and see how the json is formatted. Nils-H [1] - http://cwiki.apache.or

Re: How do I execute this action servlet on startup?

2009-04-02 Thread Nils-Helge Garli Hegvik
Maybe you can achieve what you want with a PlugIn: http://struts.apache.org/1.3.10/userGuide/building_controller.html#plugin_classes Nils-H On Wed, Apr 1, 2009 at 4:49 PM, laredotornado wrote: > > Hi, > > I'm using Struts 1.3 on WebLogic 9.2.2.  I have this defined in my > struts-config.xml file

Re: if nested property is null

2009-03-31 Thread Nils-Helge Garli Hegvik
Have you checked the 'present' tag? http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#nested:present http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#logic:present Nils-H On Tue, Mar 31, 2009 at 9:09 AM, elyes sallem wrote: > Hello, > i have a nested property  that

Re: About File UploadSizeLimitExceededException

2009-03-25 Thread Nils-Helge Garli Hegvik
Check the "maximumSize" parameter in the FileUploadInterceptor: http://struts.apache.org/2.1.6/docs/file-upload-interceptor.html Nils-H On Thu, Mar 26, 2009 at 7:36 AM, Mageshwaran wrote: > Hi All, > > I am using strust2* "s:file" *attribute tag for file upload to server. I am > getting the foll

Re: avoiding unwanted value stack manipulation

2009-03-23 Thread Nils-Helge Garli Hegvik
The documentation for the ParametersInterceptor [1] mentions the ParameterNameAware interface [2]. Maybe that could be a solution? Nils-H [1] - http://struts.apache.org/2.1.6/docs/parameters-interceptor.html [2] - http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/interc

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
ot;%> >> <%@ taglib prefix="s" uri="/struts-tags"%> >> >> >> >> >> >> Claims Home >> >> >> >> >> >> >> >> >> >>       >>               >>                       > /> >>               >>               >>                       > name="i

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
> >                 >                 >                         >                 >                 >                                                        name="menu" /> >                 >                 >                         >                 >                 >                         name="body" /> >                         >                

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
What does the JSP look like? Does it include the taglib definition? Nils-H On Thu, Mar 19, 2009 at 5:14 PM, Kra, Aime yao (TEK System) wrote: > Struts 2 tags are not translate into HTML when I add tile to my application. > When I use View source of my browser, I still can see the struts 2 tags i

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Nils-Helge Garli Hegvik
Showing us the JSP and the error message would probably help... Nils-H On Thu, Mar 19, 2009 at 3:12 PM, wrote: > I have a JSP fragment that compiles on TC 6.x but will not in Jetty 6.x. > > On Thu, Mar 19, 2009 at 8:27 AM, Nils-Helge Garli Hegvik > wrote: > >> Me too. Ne

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Nils-Helge Garli Hegvik
Me too. Never had problems with Jetty. On Thu, Mar 19, 2009 at 2:11 PM, Musachy Barroso wrote: > I always test stuff on jetty and it works fine, showcase at least, > what is the problem you are having? > > musachy > > On Wed, Mar 18, 2009 at 8:00 PM, stanlick wrote: >> >> Guys -- >> >> I have a

Re: System.out into interceptor

2009-03-16 Thread Nils-Helge Garli Hegvik
http://www.google.com/search?q=java+servlet+tutorial http://struts.apache.org/2.1.6/docs/tutorials.html Nils-H On Mon, Mar 16, 2009 at 9:02 PM, PEGASUS84 wrote: > > please can you tell me > any quicly method to implement this > because i've not time > > > >

Re: System.out into interceptor

2009-03-16 Thread Nils-Helge Garli Hegvik
You're setting a request attribute, but trying to access a request parameter. Also, I would recommend that you do not access the output stream directly. I suggest you take some time to study some servlet/jsp tutorials, and then move on to the Struts 2 bootstrap guides. Nils-H On Mon, Mar 16, 2009

Re: System.out into interceptor

2009-03-16 Thread Nils-Helge Garli Hegvik
Please don't create new threads for existing questions. Obviously, System.out won't print to the JSP. So you have to put the message somewhere (request, session, action) your JSP can look it up and use it. Nils-H On Mon, Mar 16, 2009 at 12:04 PM, PEGASUS84 wrote: > > excuse me!!! > how can I sho

Re: call action

2009-03-14 Thread Nils-Helge Garli Hegvik
http://struts.apache.org/2.1.6/docs/tag-reference.html Check the 'action' tag. Nils-H On Sat, Mar 14, 2009 at 4:15 PM, PEGASUS84 wrote: > > is it possible to call an action without a form or a link? > i would > > > calling an action > > > -- > View this message in context: > http://www.nabbl

Re: tag set

2009-03-14 Thread Nils-Helge Garli Hegvik
ithin >> this transmission. >> >> >> >> >>> Date: Fri, 13 Mar 2009 16:05:36 -0700 >>> From: pegasu...@hotmail.it >>> To: user@struts.apache.org >>> Subject: Re: tag set >>> >>> >>> certainly; &

Re: tag set

2009-03-13 Thread Nils-Helge Garli Hegvik
Maybe you could try explaining what you're trying to achieve? Usually, input is passed to the action through a form or request parameters. Nils-H On Fri, Mar 13, 2009 at 11:23 PM, PEGASUS84 wrote: > > good evenig > i would ask if i can get the value of variable x in an > action > -- > View this

Re: Get jsp content in struts action

2009-03-11 Thread Nils-Helge Garli Hegvik
hanges > highlighted), hence we wanted to call the JSP from the Struts action class. > > -D > > > Nils-Helge Garli wrote: >> >> Why do you need the contents of the JSP? I'd consider a Servlet Filter >> instead if you need to process the output before it&#

Re: Get jsp content in struts action

2009-03-09 Thread Nils-Helge Garli Hegvik
Why do you need the contents of the JSP? I'd consider a Servlet Filter instead if you need to process the output before it's returned to the browser. Nils-H On Tue, Mar 10, 2009 at 7:29 AM, D1vy@@Ind1@ wrote: > > Hmm.. I am not sure if the code is problematic because with the same code I > am ab

Re: Unit Test with Struts2 + Spring + Maven

2009-03-05 Thread Nils-Helge Garli Hegvik
As both Martin and Dave pointed out, this is a maven related question. Please check here: http://maven.apache.org/users/getting-help.html Nils-H On Fri, Mar 6, 2009 at 8:19 AM, nani2ratna wrote: > > Can i run a particular test case. > Instead of running every test case all the time i just want t

Re: Server-side equivalent of tag?

2009-03-05 Thread Nils-Helge Garli Hegvik
If I understand your problem correctly, you might solve your problem by adding a FORWARD element to the Struts 2 filter mapping. That will make sure that the Struts 2 filter also will handle requests forwarded with a RequestDispatcher. Nils-H On Thu, Mar 5, 2009 at 3:09 PM, Robert Graf-Waczenski

Re: Get Server Port

2009-03-05 Thread Nils-Helge Garli Hegvik
k. A thread will wake > up at certain time and send email to user. I need to include the server url > in this,including the server port and context path. > > > Nils-Helge Garli wrote: >> >> When is the request null? And what do you need the server port for? >> &g

Re: Struts2, file tag, setting value

2009-03-04 Thread Nils-Helge Garli Hegvik
Hi! I believe setting the path of a file input is prohibited for security reasons, so that probably won't work. Nils-H On Wed, Mar 4, 2009 at 2:53 PM, Mageshwaran wrote: > Hi All, >   I am using * *tag for uploading a > file in JSP. > > Is there any *value attribute* for this tag? > If present,

Re: Getting Servlets and Struts 2.1.6 to work together?

2009-03-03 Thread Nils-Helge Garli Hegvik
You probably want to edit the url pattern of the struts 2 filter mapping. Nils-H On Tue, Mar 3, 2009 at 7:50 PM, Greg Lindholm wrote: > I'm trying to upgrade from Struts 2.0.11 to 2.1.6 and having a problem, > struts isn't passing requests thru to my servlets. > > I have a servlet named 'status

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-03-03 Thread Nils-Helge Garli Hegvik
        >                Location: >                 td> >         >         >                Client Id: >                 td> >         >         >                Stock Id: >                 td> >         > > > > Search Again > > > > &

Re: Search in Apache mail archives

2009-03-03 Thread Nils-Helge Garli Hegvik
Hi! Most of the archives listed at http://struts.apache.org/mail.html are searchable. Nils-H On Tue, Mar 3, 2009 at 10:51 AM, Antonio Iglesias wrote: > Hi, >  I was trying to find out how to search in apache mail archives for Struts > mailing list, the thing is that I don't want to ask things t

Re: when we add any UI Tag how can we eliminate next line

2009-03-02 Thread Nils-Helge Garli Hegvik
Either style it as you want it with css, or use the "simple" theme to have full control of how elements are rendered. Nils-.H On Tue, Mar 3, 2009 at 7:19 AM, sajidbigler wrote: > > Hi List, > > I think we need to fix this issue by adding one more tag as for example > By default struts-tags plac

Re: Get Server Port

2009-03-02 Thread Nils-Helge Garli Hegvik
When is the request null? And what do you need the server port for? Nils-H On Tue, Mar 3, 2009 at 5:24 AM, kate_cl wrote: > > Hi,anyone know how to get server port if request is null? > -- > View this message in context: > http://www.nabble.com/Get-Server-Port-tp22302338p22302338.html > Sent fr

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-03-02 Thread Nils-Helge Garli Hegvik
et the exception until the 'submit' button is > clicked. > > > > > Nils-Helge Garli Hegvik > 02/27/2009 01:27 PM > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Re:

Re: Struts 2 sample: Hello World (Maven & Ant)

2009-03-02 Thread Nils-Helge Garli Hegvik
The Struts 2 Maven 2 examples follows general Maven 2 web application guidelines. I agree that the guide could be clearer, but a good starting point would be to read some Maven 2 web application tutorials [1]. Nils-H [1] - http://www.google.com/search?q=maven+2+web+application On Mon, Mar 2, 200

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-02-27 Thread Nils-Helge Garli Hegvik
; > dao = new CPCInventoryDAO(conn); > ArrayList locList = dao.getLocations(mode); > request.setAttribute("locationList", locList); > ... > > > > > Nils-Helge Garli Hegvik > 02/26/2009 04:11 PM > Please respond to > "Struts Users Mailing List" > >

Re: [s2] accesing params from s:include tag

2009-02-27 Thread Nils-Helge Garli Hegvik
You're right. I should have read the documentation more closely. It clearly states that no stack is created and you have to access the parameters through the regular servlet objects. If you believe this is a shortcoming, you could register a JIRA issue for it, unless there is one already. Nils-H

Re: [s2] accesing params from s:include tag

2009-02-27 Thread Nils-Helge Garli Hegvik
Haven't really tried, but I assume the parameter would be a String, so have you tried using 'eq' instead of '=='. Nils-H On Fri, Feb 27, 2009 at 3:06 PM, hernan gonzalez wrote: > I'm struggling with s:include + s:param in struts 2.0.14 > > The docs  for the include tag > http://struts.apache.or

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-02-26 Thread Nils-Helge Garli Hegvik
Have you put a collection named "locationList" in some scope? Nils-H On Thu, Feb 26, 2009 at 10:01 PM, wrote: > Hi, > > I am receiving this exception on my portlet what am I missing? > ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the > service methods of the servlet: SPS

Re: how do you bypass struts file upload functionality?

2009-02-26 Thread Nils-Helge Garli Hegvik
I think you can customize file uploading by using the "multipartClass" in the controller configuration [1]. Nils-H [1] - http://struts.apache.org/1.3.10/userGuide/configuration.html#controller_config On Thu, Feb 26, 2009 at 7:23 PM, John Dell'Aera wrote: > Hello Dave. > > Thanks for your respo

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Nils-Helge Garli Hegvik
This has nothing to do with the original posting. Please post your question creating a new thread/email. Nils-H On Thu, Feb 26, 2009 at 8:12 AM, suhas kokal wrote: > Hi all, > > If some body knows hot to use javascript alerts with struts 2.0 (when > validation framework fires)please find me the

Re: Logic tags in struts 2

2009-02-23 Thread Nils-Helge Garli Hegvik
Check the Struts 2 tag reference [1]. You should be able to find replacements for most of the "logic" tags. Make sure you also read the OGNL [2] and Tag Syntax [3] documentation. Nils-H [1] - http://struts.apache.org/2.1.6/docs/tag-reference.html [2] - http://struts.apache.org/2.1.6/docs/ognl.htm

Re: back button

2009-02-23 Thread Nils-Helge Garli Hegvik
y.back(); doesn't work > > > Nils-Helge Garli wrote: >> >> Maybe you can explain what your requirement is. Your browser already >> has a back button ;) >> >> Nils-H >> >> On Mon, Feb 23, 2009 at 11:44 AM, PEGASUS84 wrote: >>> >

Re: back button

2009-02-23 Thread Nils-Helge Garli Hegvik
Maybe you can explain what your requirement is. Your browser already has a back button ;) Nils-H On Mon, Feb 23, 2009 at 11:44 AM, PEGASUS84 wrote: > > good moorning. > today my question is:"How to create a back button wirh struts 2?" > i used this code action="javascript:history.back();"/> >

Re: Text link to submit a form ¿struts2 way?

2009-02-10 Thread Nils-Helge Garli Hegvik
Can't you just make them smaller with some CSS? I don't think you can submit a form without a button and without javascript. Nils-H On Tue, Feb 10, 2009 at 2:29 PM, Ignacio de Córdoba wrote: > > I love submit buttons but in this design I must use text as submit buttons. > Buttons were to big for

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
, Feb 9, 2009 at 1:54 PM, Dean Pullen > wrote: >> I can confirm that using validation xml instead of annotations does >> exactly the same thing. >> >> i.e. a forward to a JSP will display the messages, a redirectAction > type >> result will 'lose' the messag

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
>> result will 'lose' the messages during the dispatch. >> >> Dean. >> >> -Original Message- >> From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] >> Sent: 09 February 2009 18:07 >> To: Struts Users Mailing List >> Subjec

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
ked at them - none of them actually use the annotations as such. > > It's definitely not working with or without MessageStoreInterceptor when > you utilise a redirect - it's absolutely fine if you simply replace the > redirect with a simple JSP result. > > Dean.

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
Have you tried installing the portlet sample app? I believe there are a couple of validation scenarios there. As far as I know, it should work. You shouldn't even need the MessageStoreInterceptor, since the portlet default stack should handle preserving messages across redirects. Nils-H On Mon, F

Re: Get an InputStream for a file in my webapp

2009-02-06 Thread Nils-Helge Garli Hegvik
Using a FileInputStream like that won't work if the war is packaged. Take a look at the getResourceAsStream method in the ServletContext interface instead. Nils-H On Fri, Feb 6, 2009 at 3:03 PM, Security Management wrote: > I have an action that returns an image, and the getImageStream method >

Re: Invoke popup after saving Data

2009-02-04 Thread Nils-Helge Garli Hegvik
You don't invoke the javascript from your action. You probably want to use javascript to post the data, and then display the popup when you have received a response from the server. Google for 'ajax form' and 'javascript popup', and you will find many examples. Nils-H On Thu, Feb 5, 2009 at 7:51

Re: [S2] Creating and calling a servlet in sturts2 app

2009-02-04 Thread Nils-Helge Garli Hegvik
rawData >> >> >> > /data/rawData >> >> >> > >> > >> > >> > even if i try to call the servlet directly (direct writing the url in the >> > address bar) there is no call going to servlet, rather the struts action is >> > being

Re: [S2] Creating and calling a servlet in sturts2 app

2009-02-04 Thread Nils-Helge Garli Hegvik
> > >> > >> > text/plain >> > true >> > >> > >> > >> > > > > no matter if i call servlet directly or indirectly, my call never reaches to > the servlet. how can i do this? > > ..alee > http://tec

Re: [S2] Creating and calling a servlet in sturts2 app

2009-02-04 Thread Nils-Helge Garli Hegvik
> > What should i do ? You could start by providing some more information. How do call the servlet, and how is it configured? Do you get any errors in your log files? Can you invoke the servlet by typing it's url in the browser? Nils-H

Re: Problem with ArrayList's add() function

2009-02-02 Thread Nils-Helge Garli Hegvik
Have you actually created the ArrayList? Nils-H On Mon, Feb 2, 2009 at 1:42 PM, sd9 wrote: > > Hi, > > This problem has been driving me mad! > I have this code (below), which isn't going beyond the "casePapers.add(cp)" > line. > It displays the string "--before4--

Re: Casting an action to an interface

2009-01-30 Thread Nils-Helge Garli Hegvik
tionInvocation invocation) throws Exception { >>> final Object action = invocation.getAction(); >>> final ActionContext context = >>> invocation.getInvocationContext(); >>> ...snip... >>> if (action insta

Re: How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Nils-Helge Garli Hegvik
I'm pretty sure that providing some relevant code snippets would improve your odds of getting help... Nils-H On Fri, Jan 30, 2009 at 1:00 PM, Seshagiri V wrote: > Hellow All, > > > > I have a page with two forms on it. I want the respective submit buttons of > each form to appear next to each o

Re: Casting an action to an interface

2009-01-30 Thread Nils-Helge Garli Hegvik
Do you really need the first cast to Action? Anyway, could it be that you're having conflicting struts and/or application jars several places in your classloader hierarchy? That could explain certain "should never happen" incidents... Nils-H On Fri, Jan 30, 2009 at 12:39 PM, Andy Sykes wrote: >

Re: Help! : ResultSet is from UPDATE. No Data.

2009-01-30 Thread Nils-Helge Garli Hegvik
I don't think this has anything to do with Struts 2. You might have better luck posting to a hibernate or mysql forum. Google might help as well: http://www.google.com/search?q=ResultSet+is+from+UPDATE.+No+Data Nils-H On Fri, Jan 30, 2009 at 10:00 AM, anubisza wrote: > > Hi All, > > I have a w

Re: how to redirect error page to struts action

2009-01-27 Thread Nils-Helge Garli Hegvik
If you're using Struts 2, have you tried adding ERROR to the filter mapping? Nils-H On Tue, Jan 27, 2009 at 10:14 PM, Tom Pop wrote: > Hello, > > I want to redirect 404 error page to struts action: > > This action works: > http://localhost/resolver.action > > This web.xml configuration doesn't

Re: uploading with FormFile problem

2009-01-27 Thread Nils-Helge Garli Hegvik
Could you filter on the extension of the file name instead? Nils-H On Tue, Jan 27, 2009 at 6:28 PM, Tatiyana Tarabara wrote: > Hi, > I am facing some problems while uploading a file using Struts' FormFile > object. I want to allow user to upload only .pdf files. For that I am > comparing the Con

Re: How to convert struts's url to javascript of jQuery.(such as onClick etc events)

2009-01-27 Thread Nils-Helge Garli Hegvik
It's not exactly clear what you're asking If you want to use the url in a javascript, then just assign the generated output to a javascript variable: function myFunc() { var jsVariable = ''; // Do something with jsVariable functionThatUsesJsVariable(jsVariable); } If that's not what you

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Nils-Helge Garli Hegvik
Did you invalidate the session? Are you setting no cache headers on the response? Nils-H On Tue, Jan 20, 2009 at 12:46 PM, shekher awasthi wrote: > Hi All, > > in the process of developing application using struts 2.0.11, i came across > the problem of handling browser back/forward button. > > T

Re: How can I render a two column layout with

2009-01-19 Thread Nils-Helge Garli Hegvik
Try using the "simple" theme. Nils-H On Mon, Jan 19, 2009 at 3:46 PM, Michael Obster wrote: > Hi, > > can anybody tell me how I can make a two column layout with ? > Putting some table tags around doesn't work because renders also as > table. > To get my intention more clear, I need s.th. like

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
I'm guessing conversations are just different "partitions" in the session. At least that's how I've seen it implemented before. And I don't see how that would "support" having multiple _users_ in the same session. Sure, you could probably emulate it in some way, but I have serious doubts if it woul

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
> having conflict with other user . > > Thanks > > Rajib > > > Nils-Helge Garli wrote: >> >> I agree conversations would be a nice feature, but aren't >> conversations usually just different states in the application for the >> same user? I

Re: Struts 2 session problem

2009-01-17 Thread Nils-Helge Garli Hegvik
I agree conversations would be a nice feature, but aren't conversations usually just different states in the application for the same user? I'm having difficulties understanding how it would solve a problem of two simultaneous users sharing the same session. I would say that is more of a login/secu

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-17 Thread Nils-Helge Garli Hegvik
; But there is no solution too. > > > Frank > > Nils-Helge Garli Hegvik schrieb: >> >> Then I'm out of ideas. Have you tried posting to the portlet-container >> mailing list? >> >> Nils-H >> >> On Tue, Jan 13, 2009 a

Re: Unit Testing Struts 2 Action

2009-01-17 Thread Nils-Helge Garli Hegvik
One of the things I really like about Struts 2 is how easy it is to unit test actions. Using the proper mechanisms for injecting what you need, unit testing the action should be as simple as instantiating the action, set the appropriate dependencies, and then execute it. Nils-H On Sat, Jan 17, 20

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
ut, it does not solve my problem. :-( > > Nils-Helge Garli Hegvik schrieb: >> >> This one: https://portlet-container.dev.java.net/ ? >> >> Haven't tried it. Have you tried posting to their mailing list? Maybe >> the information at >> http://wiki.ap

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
portlet and servlet are in the same war. I use glassfish with portlet > container 1.0 for develop. > > I have read the emptySessionPath must be true for the connector (tomcat). > How can I set this for classfish? > > Nils-Helge Garli Hegvik schrieb: >> >> Are both t

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
Are both the portlet and the servlet in the same application (war file)? What container are you using? Nils-H On Tue, Jan 13, 2009 at 9:55 AM, Frank Otto wrote: > hi, > > I have a portlet with struts. It works fine, but I can't share objects in my > portlet session with the servlet/action for yu

Re: s:a tag

2009-01-09 Thread Nils-Helge Garli Hegvik
Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy wrote: > > But how can I implement Ajax in that? > > > Nils-Helge Garli wrote: >> >> You can combine and to cr

Re: how to get config info from portlet.xml in struts2 action

2009-01-09 Thread Nils-Helge Garli Hegvik
on for my case, no need to use > PortletContextAware interface, just use > PortletActionContext.getPortletConfig() to get the PortletConfig > object, then retrieve the info from this object is ok. > > On Thu, Jan 8, 2009 at 12:57 AM, Nils-Helge Garli Hegvik > wrote: >>

Re: s:a tag

2009-01-08 Thread Nils-Helge Garli Hegvik
You can combine and to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy wrote: > > Hi, > > when i am using its creating the > URL like http://localhost:8080/mywebapp/#. > > When I remove the ajax theme,I get > http://localhost:808

Re: how to get config info from portlet.xml in struts2 action

2009-01-07 Thread Nils-Helge Garli Hegvik
;>> [action] >>> public class LinkCategoryAction extends BaseAction implements >>> PortletContextAware { >>> >>> public void setPortletContext(PortletContext portletContext) { >>>this.portletContext = portletContext; >>>}

Re: how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Nils-Helge Garli Hegvik
Can you show us some code and configurations? Nils-H On Tue, Jan 6, 2009 at 11:20 AM, Daoyue Ming wrote: > I have a problem to get the configuration inside portlet.xml in > action, what I do is inside the portlet.xml, I add some config like > the way struts2 did for defaultViewAction. Then in m

Re: [S2] Easy way to create and place a String into page context built using s:property tags?

2009-01-04 Thread Nils-Helge Garli Hegvik
I'm seriously impressed! On Mon, Jan 5, 2009 at 12:32 AM, Dave Newton wrote: > From: Musachy Barroso > >> > > > Who is John Galt? > > (It's up to you to guess if I'm actually asking, or showing off my literary > chops by quoting ;) > > Dave > > -

Re: Size attribute not valid for datetimepicker?

2009-01-02 Thread Nils-Helge Garli Hegvik
Haven't used the datetimepicker myself, but have you tried using the cssClass or cssStyle attributes and set the width with css? Nils-H On Fri, Jan 2, 2009 at 5:55 AM, Neil Aggarwal wrote: > Hello: > > I am using a datetimepicker to show a date and time: > displayFormat="M/d/ HH:mm:ss" adju

Re: Search Problem

2009-01-01 Thread Nils-Helge Garli Hegvik
Maybe you should try posting to a Lucene mailing list? Nils-H On Thu, Jan 1, 2009 at 9:28 PM, Amin Mohammed-Coleman wrote: > Hi > > I have created a RTFHandler which takes a RTF file and creates a lucene > Document which is indexed. The RTFHandler looks like something like this: > > if (bodyTex

Re: Warning: Spring Security and FileUploadInterceptor filter order

2008-12-29 Thread Nils-Helge Garli Hegvik
Hi! If you think you have found a bug in Struts 2, please register an issue in the issue tracker at https://issues.apache.org/struts/secure/Dashboard.jspa Thanks. Nils-H On Mon, Dec 29, 2008 at 7:19 PM, dusty wrote: > > Hello, > > This vexed me, so I thought I would share to help anyone stuck

Re: Preventing duplicate form submissions

2008-12-28 Thread Nils-Helge Garli Hegvik
Take a look at the TokenInterceptor [1]. Nils-H [1] - http://struts.apache.org/2.0.14/docs/token-interceptor.html On Sun, Dec 28, 2008 at 10:41 AM, Andy wrote: > > Hi, > I am looking for some best-practice advice for avoiding duplicate form > submissions in Struts2. I recently created a form

[OT] Re: [S2] File chooser and Firefox 3

2008-12-27 Thread Nils-Helge Garli Hegvik
This has hardly anything to do with struts, but take a look at this: http://stackoverflow.com/questions/81180/how-to-get-the-file-path-from-html-input-form-in-firefox-3 Nils-H On Sat, Dec 27, 2008 at 2:02 PM, Milan Milanovic wrote: > > Hi, > > when I use File chooser () in IE to select file on a

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.2

2008-12-23 Thread Nils-Helge Garli Hegvik
See if you can find any errors in any of the other logs in the tomcat log directory. I did a similar exercise, although with a different environment. But maybe you can find something useful: http://portletwork.blogspot.com/2008/02/struts-2-portlet-in-websphere-51.html Nils-H On Tue, Dec 23, 2008

<    1   2   3   4   5   >