manikandan malathy

Greenhorn
+ Follow
since Sep 17, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by manikandan malathy

I have one problem in struts application please help me....
In my class have 2 action classes. One for searching some data and setting to request(request.setAttribut("Test",Test)).

But I am not getting these values in anohter action class... I am giving

request.getAttribute("Test");

But i am getting null values....
16 years ago
i am using logic:iteraror tag to display data from a arraylist
i am usign like this
first i set the data in action file like this
request.setAttribute("Hotelsearch",Hotelsearch);
in the jsp i am usign like this

<logic:iterate id="HotelId" name="Hotelsearch">
<tr>

<td><div align="center"><bean:write name="HotelId" property="CUR_ISO_COD"/></div></td>
<td><div align="center"><bean:write name="HotelId" property="IN_DAT"/></div></td>
<td><div align="center"><bean:write name="HotelId" property="OUT_DAT"/></div></td>
<td><div align="center"> </div></td>

</tr>
</logic:iterate>

But i am not getting the result... please help me
16 years ago
I have a problem in Unmarshall......

This s my code

package Sample;
import java.io.StringReader;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import org.apache.log4j.Logger;
import com.sun.jmx.remote.internal.Unmarshal;
class MarshalUnmarshal
{
JAXBContext jc;
Object parseObject=null;
String message="<?xml version=\'1.0\' encoding=\'UTF-8\'?><MSG_VER>1</MSG_VER><VAR_COU>0034</VAR_COU><LEG_COU>1</LEG_COU>";

private static Logger log=Logger.getLogger(MarshalUnmarshal.class);

public MarshalUnmarshal()
{
try
{
jc=JAXBContext.newInstance("Sample");
Unmarshaller u=jc.createUnmarshaller();
parseObject=u.unmarshal(new StringReader(message));
log.debug("parsedObject= " + parseObject);
}
catch(Exception e)
{
System.out.println("This s parsed error"+e);
}

}
public static void main(String[] s)
{
MarshalUnmarshal MU=new MarshalUnmarshal();
}



}

after executing i am getting this error:
errorjavax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"MSG_VER"). Expected elements are (unknown)
16 years ago
How to store integer and string in a single hashmap?
16 years ago
I am a new guy in webservice. I have little bit knowledge in webservice.

Now i am working in webservice project. So please can you give me a sample program for webservice.

How to create a sample webservice?
How to giving and retereving a string in webservice?
16 years ago
i am executing this query some error will occur....


Error Msg in MySQL:

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 sample b
where b.emp_no <= a.emp_no) as rn from sample a) z where mod ' at line 1
I have one problem in my program...

In my table contain 50 records... I am using mysql database.

How to getting every 5th record in my table give any sample code....
16 years ago
I have one problem in my program...

In my table contain 50 records... I am using mysql database.

How to getting every 5th record in my table give any sample code....
Thank you for your reply.....
How many import statement define in a java source file?
How many public classes define inside a package?
I am working in struts project using Tomcat.There s no proper folder structure in this project. I need using eclipse how can i use this project.
please help me
16 years ago