action

E-mails with working forms - possible?

Hello! Is it possible to send an e-mail with a <form> in it that the receiver can fill out and send? The form will obviously have an external absolute path to the processing file (action), e.g. http://mysite.com/processor.php. Just Yes - No answers will not suffice. By possible I mean will all e-mail clients like this and allow mails ...

Implement Google Voice Actions in Android

How can I implement the fairly new Voice Actions from Google, in Android? I'm thinking about the possibility to listen to the Listen to action as used by some music application. Is there a specific broadcast my app must register as a receiver to? ...

Session management in interceptors and action of struts 2 application

I am having problem with session management in struts2. I am setting an attribute in the session in an interceptor which is the default interceptor for my entire application. In my action I am implementing SessionAware interface and grabbing the session as a Map. But the attribute which I set in the interceptor is not present in the sess...

Listening for action on internal JPanel from a JFrame

Hi, I have a JFrame that has a BottomPanel (a class I made that extends JPanel) inside it. And inside that JPanel is another JPanel called DicePanel(that again extends JPanel). In DicePanel there is a button called 'End Turn' that when clicked should end the players current turn for the board game the program is based on. I want to some...

What does the 'action' part of a form tag mean in ASP.NET MVC?

When I have the following action in a form tag, what does the '/Account/Profile` part mean? <form method="post" action="/Account/Profile" Is it a Filename for a view? Is it an action? ...

passing in an array to a struts to action param from a select tag on a jsp page

In my action class I have an array of String (String[]) field with default getter and setters. Then I have a form that calls this action from a jsp page but I can't figure out how to pass the whole array into the action. I am using the and tags. Just passing the whole array into the tag doesn't work and when I use a loop and pass a si...

rewrite URL to affect "save as" filename

Hi folks, My application is in JSP/Struts and running on WebSphere. I don't have access to the server /really/ so I'm trying to do all this from within the app itself (Struts actions & config, JSP, etc). I have a page that displays links for PDF documents that the user might want to look at. When they click on the link, it is forwarded...

What Action to invoke the Video Camera in Android?

Is it possible to call the built-in Video Recorder in Android through an implicit Intent? I did some search but haven't figured out yet. Many thanks. ...

Error in my struts Action class

I have a JSP where I am showing date and description from database. Every entry has a unique id, but I am not showing on the page(showing checkbox) These entries are thrown using a "logic:iterate", so the number of rows is always changing based on entries. Now these fields are shown as a text field so that the user can also update the da...

symfony - clean variables before sending to template

Hi! On the project I am currently working, I had created an action that generates a csv file. Here is some of my current template codem, which generated the csv file on-the-fly: <?php header('Content-Disposition: attachment; filename="file_'.date("Y-m-d_H-i",time()) .'.csv"'); ?> Branch:;<?php echo $branch; ?>; The variable $branch,...

rails sortable list not updating

I have followed the instructions on http://railscasts.com/episodes/147-sortable-lists for creating a sortable list. The list drags and drops as it is supposed to, but the sort action is not being fired when the link is released. I have tested this by putting a render :text command into the sort. No error's appear, it just doesn't fire ...

Struts2 get the text boxes (dynamic) to action class

I have struts page where the text boxes are with dynamic ID and wanted to get this values into Action class. Can someone please help me with the code plz. ...

add_action function in wordpress

well im learning to create a wordpress plugin i downloaded one and read the codes, and i saw this i assume 'foo' is the tag where it will add action to.. but what does the array() exactly do? add_action('foo', array('foo1', 'foo2')); i looked at http://codex.wordpress.org/Function_Reference/add_action and there is no clear definition...

JSF2 Action parameter

Hi folks I have read about passing parameters from jsf page to managedbean through actionListener. Is it also possible to pass a parameter to a simple action method? Thank you for reading... Thank you both for your advices! I would be lost without you :-) Following worked for me: <h:commandLink id="link" action="#{overviewContro...

Django: How to create a complex admin action that requires additional information?

I'm interested in creating an action for the admin interface that requires some additional information beyond the items selected. My example is bulk adding comics to a series. (Yes I know the obvious answer is to create a schema with X-to-X relationships, but bare with me for the sake of a simple example). In this example, I've created ...

How to define a class that sends an action like NSButton?

In Cocoa, how do you define a class that sends an action? I want to be able to connect the action to the selector of another object in IB in the style of NSButton. I would prefer not to subclass NSControl if possible. ...

javascript method post - how to call asp.net mvc action onClick?

i have an image: <img onclick="Search()" alt="searchPage" style="vertical-align: middle;" height="17px" src="../../Stylesheets/search.PNG" title="search" /> and javascript methode: <script language="javascript" type="text/javascript"> function Search() { alert("test-search"); var searchText = $("#txtSearch")....

Dynamically changing form action URL has no effect

Hi, When a form action URL was changed dynamically, when the form submit, it will still use the default action URL, anybody know why? Please see a simple example below: <form action="test.php" method="get" id="test"> <select name="id" onChange="formSubmit(this)"> <option value="abc">abc</option> <option value="xyz">xyz</opti...

How to know the 'controller' and 'action' from the request url in Pylons?

I want to log the controller and action when a request comes, so I write a __before__ in the base controller: class BaseController: __before__(self): controller = get_controller(request) action = get_action(request) logger.log('%s - %s'%(controller, action)) But I don't know how to get the controlle...

Key Events in Java - Beginner Help

So I've been working on a simple program while learning Java that brings up a small rectangular screen that has a circle moving around on it. The background and circle also change colors and speeds. Now I'm trying to add KeyEvents, such that when the user types a character, the circle will change directions. I've been trying to get a ha...