User Profile
Collapse
-
Ok, I think i have found a possible cause. Can somebody confirm that the invoker servlet is diabled in tomcat 7? -
Tomcat 7 servlet problem
Hello everyone,
I have spent a couple of days now trying to figure out why I can't serve my servlets through tomcat. I have no experience with tomcat, so I'm running out of ideas.
Basically I get a 404 error, saying that the requested resource can't be found. I have checked the log output in catalina.out, and there are no issues here. I know that tomcat is running. It reads the index.jsp which contains a redirect to /servlet/vservlets.Login .... -
Ok. I mean if I have id=4, I first find the AAA-segment with id=4. Then my job will be to find the first XXX-segment with element id=XXX02's value set to 98 beneath it.
Imagine that the block I have shown in the thread is repeated within the start-tags, and only the values change. Ex. the id of the AAA-segment is incremented.
Hope I make myself clear :)Leave a comment:
-
finding the correct segment
Hi,
I have the following:
...Code:<start> <segment Id="AAA"> <element Id="id">1</element> <element Id="seq">122</element> <element Id="seq2" Composite="yes"> <subelement Sequence="1">57002122338772</subelement> </element> -
-
simple XSLT question
Hi,
I'm pretty new to XSLT, so my question might be really simple:
How do I get the value og 'subelement Sequence="1"', where 'element Id="NAD01"' is equal to 'MO' in the following XML?
...Code:... <segment Id="NAD"> <element Id="NAD01">BY</element> <element Id="NAD02" Composite="yes"> -
But can I make a fixed length. e.g. 8 characters with blankspaces i front:
" 23.233"Leave a comment:
-
round function
Hi,
I need to make a function, that takes as input a double. This should be rounded so it always has a decimal precision of 3:
12.1234 = 12.123
12.1235 = 12.124
12.12 = 12.120
0 = 0.000
Is this possible? The output is going to be written to a file, so it's ok to convert the double to a string and let the function return this string, if it makes the problem easier. Does anybody know... -
-
includes
Hi,
How do I properly include classes that are dependable of each other, without getting an error that the compiler don't knoe anything about one of the classes?
Ex:
vector.h
matrix.hCode:class Vector { public: ... Vector operator*(const Matrix& m) const; }
...Code:class Matrix { ... Vector operator* (const Vector& v) const; -
apache redirect remove part of url
How do make a redirect of the following example:
www.test.com/xxx/yyy -> www.test.com/yyy
In other words I would to always remove xxx from the url.
I'm sure it's really straight forward, but I'm not very experienced with Apache. -
include files
Hi,
I would like to hear opinions of the best way to include files (classes) within each other, without getting previously defined errors. Anyone have good tips for doing this? -
-
search for a string
Hi everyone,
Does there exist a function to seach for a string in a file, when I have a pointer to a character array:
Code:ifstream infile = f.c_str();
-
-
Call to a static member function
Hi everyone,
Is there an operator to call member functions of a class outside the class, without having to declare an instance of the object? Like the ::-operator i PHP (Hope I'm not offending anybody!) -
Hi,
Sorry, I only pasted some parts of my code, but I found the reason for the problem myself.Leave a comment:
-
The fourpoints class:
Code:class fourpoints { public: //constructor fourpoints(); //destructor ~fourpoints(); Point fourpoints::get_1() const; friend ostream& operator<<(ostream& os, const fourpoints& p); private: Point p1, p2, p3, p4; };Leave a comment:
-
segmentation when cout
Hi,
I'm trying to overload the << operator. I have a point class which is represented by a vector of doubles. In this class I have overloaded the << operator with no problem:
...Code:class Point { public: //constructor Point(); Point(vector<double> v); } Point::Point() { vector<double> vec(4,0); vec[3]= 1; -
instantiating a class in another class
Hi,
I have made a matrix class, that I wish to make an instiation of in another class.
Matrix class:
...Code:#include <vector> #include <iostream> using namespace std; // So the program can see cout and endl class Matrix { //-public member data public: //-constructor, copy constructor, and deconstructor Matrix(const vector<
No activity results to display
Show More
Leave a comment: