yashendra chandrakar

Greenhorn
+ Follow
since Mar 22, 2002
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 yashendra chandrakar

Hi All,
I am using 2 XSD files assume main.xsd and sub.xsd both are located in different folders.
main.xsd include the sub.xsd in following manner by specifying absolute path for attribute schemaLocation:
<xs:include schemaLocation="D:/Applications/XSD/pass/apiRQ.xsd"/>

which works fine for me.

But the problem is that I need to replace absolute path with relative one eg.
<xs:include schemaLocation="../../XSD/pass/apiRQ.xsd"/>
if I specify the relative path as specified above , I get following error :
Failed to read included schema document '../../XSD/pass/apiRQ.xsd'

though it works fine if I keep both the files in same folder and specify the path as follows
<xs:include schemaLocation="apiRQ.xsd"/>

Is there any workaround?

Thanks
Hi All,
I am using 2 XSD files assume main.xsd and sub.xsd both are located in different folders.
main.xsd include the sub.xsd in following manner by specifying absolute path for attribute schemaLocation:
<xs:include schemaLocation="D:/Applications/XSD/pass/apiRQ.xsd"/>

which works fine for me.

But the problem is that I need to replace absolute path with relative one eg.
<xs:include schemaLocation="../../XSD/pass/apiRQ.xsd"/>
if I specify the relative path as specified above , I get following error :
Failed to read included schema document '../../XSD/pass/apiRQ.xsd'

though it works fine if I keep both the files in same folder and specify the path as follows
<xs:include schemaLocation="apiRQ.xsd"/>

Is there any workaround.

Thanks
Hi All,
In my j2ee application,i have created a properties file,most of the classes uses this properties file through ResourceBundle,so i need to hard code this file name in all of the classes,can it be specified in application.xml so that these hardcode can be removed.....?
Thanks
Yashendra
Hi
All,
is it still required to declare any variable using TagExtraInfo class's getVariableInfo() method even if i specified the variable details in tld file using <variable> elements.
Thanks
Yashendra
Hi
Avi,
Thanks, i followed the way u specified, its working fine now.
20 years ago
Hi,
I have done some drawing in JPanel using graphics object of JPanel
eg.
JFrame frame = JFrame();
JPanel panel = JPanel();
//add some components in panel
...
panel.add();
...

//get Graphics object of panel
Graphics g = panel.getGraphics();
//do some drwaing in panel
g.drawLine();
frame.getContentPane().add(panel);

This code is working as expected ,displaying all the drawings i done.
But the problem is that when this Frame or panel is hidden or minimized,all the drawings are removed due to repaint of panel.
How to avoid this repaint of JPanel.
Thanks.
20 years ago
hi,
can anybody tell me how to display html containing css+javascript in JTextPane of swing1.1
JTextPane in jdk1.4 recognize the same simply by calling setContentType("text/html") in JTextPane.
but its not working with swing1.1 and jdk1.1.8.
Thanks.
20 years ago
hi
i need to display html content in JTextPane of JDK1.1.8.for that i coded as follows:
....
....
String text="<html><body>‘ Hi,Manjit’</body></html>";
JTextPane tp = new JTextPane();
tp.setContentType("text/html");
tp.setText(text);
....
but its not converting the special character as expected.
same code fragment is working for JDK1.4.
Any clue.
Thanks
20 years ago
hi
all,
is there any way to change the location of tooltip text in swing.In some of the components tooltip is showing below hand cursor while in other its showing abow hand cursor.
21 years ago
if i m using only one class suppose java.util.Vector in my code but put import statement as
import java.util.*;
in place of
import java.util.Vector;
does it make any difference in performance or in any other way
21 years ago
Thanks for reply

i m using Oracle 8.x
21 years ago
i tried as u said but couldn't get.
suppose i have table REPLY as follows
TOPIC_ID VARCHAR2(5) PRIMARY KEY
REPLY_TEXT CLOB NOT NULL
POSTEDBY VARCHAR(20) NOT NULL
i want to search word 'oracle datatypes' in REPLY_TEXT so i executed query as followes
SELECT * FROM REPLY WHERE CONTAINS(REPLY.REPLY_TEXT , 'oracle datatypes') >0;
but it shows error as follows:
ERROR at line 1:
ORA-00904: invalid column name
it is taking CONTAINS as column name.
even i tried it after creating intex on TOPIC_ID but in vain.
i would like to add one more quesion-
what should i do if i want to provide advance search(search within searched result)?should i store the previous search result in temp table,and provide search on that temp table?
21 years ago
hi
all,
i m using jdbc2.0,Oracle8.I want to provide search facility to client,for that i need to search client entered words in database table columns(with datatype VARCHAR2 & CLOB).should i get all the rows in resultset then serch that words usning jdbc method methods like
int position(String searchtext) of Clob class?
Or can i use any SQL query for that search so that i get only required rows in resultset?
i m a java programmer,want to display search result for words specified by client,for that i need to search that words in content of column with datatype VARCHAR2 or CLOB,and get all the rows for coluimn with that words.
what query should i use for this?
21 years ago
Hi
friends,
What's the reason behind making String immutable.
21 years ago