Forum: JSP Nov 11th, 2008 |
| Replies: 0 Views: 1,483 How can we set and get cookies in struts2.
I tried with ;
Cookie a = new Cookie("name","value"); - but this throws a null pointer exception.
because of this exception I used... |
Forum: Java Oct 30th, 2008 |
| Replies: 1 Views: 472 can some1 tell me the way of doing paging in a struts frontend. |
Forum: C++ Jun 3rd, 2008 |
| Replies: 14 Views: 3,800 Hi,
wt is the function that can use to count number of digits in a long integer?
e.g. 12345678 -> 8
11 ->2
456 -> 3
6724 -> 4 |
Forum: C++ Jun 3rd, 2008 |
| Replies: 1 Views: 1,115 Hi,
Can someone please tell me,
Is there any builtin function to convert decimal value to a fixed format?
e.g. 6 to 0006
10 to 0010
123 to 0123
4987 to 4987 |
Forum: C++ Jun 2nd, 2008 |
| Replies: 5 Views: 1,898 Hi all,
Its working fine if I pass it as a char ** FeedBack not as Const char ** Feedback.
seems to b we cant pass const values like this way??? |
Forum: C++ Jun 2nd, 2008 |
| Replies: 5 Views: 1,898 Hi salem,
as u said problem might not in those three lines. becoz i m passing that FeedBack value to a function
MyClass obj;
obj.setvalue(FeeedBack); // here Feed Back is of type const char**... |
Forum: C++ Jun 2nd, 2008 |
| Replies: 3 Views: 3,319 Thankx Anc. Dra. for ur help. but the solution doesnt suits for my need. becoze i m using that character concatenation program segment in another one. basically i need to assign extracted characters... |
Forum: C++ Jun 2nd, 2008 |
| Replies: 3 Views: 3,319 can someone please explain whats wrong with the below code segment? My intention is to assign characters in pointer "p" to pointer "a" one by one until the end. but this throws run time exception. I... |
Forum: C++ Jun 2nd, 2008 |
| Replies: 5 Views: 1,898 I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell... |
Forum: C++ May 30th, 2008 |
| Replies: 2 Views: 741 why cant we use strcat without initialing first parameter?
e.g.
char *b = "a";
char *a;
strcat(a,b); |
Forum: C++ May 29th, 2008 |
| Replies: 6 Views: 955 thanks edward.
The solution given by the Edward is woring fine. but it fails if data starts with a digit.
e.g. char *p = "006gterfs002rt005tyuri0028ab004oiuy010rtyuioiuyt";
here length of the data... |
Forum: C++ May 29th, 2008 |
| Replies: 6 Views: 955 example for the format of the data is:
5gterfs2rt5tyuri4oiuy10rtyuioiuyt |
Forum: C++ May 29th, 2008 |
| Replies: 6 Views: 955 no its not warapped in {}. just for understanding I used it. so i couldnt use strtok either. |
Forum: C++ May 29th, 2008 |
| Replies: 6 Views: 955 I want to split data in a string. The string will consist of several data. Before every element the length ofthe element will come. I want to exract data one by one.
e.g. char * abc = "[length... |
Forum: C++ May 27th, 2008 |
| Replies: 3 Views: 2,499 How can I convert char* to a char value?
can someone reply me asap |
Forum: C++ May 27th, 2008 |
| Replies: 2 Views: 373 how can I do this?? can someone help me
char * abc = "as,df,ert:we,rt,yu:ee,rr,tt";
Class x
{
char * a,*b,*c;
}
vector<x> vtr; |
Forum: C May 26th, 2008 |
| Replies: 5 Views: 1,311 I want to split a string into token depending on different delimiters.
e.g. char * temp = "asfs:ggd,oper:eger,ropptujnsdn:hfhgw";
and firstly I want to split data by using "," (lets call a... |
Forum: C++ May 26th, 2008 |
| Replies: 3 Views: 2,710 How can I type cast char* to a long value?
e.g. char * abc ;
long xyz;
xyz = abc???? |
Forum: C++ May 20th, 2008 |
| Replies: 3 Views: 440 Hi Duaos,
Thankx 4 ur support. but frm ur solution i couldnt solve the problem. bcozz i hv to use enumeration. (cannot use char array of pointers like u introduce). could u pls tell me way of... |
Forum: C++ May 20th, 2008 |
| Replies: 3 Views: 440 Hi,
I want to assign a char pointer value to enmerated value, to use in a switch statement.
Given below is the code segment. I dont hv an idea how to convert and assign char pointer value to a... |
Forum: C++ May 13th, 2008 |
| Replies: 1 Views: 709 This is the code segment I hv written. But its compiling well. but it doest give expected output, for me..
I want to write a function to split a char array by taking "," as the delimeter.
I m... |
Forum: C++ May 12th, 2008 |
| Replies: 1 Views: 1,102 In windows getline(,,) returns *this.
And Errors are signaled by modifying the internal state flags e.g. eofbit, failbit, badbit.
e.g. No characters were extracted -> then state flag = failbit
... |
Forum: C++ May 12th, 2008 |
| Replies: 2 Views: 542 i m getting this error. but i couldnt identified where i have gone wrong. could someone explained, normally in which situations this type of error occurs.
Error 1 error C2248:... |
Forum: C++ May 12th, 2008 |
| Replies: 1 Views: 5,563 i want to convert stringstream into a string type
e.g.
void countParameters(stringstream p_InputDataToCount, unsigned int &counter, char Delimeter)
{
size_t found;
//stringstream... |
Forum: C++ May 5th, 2008 |
| Replies: 1 Views: 629 We have a socket program written in standard c++.
Could anyone tell me about what are the test cases i should do? |
Forum: C++ Apr 21st, 2008 |
| Replies: 1 Views: 411 I want to convert a character to hexadecimal value.
and that value should be a unsigned char value.
e.g.
unsigned char a[16] = {0x00,0x44,...};
this is the code segment i wrote.
but its not... |
Forum: C++ Apr 20th, 2008 |
| Replies: 1 Views: 11,096 i want to convert char array element into hexadecimal value. But the code i wrote is not giving the output as i expect.
unsigned char in[256];
void Text(const char *Buffer)
{
static char... |
Forum: C++ Apr 18th, 2008 |
| Replies: 3 Views: 5,760 hey narue,
thankx alot!!
Its working.
Once again thankx |
Forum: C++ Apr 18th, 2008 |
| Replies: 3 Views: 5,760 I want to convert string to integer. My string values are something like 0x000,0x0001 and etc(i.e. values are in hexadecimal format). if i used atoi() function then it will take only 0.
but i want... |