Ritesh raushan

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

Recent posts by Ritesh raushan

we have created entity that contains five ManyToOne relationship with other field and we are getting all five ManyToOne mapping field ID from UI. Issue is that for insert object we have to make all 'ManyToOne mapping field' in persistent context for same we have to hit DB for five times(five query for get),So for insert one object we have to hit DB six times(five for ManyToOne and one for normal insert).
So,can we create other entity that would contain hardcoded join column name(join column ID is coming from UI) instead of refrence ManyToOne object, only for insert object.It will contain only one query to save object.
Please help me and sorry for english.

Advance Thanks.
i got a error-
java.lang.AbstractMethodError: ch.qos.logback.classic.Logger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)

pom.xml.

10 years ago

Mark Spritzler wrote:Try using /* in your url pattern instead of.

<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>


Mark



hi,Mark same 404 error found.
10 years ago
http://localhost:8080/SpringForm/welcome

404 error.requested resource is not available


this is my Conroller class



----web.xml



dispatcher-servlet.xml
10 years ago

Bear Bibeault wrote:It's be much easier, and a lot more robust, to use jQuery to do your Ajax. it not only makes the Ajax calls easier, it can gather the form data for you.

P.S. When you post code, make sure that it is properly indented.




sorry Bear i don't know JQuery.
10 years ago
how will send a form data using ajax.
when i click submit button request is not going at server.
i want to send request using data.

10 years ago
why output is unequal.
class Pool
{
public static void main(String[] ar)
{
String s="abc";
String s1="ab";
s1=s1+"c";//why s1 is not created in pool this is also literal
if(s==s1)
System.out.println("equal");
else
System.out.println("unequal");
}
}
10 years ago
i already declared action-mappings tag then why he given such type of error
i tried more then one hour to resolve this error but lastly i posted.

10 years ago
i created a two hyperlink one is <a href="pageurl">next</a> and
other is<a href="pageurl">previous</a>.
my question is How will i identify two hyperlink(written above) in one Servlet program.
means if request comes from "next" hyperlink then do something and
and if comes from "previous" hyperlink then do something.
11 years ago
in hibernate can we configure single POJO class with two table. if not then why
when i submit request output has not come and also not give errors.



11 years ago


output--hi
hi from m1
hi from main
11 years ago
i hava a some doubt.

1-why interface need a final variable.(what's the use of variable in interface)

2-what is the use of instance initializer even constructor is already for intialization
11 years ago
i am new on struts framework i have a doubt for following query.

1-why we configure ActionServlet in web.xml file (ActionServlet is predefined controller then why need to configure)

2-why struts given seperate web.xml file and struts-config(userdefined name) file.can we mixed

3-if we create form page with jsp then why need to write <load-on-startup>tag in web.xml
but if we create form page with html then no need of <load-on-startup>

please help me i want deeply concept.
11 years ago
this gives java.lang.verifyerror


Exception in thread "main" java.lang.VerifyError: Bad type on operand stack in method
Mana.main([Ljava/lang/String;)V at offset 9
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getMethod0(Class.java:2685)
at java.lang.Class.getMethod(Class.java:1620)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)


11 years ago