Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Nils-Helge Garli
As Antonio said, _you_ as the application developer/assembler decide the local JNDI name of the data source. Then it's the task of the deployer to link this local defined JNDI name to an actual JNDI resource in the container. Nils-H On 9/27/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/9

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Nils-Helge Garli
The idea of the local JNDI reference (which exists for the application instance only) is to decouple it from the actual, physical JNDI name of the resource. The mapping of the datasource name is (usually) done when the application is deployed. I am not familiar with how WebLogic handle this, but ma

Re: Minimized Window State NOT working

2007-06-24 Thread Nils-Helge Garli
Hi! To quote the spec: "When a portlet is in MINIMIZED window state, the portlet should only render minimal output or no output at all." As I interpret this, it's the responsibility of the portlet to display the correct content. So you need to do some checking for the window state and take acco

Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli
All portlets are responsible for what to render in the different window states, even when caching is enabled, if the portlet is the "target" of a user interaction (PLT.18.1 in the spec). But usually when creating portlets, you extend the GenericPortlet class, which has built in logic for skipping

Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli
I have to correct myself. The dispatcher extends the GenericPortlet class, but it overrides the render method because of the specialized mode handling. But the effect is still the same, the window state logic in doDispatch is not invoked. Sorry for the confusion. Nils-H On 6/26/07, Nils-Helge

Re: Problem installing Struts 2

2007-07-05 Thread Nils-Helge Garli
Hi! The portlet example won't run as a stand alone web application under Tomcat. It will only run in a portlet container. If you don't intend installing a portlet container, just remove the struts2-portlet war file from your webapps folder. Nils-H On 7/5/07, Hubert Hers <[EMAIL PROTECTED]> wrot

Re: Struts2 validation with portlet

2007-07-05 Thread Nils-Helge Garli
If you look at the portlet example application it has an example of using xml validation. Nils-H On 7/5/07, devsahu <[EMAIL PROTECTED]> wrote: Hi, Does stuts2 support its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context: htt

Re: Minimized Window State NOT working-NOT SOLVED

2007-07-08 Thread Nils-Helge Garli
ries to minimize another portlet the previous one get Expanded, It looks to me server is not detected the portlet has allready been minized. For correct functionaliy the server should be remembering this information. Is this a bug some where? Let me know how to proceed on this. Thanks Nils-H

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-19 Thread Nils-Helge Garli
Hi, Could you make a minimal example that illustrates the problem in uPortal, and then put it somewhere to download? Nils-H On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote: Hi, We got some portlets developed using S2 running of uPortal. It looks like When we switch between Window states and tr

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-21 Thread Nils-Helge Garli
Which version of uPortal are you using? On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote: Hi, We got some portlets developed using S2 running of uPortal. It looks like When we switch between Window states and try to print window states in JSR168Dispatcher it prints window states incorrectly. For

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-22 Thread Nils-Helge Garli
wrote: We are using uPortal 2.5.3. We still can't figure why it returns wrong window states. Waiting for a reply, Thanks --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > Which version of uPortal are you using? > > On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote: &

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-23 Thread Nils-Helge Garli
ng fine with uPortal. I think even the product is called uPortal it got pluto container underneath. Any how you may have other ideas as well as we may be wrong. Thanks, --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > Which version of uPortal are you using? > > On 7/19/07,

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-29 Thread Nils-Helge Garli
Good tutorial, and a nice way to get started with portlet development! Maybe not entirely on topic, but inspired by your tutorial and some information I found earlier in the pluto FAQ about embedding pluto, I started playing around with making the maven-jetty-plugin work with a portlet project. Th

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-30 Thread Nils-Helge Garli
Those interested in the progress of this issue can follow it here: https://issues.apache.org/struts/browse/WW-2062 On 7/26/07, tom tom <[EMAIL PROTECTED]> wrote: > I already made a change request. > > Thanks, > > > > --- Nils-Helge Garli <[EMAIL PROTECTED]> wr

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-31 Thread Nils-Helge Garli
blog. Please let me know if you find any errors. Nils-H On 7/29/07, Don Brown <[EMAIL PROTECTED]> wrote: > Very cool! That has been one of those things I keep meaning to work > on. If nothing else, add the lines (commented out, of course) to our > portlet archetype. > > Don

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-08-01 Thread Nils-Helge Garli
te: > So, what's stopping you from adding the tutorial to the Struts 2 docs > and updating the archetype? :) > > Don > > On 8/1/07, Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > > I think I've managed to get all the steps written down: > > http://portletwor

