muthulingam Jayakanthan

Ranch Hand
+ Follow
since Feb 27, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by muthulingam Jayakanthan

Hi Thanks for the reply.

Without the line '<constant name="struts.action.extension" value="html"/>' I put the welcome list as below in web.xml

<welcome-file-list>
<welcome-file>Home.action</welcome-file>
</welcome-file-list>


Then in struts.xml I placed the following lines

<package name="default" namespace="/" extends="struts-default">
<action name="*" class="actions.home.Home" method="execute">
<result name="success">/views/home.jsp</result>
</action>
</package>


Now it is working fine.


But the issue is :-

If I put the following lines in struts.xml, then home page is not loading
<constant name="struts.action.extension" value="html"/>

Please help me what other modification I have to do. I need to replace my .action extension to .html

Regards

jklanka
13 years ago
I have a following package tag in my struts.xml to redirect the root URL to my home.jsp. And I am not using web.xml <welcome-file-list>


<package name="default" namespace="/" extends="struts-default">
<action name="" class="actions.home.Home" method="execute">
<result name="success">/views/home.jsp</result>
</action>
</package>


So this is working well and opening the home.jsp page when I run the application.

Then I wanted to change the .action extension to .html using following line in the struts.xml

<constant name="struts.action.extension" value="html"/>

Now this is working for all my url except for the root redirection. I mean when I deply and run , it gives me page not found message in the browser and I can type and view other pages with .html extension.

Please help me modify my package tag ablove.



Regards

jklanka
13 years ago
Thanks for your reply,

Well I am trying to develop a svg + ECMAScript based media application where I could able to play a video content.

Which almost lke Hillcrest Labs Media application HillcrestLabs
15 years ago
Hi,

I am requested to develop a linux PC based STB to develope a java application which supports multicast video streaming and Video on Demand RTSP streams.

I understand that we can use a

browser based or
application based or
SVG rendering Engine based application.

If I want to create a SVG rendering based aplication on a linux machine using open tools, can someone help me to guid how to start and what are the tools I need. What is the open Media API I can use to stream ?

In the end I need to develop a application which supports video streaming and SVG rendering. How java would help me or Am I in a wrong track.

Please some body help
15 years ago
I am trying to use the pager tag library from

http://jsptags.com/tags/navigation/pager/index.jsp

Suppose if there is a Collection Object variable. Then how I display it in a JSP page. I am not clear with the explanation of the document.

Can any one give me a simple test.jsp sample which support naviagtion for a Collection object variable without struts support.

Thanks
17 years ago
I have setup JBoss-IDE with Eclipse with Jboss. The Jboss Version I use jboss-4.0.2RC1.

1. I have configured MySQL version 5.0.21 to Jboss. and I followed the URL
http://www.cotsec.com/documentation/installation/j2ee_jboss_mysql/index.html#3.%20Add%20the%20Java%20MySQL%20Library
to configure the database with JBoss.


2. I made a small table with MySQL

