action

pass Multilple values in struts2 action with one param name

Hi I would like to pass Multiple parameters for single param in action tag. Ex: <action name="question" class="com.xxx.xxx.action"> <param name="hint">abc</param> <result name="success">Answers.jsp</result> </action> I have getters and setters for hint (String) variable in my action. Currently i can be able to get parameter v...

Swing- focus problem

Hi, In my application I have a frame, with toolbar (the toolbar contains some actions). I want the toolbar to be visible only when the window is focused. So, I registered a windowFocusListener on the window. The problem is- when the window is not focused and I click on the place where a tool bar action should be- the action is performed...

Objective-C:Casting methot to button without using NIB file?

HI.i am trying to use some action when I click button in navigation controller.But I created this navigation controller and navigation item with coding.And I know how cast in NIB button with action but .How can I do this with coding? ...

Set Action Controller name for Zend_Tool create controller

Hi All, All my controllers use a custom Action Controller class, is there anyway to set the action controller class it uses when generating the the controller code? Or would be even better if I could set it up to map the action controller class to use based on the module the class is being created under. Cheers. ...

calling asp.net mvc action method using jquery post method expires the session

hi, i have a website where i provicde a link. On clicking the link a controller action method is called to generate a zip file after creation of zip file is done, i show the link to download the zip file by replacing the link to create a zip with the link to download the zip. the problem is that after zip file creation is over and link...

Set form action dynamically in https-area

Hi, heres the problem explanation: Im on the domain https://www.example.com - theres an Order-Form with the Action https://www.example-otherdomain.com with an other SSL Certificate. On some conditions i set the form action to https://www.example.com so that it will be posted on our domain, but if the user uses a CreditCart it should g...

Change form action with prototype

Hi, how can I change a form's action with prototype ? I've seen plenty of examples with jquery using: $("#form1").attr("action","http://actionurl.com"); but haven't one with prototype. Thanks in advance. ...

Struts. Go back to same page after an action

Hi there, my situation is the following: I have a project with JSP, Struts and a lot of actions. Lets say that I have these 3 main groups {contacts.do, calendar.do and notes.do} with lot of actions in each of them. I have an action unrelated to all of them but since I didn't know where to put it I just chose contacts. My aim is after t...

extending the delphi TEditCopy action to also copy listbox items to clipboard

I have a form with most of its functionality implemented using standard TAction. I have a menu, a toolbar, and some toobuttons. I have implemented clipboard copy/paste with no code at all, just using TEditCopy and TEditPaste actions. It works perfect in the TEdit and TMemo boxes I have. Now, I want it to work with TListBox, too. Specif...

Delphi 2009 Actionmanager default Imagelist

I have just started a new project, and I am using the Delphi 2009 Actionmanager component for the first time. The Actionmanager has a list of standard actions, which gives me actions such as File open / save without any coding - great stuff. Is there a standard ImageList to go with this, with the correct images for the default ImageInde...

[struts2] What is a preferred way of displaying result as a table?

I have an action that populates the result from the DB. Right now, I see a way of doing it and that is to make the Action ServletRequestAware, set the populated list as a request attribute and show it in jsp. Since a lot of improvements have been introduced into struts2, is there any other way of doing that? The first thing that comes ...

Parsing through email in Ruby using Action Mailer

I retrieve mail using net/pop , but I also need to parse through the email to obtain subject,from address and email body. Any ideas with Action Mailer? I'm supposed to use 3rd party gems.(No,not even Tmail) require 'rubygems' require 'net/pop' require 'pop_ssl' Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE) def pull_mail Net::PO...

Why is my searchable activity's Intent.getAction() null?

I've followed the SearchManager documentation yet am still having trouble making one of my app's activities searchable. From my activity, the Search dialog appears, I enter a query, hit search, my activity reopens, then I see this in the log: D/SearchDialog( 584): launching Intent { act=android.intent.action.SEARCH flg=0x10000000 cmp=c...

How can I apply a theme/style to an Action android

In Android, how can I apply a style to an API action? I am using the RingtoneManager.RINGTON_PICKER action to let the user select an alarm, and would like to apply the standard theme that the other child-activities use. Does anyone know how I can apply a theme? The code I'm using to open the RINGTONE_PICKER is Intent intent = new Inte...

Dynamic page titles in Symfony 1.4

Hi, I'm wondering if anyone's got any good advice/experience regarding setting dynamic meta titles in Symfony? Currently, the solution I'm aware of would be to use the following code to set a title individidually in each action: $this->getResponse()->setTitle('This is a title'); Because I also need translated titles, I could call th...

How to connect menu click with action in Qt Creator?

I am completely new to Qt. I started with a new Qt4 GUI Application. Using the designer, I have created a menu like so: File - Exit How do I get an action associated with the menu item? I found something called the 'Signals and slots editor' but have no idea how to use it. ...

Subjective question...would you use the Action delegate to avoid duplication of code?

Hello, I just asked a question that helps about using generics (or polymorphism) to avoid duplication of code. I am really trying to follow the DRY principle. So I just ran into the following code... Sub OutputDataToExcel() OutputLine("Output DataBlocks", 1) OutputDataBlocks() OutputLine("") OutputL...

How do i refactor this code by using Action<t> or Func<t> delegates

I have a sample program, which needs to execute 3 methods in a particular order. And after executing each method, should do error handling. Now i did this in a normal fashion, w/o using delegates like this. class Program { public static void Main() { MyTest(); } private static bool MyTest() { ...

MouseUpEvent stops working while Dragging MovieClip

There is a mouseUpEvent listener attached to the stage in the main class, while dragging the movieClip the mouseUpEvent doesnot trigger the handler and the movieClip gets sticks to the mouse. While the item is being dragged and the mouse is moved away from the movieClip i.e somewhere not on the item but on the stage the mouseUp is detec...

Photoshop actions with auto rotate

I build my action for create image thumbs, and I want add to the end of action auto rotate to my thumb. My question is: How add rotate with random angle from -45 to 45 degree? ...