Re: portlet jasper report example

2007-08-08 Thread Nils-Helge Garli
Hi! Jasper reports is, as far as I know, not tested in the portlet framework. I'm not too familiar with Jasper, but if it's something that should be generated and displayed on the fly (that is of binary type), this cannot be done in a portlet in a portable manner. You might have better luck dispat

Re: S2 : Overriding interceptor class names in struts.xml

2007-08-15 Thread Nils-Helge Garli
Unfortunately, you have to re-define the stack. Nils-H On 8/15/07, j alex <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way we can override the implementation of certain > interceptors from the default stack, without copying over all the > definitions to struts.xml ? > > ex : i want to change t

Re: Trouble getting to portlet render phase

2007-08-15 Thread Nils-Helge Garli
Are you creating the urls correctly using the s:url tag? Do you have an example JSP? How do you invoke your portlet application? Remember that you can't access the portlet using regular urls, they all have to go through the portlet container. Nils-H On 8/15/07, Frederick N. Brier <[EMAIL PROTECTE

Re: Trouble getting to portlet render phase

2007-08-15 Thread Nils-Helge Garli
pecify a URL? And what would it be? What URL would you suggest > I specify in portletunit? That would be helpful as I am trying to use > that as a test harness and avoid launching a container. Thank you!! > > Fred > > Nils-Helge Garli wrote: > > Are you creating the urls cor

Re: How to make initialize with struts2 action?

2007-08-15 Thread Nils-Helge Garli
So you're using Spring? In that case, maybe parts of this tutorial can help: http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html And here's the documentation for the Spring-plugin: http://struts.apache.org/2.x/docs/spring-plugin.html Nils-H On 8/16/07, red phoenix <[EMAIL PROTECTED

Re: Trouble getting to portlet render phase

2007-08-16 Thread Nils-Helge Garli
tupListener.java:98) > at > org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219) > at

Re: Trouble getting to portlet render phase

2007-08-22 Thread Nils-Helge Garli
defined > in struts.xml. The struts-portlet example does. I really, really > appreciate your help. The examples work, but when I attempt to merge > the configurations into my own code, decisions and adjustments have to > be made and then it does not work. I will try again this even

Re: struts 2 client side validation with JBoss (portal server)

2007-08-28 Thread Nils-Helge Garli
Client side validation is not currently supported in portlets. You might get it to work, but there are unresolved issues with escaping/namespaces etc of javascript function names and variables. You can register it as a JIRA issue, and hopefully we'll be able to resolve it in a future release. Nils

Re: Struts 2.0.9 windowState=maximized problem

2007-08-30 Thread Nils-Helge Garli
Hi! The use of maximize only changes the "size" of the window, it shouldn't really change the state of your application. The "back" button as you describe means "restore the window size". It does not change the window content. If you want to "override" this, you should create your own "back" link,

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
Hi! > I also notice that the ajaxExample no longer appears in the subversion > repository. Are there other AJAX/portlet issues I should be aware of? > Ajax in a portlet, from a framework point of view, is not quite trivial. There are issues with namespacing of javascript functions, html ids and

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
ascript had been loaded and we'd > not > output it again. We could also do something similar to what MyFaces Tomahawk > does > with their extensions filter. > > James > > > On Tue Sep 4 9:09 , 'Nils-Helge Garli' <[EMAIL PROTECTED]> sent: &

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
us running > instances wouldn't interfere with each other. > > Mark > > On 9/4/07, Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > > Hi! > > > > > I also notice that the ajaxExample no longer appears in the subversion > > > repository. Are t

Re: dynamic forwarding from Action class to any url

2007-09-07 Thread Nils-Helge Garli
This might work: ${newPage} You might consider some sort of white list of internal resources that can be accessed to prevent misuse. Nils-H On 9/7/07, Mirbek Nosinov <[EMAIL PROTECTED]> wrote: > Is it possible to dynamicaly forward to any page from Action class execute() > function. For example

