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

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 jlmarti...@pb-santander.com wrote: Hi,    I'm looking how I can integrate an external

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 galb...@yahoo.com wrote: Hello, I have migrated a portlet application

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: bean

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 argr...@gmail.com wrote: couldn't get the Post-Redirect-Get (PRG) working. The result

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

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 nil...@gmail.com wrote: I believe it is up to the container how the event - render transition is implemented. I don't think there's any guarantee

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 frederi...@yahoo.fr wrote: --- En date de : Lun 1.3.10

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
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? Fred... Lost in struts2 world :( --- En date de : Lun 1.3.10, Nils-Helge Garli Hegvik nil...@gmail.com

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
 : Lun 1.3.10, Nils-Helge Garli Hegvik nil...@gmail.com a écrit : De: Nils-Helge Garli Hegvik nil...@gmail.com Objet: Re: How to pass HTTPRequest between two JSP ? À: Struts Users Mailing List user@struts.apache.org Date: Lundi 1 mars 2010, 10h44 I'm not following the chain of actions here

Re: How to pass HTTPRequest between two JSP ?

2010-03-01 Thread Nils-Helge Garli Hegvik
date de : Lun 1.3.10, Nils-Helge Garli Hegvik nil...@gmail.com a écrit : De: Nils-Helge Garli Hegvik nil...@gmail.com Objet: Re: How to pass HTTPRequest between two JSP ? À: Struts Users Mailing List user@struts.apache.org Date: Lundi 1 mars 2010, 11h07 In that case, you're talking about two

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/plugins

Re: Problem with s:property / tag

2010-01-18 Thread Nils-Helge Garli Hegvik
Putting it inside pre tag might also work. Nils-H On Mon, Jan 18, 2010 at 2:12 PM, Dave Newton newton.d...@yahoo.com wrote: VSGoud wrote: Facing problem with s:property / 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

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 strutsu...@tgrigsby.com wrote: (Beating head on keyboard...) So one more time for the folks at home: Is there anyone out there who has managed to

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 shitalpati...@yahoo.com wrote: Dear All, Thanks for your valuable suggestions. Actually I am failed to convince my PM for using JSP pages in web app.

Re: JSR286 in Struts2

2009-10-22 Thread Nils-Helge Garli Hegvik
It's in the sandbox (http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-portlet2-plugin/). You can also find some information here: http://boss.bekk.no/display/BOSS/Struts+2+Portlet+2.0+Plugin It's exeperimental, and has not been worked on for a while. You're welcome to test it and

Re: urgent guys

2009-10-14 Thread Nils-Helge Garli Hegvik
What happens at com.xiusbcgi.ui.struts.action.VoyagerDispatchAction.preExecute(VoyagerDispatchAction.java:178) ? Nils-H On Wed, Oct 14, 2009 at 1:31 PM, swathi reddy swathi23.re...@gmail.com wrote:  Hi  all guys can u tell me whare exactly this error is being raised in my project I am using

Re: Portlet form action parameters doubles the namespace of actions

2009-10-13 Thread Nils-Helge Garli Hegvik
I noticed your bug report in JIRA and will be looking into it. As for debugging, check out the setup in the sample portlet application. I use it to run portlets embedded in pluto directly in Eclipse. Makes debugging real easy. Nils-H On Fri, Oct 9, 2009 at 10:35 AM, Leonard Broman

Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-05 Thread Nils-Helge Garli Hegvik
Yes, that was what I meant, and I worked just fine with me, using your web application (on Jetty/pluto). I haven't had time looking any more into it, but I'll keep you updated. Nils-H On Fri, Oct 2, 2009 at 3:40 PM, phillips1021 bphill...@ku.edu wrote: Nils - I'm not following how to implement

Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread Nils-Helge Garli Hegvik
It Should work with redirectAction. I'll look into it. Nils-H On Thu, Oct 1, 2009 at 7:28 PM, phillips1021 bphill...@ku.edu wrote: I changed my struts.xml configuration to use type chain instead of type redirectAction                action name=deleteEmployee

Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread Nils-Helge Garli Hegvik
On Thu, Oct 1, 2009 at 7:52 PM, Nils-Helge Garli Hegvik nil...@gmail.com wrote: It Should work with redirectAction. I'll look into it. Nils-H On Thu, Oct 1, 2009 at 7:28 PM, phillips1021 bphill...@ku.edu wrote: I changed my struts.xml configuration to use type chain instead of type

Re: Wondering that Struts2 is getting die?

2009-09-30 Thread Nils-Helge Garli Hegvik
If you check out the dev mailing list, you'll see that there's currently a vote for 2.1.8. That doesn't look like dead to me... Nils-H On Wed, Sep 30, 2009 at 1:12 PM, karaatli todayhe...@gmail.com wrote: Hi all, Due to out of date struts wiki page, confllunece page others relating to

Re: Wondering that Struts2 is getting die?

2009-09-30 Thread Nils-Helge Garli Hegvik
Now that is an impressive conclusion I didn't catch that, since I was reading the lines instead of between them... Nils-H On Wed, Sep 30, 2009 at 3:25 PM, Martin Gainty mgai...@hotmail.com wrote: if i read between the lines i think hes speaking of the hardcoded xwork dependency there

Re: How to import a struts 2 action into a jsp?

2009-09-24 Thread Nils-Helge Garli Hegvik
Can't you use the s:action tag? Anyway, this might have something to do with filter configuration. Try adding this to the filter definition in web.xml: dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher Nils-H On Thu, Sep 24, 2009 at 11:18 AM, Per Johansson

Re: using struts taglib how to find the lenght of an parameter

2009-09-17 Thread Nils-Helge Garli Hegvik
A simple way to achieve that is to have a property on the form bean that returns the username appropriate for display. Nils-H On Thu, Sep 17, 2009 at 2:35 PM, swathi reddy swathi23.re...@gmail.com wrote:  Hi all I am trying to display a user name through bean:write tag but before that I want

Re: Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Nils-Helge Garli Hegvik
If it's unit testing you want to do, can't you just test your actions without involving Spring or anything else? I usually just create a unit test where I instantiate my action, set the aproriate dependencies, and then just call the appropriate execute method. Nils-H 2009/9/11 Diego Manilla

Re: [struts2] disable parameter pass between actions

2009-09-09 Thread Nils-Helge Garli Hegvik
How do you create the url (seeing some code would help...), and which version of S2? If you're using the url-tag, try setting the includeParams attribute to none. http://struts.apache.org/2.1.6/docs/url.html Nils-H 2009/9/9 Halil Ağın halil.a...@gmail.com: Hello List; I have 2 urls as below

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread Nils-Helge Garli Hegvik
A form with file input can't be submitted with Ajax. You either have to do some iframe magic or use a flash component. Do a google search for ajax file upload to find some options. I've been using SWFUpload [1] for this purpose. Nils-H [1] - http://code.google.com/p/swfupload/ On Thu, Sep 3,

Re: How to print out method result called into execute() on a JSP page

2009-09-01 Thread Nils-Helge Garli Hegvik
Take a look at this tutorial: http://www.laliluna.de/first-steps-using-struts-tutorial.html There are more tutorials at http://wiki.apache.org/struts/StrutsTutorials Nils-H On Tue, Sep 1, 2009 at 12:34 PM, Hanen Ben Rhoumahanen...@gmail.com wrote:  

Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
From the JMeter FAQ: How do I ensure each http request for jsp is within one jsessionid ? http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb Nils-H On Tue, Sep 1, 2009 at 1:15 PM, Dave Newtonnewton.d...@yahoo.com wrote: Rajeev Sharma wrote: I am new

[OT] Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
Hm... I don't know... Maybe read the documentation? http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager Sorry for pinging you online. Hope that's not too much trouble... Nils-H On Tue, Sep 1, 2009 at 3:23 PM, Martin Gaintymgai...@hotmail.com wrote: Nils-

Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
I am trying to find out why is the session created when I did not create the session in my code. -- Rajeev Well, I believe Struts 2 internally does request.getSession(false) to prevent creating sessions when there isn't one... Which interceptor stack are you using? You could also try adding

Re: Hibernate3+Spring2.5+Struts2

2009-08-20 Thread Nils-Helge Garli Hegvik
On Thu, Aug 20, 2009 at 5:27 PM, Martin Gaintymgai...@hotmail.com wrote: agreed..i would also suggest wrap the code in try catch for the NullPointerException good call wes! Martin Gainty Why? Nils-H - To unsubscribe,

Re: Hibernate3+Spring2.5+Struts2

2009-08-19 Thread Nils-Helge Garli Hegvik
From your stack trace: SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is

Re: Hibernate3+Spring2.5+Struts2

2009-08-19 Thread Nils-Helge Garli Hegvik
java.lang.NullPointerException at action.LoginAction.execute(LoginAction.java:31) Looks like you have a NPE at line 31 in LoginAction. What line is that? Which references could have been null? Nils-H On Wed, Aug 19, 2009 at 1:59 PM, Zied Bejaouibejaouiz...@hotmail.com wrote: Thanks for

Re: Struts - 2.1.6 - Prepare Interceptor

2009-08-13 Thread Nils-Helge Garli Hegvik
super.prepare()? Nils-H On Thu, Aug 13, 2009 at 9:51 AM, Kishan Paandykishanchellapaand...@spanservices.com wrote: Hi Folks, I have a problem as below: 1) public abstract class AbstractBaseAction implements Preparable {    public void prepare()        {        populateSomething();    

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Nils-Helge Garli Hegvik
I have also noticed that struts form tag breaks the layout of the page. I am not sure if you have seen this. I will try to find out why (i.e. not standard html or css issue), otherwise i will use html form. Try using the simple theme. Nils-H

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Nils-Helge Garli Hegvik
, Scott - Original Message From: Nils-Helge Garli Hegvik nil...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Friday, August 7, 2009 4:41:53 AM Subject: Re: struts2 portlet bug RenderRequest cannot be obtained in event   phase I have also noticed

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
The portlet execution life cycle is separated in two: The action/event phase, in which state transitions (typically a form submit) occurs, and then the render phase, where the actual output is rendered. The request object that is available in these two phases are not the same. In the action phase,

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
? Thanks again Leon Nils-Helge Garli Hegvik wrote: The portlet execution life cycle is separated in two: The action/event phase, in which state transitions (typically a form submit) occurs, and then the render phase, where the actual output is rendered. The request object that is available

Re: HSSFWorkbook - set direction right to left

2009-08-04 Thread Nils-Helge Garli Hegvik
Why don't you try the POI mailing list instead? http://poi.apache.org/mailinglists.html Nils-H On Tue, Aug 4, 2009 at 3:01 PM, Odelya YomTovode...@jpost.com wrote: Hi! When I export HSSFWorkbook it writes it from left to right I would like to right it from right to left How can I do it?

Re: Mixing portlet with regular pages

2009-08-04 Thread Nils-Helge Garli Hegvik
What do you mean by accessed from a totally different server? Are you referring to WSRP? There's a bug in the current version that causes some problems when you mix servlet actions and portlet actions in the same app. The next version (hopefully 2.1.8) should have this bug fixed. Nils-H On Tue,

Re: Mixing portlet with regular pages

2009-08-04 Thread Nils-Helge Garli Hegvik
probably wise to beg off this particular plugin until all P1 bugs are quashed Very insightful... the JSR268 readme and core sample is located at https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload I'm not sure what

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
Struts2 very well, so if you don't mind, pls tell me which testing class I can learn from. Thanks again On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com wrote: You need to initialize the ActionContext in your unit tests. Take a look at the Struts 2 tests how

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
a NullPointerException, but if you do it with xwork-2.0.5, it works. If any know what is happening, I would be extremely grateful. 2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com He might have found out already, considering this was posted 1,5 years ago... Nils-H On Mon, Aug 3, 2009 at 12:44 PM, Juanjo

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
now? How have I to create the ActionContext? is it a bug? 2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com Well, if that was a question, then I didn't see it I would certainly prefer implementing SessionAware, if it's an action you're testing. But if you really need to set up

Re: struts 2 portlet interceptor issue

2009-08-03 Thread Nils-Helge Garli Hegvik
               action name=testAction class=test.MyAction                        interceptor-ref name=sessionScopeHandler/interceptor-ref                        result/jsp/test/test.jsp/result                /action With this configuration, your sessionScopeHandler will be the only

Re: Struts2 portlet bug found

2009-07-22 Thread Nils-Helge Garli Hegvik
Does it work if you access the session raw (get the session and do session.getAttribute(studentId, PortletSession.APPLICATION_SCOPE)? Have you tried deploying to a different portlet container such as jboss portal or just plain pluto? I assume that the resources you're sharing session between are

Re: Struts2 portlet bug found

2009-07-22 Thread Nils-Helge Garli Hegvik
Ah, sorry, I think I misunderstood As they say in the uPortal forum, this is probably due to the older version of uPortal returning all session attributes regardless of scope. When this was fixed, you need to specify the correct scope to retrieve application scoped attributes, but they are

Re: Pb displaying image

2009-07-21 Thread Nils-Helge Garli Hegvik
1. You put it in a directory that your webserver serve... or 2. Create a servlet that reads the data from the filesystem and sends back the data in the response. I'd certainly prefer option 1 if possible. Nils-H On Tue, Jul 21, 2009 at 9:31 AM, tututugdual.huer...@gmail.com wrote: Thanks for

Re: Problem with LoginInterceptor

2009-07-20 Thread Nils-Helge Garli Hegvik
You need to include one of the framework interceptor stacks (e.g defaultStack) in your defaultLoginStack stack. As you have configured it, your interceptor is the only one that is being executed, so none of the framework magic gets applied. Nils-H On Mon, Jul 20, 2009 at 10:09 AM,

Re: Struts w/Ajax with Struts again

2009-07-19 Thread Nils-Helge Garli Hegvik
The form will not be updated unless you refresh the values or the part of the page that displays the values you want to be updated. So you would have to manually do this processing some returned updated values in a json result, or by returning the result of a partial jsp which re-renders the part

Re: URL to underlying action

2009-07-16 Thread Nils-Helge Garli Hegvik
Try using the url tag without specifying value or action. Nils-H Den 16. juli. 2009 kl. 13.14 skrev mathias-ewald nitehoax...@gmx.net: Hi, is there a way to create a URL (like s:url) to the Action that called a JSP file? I would like to reuse some code like forms and other stuff cu

Re: unit testing Struts2 application (with Spring and Hibernate)

2009-07-16 Thread Nils-Helge Garli Hegvik
If it's integration testing you want to do, I've had success embedding Jetty and doing full in-container integration testing. Embedding Jetty is really easy, and it's pretty fast too. Although not Struts 2 specific, take a look at this article:

Re: EJB Injection in Interceptor

2009-07-16 Thread Nils-Helge Garli Hegvik
The short answer - You have to do the lookup yourself. The long answer - There's a similar discussion going on that pretty much covers the topic: http://www.nabble.com/Struts2-Action-Class-and-EJB-Injection-td24497801.html Nils-H On Thu, Jul 16, 2009 at 10:03 PM, Nathan

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Nils-Helge Garli Hegvik
Did you look at the Excluding properties example in the json plugin documentation? Nils-H On Mon, Jul 13, 2009 at 9:15 AM, GFgan...@gmail.com wrote: You're absolutely right, but there is a security reason, in real-world application, the objects i get from business service, are usually JPA

Re: [OT] Return Hashmap java object from servlet

2009-07-07 Thread Nils-Helge Garli Hegvik
What exactly are you trying to do? Do you want to serialize the hashmap to the client as a Java object, or do you want it converted to xml? What does the consuming end expect? If you really want to produce xml, take a look at one of the many java - xml libraries that exists (although, something as

Re: Struts 1.2 in Tomact 5.0 giving ERRORS...

2009-07-03 Thread Nils-Helge Garli Hegvik
Change the classpath to servlet-api? Where? The container should provide all the jsp and servlet jars that you need (with correct versions). You should probably not tamper with the classpath to any of those... Nils-H On Fri, Jul 3, 2009 at 10:40 AM, pasanewapasan...@gmail.com wrote: I was

Re: Pre setAttribute for a form

2009-06-26 Thread Nils-Helge Garli Hegvik
Don't have any more ideas, but generally, the message cannot find bean in any scope means exactly what it says: The bean is not in a scope where it can be found. Which means that either it is set in request scope, and attempted to be used in a different request (typically what happens when you do

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-26 Thread Nils-Helge Garli Hegvik
It should be fixed now in trunk. Let me now if it works or not. Nils-H On Wed, Jun 24, 2009 at 6:01 PM, phillips1021bphill...@ku.edu wrote: I added to the Jira bug report another example application that demonstrates the problem.  The example application is a simple Struts 2 (using 2.1.6)

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
Haven't looked very deeply into it, but could it be that you're setting the attribute in the action phase, and trying to access it in the render phase? That won't work. In that case, you have to set it as a session attribute, or set some kind of id as a render parameter and re-fetch the object in

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
Did you try request.getSession().setAttribute(RedirectHelpForm, redirectHelpForm)? Nils-H On Thu, Jun 25, 2009 at 7:14 AM, Sam Wunswun2...@gmail.com wrote: How to do that with session? I am currently setting it in the execute() and render method with the following code:

Re: download link for struts UI Tags?

2009-06-22 Thread Nils-Helge Garli Hegvik
The Struts 2 core already includes the tag libraries. So if you have downloaded struts 2, then you also have the tag libraries you need. Struts distributions can be downloaded here: http://struts.apache.org/downloads.html Nils-H On Mon, Jun 22, 2009 at 10:46 AM, Sam Wunswun2...@gmail.com wrote:

Re: how to correctly generate path and type in structs-config.xml file?

2009-06-19 Thread Nils-Helge Garli Hegvik
This has nothing to do with Struts. You have to put the source file in a folder structure that mirrors your package definition. Nils-H On Fri, Jun 19, 2009 at 6:00 AM, Sam Wunswun2...@gmail.com wrote: Hi, I  have an Action java source code with package at the top of the file. When I put the

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-19 Thread Nils-Helge Garli Hegvik
It would be helpful if you could create a sample app and attach it to a JIRA issue. Then I'll have a look at it. Nils-H On Fri, Jun 19, 2009 at 9:52 PM, phillips1021bphill...@ku.edu wrote: Nils-H (or anyone else): I've duplicated this problem with 2.1.6 and portlets as follows: Created a

Re: download file

2009-06-17 Thread Nils-Helge Garli Hegvik
Take a look at Pawel and Dave's replies once again. Nils-H On Wed, Jun 17, 2009 at 8:55 AM, PEGASUS84pegasu...@hotmail.it wrote: thanks, now there is a problem in struts.xml: Can not find a java.io.InputStream with the name [${contentType}] in the invocation stack. Check the -- View

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
You can't expect someone else to write your code for you... What have you tried? What errors did you get? You have to at least provide some informatino for us to help you. Nils-H On Tue, Jun 16, 2009 at 11:54 AM, PEGASUS84pegasu...@hotmail.it wrote: sorry, i don't succeed i haven't idea --

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
And where does your input stream come from? On Tue, Jun 16, 2009 at 12:11 PM, PEGASUS84pegasu...@hotmail.it wrote: my action  is this: public class FileDownload extends ActionSupport {       InputStream inputStream;   public void setInputStream(InputStream s){inputStream=s;}   public

Re: white space

2009-06-15 Thread Nils-Helge Garli Hegvik
I'd consider creating a new getter that returns what you want. Nils-H On Mon, Jun 15, 2009 at 12:01 PM, PEGASUS84pegasu...@hotmail.it wrote: good moornig, my problem is this:  i've this select s:select cssClass=selezione id=docente listKey=getCodiceD() listValue=getNome()+getCognome()

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-12 Thread Nils-Helge Garli Hegvik
If you're using portlets, your package must extend struts-portlet-default instead of struts-default. It should be possible to run servlet actions and portlet actions in the same application. Nils-H On Thu, Jun 11, 2009 at 3:52 PM, IainMiain.mil...@live.co.uk wrote: Hi, I have an existing

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-12 Thread Nils-Helge Garli Hegvik
An impressive number of hacks there... Nils-H On Fri, Jun 12, 2009 at 1:48 PM, Martin Gaintymgai...@hotmail.com wrote: Scott- i think what Pawel is suggesting is there is a 'demonstrable' need for a Struts Grails plugin I have some grails code here so i might decide to tackle this

Re: opening a popup window from Action Class

2009-06-11 Thread Nils-Helge Garli Hegvik
That's something you have to handle in your view, either with javascript or just a link with the proper target attribute. Nils-H On Thu, Jun 11, 2009 at 8:03 AM, abhishek reddyabhishek.c1...@gmail.com wrote: hi every one, How to open a popup window from Struts Action Class? thanks in

Re: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Nils-Helge Garli Hegvik
Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the features and limitations of portlets though. It might not necessarily be what you're looking for. I suggest digging a bit deeper into the topic if you're considering using it. Nils-H On Mon, Jun 8, 2009 at 9:05 AM, Francisco

Re: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Nils-Helge Garli Hegvik
could you elaborate on how JetSpeed is not JSR-168 compliant? thanks, Martin Gainty You have to start actually reading the posts you're replying to. I said nowhere that JetSpeed is not JSR-168 compliant. And please, keep discussions on the list. Nils-H Date: Mon, 8 Jun 2009 13:00:07

Re: Re [S2] development tool

2009-06-08 Thread Nils-Helge Garli Hegvik
I don't think anyone is _threatened_ by RAD tools. To be a threat, they would have to be better than the alternatives And they're not I have yet to see a RAD (as in point and click programming) tool that is actually more productive taking the entire lifecycle of a development project into

Re: response.sendRedirect() with Struts2 within a portlet

2009-05-31 Thread Nils-Helge Garli Hegvik
You can use the PortletResponseAware to get the portlet response object. Nnils-H On Sun, May 31, 2009 at 10:20 AM, Crishantha Nanayakkara c.nanayakk...@gmail.com wrote: Hi, I have a requirement to use a response.sendRedirect() within my Action class. Basically this action class is used to

Re: Struts 2 going to hang glassfish

2009-05-31 Thread Nils-Helge Garli Hegvik
I'm sure you realize that for anyone to be able to help, you have to provide some more information... Besides, I'd be surprised if you can't find any trace of anything in your logs. Nils-H On Sun, May 31, 2009 at 6:05 PM, mohsen ahmadian mohsen@gmail.com wrote: Hello to all  I have a

Re: response.sendRedirect() with Struts2 within a portlet

2009-05-31 Thread Nils-Helge Garli Hegvik
Unfortunately, you can't make an ajax request to the portlet. The ajax tags are not supported in a portlet, due to limitations in the JSR168 specification. Also, I'm not quite sure what you're trying to do. Are you attempting to load the div with Ajax with contents from a different url? Have you

Re: Error in Jasper printReport

2009-05-29 Thread Nils-Helge Garli Hegvik
Maybe you should try a Jasper mailing list? Nils-H On Fri, May 29, 2009 at 8:19 AM, Ikya Technical ikyatechni...@gmail.com wrote: Hi,     Whenever I am giving true in                        JasperPrintManager.printReport(jasperPrint, true)    it is throwing the error                

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

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

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 nil...@gmail.com: Um... What exactly are you trying to do here? Do you just need the product id from the url string, or are you trying

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

2009-05-28 Thread Nils-Helge Garli Hegvik
that in Struts 2 Thanks Prashant --- On Thu, 28/5/09, Nils-Helge Garli Hegvik nil...@gmail.com wrote: From: Nils-Helge Garli Hegvik nil...@gmail.com Subject: Re: how to get productID from the url into action class. To: Struts Users Mailing List user@struts.apache.org Date: Thursday, 28 May

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

2009-05-28 Thread Nils-Helge Garli Hegvik
/09, Nils-Helge Garli Hegvik nil...@gmail.com wrote: From: Nils-Helge Garli Hegvik nil...@gmail.com Subject: Re: how to get productID from the url into action class. To: Struts Users Mailing List user@struts.apache.org Date: Thursday, 28 May, 2009, 3:19 PM Um... What exactly are you trying

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

2009-05-28 Thread Nils-Helge Garli Hegvik
Singh prashantk.si...@yahoo.co.in 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 nil...@gmail.com wrote: From: Nils-Helge Garli

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 richardsa...@gmail.com 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

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 cfernan...@sopragroup.com wrote: Hi, Disabled fields by W3 specifications will

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 muruges...@gmail.com wrote:  I am doing task on struts2. In that I have to use custom AutherizationInterceptor. In my custom Interceptor Im checking

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
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-Helge Garli Hegvik nil...@gmail.comwrote: It would certainly be a lot easier to help if you could show your configuration and code

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
On Tue, May 12, 2009 at 5:00 PM, Murugesh muruges...@gmail.com 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: You have configured your interceptor as the only one in the stack. When

Re: newbie and hidden field

2009-05-11 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 pam.withn...@ecngroup.com.au wrote: Hi,

Re: Using session object in JSP page

2009-05-11 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: 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,

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 hermann.x@jpmchase.com wrote: IBM API has been

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 swaroo...@hotmail.com wrote: Please see the UI drawing below and let me know the steps to follow to develop a wireframe.

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

2009-04-30 Thread Nils-Helge Garli Hegvik
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 nil...@gmail.com 写道: Why do you need to do it manually with the request dispatcher? Can't you use any of the available result types? http

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 xnp...@163.com: from:

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 pegasu...@hotmail.it wrote: please helm me i must write a code for uploading file in a directory of the server. i just try

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 pegasu...@hotmail.it wrote: no where is ths file Nils-Helge Garli wrote: Do you have a jar with

  1   2   3   4   5   >