I have the following code in struts.xml:
<interceptor-ref name="checkTabsStack">
<param name="tabName">availability</param>
</interceptor-ref>
and I want to access the parameter tabName in the interceptor routine, how do i do that? i tried
Map params = ActionContext.getContext().getParameters();
but params comes empty...
Thanks!
My movieclip clipArt_mc receives movieclips that are loaded dynamically from a listbox selection using:
var myLoader9:Loader = new Loader();
I apply color to clipArt_mc using the following:
var trans3:Transform = new Transform(MovieClip(parent).design_mc.clipArt_mc);
I would like to access the nested or loaded in movieclip inside of clipArt_mc that has in it a movieclip named color_mc so that I can apply color directly to it instead of clipArt_mc.
Can this be done?
Thank you in advance for your time.
Anne
how can i access state varibale of class keyboard with object of class kalaplayer
/**
* An abstract class representing a player in Kala. Extend this class
* to make your own players (e.g. human players entering moves at the keyboard
* or computer players with programmed strategies for making moves).
*/
public abstract class KalaPlayer
{
/**
* Method by which a player selects a move.
* @param gs The current game state
* @return A side pit
number in the range 1-6
* @throws NoMoveAvailableException if all side pits for the player are empty
* (i.e. the game is over)
*/
public abstract int chooseMove(KalaGameState gs) throws NoMoveAvailableException;
}
public class KeyBoardPlayer extends KalaPlayer {
/**
* Method by which a player selects a move.
* @param gs The current game state
* @return A side pit number in the range 1-6
* @throws NoMoveAvailableException if all side pits for the player are empty
* (i.e. the game is over)
*/
public KalaGameState state;
public KeyBoardPlayer()
{
System.out.println("Enter the number of stones to play with: ");
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int key = Integer.parseInt(br.readLine());
state=new KalaGameState(key);
//key=player1.state.turn;
}
catch(IOException e)
{
System.out.println(e);
}
}
public int chooseMove(KalaGameState gs) throws NoMoveAvailableException{
return 0;
}
}
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class KalaGame {
KalaPlayer player1,player2;
public KalaGame(KeyBoardPlayer Player1,KeyBoardPlayer Player2)
{ //super(0);
player1=new KeyBoardPlayer();
player2 = new KeyBoardPlayer();
//player1=Player1;
//player2=Player2;
//player1.state ****how can i access the stae variable from Keyboard CLass using object from KalaPlayer
key=player1.state.turn;
}
public void play()
{
System.out.println("Enter the number of stones to play with: ");
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int key = Integer.parseInt(br.readLine());
System.out.println(key);
KalaGameState state=new KalaGameState(key);
printGame();
}
catch(IOException e)
{
System.out.println(e);
}
}
I would like to know as to what has been the experience of using direct data access components like devart's MyDAC which allows a direct connection to the mysql server rather than through the client library or ODBc.
hii i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also
so in desktop browser it works fine with the url http://testweb/ but in android simulator browser it displays error tht page has been moved .... so plz give me solution what i shud do to work it and where i am getting wrong...plz help me
Hi,
I'd like to access my servlet container's thread/busy thread counts within a filter under tomcat.
Is this a part of the jee standard? Or does it have to be tomcat specific? Is there a more general server load measurement?
I heard in this TUAW Article that iPhone apps should stop using the Documents folder to store files. Instead they should use the library folder. How do you access the Library folder to store files to it?
Thanks in advance!
I have the following code which works perfectly, but I want to allow access to the /assets directory?
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^.* controller.php
AddHandler php5-script .php
Could someone give me a little line of code or two to help?
The title says it all, how do I access properties (title, state,...) of instance variables from within a class method of an other implementation file? I tried @synthesize but I couldn't get it to work.
Hi,
i have deployed two EARs on one server. i want to access one method in one java class in EAR to another java class in second EAR.
what are different ways to achieve this. which one is best way to do.
Thanks
I have a WSDL 1.1 file which describes my Web Service. Now I need get access to its methods using ASP.NET 3.5
I tried to use wsdl.exe utility but I think that this utility use only WSDL 2.0 format.
Hi
I defined a remote service over a AIDL file. Now i want to access this service in a different application. But how can I do that? The AIDL file is not accessible in my second application, and if i just copy the AIDL file, then the service can^^t be found.
Any hints for that problem??
Thanks Sebi
In my ASP.NET application I want to implement by data acess layer using the Entity framweok so I can use it as an ORM tool. But I dont want the rest of the application to care that I'm using this or be polluted by anything entity frameowrk specific.
I cant seem to find anyone who is using the entity framework exclusively in their Data access layer so I'm keen to see any online examples of this/ experience people have.
Hi,
I have a C# Windows Service that needs to access to a Linux computer to get a list of files in a particular directory. What .NET 3.5SP1 method would one use that allows me to do this?
Thanks.
Hey,
I developed an application for my masters class, that I want to limit ONLY to my masters class.
Can I somehow limit the access? Or even connect the limit to the users in a group?
Thanks
Simon
Let's say I managed to get the dictionary opened for iTunes in the Applescript editor:
How would I access the "search" commands using Python with pyobjc?
I know I get can hold of the iTunes application using:
iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes")
but after I do a dir on it, I don't see the search command in the returned dictionary. Help please!
A simple question: what is the more efficient way to access a db in Java/JDBC?
I'm a web developper and I'd like to write some reusable and scalable code.
What can you suggest?
Hello,
I'm running into a scenario where at random times I am getting "Access Denied" when executing javascript. It is not repeatable and occurs in random places of my application. There is not indication of what is causing it in the logs and I'm really at a loss on this. It seems to be UI problem only. However, there is no reason it should appear as I do not have any such permission checking to could be getting triggered.
Thanks in advance
Is it possible to do indexed element access in JPQL like in HQL :
select o from Order o where o.items[0].id = 1234
I couldn't find something related in the JPA 2 specs,
I am targeting EclipseLink JPA here, so if you come up with an EclipseLink solution, that's ok as well, although a JPQL standard solution is preferred.
What difference there is when you access to another struct by value or by a pointer?
When should be used each one of them?
type foo_ struct {
st uint8
nd uint8
}
type bar struct {
rd uint8
foo foo_
}
type barP struct {
rd uint8
foo *foo_
}
I am having an issue on OS X 10.7.5 as I used to use MAMP but for .htaccess issues I am now using my own compiled local server from a long time ago, the problem is i forgot the root password for mysql.
I have tried updating the password through terminal using mysql -u root, but I get this error message - ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Thanks
Ric