Re: SessionAware vs ActionContext access to session - confused..

2007-09-11 Thread Nils-Helge Garli
You could, but I would recommend using the *Aware interfaces in your actions. It makes them easier to test. Nils-H On 9/11/07, j alex <[EMAIL PROTECTED]> wrote: > I can do Map attibutes = ActionContext.getContext().getSession(); from an > Action - right? > > On 9/11/07, Chris Pratt <[EMAIL PROTEC

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Nils-Helge Garli
In the next release, there will be *Aware interfaces for the portlet objects. Nils-H On 9/13/07, tom tom <[EMAIL PROTECTED]> wrote: > Yes in theory you are correct, but in side a S2 > portlet (which implements ServletRequestAware > interface) if you try to get a handler for > HttpServletRequest

Re: SessionAware vs ActionContext access to session - confused..

2007-09-13 Thread Nils-Helge Garli
> that also not working currently. > > > Also in the s:url the action tag does not evaluate > expressions, e.g if you want to have a dynamic action > name. > > Pls try to address that as well. > > > Thanks > > --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: &g

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Nils-Helge Garli
Hi! Is it just the page the portlet is on? Have you tried switching of devMode and logging? There should be no extra performance hit compared to a basic Struts 2 application, so the performance tuning information in the documentation should apply: http://struts.apache.org/2.x/docs/performance-tun

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Nils-Helge Garli
t; Setting the freemarker_update_delay improved > performance for sure. > > Hate to ask such a simple question but just own do I > change the devMode option and logging - my log4j.xml > has ERROR set for logging but I am getting INFO on the > console. > Clark > > > > --- Nils-

Re: Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread Nils-Helge Garli
A HttpServletRequestWrapper has a getRequest() method that returns the wrapped request. Without knowing the specifics of the order or implementation of you wrapping object, this might be what you need. See http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequestWrapper.html

Re: Struts 2.0.6 portlets

2007-03-13 Thread Nils-Helge Garli
A couple of things you should be aware of is: - You cannot use result types that require full control of the response object (e.g. rendering PDFs, images, charts etc). To do that, you must dispatch a request to a servlet instead. - You should be aware of the lifecycle and the phases of a portlet,

Re: Struts 2.0.6 portlets

2007-03-16 Thread Nils-Helge Garli
on the struts 2.0.6 portlets Thanks. --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > A couple of things you should be aware of is: > > - You cannot use result types that require full > control of the > response object (e.g. rendering PDFs, images, charts > etc). To

Re: How to session attributes Struts 2.0.6

2007-03-16 Thread Nils-Helge Garli
Hi! This is probably a missing feature in the portlet framework. The SessionAware interface aparently doesn't work when inside a portlet. The other approach you use should work, but if it doesn't, try using the ActionContext to get the session map and put it there. Nils-H On 3/16/07, tom tom <[

Re: HttpServletRequest - in a Portlet

2007-03-22 Thread Nils-Helge Garli
You can't obtain the servlet request in a container independent manner. What do you need it for? The only time when you can legally obtain the servlet request is within an included JSP, or when dispatching a request to a servlet that is in the same web application. Nils-H On 3/23/07, tom tom <[E

Re: HttpServletRequest - in a Portlet

2007-03-26 Thread Nils-Helge Garli
method signatures where it has HttpServletRequest as the in parameter. for e.g. request.getContextPath(); Other reason is it works in a normal struts 2.0.6 application, I wanted to do the same in the portlet without accessing portlet specific classes. Thanks, --- Nils-Helge Garli <[EMAIL

Re: struts2 web app without jsp pages, is it possible?

2009-12-08 Thread Nils-Helge Garli Hegvik
The developer could still read the same files in the struts action. What's the difference? Nils-H On Tue, Dec 8, 2009 at 3:21 PM, Shital Patil wrote: > Dear All, > > Thanks for your valuable suggestions. > Actually I am failed to convince my PM for using JSP pages in web app. > He said, there ar

Re: MySQL + JDBC

2009-12-14 Thread Nils-Helge Garli Hegvik
Have you tried asking over at the MySQL forum? I don't think this is related to Struts 2. Nils-H On Tue, Dec 15, 2009 at 8:26 AM, Todd Grigsby wrote: > > > (Beating head on keyboard...) > "So one more time for the folks at home: Is there anyone out there who has > managed to get MySQL 64-bit to

Re: Problem with tag

2010-01-18 Thread Nils-Helge Garli Hegvik
Putting it inside tag might also work. Nils-H On Mon, Jan 18, 2010 at 2:12 PM, Dave Newton wrote: > VSGoud wrote: >> >> Facing problem with tag. >> when i fetch the data from one of the columns in a given table, I am able >> to >> view the certain parts of the fetched data in new lines in >>

Re: Custom Window State Struts2 Portlet

2010-02-24 Thread Nils-Helge Garli Hegvik
>From the source [1] (getWindowState method), it appears that only the standard window states are considered when creating the url. Please register a JIRA issue (tests and patch welcome indeed). Regards, Nils-Helge Garli Hegvik [1] - http://svn.apache.org/viewvc/struts/struts2/trunk/plug

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
Either: - Don't do a redirect, but a regular dispatch [1] - Store it in the session Regards, Nils-Helge Garli Hegvik [1] - http://struts.apache.org/2.1.8.1/docs/dispatcher-result.html On Mon, Mar 1, 2010 at 10:40 AM, Frederik Minatchy wrote: > > > --- En date de : Lun 1.3.10,

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
n > > > I am sure that the dispatch result is a solution... but perhaps I made a > mistake in the web.xml file. > > For example why in my url I always have something like > > http://localhost:8080/X/x.jsp and not > http://localhost:8080/X/x.action? > >

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
n the session. Nils-H On Mon, Mar 1, 2010 at 11:56 AM, Frederik Minatchy wrote: > To go from the first action (the execute method) to the second one > (supprimerIsbn) I use a submit button in the jsp : > >   > > > > > > > --- En date de : Lun 1.3.10, Nils-Helge Ga

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
gt; > > > --- En date de : Lun 1.3.10, Nils-Helge Garli Hegvik a > écrit : > >> De: Nils-Helge Garli Hegvik >> Objet: Re: How to pass HTTPRequest between two JSP ? >> À: "Struts Users Mailing List" >> Date: Lundi 1 mars 2010, 11h07 >> In that

Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post

2010-10-14 Thread Nils-Helge Garli Hegvik
Hi, Have you looked at the portlet sample app? It has a few portlet PRG examples. Try deploying it in Liferay and see if it works as expected. Nils-H On Thu, Oct 14, 2010 at 5:52 PM, Alberto Gallardo wrote: >>> couldn't get the Post-Redirect-Get (PRG) working. The >> type="redirectAction"> does

Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post

2010-10-14 Thread Nils-Helge Garli Hegvik
I believe it is up to the container how the event -> render transition is implemented. I don't think there's any guarantee that it's actualy a redirect. If you have several portlets on the page, you could check that the transition is ok by clicking on a an action/link in a different portlet, and se

Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post

2010-10-14 Thread Nils-Helge Garli Hegvik
Maybe this is related (although old): http://issues.liferay.com/browse/LEP-1487 Nils-H On Thu, Oct 14, 2010 at 6:25 PM, Nils-Helge Garli Hegvik wrote: > I believe it is up to the container how the event -> render transition > is implemented. I don't think there's any guarante

Re: Alternative UrlRenderer bean

2010-11-15 Thread Nils-Helge Garli Hegvik
You can take a look at how the portlet plugin does this (which was actually why the UrlRenderer bean was created in the first place). In addition to defining the bean, you need to tell Struts to use your renderer: The portlet plugin does it like this: Nils-H On Mon, Nov 15, 2010 at 12:37 PM,

Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 -Post-Redirect-Get aka Redirect after post

2010-12-20 Thread Nils-Helge Garli Hegvik
Did you set the "action-url-redirect" value to "true" in liferay-portlet.xml as described in the mentioned Lifray bug-report (http://issues.liferay.com/browse/LEP-1487)? Nils-H On Mon, Dec 20, 2010 at 1:22 PM, Galina Angelova wrote: > Hello, > > I have migrated a portlet application from Lifray

Re: Pluto embedded in Strstu 2.1.8.1

2011-03-16 Thread Nils-Helge Garli Hegvik
Hi! The Struts2 portlet sample application is set up with the pluto embedded framework. You can take a look at it to replicate the setup. Nils-H On Wed, Mar 16, 2011 at 2:59 PM, Jose Luis Martinez Avial wrote: > Hi, >    I'm looking how I can integrate an external application available > throug

Re: Generate PortletURL object with Struts framework

2013-04-26 Thread Nils-Helge Garli Hegvik
It's been a while since I used it last, but underneath the hood, Struts 2 uses PortletUrl to create urls with the url-tag. So you should be able to use the param tag to add parameters to the url. If that is not suitable, use the PortletRequestAware to get the current PortletRequest injected to your

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: 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
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 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: 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: 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: 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: 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: 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: 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: 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: 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-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-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/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/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
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: 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
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: 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-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: 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: 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: 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: file upload

2009-04-28 Thread Nils-Helge Garli Hegvik
Do you have a jar with the org.apache.struts2.dispatcher.multipart.MultiPartRequest class anywhere in your classpath? Nils-H On Tue, Apr 28, 2009 at 7:25 PM, PEGASUS84 wrote: > > please helm me > i must write a code for uploading file in a directory of the server. > i just try some example but i

Re: file upload

2009-04-28 Thread Nils-Helge Garli Hegvik
Sorry, my copy & paste mistake. That file is of course in the core. Take a look at this: http://struts.apache.org/2.1.6/docs/file-upload.html Nils-H On Tue, Apr 28, 2009 at 7:37 PM, PEGASUS84 wrote: > > no where is ths file > > Nils-Helge Garli wrote: >> >>

Re: How to forward request in struts 2.1.6?

2009-04-29 Thread Nils-Helge Garli Hegvik
Why do you need to do it manually with the request dispatcher? Can't you use any of the available result types? http://struts.apache.org/2.1.6/docs/result-types.html Nils-H 2009/4/29 xnpeng : > from: > > ServletActionContext.getServletContext().getRequestDispatcher("/post/message/"+id).forward(S

Re: How to develop a Wireframe using Struts UI?

2009-04-30 Thread Nils-Helge Garli Hegvik
Um Maybe start with http://struts.apache.org/2.1.6/docs/tutorials.html and read the docs for the various ui tags? Nils-H On Thu, Apr 30, 2009 at 5:30 PM, kunduruswaroop wrote: > > Please see the UI drawing below and let me know the steps to follow to > develop a wireframe. > http://www.nabbl

Re: Re: How to forward request in struts 2.1.6?

2009-04-30 Thread Nils-Helge Garli Hegvik
quot;show" ,... > are the default result types. I can manage this. > > my situation is, I need to forward request to action conditionally,ie,depend > on "category" in action class. > > > > > 在2009-04-29,"Nils-Helge Garli Hegvik" 写道: >>

Re: Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread Nils-Helge Garli Hegvik
If I understand your question correctly, are you looking for a reference to the tag itself? If so, why do you need it (I'm not sure it's possible at all)? If you're just looking for the current action, the expression 'top' might be what you're looking for. Nils-H On Thu, May 7, 2009 at 6:27 PM, s

Re: Converting from Struts for IBM API to Struts for JSR168

2009-05-07 Thread Nils-Helge Garli Hegvik
I'm not sure how this is related to Struts? If you are looking for using Struts for portlet development, either check the Struts 1 portlet bridge, or use Struts 2 with the portlet plugin. Nils-H On Thu, May 7, 2009 at 11:17 PM, Hermann X Lau wrote: > IBM API has been deprecated for Portal 6.1...

Re: newbie and hidden field

2009-05-10 Thread Nils-Helge Garli Hegvik
Um... I don't think those are Struts tags. Could this be what you're using? http://www.common-controls.com/en/index.php If yes, then you should ask your question here: http://www.common-controls.com/bbs/?loc=en Nils-H On Mon, May 11, 2009 at 7:32 AM, pam wrote: > Hi, > I am modifying a struts a

Re: Using session object in JSP page

2009-05-10 Thread Nils-Helge Garli Hegvik
That depends on how you want to use it. The tag reference should give you the information you need. http://struts.apache.org/2.1.6/docs/tag-developers-guide.html http://struts.apache.org/2.1.6/docs/ognl.html http://struts.apache.org/2.1.6/docs/tag-syntax.html Nils-H On Mon, May 11, 2009 at 7:57

Re: Not able to locate the file stored using Struts 2 file upload interceptor

2009-05-11 Thread Nils-Helge Garli Hegvik
The FileUploadInterceptor doesn't really store the file for you. It just makes it available to your action so you can process it. After the request has finished, the file is deleted. It should all be described here: http://struts.apache.org/2.1.6/docs/file-upload.html Nils-H On Mon, May 11, 2009

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
It would certainly be a lot easier to help if you could show your configuration and code... Nils-H On Tue, May 12, 2009 at 12:54 PM, Murugesh wrote: >  I am doing task on struts2. In that I have to use custom > AutherizationInterceptor. In my custom Interceptor Im checking weather user > is in s

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
loggin r not ). it seems work but after running  interceptor > it backs to actionclass, here i am chking requset parameters  at that am > geeting for all parameters. > > Without interceptor everything working fine. > > > > On Tue, May 12, 2009 at 4:27 PM, Nils-Hel

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
rs > > On Tue, May 12, 2009 at 5:00 PM, Murugesh wrote: > >> Thanks Nils-H. >> >> i am not clear. can i have the sample for this? >> >>   On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik < >> nil...@gmail.com> wrote: >> >>> Yo

Re: [Struts 2] Disabled fields are not posted on form submission

2009-05-13 Thread Nils-Helge Garli Hegvik
Are you sure that you really want to disable it? Can you use a hidden field, or hide the field with css, if you're just trying to hide it from the user? Nils-H On Wed, May 13, 2009 at 11:28 AM, Fernandes Celinio wrote: > Hi, > > Disabled fields by W3 specifications will not get posted on form >

Re: Keep Action Properties over multiple requests

2009-05-25 Thread Nils-Helge Garli Hegvik
Yes, the ScopeInterceptor should be able to handle this case. Nils-H On Mon, May 25, 2009 at 1:02 PM, Richard Sayre wrote: > I have an action that does some server side logic, based on that logic > I want to present the user with a Yes/No message.  If they click yes I > want to save the data the

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
Um... What exactly are you trying to do here? Do you just need the product id from the url string, or are you trying to fetch something from a different backend? If you just need it from the string, just use indexOf and substring. Nils-H On Thu, May 28, 2009 at 11:41 AM, Prashant Singh wrote: >

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
Um... What exactly are you trying to do here? Do you just need the product id from the url string, or are you trying to fetch something from a different backend? If you just need it from the string, just use indexOf and substring. Nils-H On Thu, May 28, 2009 at 11:41 AM, Prashant Singh wrote: >

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
When I think of it, that doesn't make any sense either... Isn't the product id set as a property on your action? Nils-H 2009/5/28 Nils-Helge Garli Hegvik : > Um... What exactly are you trying to do here? Do you just need the product id > from the url string, or are you trying to

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
; this is generating a url as follows: > http://localhost:8080/Astralpharma1/astralpharma/astralpharma/showprodsuppliers.action?productID=1 > > I just need to retrieve the productID from the url. thats it > > Please let me know how so I do that in Struts 2 > > Thanks > Prashant > &

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
automagically be set from the url to your action. If that doesn't work, then there's something wrong with your setup. Nils-H On Thu, May 28, 2009 at 12:33 PM, Prashant Singh wrote: > Hi Nils, > > can you please illustrate with a code snippet. > > Thanks, > Prashant > > ---

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
009 at 12:41 PM, Prashant Singh wrote: > Hi Nils, > > this is what I have tried to do till today. > > http://www.coderanch.com/t/446930/Struts/transfer-productID-from-url-action > > Sincerely, > Prashant > > > > --- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote: >

  1   2   3   4   5   >