CREATE TABLE `fortunedb`.`test` (
`id` varchar(10) NOT NULL,
`name` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


3. I made a simple Entity Bean Call Test bean to connect to the test table as follow

ejb-jar.xml::::

<![CDATA[Description for Test]]>
<display-name>Name for Test</display-name>

<ejb-name>Test</ejb-name>

com.account.TestHome
com.account.Test

<ejb-class>com.account.TestCMP</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
False

<cmp-version>2.x</cmp-version>
<abstract-schema-name>Test</abstract-schema-name>
<cmp-field >
<![CDATA[]]>
<field-name>id</field-name>
</cmp-field>
<cmp-field >
<![CDATA[]]>
<field-name>name</field-name>
</cmp-field>
jboss.xml::::::

<ejb-name>Test</ejb-name>
<jndi-name>ejb/Test</jndi-name>



jbosscmp-jdbc.xml::::


java:/MySqlDS
<datasource-mapping>mySQL</datasource-mapping>


<enterprise-beans>

<ejb-name>Test</ejb-name>
<table-name>test</table-name>

<cmp-field>
<field-name>id</field-name>
<column-name>id</column-name>

</cmp-field>
<cmp-field>
<field-name>name</field-name>
<column-name>name</column-name>
</cmp-field>

</enterprise-beans>


4. I am running a Servlet Client to get the connection

public void init(ServletConfig config) throws ServletException {
try {
Context context = new InitialContext();
Object ref = context.lookup("java:comp/env/ejb/Test");
home = (TestHome) PortableRemoteObject.narrow(ref, TestHome.class);
} catch (Exception e) {
throw new ServletException("Lookup of java:/comp/env/ failed" + e);
}
}

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException,
IOException {

resp.setContentType("text/html");
PrintWriter out=resp.getWriter();


try {

Test bean = home.findByPrimaryKey("jk");
out.print(bean.getName());
} catch (Exception e) {
out.print(e);
}


5. But when I run this Servlet it gives me the following error

"javax.ejb.FinderException: Find failed: java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM test t0_Test WHERE' at line 1""

Please help me to go further on this. I am totally stuck here and I coukld not realise where I made the mistake.
18 years ago
Hi everybody,

I went through some forum and found that it is not possible to use JNDI DataSource Connection setup to MS Access.

I can use DriverManager to do that. But I need to make sure whether it is possible to use Tomcat (5) Web Server To configure MS Access and Call with JNDI naming concept.

Please help me on discussing regarding.
19 years ago
1. I have a MS Access file and I made a DSN to that call jkdb in the Windows Control Panel

2. I setup the JNDI datasource configuration in http://localhost:8080/admin like below :-
JNDI name : jdbc/jkdb
Datasource URL : jdbc dbc:jkdb
JDBC Driver Class : sun.jdbc.odbc.JdbcOdbcDriver

3. in the java file I made a method like below

Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env/");
DataSource ds = (DataSource)envContext.lookup("jdbc/jkdb");
conn = ds.getConnection();

It gives error like
"javax.naming.NoInitialContextException: Need to specify class name in environment or system property,................"

I wonder whether my Configuration is correct or not. Tomcat JNDI Documentation not talk about MS Access connection details Please jelp me on this Thanks
19 years ago
Hi everybody,

I am trying to learn MyJXTA application from www.jxta.org.
But it is very depth application.
I like to have some kind of simple chat sample coding programs which would help me to learn well before I go into MyJXTA.

Please Give me the link if anybody have such a sample to learn to implement simple chat program.
19 years ago
I am using Windows XP with jdk1.5

1. I downlaoded SimpleJxtaApp.java from
"http://platform.jxta.org/source/browse/platform/www/java/tutorial/examples/SimpleJxtaApp/?only_with_tag=issue311" and put the file into to c:\test folder

2. Then I downloaded jxta-lib-2.3.2b.zip and unzipped all jar files to c:\test\lib folder


3. I used the following command to compile
set CLASSPATH=%CLASSPATH%;lib/jxta.jar;lib/log4j.jar;lib/org.mortbay.jetty.jar;lib/javax.servlet.jar;lib/bcprov-jdk14.jar
set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_01
javac SimpleJxtaApp.java

I comipiled SuccessFully

4. I tried to run the program using following Code

set CLASSPATH=%CLASSPATH%;lib/jxta.jar;lib/log4j.jar;lib/org.mortbay.jetty.jar;lib/javax.servlet.jar;lib/bcprov-jdk14.jar
java -classpath . SimpleJxtaApp

But I get the error message as follow

'Exception in thread "main" java.lang.NoClassDefFoundError: net/jxta/exception/PeerGroupException'

I am very new to JXTA

Pls Help me
19 years ago
I am trying to learn JFC using the link
http://java.sun.com/developer/onlineTraining/GUI/Swing1/index.html

Using Which IDE we can follow this tutorial?
19 years ago
I am trying to learn JFC using the link
http://java.sun.com/developer/onlineTraining/GUI/Swing1/index.html

But please some body advice me to use which toolkit to test and run these codes. Are there any native java open toolkit to test these Applets and Frames.

[Andrew edit: changed title]
[ March 15, 2005: Message edited by: Andrew Monkhouse ]
19 years ago
Hi,

Suppose there is a class which implemented HttpSessionBindingListener.
How many instance of the class we can have in one session. please help
I think u have to install jdk1.5 to work